/* ==========================================================================
   MOMENCE.CO.UK — design system
   Premium Americana / vintage postcard / British travel-magazine polish.
   Palettes: heritage (default) | river | fair   — html[data-palette]
   Type:     slab (wood type) | classic          — html[data-type]
   Season:   spring | summer | autumn | winter   — html[data-season]
   Texture:  html[data-grain="off"] disables grain/halftone
   ========================================================================== */

:root {
  /* paper + ink */
  --paper: #f5efe1;
  --paper-2: #ede3cd;
  --card: #fbf7ec;
  --ink: #1e2c3a;
  --ink-2: #465666;
  --line: #2a3a4c;

  /* americana accents */
  --red: #a93c2a;
  --blue: #2a607a;
  --gold: #b97f1d;
  --green: #44603f;

  --accent: var(--red);
  --accent-soft: #e8d9c4;
  --season-accent: var(--gold);

  /* type */
  --f-display: "Alfa Slab One", "Rockwell", serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --f-script: "Yellowtail", cursive;
  --f-mono: "Courier Prime", "Courier New", monospace;

  --measure: 66ch;
  --radius: 3px;
  --shadow-pop: 5px 5px 0 var(--accent);
  --maxw: 1200px;
}

html[data-type="classic"] {
  --f-display: "Playfair Display", Georgia, serif;
}

html[data-palette="river"] {
  --paper: #eef0ea;
  --paper-2: #e1e5da;
  --card: #f7f8f3;
  --ink: #18272f;
  --accent: #2a607a;
  --accent-soft: #d4ddd6;
}

html[data-palette="fair"] {
  --paper: #f8edd6;
  --paper-2: #f0e0bc;
  --card: #fdf6e6;
  --ink: #2e2418;
  --line: #3a2e1e;
  --accent: #b3471f;
  --accent-soft: #ecd9b4;
}

/* seasonal accent — deliberately subtle */
html[data-season="spring"] { --season-accent: var(--green); }
html[data-season="summer"] { --season-accent: var(--blue); }
html[data-season="autumn"] { --season-accent: var(--gold); }
html[data-season="winter"] { --season-accent: #57768c; }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.40 0 0 0 0 0.33 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-grain="off"] body::after { display: none; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10000;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  font-family: var(--f-mono); text-transform: uppercase; font-size: 13px;
}
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- typography */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
html[data-type="classic"] h1, html[data-type="classic"] h2,
html[data-type="classic"] h3, html[data-type="classic"] .display { font-weight: 800; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-family: var(--f-sans); font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 .4em; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { max-width: var(--measure); padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--accent); }

.prose { font-family: var(--f-serif); font-size: 1.1rem; }
.prose strong { font-family: var(--f-sans); font-size: .95em; }

.kicker {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9em;
}
.kicker::before { content: "— "; color: var(--season-accent); }

.standfirst {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.script { font-family: var(--f-script); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--accent); line-height: 1.1; transform: rotate(-2deg); display: inline-block; }

.meta { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }

hr { border: 0; border-top: 1.5px solid var(--line); margin: 3rem 0; }

/* twin-rule heading, vintage newspaper style */
.rulehead {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  border-top: 3px double var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0 0 1.6rem;
}
.rulehead h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.rulehead .meta { margin-left: auto; text-align: right; white-space: nowrap; }
.rulehead::before { content: "◆"; color: var(--accent); font-size: 0.8rem; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section-tint { background: var(--paper-2); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--card); }
.section-ink .standfirst, .section-ink .meta { color: #b9c4cf; }
/* cards keep their light background inside ink sections — restore dark text for contrast */
.section-ink .card { color: var(--ink); }
.section-ink .card h2, .section-ink .card h3, .section-ink .card h4 { color: var(--ink); }
.section-ink .card .standfirst, .section-ink .card .smallnote { color: var(--ink-2); }
.section-ink a { color: #e9c989; }
.section-ink a:hover { color: var(--card); }
.section-ink .kicker { color: #e9c989; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.cols { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .cols { grid-template-columns: 1.2fr 0.8fr; } .cols.even { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- header */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--season-accent);
}
.topbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 34px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar .spacer { flex: 1; }
.topbar .chip { white-space: nowrap; opacity: 0.92; }
.topbar .chip b { color: #e9c989; font-weight: 400; }
@media (max-width: 1020px) { .topbar .seasonal { display: none; } }
@media (max-width: 540px) { .topbar [data-weather-chip] { display: none; } }

.masthead { border-bottom: 1.5px solid var(--line); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; gap: 22px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: block; }
.brand:hover { color: var(--ink); }
.brand .script { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: -2px; white-space: nowrap; }
.brand-name { display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
html[data-type="classic"] .brand-name { font-weight: 800; }
.brand-name .tld { color: var(--accent); }
.brand-sub { display: block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; white-space: nowrap; }
.masthead .spacer { flex: 1; }

/* perforated stamp badge — holes only along the edge band */
.stamp {
  background: var(--card);
  padding: 14px 18px;
  text-align: center;
  transform: rotate(2.5deg);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--line) 35%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.5px at 3.5px 3.5px, transparent 3px, #000 3.2px) -3.5px -3.5px / 11px 11px;
          mask: linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.5px at 3.5px 3.5px, transparent 3px, #000 3.2px) -3.5px -3.5px / 11px 11px;
}
.stamp .big { font-family: var(--f-display); font-size: 0.98rem; color: var(--accent); letter-spacing: 0.04em; display: block; margin-bottom: 2px; }
@media (max-width: 700px) { .masthead .stamp { display: none; } }

.mainnav { background: var(--paper); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; z-index: 800; }
.mainnav .wrap { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  font-family: var(--f-sans); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink); text-decoration: none;
  padding: 12px 13px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
.mainnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(2.2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero .script { margin-bottom: 4px; white-space: nowrap; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 14ch; }
.hero h1 .alt { color: var(--accent); }
.hero h1 .alt2 { color: var(--blue); }
html[data-palette="river"] .hero h1 .alt2 { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }

/* sunburst flourish */
.sunburst {
  position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--accent-soft) 0deg 6deg, transparent 6deg 14deg);
  opacity: 0.55; pointer-events: none;
}
html[data-grain="off"] .sunburst { opacity: 0.4; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 13px 22px 12px;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
html[data-type="classic"] .btn { font-weight: 800; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); color: var(--paper); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--accent); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: 5px 5px 0 var(--accent-soft); }
.btn-outline:hover { color: var(--ink); box-shadow: 2px 2px 0 var(--accent-soft); }
.btn-small { font-size: 0.78rem; padding: 9px 14px 8px; box-shadow: 3px 3px 0 var(--accent); }
.section-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--gold); }
.section-ink .btn:hover { color: var(--ink); box-shadow: 2px 2px 0 var(--gold); }
.section-ink .btn-outline { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 5px 5px 0 #3a4a5b; }
.section-ink .btn-outline:hover { color: var(--paper); box-shadow: 2px 2px 0 #3a4a5b; }
.textlink { font-family: var(--f-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: clamp(18px, 2.6vw, 26px);
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.3em; }
.card .meta { margin-bottom: 8px; }
.card-corner::before, .card-corner::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.card-corner::before { top: 5px; left: 5px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.card-corner::after { bottom: 5px; right: 5px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

a.card { text-decoration: none; color: inherit; transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent-soft); }

/* postcard frame (scalloped postage edge) */
.postcard {
  background: var(--card);
  padding: clamp(16px, 2.4vw, 26px);
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 7px at 7px 7px, transparent 6px, #000 6.4px) -7px -7px / 22px 22px;
          mask: linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 7px at 7px 7px, transparent 6px, #000 6.4px) -7px -7px / 22px 22px;
}
.postcard-inner { border: 1.5px solid var(--line); padding: clamp(16px, 3vw, 34px); height: 100%; }

/* ----------------------------------------------------------- photo slots */
.photo {
  position: relative;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(160deg, rgba(42, 96, 122, 0.16), rgba(169, 60, 42, 0.1)),
    repeating-linear-gradient(45deg, var(--paper-2) 0 14px, var(--card) 14px 28px);
  min-height: 200px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.photo.tall { min-height: 320px; }
.photo.short { min-height: 140px; }
.photo .label {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  background: var(--card); border-top: 1.5px solid var(--line); border-right: 1.5px solid var(--line);
  padding: 6px 10px; max-width: 100%;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(> img) .label { display: none; }
.photo:has(> img) { background: var(--paper-2); }
.photo.tall:has(> img) { aspect-ratio: 3 / 4; min-height: 0; max-height: 560px; }
.photo:not(.tall):not(.short):has(> img) { aspect-ratio: 4 / 3; min-height: 0; }
.compare .photo:has(> img), .compare .photo.tall:has(> img) { aspect-ratio: auto; max-height: none; }
.compare .pane-a .photo:has(> img) { aspect-ratio: 8 / 5; min-height: 0; height: auto; }
.compare .pane-b .photo:has(> img) { height: 100%; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(30, 44, 58, 0.14) 1px, transparent 1.4px);
  background-size: 7px 7px;
  -webkit-mask: linear-gradient(200deg, #000, transparent 55%);
          mask: linear-gradient(200deg, #000, transparent 55%);
}
html[data-grain="off"] .photo::after { display: none; }
figure { margin: 0 0 1.2em; }
figcaption { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-2); padding-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- badges */
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; padding: 0; list-style: none; }
.badge {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 3px 9px; color: var(--ink-2); background: var(--paper);
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
}
.badge::before { content: ""; width: 7px; height: 7px; background: var(--ink-2); display: inline-block; }
.badge-tip { color: var(--blue); border-color: var(--blue); } .badge-tip::before { background: var(--blue); border-radius: 50%; }
.badge-photo { color: var(--red); border-color: var(--red); } .badge-photo::before { background: var(--red); }
.badge-drive { color: var(--green); border-color: var(--green); } .badge-drive::before { background: var(--green); transform: rotate(45deg); }
.badge-rain { color: var(--blue); border-color: var(--blue); } .badge-rain::before { background: var(--blue); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.badge-fest { color: var(--gold); border-color: var(--gold); } .badge-fest::before { background: var(--gold); border-radius: 50%; }
.badge-affil { color: var(--ink-2); border-style: dashed; } .badge-affil::before { display: none; }
.badge-family { color: var(--green); border-color: var(--green); } .badge-family::before { background: var(--green); border-radius: 50%; }

/* ------------------------------------------------- british traveller box */
.brit-box {
  border: 1.5px solid var(--blue);
  background: color-mix(in oklab, var(--blue) 7%, var(--card));
  padding: 16px 18px 14px;
  margin: 1.6em 0;
  max-width: var(--measure);
  position: relative;
}
.brit-box::before {
  content: "British traveller translation";
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--card); background: var(--blue);
  position: absolute; top: -10px; left: 12px; padding: 2px 9px;
}
.brit-box p, .brit-box ul { margin-bottom: 0.4em; font-size: 0.95rem; }
.brit-box dt { font-weight: 700; font-size: 0.92rem; }
.brit-box dd { margin: 0 0 8px; font-size: 0.92rem; color: var(--ink-2); }

/* -------------------------------------------------------------- affiliate */
.affil {
  border: 1.5px dashed var(--line);
  background: var(--paper-2);
  padding: clamp(18px, 2.6vw, 26px);
  margin: 2em 0;
}
.affil .links { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 10px; }
.affil .disclosure { font-size: 0.72rem; color: var(--ink-2); opacity: 0.85; margin: 10px 0 0; max-width: none; border-top: 1px dashed color-mix(in oklab, var(--line) 35%, transparent); padding-top: 10px; }

/* ------------------------------------------------------------- news feed */
.newsfeed { display: flex; flex-direction: column; }
.newsfeed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.newsfeed-chips button {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer;
}
.newsfeed-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.news-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--line) 35%, transparent);
  align-items: center;
}
.news-item:last-child { border-bottom: 0; }
.news-thumb {
  width: 86px; height: 64px; border: 1px solid var(--line); overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--card) 8px 16px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); color: var(--accent); font-size: 1.3rem;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.45) contrast(1.04) saturate(0.85); }
.news-item h3, .news-item .nh { font-family: var(--f-serif); font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.news-item .snip { font-family: var(--f-serif); font-size: 0.88rem; font-style: italic; color: var(--ink-2); line-height: 1.45; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item a { color: var(--ink); text-decoration: none; }
.news-item a:hover { color: var(--accent); text-decoration: underline; }
.news-item .meta { font-size: 0.7rem; }
.news-note { font-size: 0.78rem; color: var(--ink-2); margin-top: 14px; max-width: none; }
.news-status { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); padding: 18px 0; }

/* ---------------------------------------------------------------- weather */
.weather { border: 1.5px solid var(--line); background: var(--card); padding: clamp(18px, 2.4vw, 24px); }
.weather-now { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.weather-now .t { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.weather-now .d { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-2); }
.weather-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.weather-days .day { border: 1px solid color-mix(in oklab, var(--line) 40%, transparent); padding: 8px 4px; }
.weather-days .nm { font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.weather-days .hi { font-weight: 700; font-size: 0.95rem; }
.weather-days .lo { font-size: 0.8rem; color: var(--ink-2); }
.weather-days .wc { font-size: 0.66rem; font-family: var(--f-mono); color: var(--ink-2); margin-top: 2px; }
.weather .note { font-size: 0.85rem; color: var(--ink-2); margin: 12px 0 0; max-width: none; }

/* ---------------------------------------------------------------- tables */
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 0.95rem; }
caption { text-align: left; font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); padding-bottom: 8px; }
th { font-family: var(--f-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: left; border-bottom: 2px solid var(--line); padding: 8px 12px 8px 0; }
td { border-bottom: 1px solid color-mix(in oklab, var(--line) 30%, transparent); padding: 9px 12px 9px 0; vertical-align: top; }
tbody tr:nth-child(even) { background: color-mix(in oklab, var(--paper-2) 55%, transparent); }

/* ------------------------------------------------------------- itinerary */
.route { list-style: none; padding: 0; margin: 0 0 1.6em; max-width: var(--measure); counter-reset: stop; }
.route > li { counter-increment: stop; position: relative; padding: 0 0 22px 56px; margin: 0; border-left: 0; }
.route > li::before {
  content: counter(stop, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  font-family: var(--f-display); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
}
.route > li::after {
  content: ""; position: absolute; left: 18.5px; top: 42px; bottom: 4px;
  border-left: 2px dashed var(--accent);
}
.route > li:last-child::after { display: none; }
.route h3, .route h4 { margin-bottom: 0.25em; }
.route .meta { display: block; margin-bottom: 6px; }
.route p { margin-bottom: 0.5em; }

/* ---------------------------------------------------------------- ticket */
.ticket {
  display: inline-block; text-align: center;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: 14px 26px;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 5.5px, #000 6px) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 5.5px, #000 6px) right / 50% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, transparent 5.5px, #000 6px) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 5.5px, #000 6px) right / 50% 100% no-repeat;
}
.ticket .lbl { font-family: var(--f-serif); font-style: italic; font-size: 0.88rem; color: var(--ink-2); }
.ticket .num { font-family: var(--f-display); font-size: 1.7rem; letter-spacing: 0.06em; color: var(--accent); }
.ticket .sub { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin-top: 2px; }

/* -------------------------------------------------------------- countdown */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2em 0; }
.countdown .unit {
  background: var(--ink); color: var(--paper); text-align: center;
  padding: 12px 0 9px; min-width: 86px;
  border-bottom: 4px solid var(--gold);
}
.countdown .n { font-family: var(--f-display); font-size: 2rem; line-height: 1; display: block; }
.countdown .u { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.8; }

/* --------------------------------------------------------- then & now */
.compare { position: relative; border: 1.5px solid var(--line); overflow: hidden; user-select: none; }
.compare .pane { position: relative; }
.compare .pane-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .photo { border: 0; height: 100%; min-height: 300px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px;
  background: var(--accent); transform: translateX(-1.5px); pointer-events: none;
}
.compare-handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--paper); font-size: 0.6rem;
  padding: 7px 8px; border-radius: 50px; white-space: nowrap; letter-spacing: 2px;
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.compare .tag {
  position: absolute; top: 10px; z-index: 2; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 3px 9px;
}
.compare .tag-then { left: 10px; }
.compare .tag-now { right: 10px; }

/* ----------------------------------------------------------------- quiz */
.quiz { border: 1.5px solid var(--line); background: var(--card); padding: clamp(20px, 3vw, 34px); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.4em; }
.quiz legend { font-family: var(--f-sans); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 9px; }
.quiz .opts label {
  border: 1.5px solid var(--line); padding: 8px 14px; cursor: pointer;
  font-size: 0.9rem; background: var(--paper); display: inline-flex; gap: 8px; align-items: center;
}
.quiz .opts input { accent-color: var(--accent); margin: 0; }
.quiz .opts label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz-result { border-top: 3px double var(--line); margin-top: 1.6em; padding-top: 1.4em; }

/* ----------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.fld { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
label.fld span { display: block; margin-bottom: 6px; }
.fld .opt { display: inline; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78em; color: var(--ink-2); margin-bottom: 0; }
.tel-group { display: flex; gap: 8px; align-items: stretch; }
.tel-group .dialsel { flex: 0 0 auto; }
.tel-group input[type="tel"] { flex: 1 1 auto; min-width: 0; }

/* custom dialling-code dropdown */
.dialsel { position: relative; }
.dialsel-btn { display: inline-flex; align-items: center; gap: 7px; height: 100%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 1rem; padding: 0 11px; cursor: pointer;
  white-space: nowrap; line-height: 1.2; }
.dialsel-btn .chev { width: 11px; height: 7px; margin-left: 2px; opacity: 0.5; }
.dialsel-flag { font-size: 1.15em; line-height: 1; }
/* Archivo's metrics seat the glyphs ~3px high in the flex line box (the chevron
   centres correctly); nudge the flag + code down so they sit on the control's
   optical centre, matching the adjacent number input. */
.dialsel-btn .dialsel-flag, .dialsel-btn .dialsel-code { transform: translateY(2px); }
.dialsel-pop { position: absolute; z-index: 50; top: calc(100% + 5px); left: 0;
  width: 304px; max-width: 80vw; background: var(--paper); border: 1.5px solid var(--line);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16); max-height: 330px; display: flex; flex-direction: column; }
.dialsel-pop[hidden] { display: none; }
.dialsel-search { border: none; border-bottom: 1.5px solid var(--line); background: var(--paper);
  padding: 11px 12px; font-size: 0.95rem; width: 100%; }
.dialsel-search:focus { outline: none; }
.dialsel-list { overflow-y: auto; }
.dialsel-grouphdr { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--ink-2); padding: 10px 12px 4px; }
.dialsel-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; padding: 8px 12px;
  font-family: var(--f-sans); font-size: 0.95rem; color: var(--ink); }
.dialsel-opt .nm { flex: 1; }
.dialsel-opt .cd { color: var(--ink-2); }
.dialsel-opt:hover, .dialsel-opt:focus { background: color-mix(in oklab, var(--accent) 13%, transparent); outline: none; }
.dialsel-opt[aria-selected="true"] { font-weight: 700; }
.form-ok { color: var(--green); font-weight: 600; }
.form-err { color: var(--red); font-weight: 600; }

/* graphical success state — animated tick replaces the form */
.form-success { display: none; align-items: center; gap: 16px;
  padding: 20px 24px; margin-top: 1.4em;
  border: 1.5px solid var(--green);
  background: color-mix(in oklab, var(--green) 9%, var(--paper)); }
.form-success.show { display: flex; }
.form-success-text { font-weight: 600; color: var(--ink); line-height: 1.45; }
.form-success-text a { color: var(--green); }
.form-check { width: 46px; height: 46px; flex: 0 0 auto; }
.form-check circle { fill: none; stroke: var(--green); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 0; }
.form-check path { fill: none; stroke: var(--green); stroke-width: 3.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .form-success.show { animation: form-success-in 0.45s cubic-bezier(0.2,0.7,0.3,1) both; }
  .form-success.show circle { stroke-dashoffset: 151; animation: form-check-circle 0.5s ease forwards; }
  .form-success.show path { stroke-dashoffset: 40; animation: form-check-mark 0.32s 0.42s ease forwards; }
}
@keyframes form-success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes form-check-circle { to { stroke-dashoffset: 0; } }
@keyframes form-check-mark { to { stroke-dashoffset: 0; } }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--paper);
  font-family: var(--f-sans); font-size: 1rem; padding: 11px 12px; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

/* checklist with persistence */
.cklist { list-style: none; padding: 0; max-width: var(--measure); }
.cklist li { margin: 0; border-bottom: 1px solid color-mix(in oklab, var(--line) 30%, transparent); }
.cklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; cursor: pointer; }
.cklist input { margin-top: 5px; accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.cklist input:checked + span { text-decoration: line-through; color: var(--ink-2); }
.cklist b { display: block; }
.cklist small { color: var(--ink-2); }

/* ------------------------------------------------------------------- map */
.mapframe { border: 1.5px solid var(--line); position: relative; }
.mapframe .leaflet-container { height: 460px; font-family: var(--f-sans); background: var(--paper-2); }
.mapframe .leaflet-tile-pane { filter: sepia(0.5) saturate(0.6) contrast(0.95) brightness(1.02); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 12px 0 0; }
.map-legend .meta { display: inline-flex; gap: 7px; align-items: center; }
.map-legend .meta i { width: 11px; height: 11px; display: inline-block; border-radius: 50%; border: 1.5px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.pin-dot { border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.leaflet-popup-content { font-family: var(--f-sans); }
.leaflet-popup-content b { font-family: var(--f-serif); }

/* --------------------------------------------------------------- chicago contrast */
.contrast { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); }
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; } }
.contrast > div { padding: clamp(20px, 3.4vw, 40px); }
.contrast .side-a { background: var(--ink); color: var(--paper); }
.contrast .side-a h3 { color: var(--card); }
.contrast .side-a .meta { color: #b9c4cf; }
.contrast .side-b { background: var(--card); }
.contrast ul { list-style: none; padding: 0; }
.contrast li { border-bottom: 1px dashed color-mix(in oklab, currentColor 30%, transparent); padding: 8px 0; font-family: var(--f-serif); font-size: 1.02rem; }

/* --------------------------------------------------------------- footer */
.sitefooter { background: var(--ink); color: #c4cdd6; margin-top: 4rem; border-top: 4px solid var(--season-accent); }
.sitefooter a { color: #e9c989; }
.sitefooter a:hover { color: var(--card); }
.sitefooter .cols-f { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: clamp(2.4rem, 5vw, 3.6rem) 0 2rem; }
.sitefooter h4 { color: var(--card); font-size: 0.8rem; }
.sitefooter ul { list-style: none; padding: 0; margin: 0; }
.sitefooter li { margin-bottom: 8px; font-size: 0.92rem; }
.sitefooter .brandline { font-family: var(--f-display); font-size: 1.4rem; color: var(--card); }
.sitefooter .smallprint { border-top: 1px solid #3a4a5b; padding: 20px 0 30px; font-size: 0.8rem; }
.sitefooter .smallprint p { max-width: 90ch; margin-bottom: 0.7em; }
/* the grand ticket — footer-central, worn with pride */
.sitefooter .ticket-row { display: flex; justify-content: center; padding: 10px 0 40px; }
.sitefooter .ticket {
  background: #2b3c4d;
  border-color: #e9c989;
  color: var(--paper);
  display: block;
  width: fit-content;
  margin: 0;
  padding: 26px clamp(40px, 8vw, 96px) 24px;
  box-shadow: inset 0 0 0 5px #2b3c4d, inset 0 0 0 6.5px rgba(233, 201, 137, 0.55);
}
.sitefooter .ticket .lbl { color: #aab6c2; font-size: 1.05rem; }
.sitefooter .ticket .sub { color: #aab6c2; letter-spacing: 0.18em; margin-top: 6px; }
.sitefooter .ticket .num { color: #e9c989; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: 0.08em; line-height: 1.1; }

/* ------------------------------------------------------------ utilities */
.center { text-align: center; }
.center p, .center .standfirst { margin-left: auto; margin-right: auto; }
.flow > * + * { margin-top: 1em; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.maxnone { max-width: none; }
.smallnote { font-size: 0.8rem; color: var(--ink-2); }
.seasonal-note { font-family: var(--f-serif); font-style: italic; color: var(--ink-2); }
.seasonal-note::before { content: "❧ "; color: var(--season-accent); font-style: normal; }

/* entrance animation: visible is the BASE state; .pre is added by JS just
   before observing and removed on intersect — content never depends on a
   transition completing to be visible. */
.reveal { transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.pre { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } }

/* tweaks panel */
.tweaks {
  position: fixed; right: 16px; bottom: 16px; z-index: 9500;
  width: 270px; background: var(--card); border: 1.5px solid var(--line);
  box-shadow: 6px 6px 0 rgba(30, 44, 58, 0.25);
  font-size: 0.85rem;
}
.tweaks header { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.tweaks header b { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.04em; }
.tweaks header button { background: none; border: 0; color: var(--paper); font-size: 1rem; cursor: pointer; line-height: 1; }
.tweaks .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow: auto; }
.tweaks .grp .lbl { font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); margin-bottom: 6px; }
.tweaks .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tweaks .opts button { font-family: var(--f-sans); font-size: 0.74rem; border: 1px solid var(--line); background: var(--paper); padding: 5px 10px; cursor: pointer; color: var(--ink); }
.tweaks .opts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------- town diary */
.calframe { border: 1.5px solid var(--line); background: var(--card); }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); flex-wrap: wrap; }
.cal-head .m { font-family: var(--f-display); font-size: 1.15rem; }
.cal-head .meta { margin-left: auto; }
.cal-head button {
  font-family: var(--f-mono); font-size: 0.9rem; line-height: 1;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--line);
  width: 34px; height: 34px; cursor: pointer;
}
.cal-head button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.cal-head button:disabled { opacity: 0.35; cursor: default; }
.cal-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.cal-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 13px 16px; border-bottom: 1px solid color-mix(in oklab, var(--line) 25%, transparent); margin: 0; }
.cal-list li:last-child { border-bottom: 0; }
.cal-date { text-align: center; border: 1.5px solid var(--line); background: var(--paper); padding: 7px 4px 5px; }
.cal-date .d { font-family: var(--f-display); font-size: 1.25rem; line-height: 1; display: block; }
.cal-date .w { font-family: var(--f-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); display: block; margin-top: 3px; }
.cal-ev b { font-family: var(--f-serif); font-size: 1.05rem; display: block; }
.cal-ev .meta { font-size: 0.7rem; display: block; margin-top: 2px; }
.cal-ev .meta a { color: var(--accent); text-decoration-thickness: 1px; }
.cal-pin { vertical-align: -1.5px; margin-right: 1px; color: var(--red); }
.cal-empty { font-family: var(--f-serif); font-style: italic; color: var(--ink-2); padding: 22px 18px; margin: 0; max-width: none; }
.calframe iframe { width: 100%; height: 620px; border: 0; display: block; background: #fff; }

/* ------------------------------------------------------------- printing */
@media print {
  .topbar, .mainnav, .sitefooter, .newsfeed-chips, .tweaks, .hero-actions, .affil, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  body::after { display: none; }
  .masthead { border-bottom: 2px solid #000; }
  a { color: #000; text-decoration: none; }
  .section { padding: 1.2rem 0; }
  .photo { min-height: 0; height: 60px; }
  .reveal, .reveal.pre { opacity: 1 !important; transform: none !important; }
  .btn { display: none !important; }
  /* scoped printing: print only the section the button belongs to */
  body.print-scope main > *:not(.print-target) { display: none !important; }
  body.print-scope .print-target { padding-top: 0.6rem; }
}

@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .news-item { grid-template-columns: 64px 1fr; }
  .news-thumb { width: 64px; height: 48px; }
  .weather-days { grid-template-columns: repeat(5, 1fr); font-size: 0.85rem; }
}
