/* Baki Cinkir, personal site. One idea: the career is a planning board with a live "today" line. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --board: #eef2f0;
  --board-2: #e2e9e5;
  --ink: #1b2a35;
  --steel: #586874;
  --rule: #d2dad6;
  --go: #0e7c4a;
  --go-deep: #0a6339;
  --go-soft: #dcefe4;
  --on-go: #ffffff;
  --on-ink: #ffffff;
  --bar: #1b2a35;
  --today: #d3362b;
  --lw: 190px;
  --gap: 16px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --text: "Barlow", "Bahnschrift", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #10181e;
    --board: #16222a;
    --board-2: #1e2d37;
    --ink: #e3eae7;
    --steel: #9aaab4;
    --rule: #283843;
    --go: #3fbf86;
    --go-deep: #5fd39f;
    --go-soft: #183a2b;
    --on-go: #0b1a12;
    --on-ink: #10181e;
    --bar: #a9b9c2;
    --today: #ff6257;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10181e;
  --board: #16222a;
  --board-2: #1e2d37;
  --ink: #e3eae7;
  --steel: #9aaab4;
  --rule: #283843;
  --go: #3fbf86;
  --go-deep: #5fd39f;
  --go-soft: #183a2b;
  --on-go: #0b1a12;
  --on-ink: #10181e;
  --bar: #a9b9c2;
  --today: #ff6257;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--go); color: var(--on-go); }

/* Every text is an en/tr pair; only the chosen language shows. */
html[data-lang="en"] [lang="tr"], html[data-lang="tr"] [lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { margin-right: auto; font: 600 1.3rem/1 var(--display); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 9px 12px; border-radius: 6px; color: var(--steel); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--board); }
.nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--go); border-radius: 0; }
.tools { display: flex; align-items: center; gap: 8px; }
.switch { display: inline-flex; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; }
.switch button { padding: 8px 10px; border: 0; background: transparent; color: var(--steel); font: 600 .92rem/1 var(--display); letter-spacing: .03em; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--rule); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover, .switch:hover { border-color: var(--steel); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn, .i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 14px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 2px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { background: transparent; }
  .nav a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--go); padding-left: 12px; }
}

/* Hero */
.hero { padding: clamp(36px, 6.5vw, 84px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { font: 600 clamp(3.3rem, 10.4vw, 7.25rem)/.92 var(--display); letter-spacing: -.02em; }
.tagline { margin: .35em 0 .9em; font: 600 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--display); }
.lead { max-width: 33em; font-size: clamp(1.15rem, 1.9vw, 1.38rem); line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
  font: 600 1.08rem/1 var(--display); letter-spacing: .01em; text-decoration: none;
}
.btn:hover { background: var(--board); }
.btn.go { background: var(--go); border-color: var(--go); color: var(--on-go); }
.btn.go:hover { background: var(--go-deep); border-color: var(--go-deep); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; color: var(--steel); font-weight: 500; }
.lamp { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px var(--go-soft); }

/* The board */
.board { margin-top: clamp(40px, 6vw, 64px); padding: 34px clamp(14px, 2.4vw, 28px) 22px; border-radius: 14px; background: var(--board); }
.board-head, .row { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); column-gap: var(--gap); }
.axis { position: relative; height: 26px; }
.axis span {
  position: absolute; bottom: 7px; left: calc(var(--y) * 5%); padding-left: 6px;
  color: var(--steel); font: 500 .88rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.axis span::before { content: ""; position: absolute; left: 0; bottom: -7px; width: 1px; height: 12px; background: var(--steel); }
.board-body { position: relative; }
.lane {
  position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--lw) + var(--gap)); pointer-events: none;
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 5%);
}
.today {
  position: absolute; z-index: 2; top: -60px; bottom: 0; left: calc(var(--t) / 240 * 100%);
  width: 2px; margin-left: -1px; background: var(--today); transform-origin: top;
  animation: drop .45s ease-out .95s both;
}
.today b { position: absolute; top: 0; right: 7px; color: var(--today); font: 600 .9rem/1 var(--display); white-space: nowrap; }
.rows { position: relative; z-index: 1; list-style: none; }
.row { align-items: center; padding: 5px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.rows li:last-child .row { border-bottom: 1px solid var(--rule); }
.row:hover, .row:focus-visible { background: var(--board-2); }
.who { display: flex; flex-direction: column; padding-left: 6px; line-height: 1.15; }
.who b { font: 600 1.06rem/1.15 var(--display); }
.who small { color: var(--steel); font-size: .84rem; font-variant-numeric: tabular-nums; }
.row:hover .who b, .row:focus-visible .who b { color: var(--go); }
.track { position: relative; height: 32px; }
.bar {
  position: absolute; top: 5px; height: 22px;
  left: calc(var(--s) / 240 * 100%); width: calc((var(--e) - var(--s)) / 240 * 100%);
  border-radius: 4px; transform-origin: left center;
  animation: lay .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 70ms) both;
}
.bar.done { background: var(--bar); }
.bar.now { background: var(--go); border-radius: 4px 0 0 4px; }
.bar.plan { border: 2px dashed var(--go); border-left: 0; border-radius: 0 4px 4px 0; background: var(--go-soft); }
.role {
  position: absolute; top: 50%; transform: translateY(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--steel); font: 500 .92rem/1.2 var(--display);
  animation: fade .4s ease calc(var(--i, 0) * 70ms + .5s) both;
}
.role.in { left: calc(var(--s) / 240 * 100% + 10px); max-width: calc((var(--e) - var(--s)) / 240 * 100% - 20px); color: var(--on-ink); }
.role.after { left: calc(var(--e) / 240 * 100% + 10px); max-width: calc((240 - var(--e)) / 240 * 100% - 14px); }
.role.before { right: calc((240 - var(--s)) / 240 * 100% + 10px); max-width: calc(var(--s) / 240 * 100% - 14px); text-align: right; }
@keyframes lay { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { transform: scaleY(0); } }
@media (max-width: 720px) {
  :root { --lw: 108px; --gap: 10px; }
  .board { padding-top: 30px; }
  .role, .axis .odd, .today .d { display: none; }
  .who b { font-size: .98rem; }
  .who small { font-size: .78rem; }
  .today b { font-size: .8rem; }
}

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.sec h2 { margin-bottom: clamp(22px, 3vw, 34px); font: 600 clamp(2rem, 3.8vw, 2.75rem)/1.05 var(--display); letter-spacing: -.01em; }

/* What I do: a table, as a planner would write it */
.work { width: 100%; border-collapse: collapse; }
.work th {
  padding: 0 20px 10px 0; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: bottom;
  color: var(--steel); font: 600 1.02rem/1.3 var(--display);
}
.work td { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-wrap: pretty; }
.work td:first-child { width: 27%; font: 600 1.32rem/1.2 var(--display); }
.work td:nth-child(2) { width: 41%; }
.work td:last-child { padding-right: 0; color: var(--steel); font-size: 1rem; }
.where-label { display: none; }
@media (max-width: 820px) {
  .work thead { display: none; }
  .work, .work tbody, .work tr, .work td { display: block; width: auto !important; }
  .work tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .work tr:first-child { border-top: 2px solid var(--ink); }
  .work td { padding: 0 0 8px; border: 0; }
  .where-label { display: inline; color: var(--ink); font-weight: 600; }
}

/* How I work: a routing, operations 10 to 40 */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; }
.steps::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--rule); }
.op {
  position: relative; display: inline-grid; place-items: center; min-width: 54px; height: 40px; padding: 0 12px;
  border: 2px solid var(--go); border-radius: 20px; background: var(--paper);
  color: var(--go); font: 700 1.15rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 18px 0 8px; font: 600 1.5rem/1.15 var(--display); }
.steps p { color: var(--steel); text-wrap: pretty; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 18px; }
  .steps h3 { margin: 6px 0 6px; }
  .steps p { grid-column: 2; }
}

/* Career details, newest first */
.jobs { border-top: 2px solid var(--ink); }
.job { border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.job summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; column-gap: 20px; align-items: baseline;
  padding: 16px 0; cursor: pointer; list-style: none;
}
.job summary::-webkit-details-marker { display: none; }
.job summary::after {
  content: ""; grid-column: 3; grid-row: 1; align-self: center; justify-self: end; width: 10px; height: 10px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.job[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.co { grid-column: 1; font: 600 1.4rem/1.2 var(--display); }
.when { grid-column: 2; grid-row: 1; color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-line { grid-column: 1 / 3; color: var(--steel); }
.job summary:hover .co { color: var(--go); }
.job-body { max-width: 74ch; padding: 0 0 20px; }
.job-body ul { padding-left: 1.1em; }
.job-body li { margin: 7px 0; text-wrap: pretty; }
.job-body li::marker { color: var(--go); }
.jobs-roles { list-style: none; margin-bottom: 10px; padding: 0 !important; }
.jobs-roles li { margin: 3px 0; }
.jobs-roles span { color: var(--steel); }
.job.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: var(--go-soft); } }
@media (max-width: 560px) {
  .job summary { grid-template-columns: minmax(0, 1fr) 22px; }
  .when { grid-column: 1; grid-row: auto; }
  .role-line { grid-column: 1; }
  .job summary::after { grid-column: 2; }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about p { max-width: 62ch; text-wrap: pretty; }
.about p + p { margin-top: 1em; }
.facts { border-top: 2px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--steel); font: 600 1.02rem/1.3 var(--display); }
.facts dd { margin-top: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact p { max-width: 60ch; }
.mail {
  display: inline-block; margin: 14px 0 22px; overflow-wrap: anywhere;
  font: 600 clamp(1.7rem, 5.2vw, 3.3rem)/1.1 var(--display);
  text-decoration-color: var(--go); text-decoration-thickness: 3px; text-underline-offset: 7px;
}
.mail:hover { color: var(--go); }
.contact .actions { margin-top: 0; }
.place { margin-top: 22px; color: var(--steel); }
.when-done { display: none; }
.copied .when-idle { display: none; }
.copied .when-done { display: inline; }

/* Footer */
.foot { padding: 26px 0 40px; border-top: 1px solid var(--rule); color: var(--steel); font-size: .98rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding-block: 60px; }
.lost h1 { font: 600 clamp(2.6rem, 8vw, 5rem)/1 var(--display); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar, .role, .today, .job.flash { animation: none; }
}
@media print {
  .top, .skip, .actions, .tools { display: none !important; }
  .bar, .role, .today { animation: none; }
  .sec { padding-block: 24px; }
  .job-body { display: block; }
}
