/* keremdemir.net v2: warm, personal, one narrow column (after taniarascia.com) */

:root {
  --font-heading: 'Outfit', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --bg: #F6F1E6;
  --card: #ECE4CF;
  --card-line: #DDD2B6;
  --ink: #24242B;
  --ink-soft: #5A5A62;
  --line: #E2D9C4;
  --accent: #A8264B;
  --bubble: #F2EAD6;

  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1B20; --card: #26252C; --card-line: #34333B; --ink: #EDE8DD; --ink-soft: #B3AEA5;
    --line: #2F2E35; --accent: #F07A9A; --bubble: #26252C;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1B20; --card: #26252C; --card-line: #34333B; --ink: #EDE8DD; --ink-soft: #B3AEA5;
  --line: #2F2E35; --accent: #F07A9A; --bubble: #26252C;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

a { color: var(--accent); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 3.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .75rem; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }

section { padding-top: 3rem; }
.lede { color: var(--ink-soft); margin: 0 0 1.25rem; }

/* ---------- Top bar ---------- */

.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg); }
.bar { max-width: 64rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: .95rem; text-decoration: none; }
.brand .mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--bg); font-family: var(--font-heading); font-weight: 700; font-size: .78rem; }
.nav, .langs, .tools { display: flex; align-items: center; gap: .15rem; }
.tools { gap: .5rem; }
.nav a, .langs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: .92rem; text-decoration: none;
}
.langs a { font-family: var(--font-mono); font-size: .78rem; padding: 0 .4rem; min-width: 34px; justify-content: center; }
.nav a:hover, .langs a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"], .langs a[aria-current="page"] { color: var(--ink); background: var(--card); }
.theme { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { background: var(--card); }
.theme svg { width: 20px; height: 20px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .moon { display: inline; }
:root[data-theme="dark"] .theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .moon { display: inline; }
  :root:not([data-theme="light"]) .theme .sun { display: none; }
}

/* ---------- Intro + timeline ---------- */

.intro { padding-top: 3rem; }
.intro .sub { font-size: 1.3rem; line-height: 1.45; margin: .75rem 0 0; }
.timeline h2 { font-size: 1.3rem; }
.timeline ul { list-style: none; margin: 0; padding: 0; }
.timeline li { margin: 0 0 1.1rem; font-size: 1.1rem; line-height: 1.55; }
.when { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); margin-right: .25rem; white-space: nowrap; }
.also { font-size: 1.1rem; margin: 1.5rem 0 0; }

/* avatar with speech bubble */
.avatar { margin: 3rem auto 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.avatar img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 6px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .avatar img { animation: pop 650ms var(--ease) 150ms both; }
}
@keyframes pop { from { transform: scale(.86) rotate(-6deg); } to { transform: none; } }
.bubble {
  position: relative; max-width: 18rem; text-align: center;
  background: var(--bubble); border: 1px solid var(--card-line); border-radius: 12px;
  padding: .7rem 1rem; font-size: .92rem;
}
.bubble::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: var(--bubble); border-left: 1px solid var(--card-line); border-top: 1px solid var(--card-line);
}

/* ---------- Shelves ---------- */

.sec-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .5rem; }
.sec-head h2 { margin: 0; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .15rem .8rem;
  border: 1px solid var(--card-line); border-radius: 8px; background: var(--card);
  color: var(--ink); font-family: var(--font-body); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.pill:hover { border-color: var(--accent); }
.pill.solid { min-height: 46px; padding: .5rem 1.3rem; font-size: 1rem; background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pill.solid:hover { filter: brightness(1.08); }

.shelves { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.shelves.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf { background: var(--card); border: 1px solid var(--card-line); border-radius: 10px; padding: 1rem 1.15rem; }
.shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .35rem; }
.shelf p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.shelf p strong { color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--bg); color: var(--accent); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; }

/* ---------- Career page ---------- */

.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.history li:first-child { border-top: 1px solid var(--line); }
.history li:first-child .when { color: var(--accent); }
.history strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; }
.history .org { color: var(--ink-soft); }

/* ---------- Band ---------- */

.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin-top: 3.5rem; padding: 1.5rem; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); }
.band p { margin: 0; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; line-height: 1.3; max-width: 26ch; }

/* ---------- Contact form ---------- */

.form { margin-top: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .55rem .75rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--card-line); border-radius: 8px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: var(--bg); color: var(--ink); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; margin: 1rem 0 1.25rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: .1rem; flex-shrink: 0; accent-color: var(--accent); }
.sent { display: none; margin: 1rem 0 0; font-weight: 600; color: var(--accent); }
.sent.is-visible { display: block; }

/* ---------- Prose (privacy) ---------- */

.prose h2 { font-size: 1.2rem; margin: 2rem 0 .4rem; }
.prose p { margin: 0 0 1rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 3rem; }
.site-footer p { margin: 0 0 .5rem; font-size: .88rem; color: var(--ink-soft); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .langs { margin-bottom: .5rem; margin-left: -.4rem; }

.big { font-family: var(--font-mono); font-size: clamp(4rem, 16vw, 7rem); line-height: 1; color: var(--accent); margin: 0 0 1rem; }

/* ---------- v3: isometric hero (after bruno-simon.com, drawn in SVG) ---------- */

/* the hero breaks out of the 44rem column to sit beside its scene */
.iso-intro {
  width: min(64rem, calc(100vw - 2.5rem));
  margin-left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center;
  padding-top: 2.5rem;
}
.iso-text .sub { font-size: 1.3rem; line-height: 1.45; margin: .75rem 0 1.5rem; }
.iso-scene { position: relative; }
.iso { display: block; width: 100%; height: auto; overflow: visible; }

.iso .ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1150 110; opacity: .55; }
.iso .disc-top { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.iso .disc-side { fill: var(--card-line); }
.iso .track { fill: none; stroke: color-mix(in srgb, var(--accent) 22%, var(--card)); stroke-width: 16; }
.iso .lane { fill: none; stroke: var(--bg); stroke-width: 1.2; stroke-dasharray: 7 7; }
.iso .runner { fill: var(--accent); }
.iso .lamp { stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; }
.iso .lamp-head { fill: #FFB547; }
.iso .glow-in { stop-color: #FFB547; stop-opacity: .45; }
.iso .glow-out { stop-color: #FFB547; stop-opacity: 0; }
.iso .f-top { fill: var(--bubble); stroke: var(--card-line); stroke-width: .8; }
.iso .f-left { fill: color-mix(in srgb, var(--ink) 18%, var(--card)); }
.iso .f-right { fill: color-mix(in srgb, var(--ink) 30%, var(--card)); }
.iso .hot .f-top { fill: color-mix(in srgb, var(--accent) 45%, var(--bg)); stroke: none; }
.iso .hot .f-left { fill: var(--accent); }
.iso .hot .f-right { fill: color-mix(in srgb, var(--accent) 75%, #000); }
.iso .bar { transform-box: fill-box; transform-origin: 50% 100%; }

/* signature: the skyline rises bar by bar, the disc settles */
@media (prefers-reduced-motion: no-preference) {
  .iso .world { animation: settle 650ms var(--ease) both; }
  .iso .bar { animation: grow 600ms var(--ease) both; animation-delay: calc(250ms + var(--i) * 60ms); }
}
@keyframes settle { from { transform: translateY(18px); } to { transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .iso-intro { width: auto; margin-left: 0; transform: none; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .iso-scene { max-width: 32rem; margin: 0 auto; }
}

/* ---------- Narrow ---------- */

@media (max-width: 640px) {
  .bar { padding-left: .75rem; padding-right: .75rem; }
  .nav { order: 3; width: 100%; margin-left: -.6rem; }
  .shelves.two { grid-template-columns: minmax(0, 1fr); }
  .history li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .pill.solid { width: 100%; }
  .intro .sub { font-size: 1.15rem; }
}
