:root {
  --bg: #FAFAF8; --ink: #121212; --mute: #5E5E5A; --line: #E2E2DD; --soft: #F0F0EC; --card: #121212;
  --cbg: #121212; --cink: #FAFAF8; --cmute: #A3A39E; --cline: #3A3A37;
  --accent: #2F4BFF;
  --c-tabla: #C8661C; --c-mega: #1F7A5A; --c-esik: #6C4BD8; --c-aspava: #D2401E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0D; --ink: #EDEDE8; --mute: #9A9A94; --line: #2A2A27; --soft: #1C1C1A; --card: #1C1C1A;
    --cbg: #141936; --cink: #EDEDE8; --cmute: #9AA0BF; --cline: #2C3460;
    --c-tabla: #F0954A; --c-mega: #46B88D; --c-esik: #A08AF7; --c-aspava: #F06A47;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0D; --ink: #EDEDE8; --mute: #9A9A94; --line: #2A2A27; --soft: #1C1C1A; --card: #1C1C1A;
  --cbg: #141936; --cink: #EDEDE8; --cmute: #9AA0BF; --cline: #2C3460;
    --c-tabla: #F0954A; --c-mega: #46B88D; --c-esik: #A08AF7; --c-aspava: #F06A47;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-size: 14px; font-weight: 500; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; flex: none; }
.mark .m { stroke: var(--ink); }
.mark .d { fill: var(--accent); transition: transform .4s cubic-bezier(.2,.7,.1,1); transform-origin: 19.5px 5px; }
.brand:hover .mark .d { transform: scale(1.35); }
.top-right { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 24px; font-size: 13px; color: var(--mute); }
.lang { display: flex; align-items: center; color: var(--mute); font-size: 13px; }
.lang button { min-height: 44px; min-width: 40px; padding: 0 8px; background: none; border: 0; cursor: pointer; color: var(--mute); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.theme { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.theme svg { transition: transform .5s cubic-bezier(.2,.7,.1,1); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--mute); }
.back svg { transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.back:hover svg { transform: translateX(-4px); }

@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@keyframes rv { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) { .nav, .clock { display: none; } }

/* Telefon menüsü */
.top { position: relative; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.menu-btn svg path { transition: transform .3s cubic-bezier(.2,.7,.1,1), opacity .2s; transform-origin: 8px 8px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-2.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; position: absolute; top: calc(100% - 8px); left: 16px; right: 16px; z-index: 50; flex-direction: column; gap: 0; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14); animation: drop .22s cubic-bezier(.2,.7,.1,1); }
  .nav.open a { min-height: 48px; display: flex; align-items: center; padding: 0 12px; font-size: 16px; color: var(--ink); border-radius: 8px; }
  .nav.open a:hover { background: var(--soft); text-decoration: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Sayfalar arası yumuşak geçiş (desteklemeyen tarayıcıda normal geçiş) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.brand { view-transition-name: brand; }
.back { view-transition-name: back; }
.theme { view-transition-name: theme; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Yazı inceliği */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
body { hanging-punctuation: first; font-kerning: normal; }
.num, .stats dd, .facts b, .km, .min, #hh, #mm { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: #FFFFFF; }

/* Elle çiziliyormuş gibi beliren çizgiler */
.draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw .on [pathLength], .draw.on [pathLength] { animation: draw 1.1s cubic-bezier(.6,0,.2,1) both; animation-delay: calc(var(--o, 0ms) + var(--i, 0) * 60ms); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.draw .thin { stroke-opacity: .42; }
@media (prefers-reduced-motion: reduce) { .draw [pathLength] { animation: none !important; stroke-dashoffset: 0 !important; } }
