/* Every Street website. Tokens mirror the app's "Stadtpark" (light) and "Nacht" (dark) palettes (docs/DESIGN.md). */

@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/InstrumentSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/InstrumentSans-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --tile: #F4F1EA;
  --ink: #173A2E;
  --ink-2: #587266;
  --line: rgb(23 58 46 / 10%);
  --grid: rgb(23 58 46 / 8%);
  --accent: #E4522A;
  --accent-text: #B83A17;
  --on-accent: #FFFFFF;
  --accent-soft: #FBDCCF;
  --pistachio: #CFE7A6;
  --apricot: #FFCFAE;
  --sky: #BFDDF5;
  --butter: #FCE38A;
  --sage: #4E9A5B;
  --hero-fill: #173A2E;
  --on-hero: #FFFFFF;
  --hero-accent: #CFE7A6;
  --r-hero: 32px; --r-card: 24px; --r-tile: 20px; --r-list: 16px; --r-chip: 14px; --r-field: 12px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121517;
    --surface: #22272B;
    --tile: #1D2226;
    --ink: #EFECE4;
    --ink-2: #9BA4A1;
    --line: rgb(239 236 228 / 12%);
    --grid: rgb(239 236 228 / 7%);
    --accent: #FFB547;
    --accent-text: #FFB547;
    --on-accent: #1A1406;
    --accent-soft: #3E3220;
    --pistachio: #1F3B33;
    --apricot: #4A2E22;
    --sky: #1E3246;
    --butter: #46391A;
    --sage: #8CC29F;
    --hero-fill: #1F2A2E;
    --on-hero: #EFECE4;
    --hero-accent: #FFB547;
  }
}

*, *::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: 500 17px/1.55 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p, li, dd { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 8vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.015em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px;
  border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 17px; white-space: nowrap; }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.wordmark span { color: var(--accent-text); }

.lang { display: flex; gap: 2px; padding: 3px; background: var(--tile); border-radius: 999px; font-size: 14px; }
.lang a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  min-width: 36px; text-align: center; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--ink-2); max-width: 36em; margin: 0 0 24px; }
.hero-art { border-radius: var(--r-hero); background: var(--tile); aspect-ratio: 1 / 1; overflow: hidden; }
.hero-art svg { display: block; width: 100%; height: 100%; }
@media (min-width: 820px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px;
  border-radius: 999px; background: var(--tile); color: var(--ink); font-weight: 600; font-size: 16px; }
.store small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); }
.store svg { width: 22px; height: 22px; flex: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600;
  text-decoration: none; font-size: 17px; }
.button:hover { filter: brightness(1.05); }

/* Sections */
section { padding: 56px 0; }
section.tinted { background: var(--tile); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { background: var(--paper); border-radius: var(--r-card); padding: 22px; }
section:not(.tinted) .steps li { background: var(--tile); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.steps p, .card p { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--tile); border-radius: var(--r-card); padding: 22px; }
.tinted .card { background: var(--paper); }
.card .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px;
  color: var(--ink); }
.card .icon svg { width: 26px; height: 26px; }
.bg-pistachio { background: var(--pistachio); } .bg-apricot { background: var(--apricot); }
.bg-sky { background: var(--sky); } .bg-butter { background: var(--butter); } .bg-soft { background: var(--accent-soft); }

.cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cities li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--paper); font-weight: 600; }
.cities .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--city, var(--accent)); flex: none; }
.cities small { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.note { color: var(--ink-2); font-size: 15px; }

.privacy-band { background: var(--hero-fill); color: var(--on-hero); border-radius: var(--r-hero); padding: 32px 24px; }
.privacy-band h2 { color: var(--on-hero); }
.privacy-band p { color: color-mix(in srgb, var(--on-hero) 80%, transparent); margin: 0 0 12px; max-width: 42em; }
.privacy-band a { color: var(--hero-accent); }
@media (min-width: 720px) { .privacy-band { padding: 48px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0; }

/* Text pages (legal, support) */
.doc { padding: 32px 0 56px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); margin-top: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li, .doc dd { color: var(--ink); }
.doc .meta { color: var(--ink-2); font-size: 15px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc code { font-size: .92em; background: var(--tile); padding: 1px 6px; border-radius: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.doc address { font-style: normal; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 15px; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tile); color: var(--ink);
  text-decoration: none; font-weight: 600; }
.callout { background: var(--tile); border-radius: var(--r-tile); padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
details { background: var(--tile); border-radius: var(--r-list); padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Invite and 404 pages */
.center { min-height: calc(100vh - 61px); display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.center main { max-width: 34em; }
.code { display: inline-block; font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: .12em;
  padding: 12px 22px; border-radius: var(--r-field); background: var(--tile); margin: 8px 0 20px; }
.center .note { margin-top: 20px; }

/* Street grid motif (the app's StreetGridMotif): a rotated grid with the walked route in coral */
.motif .grid-lines { stroke: var(--grid); stroke-width: 14; stroke-linecap: round; fill: none; }
.motif .route { stroke: var(--accent); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.motif .ring { fill: #FFFFFF; }
.motif .core { fill: var(--sage); }
@media (prefers-reduced-motion: no-preference) {
  .motif .route { animation: walk 2.8s cubic-bezier(.45, 0, .2, 1) both; }
  .motif .marker { animation: appear .4s 2.6s both; }
}
@keyframes walk { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* City dots: each pack's walked ink (docs/DESIGN.md, City colours) */
.c-hh { --city: #3E6F9C; } .c-be { --city: #B0413E; } .c-dub { --city: #3C7D4E; } .c-nyc { --city: #C4622D; }
.c-han { --city: #2F7D6D; } .c-lon { --city: #3B5BA5; } .c-mad { --city: #B5762A; } .c-par { --city: #2E4E8C; }
.c-rom { --city: #A0522D; } .c-vie { --city: #7A3E6B; }

/* Suggests a translated landing page on / (never redirects) */
.lang-hint { background: var(--accent-soft); font-size: 15px; }
.lang-hint p { max-width: 1080px; margin: 0 auto; padding: 10px 16px; }
.lang-hint a { color: var(--ink); font-weight: 600; }
.cards { margin: 0; padding: 0; list-style: none; }
