/* ArzRehberi — tasarım değişkenleri */
:root {
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #17222D;
  --muted: #56626D;
  --line: #D8DDD6;
  --tavan: #0E7A5C;
  --tavan-ink: #FFFFFF;
  --tavan-wash: #E5EFE9;
  --taban: #B3262E;
  --taban-wash: #F8E9E9;
  --focus: #1F5FBF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --radius-s: 4px;
  --radius-m: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12191F; --surface: #18222A; --ink: #E7ECE8; --muted: #A3AFB8; --line: #2C3943;
    --tavan: #3DBB8F; --tavan-ink: #08140F; --tavan-wash: #183128; --taban: #E7676E; --taban-wash: #3A1E21; --focus: #7FB0FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.7;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--tavan); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--tavan); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

h1, h2, h3, .brand, .btn, .calc label, .toc, .byline, .crumbs, .main-nav, .footer-h, .stage-n, summary, th {
  font-family: var(--display);
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin: 0 0 .75rem; font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin: 2.4em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; fill: var(--tavan); }
.main-nav { display: flex; gap: 1.5rem; font-size: .98rem; }
.main-nav a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-bottom-color: var(--tavan); color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 720px) {
  .menu-toggle { display: inline-block; font: 600 .95rem var(--display); background: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .4rem .8rem; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); flex-direction: column; gap: 0; padding: .5rem 16px 1rem; border-bottom: 1px solid var(--line); z-index: 5; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-header { position: relative; }
}

/* buttons */
.btn { display: inline-block; background: var(--tavan); color: var(--tavan-ink); border: 0; border-radius: var(--radius-s); padding: .75rem 1.15rem; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { color: var(--tavan-ink); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--paper); }

/* hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.2rem); max-width: 13ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* calculator */
.calc { background: var(--tavan-wash); border-radius: var(--radius-m); padding: 1.5rem; border: 1px solid color-mix(in srgb, var(--tavan) 25%, transparent); }
.calc h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.calc label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .85rem; color: var(--ink); }
.calc input, .calc select { display: block; width: 100%; margin-top: .3rem; font: 500 1.1rem var(--display); font-variant-numeric: tabular-nums; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }
.calc-out { display: block; margin: 1.1rem 0 .6rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--tavan) 30%, transparent); }
.calc-out .big { display: block; font: 750 clamp(2.6rem, 2rem + 2.5vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--tavan); letter-spacing: -0.03em; }
.calc-out .big small { font-size: .38em; font-weight: 600; letter-spacing: 0; margin-left: .3rem; color: var(--ink); }
.calc-out .sub { display: block; margin-top: .4rem; font-family: var(--display); font-size: .98rem; }
.calc-out .err { color: var(--taban); font-family: var(--display); }
.calc-note { font-size: .88rem; color: var(--muted); margin: 0; }
.calc-full { max-width: 760px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: .5rem 0 0; }
.calc legend { font: 650 1rem var(--display); margin-bottom: .5rem; }
.steps-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; font-variant-numeric: tabular-nums; background: var(--surface); }
.steps-table th, .steps-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: right; }
.steps-table th:first-child, .steps-table td:first-child { text-align: left; }

/* home */
.home-stages { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.home-stages > h2 { margin-top: 0; }
.section-intro { color: var(--muted); max-width: 60ch; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: none; }
.tl-item { border-top: 3px solid var(--ink); padding-top: 1rem; display: block; }
.tl-item h3 { margin: .6rem 0 .5rem; font-size: 1.1rem; }
.tl-item h3 a { text-decoration: none; }
.tl-item ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.tl-item li { margin: 0 0 .45rem; line-height: 1.4; }
.tl-item li a { text-decoration: none; color: var(--muted); }
.tl-item li a:hover { color: var(--tavan); text-decoration: underline; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.stage-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 650; font-size: .95rem; flex: none; }
.home-about { padding: 2.5rem 0 4rem; }
.about-strip { max-width: var(--measure); border-left: 3px solid var(--tavan); padding-left: 1.5rem; }
.about-strip h2 { margin-top: 0; }

/* pages */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.page-head { margin-bottom: 2rem; max-width: var(--measure); }
.stage { margin: 2.5rem 0; max-width: 860px; }
.stage-head { display: flex; gap: 1rem; align-items: flex-start; }
.stage-head h2 { margin: 0 0 .2rem; }
.stage-head p { color: var(--muted); margin: 0; }
.guide-list { list-style: none; padding: 0; margin: 1rem 0 0 3rem; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: .9rem 0; text-decoration: none; }
.g-t { display: block; font: 650 1.12rem/1.3 var(--display); }
.g-d { display: block; color: var(--muted); font-size: .98rem; margin-top: .2rem; }
.guide-list a:hover .g-t { color: var(--tavan); }
@media (max-width: 560px) { .guide-list { margin-left: 0; } }

/* article */
.article { padding: clamp(1.5rem, 4vw, 3rem) 0 3rem; }
.crumbs { font-size: .9rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
.article-head { max-width: 800px; margin-bottom: 2rem; }
.byline { font-size: .9rem; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: 230px minmax(0, var(--measure)); gap: 3.5rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: .9rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.toc-h { font-weight: 650; margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .45rem; line-height: 1.35; color: var(--muted); }
.toc a { text-decoration: none; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; max-width: var(--measure); }
}
.prose { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; border-bottom: 2px solid var(--ink); }
.prose td.n, .prose th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tavan); border-radius: var(--radius-s); padding: 1rem 1.2rem; margin: 1.6rem 0; }
.note.warn { border-left-color: var(--taban); background: var(--taban-wash); }
.note > :last-child { margin-bottom: 0; }
.note-h { font: 650 1rem var(--display); margin-bottom: .3rem; display: block; }
.example { background: var(--tavan-wash); border-radius: var(--radius-m); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.example > :last-child { margin-bottom: 0; }
.example table { background: transparent; }
.faq details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; line-height: 1.4; }
.faq details p { margin: .6rem 0 0; }
.disclaimer { margin: 2.5rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .93rem; color: var(--muted); }
.disclaimer p { margin: 0; }
.sources ul { font-size: .95rem; padding-left: 1.2rem; }
.author-box { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); font-size: .97rem; }
.author-name { font: 650 1.1rem var(--display); margin-bottom: .3rem; }
.related { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.related h2 { margin-top: 0; font-size: 1.3rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related a { text-decoration: none; display: block; }
.rel-t { display: block; font: 650 1.08rem/1.3 var(--display); margin-bottom: .3rem; }
.rel-d { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.related a:hover .rel-t { color: var(--tavan); }
@media (max-width: 760px) { .related ul { grid-template-columns: 1fr; } }

/* glossary */
.glossary dt { font: 650 1.1rem var(--display); margin-top: 1.4rem; }
.glossary dd { margin: .25rem 0 0; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--paper); text-decoration-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.site-footer a:hover { color: var(--paper); text-decoration-color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font: 750 1.3rem var(--display); margin-bottom: .4rem; }
.footer-note { opacity: .78; max-width: 46ch; }
.footer-h { font-weight: 650; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); margin-top: 2rem; padding-top: 1rem; opacity: .75; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.2rem; box-shadow: 0 10px 30px rgba(10, 20, 30, .18); z-index: 20; font-size: .93rem; }
.cookie p { margin: 0 0 .8rem; }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie .btn { padding: .55rem .9rem; font-size: .93rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .cookie, .toc, .related { display: none; } body { background: #fff; } }

.prose table.dense { font-size: .88rem; }
.prose table.dense th, .prose table.dense td { padding: .5rem .45rem; }
.sub-d { display: block; color: var(--muted); font-size: .85em; }
