:root {
  --paper: #edf1f5;
  --surface: #ffffff;
  --ink: #18202e;
  --muted: #566173;
  --line: #c9d2dc;
  --bordo: #7a1f33;
  --bordo-ink: #ffffff;
  --stamp: #2d5da8;
  --ok: #2e7a57;
  --warn-bg: #fff4dc;
  --warn-ink: #6b4a00;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111720; --surface: #1a2230; --ink: #e6ebf1; --muted: #9aa6b6; --line: #2d3848;
    --bordo: #c9566e; --bordo-ink: #111720; --stamp: #8db3f0; --ok: #6fc49b;
    --warn-bg: #2e2612; --warn-ink: #f0d48c; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
a { color: var(--bordo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Üst bant */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; color: var(--bordo); }
.top nav { display: flex; gap: 20px; font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--bordo); }

/* Giriş bölümü */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.hero h1 {
  font: 800 clamp(2.4rem, 5.2vw, 4rem)/1.02 var(--display);
  letter-spacing: -0.035em; margin: 0 0 20px; max-width: 13ch;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin: 0 0 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 44ch; }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 700; }

/* Biniş kartı */
.pass {
  position: relative; background: var(--surface); border-radius: 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(24, 32, 46, .45);
  overflow: hidden;
}
.pass-head { background: var(--bordo); color: var(--bordo-ink); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; font: 600 0.95rem/1 var(--display); }
.pass-head span:last-child { opacity: .8; font-weight: 500; }
.pass form { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
select, input[type="date"] {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 46px;
}
select:focus, input:focus { border-color: var(--stamp); }
.btn {
  grid-column: 1 / -1; font: 700 1.05rem/1 var(--display); color: var(--bordo-ink); background: var(--bordo);
  border: 0; border-radius: 12px; padding: 16px 20px; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.perf::before, .perf::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.perf::before { left: -31px; } .perf::after { right: -31px; }
#pass-out { padding: 22px; outline: none; }
#pass-out[hidden] { display: none; }
.pass-empty { padding: 20px 22px 24px; color: var(--muted); font-size: 0.95rem; margin: 0; }

.pass-route { display: flex; align-items: center; gap: 10px; font: 700 1.35rem/1.2 var(--display); letter-spacing: -0.02em; flex-wrap: wrap; }
.pass-route svg { width: 22px; height: 22px; color: var(--bordo); }
.stamp {
  display: inline-grid; justify-items: center; margin: 18px 0 8px; padding: 10px 18px;
  color: var(--stamp); border: 3px double var(--stamp); border-radius: 10px;
  transform: rotate(-4deg); font-family: var(--display);
  animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.stamp small { font-size: 0.85rem; font-weight: 600; }
.stamp strong { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; }
@keyframes stamp { from { transform: rotate(-4deg) scale(1.6); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }
.pass-days { margin: 6px 0 14px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.go { font-weight: 700; }
.timeline li.go::before { background: var(--bordo); border-color: var(--bordo); }
.timeline time { white-space: nowrap; color: var(--muted); }
.timeline li.go time { color: var(--ink); }
.note { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; margin: 12px 0 0; }
.fine { color: var(--muted); font-size: 0.82rem; margin: 14px 0 0; }

/* Bölümler */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.section > .wrap > p { color: var(--muted); max-width: var(--measure); margin: 0 0 28px; }

.board { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; }
.board th, .board td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board thead th { font: 600 0.88rem/1.2 var(--display); color: var(--muted); background: var(--paper); }
.board tbody tr:last-child td { border-bottom: 0; }
.board td:first-child a { font: 700 1.05rem/1.3 var(--display); text-decoration: none; color: var(--ink); }
.board td:first-child a:hover { color: var(--bordo); text-decoration: underline; }
.board .group td { background: var(--paper); font: 700 0.95rem/1 var(--display); padding: 12px 16px; }
.countries { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 0.95rem; }

.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guides a { display: block; padding: 22px 0 0; border-top: 3px solid var(--bordo); text-decoration: none; color: var(--ink); }
.guides h3 { font: 700 1.25rem/1.25 var(--display); margin: 0 0 8px; }
.guides p { color: var(--muted); margin: 0; }
.guides a:hover h3 { color: var(--bordo); }

/* Makale sayfaları */
.article { padding: 40px 0 64px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h1 { font: 800 clamp(2rem, 4.4vw, 3.1rem)/1.08 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 22ch; }
.article .intro { font-size: 1.15rem; max-width: var(--measure); margin: 0 0 28px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.glance { background: var(--surface); border-radius: 14px; padding: 6px 20px; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; }
.glance div { padding: 14px 0; }
.glance dt { color: var(--muted); font-size: 0.85rem; }
.glance dd { margin: 2px 0 0; font: 700 1rem/1.3 var(--display); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; max-width: var(--measure); }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bordo); color: var(--bordo-ink); font: 700 1rem/1 var(--display);
}
.steps li::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h2 { font: 700 1.25rem/1.3 var(--display); margin: 6px 0 6px; }
.steps p { margin: 0; }
.prose { max-width: var(--measure); }
.prose h2 { font: 700 1.35rem/1.3 var(--display); margin: 32px 0 8px; }
.prose p { margin: 0; }
.aside { position: sticky; top: 20px; }
.aside .pass-head { font-size: 0.9rem; }
.aside-body { padding: 18px 20px 20px; }
.aside-body p { margin: 0 0 14px; font-size: 0.95rem; }
.aside-body .btn { display: block; text-align: center; text-decoration: none; }
.sources { margin-top: 40px; max-width: var(--measure); font-size: 0.95rem; }
.sources h2 { font: 700 1.1rem/1.3 var(--display); margin: 0 0 8px; }
.sources ul { padding-left: 1.2em; margin: 0; }
.disclaimer { margin-top: 20px; max-width: var(--measure); background: var(--warn-bg); color: var(--warn-ink); padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 60ch; }

@media (max-width: 900px) {
  .hero .wrap, .layout { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .glance { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 32px 0 40px; }
  .top nav a.hide-sm { display: none; }
  .pass form { grid-template-columns: 1fr; }
  .guides { grid-template-columns: 1fr; }
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board tr { border-bottom: 1px solid var(--line); }
  .board td { border: 0; padding: 4px 16px; }
  .board td:first-child { padding-top: 14px; }
  .board td:last-child { padding-bottom: 14px; }
  .board td[data-k]::before { content: attr(data-k) ': '; color: var(--muted); }
  .facts li { grid-template-columns: 6rem 1fr; }
  .timeline li { flex-direction: column; gap: 0; }
}
