:root {
  --paper: #F4EEE3;
  --paper-2: #EAE1D0;
  --ink: #14213D;
  --ink-2: #4A5470;
  --terra: #C8553D;
  --terra-ink: #A8452F; /* terra for small text: 5.1:1 on paper */
  --ochre: #E0A458;
  --sage: #7A9E7E;
  --line: rgba(20, 33, 61, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 52px);
  /* bölge renkleri */
  --r-marmara: #C8553D; --r-ege: #E0A458; --r-akdeniz: #D98C6A; --r-ic-anadolu: #B9A16B;
  --r-karadeniz: #7A9E7E; --r-dogu-anadolu: #5D7A99; --r-guneydogu-anadolu: #9C6B5E;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; margin: 0; font-optical-sizing: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--ochre); padding: 8px 12px; }

/* İzohips zemini */
.contour { background-image: url("../img/izohips.svg"); background-size: 900px auto; background-repeat: repeat; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 238, 227, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 20px; display: block; line-height: 1.05; }
.brand small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-2); }
.menu { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; }
.menu a { display: block; padding: 8px 12px; text-decoration: none; font-size: 14.5px; position: relative; white-space: nowrap; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: none; }
.menu a span { font-family: var(--mono); font-size: 11px; color: var(--terra-ink); margin-right: 6px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; }
.burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--paper); padding: 90px var(--pad) 40px; overflow-y: auto; clip-path: circle(0 at calc(100% - 44px) 37px); transition: clip-path .55s cubic-bezier(.6,.1,.2,1); }
.drawer.open { clip-path: circle(150% at calc(100% - 44px) 37px); }
.drawer a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(244,238,227,.15); text-decoration: none; font-family: var(--serif); font-size: 26px; }
.drawer a span { font-family: var(--mono); font-size: 12px; color: var(--ochre); }
.drawer .x { position: absolute; top: 15px; right: var(--pad); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,238,227,.35); background: none; color: var(--paper); font-size: 26px; cursor: pointer; }
@media (max-width: 1180px) { .menu { display: none; } .burger { display: block; } }

/* Buton */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.btn:hover { background: var(--terra-ink); border-color: var(--terra-ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn::after { content: "→"; font-family: var(--mono); }

/* Hero + harita */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 40px; }
.hero-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(46px, 7.4vw, 112px); font-weight: 400; }
.hero h1 i { font-style: italic; color: var(--terra); }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 900px) { .hero-head { grid-template-columns: 1fr; gap: 20px; } }

.mapbox { position: relative; margin-top: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.mapbox .frame { display: grid; grid-template-columns: 1fr 300px; }
.mapbox .canvas { position: relative; padding: 28px 20px 14px; border-right: 1px solid var(--line); }
.mapbox svg.tr { width: 100%; height: auto; }
.tr path { fill: var(--c, #ccc); stroke: var(--paper); stroke-width: .9; cursor: pointer; transition: opacity .25s, fill .25s; }
.tr path:hover, .tr path.sel { fill: var(--ink); }
.tr.filter path { opacity: .18; }
.tr.filter path.on { opacity: 1; }
.tr path:focus-visible { outline: none; fill: var(--ink); }
.corner { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.corner.tl { top: 10px; left: 14px; } .corner.br { bottom: 10px; right: 14px; }
.scale { position: absolute; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.scale i { display: block; width: 90px; height: 6px; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 25%, transparent 25% 50%, var(--ink) 50% 75%, transparent 75%); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); padding: 6px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .15s; }
.tip b { font-family: var(--mono); font-weight: 400; color: var(--ochre); margin-right: 6px; }
.side { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.legend { list-style: none; margin: 0; padding: 0; }
.legend button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 0; background: none; border: 0; border-bottom: 1px dashed var(--line); font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; text-align: left; }
.legend button i { width: 14px; height: 14px; background: var(--c); flex: none; }
.legend button em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.legend button[aria-pressed="true"] { font-weight: 600; }
.card { background: var(--ink); color: var(--paper); padding: 20px; min-height: 170px; }
.card .label { color: var(--ochre); }
.card h2, .card h3 { font-size: 34px; margin: 6px 0 8px; }
.card p { font-size: 14px; color: rgba(244,238,227,.75); margin: 0; }
@media (max-width: 960px) { .mapbox .frame { grid-template-columns: 1fr; } .mapbox .canvas { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Bölümler */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.ink { background: var(--ink); color: var(--paper); }
.sec.ink .label { color: var(--ochre); }
.sec h2 { font-size: clamp(34px, 4.4vw, 62px); max-width: 18ch; font-weight: 400; }
.sec .intro { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin-top: 20px; }
.sec.ink .intro { color: rgba(244,238,227,.75); }

.sheets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 52px; }
.sheet { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px 26px; text-decoration: none; display: flex; flex-direction: column; min-height: 300px; position: relative; transition: background .3s; }
.sheet:hover { background: var(--paper-2); }
.sheet .no { font-family: var(--serif); font-size: 74px; line-height: .9; font-weight: 300; color: var(--terra); }
.sheet h3 { font-size: 27px; margin: 18px 0 14px; }
.sheet ul { list-style: none; margin: auto 0 0; padding: 0; }
.sheet li { font-size: 14.5px; padding: 7px 0; border-top: 1px dashed var(--line); }
.sheet li::before { content: "• "; color: var(--terra); }
@media (max-width: 900px) { .sheets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sheets { grid-template-columns: 1fr; } }

.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 100px); }
.two .cols p { font-size: 16.5px; }
.quote { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.22; font-weight: 300; font-style: italic; margin: 0; }
.sig { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* İç sayfa */
.phead { border-bottom: 1px solid var(--line); }
.phead .wrap { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: end; }
.phead h1 { font-size: clamp(42px, 6vw, 88px); font-weight: 400; margin-top: 14px; }
.phead .lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin-top: 26px; max-width: 62ch; }
.key { border: 1.5px solid var(--ink); background: var(--paper); font-size: 13.5px; }
.key div { padding: 10px 14px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.key div:last-child { border-bottom: 0; }
.key b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 860px) { .phead .wrap { grid-template-columns: 1fr; } .key { max-width: 320px; } }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); padding-top: 64px; padding-bottom: 110px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc a { display: grid; grid-template-columns: 38px 1fr; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.toc a span { font-family: var(--mono); font-size: 11px; color: var(--terra-ink); padding-top: 2px; }
.toc a.on, .toc a:hover { color: var(--ink); }
.body { max-width: 70ch; }
.body section { margin-bottom: 64px; }
.body h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 22px; display: flex; gap: 16px; align-items: baseline; }
.body h2 span { font-family: var(--mono); font-size: 13px; color: var(--terra-ink); letter-spacing: .06em; }
.body .open { font-family: var(--serif); font-size: 21px; line-height: 1.5; font-weight: 300; }
.body p.note { border-left: 3px solid var(--ochre); padding: 4px 0 4px 22px; margin: 26px 0; }
.body p.note::before { content: "Saha notu"; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 6px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

.next { border-top: 1px solid var(--line); }
.next .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.next a { padding: 40px var(--pad); text-decoration: none; display: block; transition: background .25s; }
.next a:hover { background: var(--paper-2); }
.next a + a { border-left: 1px solid var(--line); text-align: right; }
.next h3 { font-size: 28px; margin-top: 8px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 72px 0 30px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p { color: rgba(244,238,227,.7); font-size: 15px; max-width: 46ch; }
.foot h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: block; padding: 5px 0; text-decoration: none; font-size: 15px; color: rgba(244,238,227,.85); }
.foot li a:hover { color: var(--ochre); }
.foot .brand b { color: var(--paper); } .foot .brand small { color: rgba(244,238,227,.6); }
.foot .base { grid-column: 1 / -1; border-top: 1px solid rgba(244,238,227,.15); padding-top: 22px; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: rgba(244,238,227,.62); }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: 1fr; } .next .wrap { grid-template-columns: 1fr; } .next a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } .drawer { transition: none; } }

/* Görseller */
.banner { margin: 0; border-bottom: 1px solid var(--line); }
.banner img { width: 100%; height: clamp(220px, 34vw, 480px); object-fit: cover; filter: saturate(.85) sepia(.12); }
.sheet-img { width: calc(100% + 56px); margin: -30px -28px 22px; height: 180px; object-fit: cover; filter: saturate(.8) sepia(.15); transition: filter .3s; }
.sheet:hover .sheet-img { filter: none; }
.wide-img { grid-column: 1 / -1; width: 100%; height: clamp(220px, 30vw, 420px); object-fit: cover; margin-top: 24px; filter: saturate(.8); }


/* logo */
.brand { white-space: nowrap; flex-shrink: 0; }
.brand svg, .brand .brand-mark { width: 42px; height: 42px; flex: none; }
/* /logo */
