/* Belwalk guide pages (pre-rendered, see scripts/seo/build-seo.mjs).
   Tokens follow docs/DESIGN_SYSTEM.md: limestone ground, clock-dial ink, one navy accent,
   gold only for the brand dot. Serif for names and stories, Golos Text for UI. */
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #F6F4F0;
  --surface: #FFFFFF;
  --surface-2: #EFECE6;
  --text: #1A2238;
  --text-2: #4B5263;
  --text-3: #62677A;
  --separator: rgba(26, 34, 56, .12);
  --accent: #24407A;
  --accent-hover: #1C3463;
  --accent-tint: rgba(36, 64, 122, .08);
  --warning: #8A5300;
  --font-serif: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Golos Text Variable', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --measure: 680px;
  --r-control: 10px;
  --r-media: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-control); z-index: 10; }
.skip:focus { left: var(--gutter); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: calc(var(--measure) + 2 * var(--gutter) + 320px); margin: 0 auto;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--separator);
}
.top .brand { display: inline-flex; align-items: center; min-height: 44px; }
.top .brand img { width: 120px; height: auto; }
.langs { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.langs a, .langs span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 8px; border-radius: var(--r-control); font-size: 14px; font-weight: 550; text-decoration: none; color: var(--text-2);
}
.langs a:hover { background: var(--accent-tint); color: var(--accent); }
.langs [aria-current] { color: var(--text); background: var(--surface-2); }

/* ---------- layout ---------- */
.page {
  max-width: calc(var(--measure) + 2 * var(--gutter) + 320px); margin: 0 auto; padding: 0 var(--gutter) 48px;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--separator); color: rgba(26, 34, 56, .3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.intro { padding: 20px 0 8px; max-width: var(--measure); }
.kicker { margin: 0 0 6px; font-size: 14px; color: var(--text-3); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(32px, 7.4vw, 48px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.lede { font: 400 19px/1.55 var(--font-serif); color: var(--text-2); margin: 0 0 20px; max-width: var(--measure); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--r-control); font: 600 16px/1 var(--font-sans); text-decoration: none;
  background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--separator);
}
.btn:hover { background: var(--accent-tint); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--accent-hover); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero photo */
.hero { margin: 20px 0 0; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-media); background: var(--surface-2); }
.story-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 550; text-decoration: none; }
.story-link:hover { text-decoration: underline; }
.story-link svg { width: 16px; height: 16px; }
@media (min-width: 960px) { .hero img { aspect-ratio: 2 / 1; } }
.hero figcaption, .credit { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.hero figcaption a, .credit a { color: var(--text-3); }

/* two-column on wide screens: story column + facts rail */
.cols { display: grid; gap: 8px 48px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.wide-only { display: none; }
@media (min-width: 960px) {
  .cols { grid-template-columns: minmax(0, var(--measure)) 300px; justify-content: space-between; }
  .main-col { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; position: sticky; top: 16px; align-self: start; }
  .wide-only { display: block; margin-top: 24px; }
  .narrow-only { display: none; }
}
.narrow-only { margin-top: 28px; }
section { padding: 28px 0 4px; }
section + section { border-top: 1px solid var(--separator); margin-top: 20px; }
.rail section:first-child { border-top: 0; }

/* plan your visit */
.facts-list { margin: 0; display: grid; gap: 12px; }
.facts-list div { display: grid; gap: 2px; }
.facts-list dt { font-size: 13px; color: var(--text-3); }
.facts-list dd { margin: 0; font-weight: 500; }
.facts-list dd small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.flag { color: var(--warning); font-size: 13px; font-weight: 500; }
.note { font-size: 14px; color: var(--text-2); margin: 12px 0 0; }
.card {
  background: var(--surface); border-radius: 12px; padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 19, 27, .06);
}
.card + .card { margin-top: 12px; }
.card h2 { font-size: 21px; }
.card p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.card .btn { width: 100%; }

/* stories */
.stories-lede { color: var(--text-2); margin: 0 0 8px; }
.story { padding: 18px 0 6px; }
.story h3 { display: flex; gap: 12px; align-items: baseline; }
.story h3 .n {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 600 14px/1 var(--font-sans); transform: translateY(-2px);
}
.story p { font: 400 18px/1.6 var(--font-serif); margin: 0 0 12px; }
.story ul { margin: 0 0 4px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.story li { font-size: 14px; color: var(--text-2); background: var(--surface-2); padding: 4px 10px; border-radius: 6px; }

/* timeline */
.tl { margin: 0; padding: 0; list-style: none; }
.tl li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--separator); }
.tl li:first-child { border-top: 0; }
.tl b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }

/* lists of places / spots */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { padding: 14px 0; border-top: 1px solid var(--separator); }
.rows > li:first-child { border-top: 0; }
.rows .name { font: 600 18px/1.3 var(--font-serif); }
.rows .meta { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.rows .prices { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--text-2); }
.rows .prices b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* hub: place grid */
.places { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.places li { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 19, 27, .06); position: relative; display: flex; flex-direction: column; }
.places li:hover { box-shadow: 0 1px 2px rgba(15, 19, 27, .08), 0 6px 18px rgba(15, 19, 27, .08); }
.places img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.places .ph { aspect-ratio: 3 / 2; background: var(--surface-2); }
.places .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.places .body .meta { font-size: 13px; color: var(--text-3); }
.places h3 { font-size: 20px; margin: 0; }
.places h3 a { color: var(--text); text-decoration: none; }
.places h3 a::after { content: ''; position: absolute; inset: 0; }
.places p { margin: 0; font-size: 15px; color: var(--text-2); }
.badge3d { color: var(--accent); font-weight: 600; }

.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; } }
.features h3 { font-size: 20px; }
.features p { margin: 0; color: var(--text-2); }

.cities { margin: 0; padding: 0; list-style: none; }
.cities li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--separator); }
.cities li:first-child { border-top: 0; }
.cities .name { font: 600 19px/1.3 var(--font-serif); }
.cities .state { font-size: 14px; color: var(--text-3); }

.sources { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.sources li { margin: 4px 0; }

/* footer */
.foot { border-top: 1px solid var(--separator); background: var(--surface-2); }
.foot .inner { max-width: calc(var(--measure) + 2 * var(--gutter) + 320px); margin: 0 auto; padding: 28px var(--gutter) 40px; display: grid; gap: 20px; font-size: 14px; color: var(--text-2); }
@media (min-width: 720px) { .foot .inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot img { width: 120px; margin-bottom: 10px; }
.foot h2 { font: 600 14px/1.4 var(--font-sans); margin: 0 0 8px; color: var(--text); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot p { margin: 0 0 8px; }
.foot .support { margin-top: 14px; }
.foot .support a { font-weight: 550; display: inline-block; padding: 6px 0; margin: -6px 0; }

/* statistics consent card (public/ga-static.js), same copy and layout as the app's */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bw-consent {
  position: fixed; z-index: 20; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 440px; margin: 0 auto; padding: 16px;
  background: var(--surface); color: var(--text); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 19, 27, .08), 0 12px 32px rgba(15, 19, 27, .16);
  font: 400 15px/22px var(--font-sans);
  animation: bw-consent-in 320ms cubic-bezier(.2, .8, .2, 1);
}
.bw-consent h2 { margin: 0 0 4px; font: 600 17px/22px var(--font-sans); }
.bw-consent p { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); text-wrap: pretty; }
.bw-consent a { font-weight: 550; }
.bw-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bw-consent .btn { width: 100%; min-height: 44px; padding: 0 12px; border: 0; cursor: pointer; font-size: 15px; }
@media (min-width: 900px) { .bw-consent { left: 24px; right: auto; bottom: 24px; width: 400px; margin: 0; } }
@keyframes bw-consent-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .bw-consent { animation: none; } }

@media (max-width: 420px) {
  .top .brand img { width: 104px; }
  .actions .btn { flex: 1 1 auto; }
}
@media print {
  .top .langs, .actions, .rail .card, .foot, .bw-consent { display: none; }
}
