/*
  197.world - one stylesheet for every page (the landing, the legal pages,
  the deep-link page). The colours are the app's own tokens (src/theme):
  paper, surface, ink, the leaf green that marks a visited country, and the
  coral "spark" for the one thing a page asks you to do.
*/
:root {
  color-scheme: light dark;
  --paper: #F3EEE4;
  --surface: #FFFDF9;
  --ink: #241D15;
  --quiet: #594D45;
  --rule: #DCD5C9;
  --leaf: #37422F;
  --on-leaf: #FFFDF9;
  --spark: #B93A26;
  --on-spark: #FFFFFF;
  --spark-soft: #F8E1DA;
  --focus: #1F6A93;
  --andes: #8E3A63;
  --aegean: #1F6A93;
  --sahara: #B4661F;
  --rice: #386C1E;
  /* The godwit */
  --bird-brick: #B93A26;
  --bird-back: #7A3B22;
  --bird-dark: #3A1F14;
  --bird-rump: #F2E7DC;
  --bird-bill: #E7A38C;
  --gutter: 16px;
  --measure: 1080px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Archivo, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131110;
    --surface: #1C1917;
    --ink: #F4F2EF;
    --quiet: #9C9490;
    --rule: #332E29;
    --leaf: #A3AC97;
    --on-leaf: #131110;
    --spark: #FF8A6B;
    --on-spark: #131110;
    --spark-soft: #3A1F14;
    --focus: #7FB8DA;
    --andes: #AC527E;
    --aegean: #3487B5;
    --sahara: #C97A2E;
    --rice: #4E8B2F;
    --bird-brick: #FF8A6B;
    --bird-back: #B9694B;
    /* #3A1F14 legs and bill vanish on a dark page: they go pale here, the eye keeps its dark pupil. */
    --bird-dark: #D9C6B8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--spark-soft); color: var(--ink); }

/* Two languages in one page: Turkish for a Turkish browser, English for the
   rest - as the app does. Scoped to body so the <html lang> never hides. */
body [lang="tr"] { display: none; }
html[data-lang="tr"] body [lang="tr"] { display: revert; }
html[data-lang="tr"] body [lang="en"] { display: none; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Header ---- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 22px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.mark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--spark); }
.top-note { font-size: 14px; color: var(--quiet); font-weight: 500; }

/* ---- Pills and buttons ---- */
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font: 600 15px/1.2 var(--sans);
}
.soon svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 22px; border-radius: 16px;
  background: var(--spark); color: var(--on-spark);
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px var(--spark); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--spark);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, .h1 {
  margin: 0; font: italic 400 clamp(48px, 13vw, 92px)/1 var(--serif);
  letter-spacing: -0.01em; text-wrap: balance;
}
.lede { margin: 18px 0 26px; color: var(--quiet); font-size: 18px; max-width: 36ch; }

.sky { position: relative; justify-self: center; width: min(78vw, 360px); aspect-ratio: 1; }
.sky::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--spark-soft) 0 62%, transparent 63%);
}
.sky .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path { fill: none; stroke: var(--spark); stroke-width: 1.4; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .55; }
.godwit { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; animation: fly 5.2s ease-in-out infinite; transform-origin: 50% 60%; }
.godwit .brick { fill: var(--bird-brick); }
.godwit .back { fill: var(--bird-back); }
.godwit .dark { fill: var(--bird-dark); }
.godwit .line { fill: none; stroke: var(--bird-dark); stroke-linecap: round; }
.godwit .rump { fill: var(--bird-rump); }
.godwit .feather { fill: none; stroke: var(--bird-rump); stroke-linecap: round; stroke-opacity: .55; stroke-width: 1.6; }
.godwit .bill { fill: var(--bird-bill); }
.godwit .white { fill: #FFFFFF; }
.godwit .pupil { fill: #3A1F14; }
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(4px, -9px) rotate(-2deg); }
  60% { transform: translate(-2px, -3px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .godwit { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---- Passport card ---- */
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 24px;
  padding: 22px; display: grid; gap: 16px; position: relative; overflow: hidden;
}
.passport { margin: 0 0 56px; }
.passport-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.label { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.tally { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tally b { font: 400 56px/1 var(--serif); }
.tally span { color: var(--quiet); font-weight: 600; }
.strip { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--rule); }
.strip span { display: block; height: 100%; }
.s-sahara { width: 5%; background: var(--sahara); }
.s-aegean { width: 7%; background: var(--aegean); }
.s-rice { width: 5%; background: var(--rice); }
.s-andes { width: 4%; background: var(--andes); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--leaf); color: var(--on-leaf); font: 600 14px/1.2 var(--sans);
}
.chips li.want { background: transparent; color: var(--quiet); border: 1px dashed var(--rule); }
.chips svg { width: 12px; height: 12px; }
.stamp {
  flex: none; width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--spark); color: var(--spark);
  display: grid; place-items: center; text-align: center; transform: rotate(-12deg);
  font: 600 10px/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--spark);
}
.stamp b { display: block; font: italic 400 22px/1 var(--serif); letter-spacing: 0; text-transform: none; }

/* ---- Features ---- */
.features { display: grid; gap: 14px; margin: 0 0 56px; padding: 0; list-style: none; }
.feature { padding: 24px 22px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--spark-soft); color: var(--spark);
}
.feature .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { margin: 0; font: 600 20px/1.25 var(--sans); letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--quiet); }

/* ---- The bird ---- */
.bird-line { margin: 0 0 56px; display: grid; gap: 10px; text-align: center; justify-items: center; padding: 8px 0; }
.bird-line .km { font: italic 400 clamp(56px, 16vw, 104px)/1 var(--serif); color: var(--spark); font-variant-numeric: tabular-nums; }
.bird-line .km small { font-size: .4em; font-style: normal; font-family: var(--sans); font-weight: 600; color: var(--quiet); margin-left: 6px; }
.bird-line p { margin: 0; max-width: 34ch; font: italic 400 26px/1.25 var(--serif); }

/* ---- Call to action ---- */
.cta { margin: 0 0 48px; padding: 32px 22px; background: var(--spark-soft); border-color: transparent; text-align: left; }
.cta h2 { margin: 0; font: italic 400 clamp(36px, 9vw, 56px)/1.05 var(--serif); text-wrap: balance; }
.cta p { margin: 0; color: var(--ink); max-width: 44ch; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--rule); padding: 22px 0 40px; color: var(--quiet); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: inherit; padding: 4px 0; }

/* ---- Legal and plain pages ---- */
.doc { padding: 16px 0 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(42px, 11vw, 64px); line-height: 1.04; }
.doc .meta { margin: 14px 0 0; color: var(--quiet); font-size: 15px; }
.doc .body { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--rule); }
.doc .body h2 { margin: 28px 0 8px; font: italic 400 30px/1.15 var(--serif); }
.doc .body h3 { margin: 32px 0 8px; font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.doc .body p, .doc .body li { max-width: 68ch; }
.doc .body p { margin: 0 0 14px; }
.doc .body ul { margin: 0 0 16px; padding-left: 22px; }
.doc .body li { margin: 0 0 8px; }
.doc .body li::marker { color: var(--spark); }
.doc .body strong { font-weight: 600; }
.doc code {
  font: 500 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.doc .body a { color: var(--spark); }

/* ---- Deep-link page ---- */
.open { padding: 24px 0 64px; }
.open .wrap { max-width: 640px; display: grid; gap: 22px; justify-items: start; }
.open .sky { justify-self: start; width: 180px; }
.open .h1 { font-size: clamp(44px, 12vw, 76px); overflow-wrap: anywhere; }
.open p { margin: 0; color: var(--quiet); max-width: 40ch; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .top { padding: 26px 0; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .lede { font-size: 20px; }
  .passport { margin-bottom: 72px; }
  .card { padding: 30px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 88px; }
  .bird-line { margin-bottom: 88px; }
  .cta { padding: 48px; grid-template-columns: 1fr auto; align-items: center; gap: 20px 40px; }
  .cta .actions { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
}
