/* Look North Tonight — one stylesheet for every page (look-4, refined 2026-11-16).
   Idea: the horizon is the threshold. Each town has a line (the Kp it needs);
   the aurora shows above the treeline only when Kp rises past that line.
   Schemes: follows the device; <html data-scheme="dark|light"> forces one.
   The header is always the night, in both schemes: its text is white and sits on a calm
   veil of dark sky, so it reads at every point of the curtain (AA against the brightest pixel).
   Fonts (SIL OFL 1.1, served from /assets/fonts):
     Piazzolla-VariableItalic.woff2 — the answer, headings
     MonaSans-Variable.woff2        — text, labels, numbers (tabular)
     MonaSans-VariableItalic.woff2  — italics in text (loads only when a page uses it) */

@font-face {
  font-family: "Piazzolla";
  src: url(/tint/fonts/Piazzolla-VariableItalic.woff2?v=e9e5b900ad) format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url(/tint/fonts/MonaSans-Variable.woff2?v=a59061e38c) format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url(/tint/fonts/MonaSans-VariableItalic.woff2?v=c49879f409) format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  /* page (light, dark) */
  --bg:        light-dark(#EDF3F1, #07121A);
  --bg-2:      light-dark(#E2EBE8, #0D1C26);
  --surface:   light-dark(#FAFCFB, #10222E);
  --line:      light-dark(#C3D2CE, #23394A);
  --ink:       light-dark(#0B1F26, #CFDDD7);
  --ink-2:     light-dark(#425860, #A2B7B1);
  --green:     light-dark(#0B6644, #74E0AA);
  --violet:    light-dark(#6640B0, #C3ADFF);
  --pink:      light-dark(#9C2F6E, #F2A3CC);
  --err:       light-dark(#A3271A, #FFB0A3);
  --btn:       light-dark(#0B5C3E, #74E0AA);
  --btn-ink:   light-dark(#F2FFF8, #04160E);
  --btn-2:     light-dark(#0B1F26, #CFDDD7);   /* outline buttons */
  --bar-short: light-dark(#6B827C, #587385);   /* graphics: 3:1 or more on the page */
  --cloud:     light-dark(#8A9F99, #4A6577);
  --field:     light-dark(#6B827C, #6E8796);   /* form field edges, 3:1 */
  --focus:     light-dark(#6640B0, #C3ADFF);

  /* the night: the same sky in both schemes (aurora only happens at night) */
  --sky-0: #03070F;
  --sky-1: #061423;
  --sky-2: #0B2433;
  --tree:  #02080D;
  --sky-ink:   #FFFFFF;    /* titles, the brand, the current menu link */
  --sky-ink-2: #DCE8E3;    /* lead, menu, place line */
  --sky-ink-3: #B9CCC6;    /* the small lines (published, worked out) */
  --sky-green: #74E0AA;
  --veil: rgb(3 8 16 / 0.8);   /* the calm ground behind header text: AA at 0.8 even over pure white */
  --aurora: linear-gradient(to top, #4FD79A 0%, #74E0AA 55%, #C58BE0 88%, #F2A3CC 100%);

  /* type */
  --serif: "Piazzolla", "Iowan Old Style", Georgia, serif;
  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 4/8 spacing scale */
  --reach-1: 4px; --reach-2: 8px; --reach-3: 12px; --reach-4: 16px; --reach-5: 24px;
  --reach-6: 32px; --reach-7: 48px; --reach-8: 64px; --reach-9: 96px;

  --r: 16px;            /* card radius */
  --r-in: 8px;          /* inside a card with 8px gap */
  --pad: 16px;          /* page side padding */
  --gap: 16px;          /* column gap */
  --cols: 4;
  --bar-h: 76px;        /* phone bottom bar */
}
:root[data-scheme="light"] { color-scheme: light; }
:root[data-scheme="dark"]  { color-scheme: dark; }

@media (min-width: 720px)  { :root { --pad: 32px; --gap: 24px; --cols: 8; } }
@media (min-width: 1024px) { :root { --pad: 48px; --gap: 24px; --cols: 12; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
@media (max-width: 719.98px) { body:has(> .bar) { padding-bottom: var(--bar-h); } }
main { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.offsky { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -100px; z-index: 10; background: var(--surface); color: var(--ink); padding: var(--reach-3) var(--reach-4); border-radius: var(--r-in); }
.skip:focus { top: var(--reach-2); }

/* ---------- grid ---------- */
.wrap { width: min(100% - 2 * var(--pad), 1184px); margin-inline: auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .c-1-7  { grid-column: 1 / span 7; }
  .c-1-6  { grid-column: 1 / span 6; }
  .c-1-4  { grid-column: 1 / span 4; }
  .c-5-12 { grid-column: 5 / -1; }
  .c-8-12 { grid-column: 8 / -1; }
  .c-9-12 { grid-column: 9 / -1; }
}

/* ---------- type ---------- */
.label {
  font: 600 14px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.h2 {
  font: italic 520 32px/1.08 var(--serif);
  letter-spacing: -0.012em;
}
@media (min-width: 1024px) { .h2 { font-size: 44px; } }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }
@media (min-width: 1024px) { .lead { font-size: 20px; } }
.small { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.num { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fact dd, .kpb, .cloud__v, .hour, .night__kp, .dots--head, .answer__time, .join__price { font-variant-numeric: tabular-nums; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--reach-2);
  min-height: 48px; padding: var(--reach-3) var(--reach-5);
  border: 2px solid var(--btn); border-radius: 24px;
  background: var(--btn); color: var(--btn-ink);
  font: 650 17px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn--line { background: transparent; color: var(--btn-2); border-color: currentColor; }
.btn--wide { width: 100%; }
.field { display: grid; gap: var(--reach-2); }
.field__label { font-weight: 600; }
.input {
  width: 100%; min-height: 52px; padding: var(--reach-3) var(--reach-4);
  border: 2px solid var(--field); border-radius: 12px;
  background: var(--bg); color: var(--ink); font-size: 17px;
}
.input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-weight: 600; font-size: 16px; }
.tick { display: flex; gap: var(--reach-3); align-items: flex-start; min-height: 44px; padding-block: var(--reach-2); cursor: pointer; }
.tick input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--btn); }

/* ---------- the sky (header) ---------- */
.sky {
  position: relative;
  isolation: isolate;
  overflow: clip;                 /* the veil reaches past the screen edge; keep it inside the sky */
  color-scheme: dark;             /* the header is night in both schemes: every token in it resolves dark */
  color: var(--sky-ink);
  background: linear-gradient(to bottom, var(--sky-0) 0%, var(--sky-1) 45%, var(--sky-2) 100%);
  padding-bottom: 184px;          /* room for the aurora and the treeline */
  --top-h: 112px;                 /* the menu band: brand row + menu row on phones */
  --veil-x: 48px;                 /* how far the veil feathers past the text column */
  --veil-y: 40px;
}
@media (min-width: 720px) { .sky { --top-h: 64px; --veil-x: 96px; --veil-y: 56px; } }
.sky--short { padding-bottom: 132px; }
.sky--bare { padding-bottom: 96px; }
@media (min-width: 1024px) { .sky { padding-bottom: 236px; } .sky--short { padding-bottom: 176px; } }
.sky__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sky a { color: var(--sky-ink); }

/* the menu band: dark sky behind the brand and the menu, fading out below them */
.sky::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; pointer-events: none;
  height: calc(var(--top-h) + 96px);
  background: linear-gradient(to bottom, var(--veil) 0, var(--veil) var(--top-h), rgb(3 8 16 / 0) 100%);
}
/* the veil: a calm pool of night behind the header's text column, open to the left edge,
   feathered to the right and below so the curtain still burns beside and under it.
   Two strengths: 0.55 behind the whole column (titles are large text: 3:1 needs 0.43), and a
   second 0.56 layer behind every paragraph, so lead, place and published lines sit on 0.8.
   Text only ever sits on the full-strength part of each layer (the feather is outside the box). */
.hero > * { position: relative; --fy: var(--veil-y); --veil-tone: rgb(3 8 16 / 0.55); }
.hero p   { position: relative; --fy: 16px;          --veil-tone: rgb(3 8 16 / 0.56); }
.hero > *::before, .hero p::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--fy)); bottom: calc(-1 * var(--fy));
  left: -50vw; right: calc(-1 * var(--veil-x));
  background: var(--veil-tone);
  -webkit-mask-image:
    linear-gradient(to right, #000 calc(100% - var(--veil-x)), rgb(0 0 0 / 0.45) calc(100% - var(--veil-x) / 2), transparent),
    linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.55) calc(var(--fy) / 2), #000 var(--fy), #000 calc(100% - var(--fy)), rgb(0 0 0 / 0.45) calc(100% - var(--fy) / 2), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 calc(100% - var(--veil-x)), rgb(0 0 0 / 0.45) calc(100% - var(--veil-x) / 2), transparent),
    linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.55) calc(var(--fy) / 2), #000 var(--fy), #000 calc(100% - var(--fy)), rgb(0 0 0 / 0.45) calc(100% - var(--fy) / 2), transparent);
  mask-composite: intersect;
}

.curtain { transform-box: fill-box; transform-origin: 50% 100%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .curtain--a { animation: drift 48s ease-in-out infinite alternate; }
  .curtain--b { animation: breathe 14s ease-in-out infinite alternate; }
}
@keyframes drift   { to { transform: translateX(-2.5%) scaleY(1.04); } }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 0.9; } }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--reach-4);
  min-height: 64px; padding-block: var(--reach-2);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--reach-2);
  min-height: 44px;
  font: italic 600 22px/1 var(--serif); letter-spacing: -0.01em;
  color: var(--sky-ink);
  text-decoration: none; white-space: nowrap;
}
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; gap: var(--reach-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--reach-3);
  font-weight: 560; font-size: 16px; text-decoration: none; color: var(--sky-ink-2);
}
.nav a:hover { color: var(--sky-ink); text-decoration: underline; text-decoration-color: var(--sky-green); }
.nav .nav__more { display: none; }
@media (min-width: 720px) { .nav .nav__more { display: inline-flex; } }

/* the header's words: white on the veil, whatever the page scheme */
.hero { padding-top: var(--reach-6); row-gap: var(--reach-3); }
@media (min-width: 1024px) { .hero { padding-top: var(--reach-8); } }
.sky h1, .sky .h2 { color: var(--sky-ink); }
.sky .lead, .hero__lead { color: var(--sky-ink-2); }
.sky .small, .sky .label { color: var(--sky-ink-3); }
.place { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--reach-2) var(--reach-3); font-size: 16px; color: var(--sky-ink-2); }
.place a { color: var(--sky-ink-2); }
.place a:hover { color: var(--sky-ink); }
.place__sep { opacity: 0.7; }
.place__need {
  display: inline-flex; align-items: baseline; gap: 0.35em;
  padding: 2px var(--reach-3); border: 1px solid rgba(116, 224, 170, 0.55); border-radius: 999px;
  color: var(--sky-green); font-weight: 600; font-size: 15px;
}
.hero__q {
  font: italic 520 30px/1.08 var(--serif); letter-spacing: -0.012em;
  color: var(--sky-ink);
  max-width: 15em;
}
@media (min-width: 1024px) { .hero__q { font-size: 42px; } }
.hero__lead { font-size: 18px; line-height: 1.5; max-width: 34em; }
@media (min-width: 1024px) { .hero__lead { font-size: 20px; } }
/* article and guide headers (new): the title, the lead, the published line */
.hero__title {
  font: italic 520 36px/1.06 var(--serif); letter-spacing: -0.015em;
  color: var(--sky-ink);
  max-width: 16em;
}
@media (min-width: 720px)  { .hero__title { font-size: 48px; } }
@media (min-width: 1024px) { .hero__title { font-size: 58px; } }
.hero__title + .hero__lead { margin-top: var(--reach-4); }
.hero__meta {
  margin-top: var(--reach-4);
  font: 500 15px/1.4 var(--sans); letter-spacing: 0.01em; color: var(--sky-ink-3);
}
.hero__meta::before {            /* a short horizon line, the site's mark for a town's need */
  content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 2px; margin: -2px var(--reach-3) 0 0;
  border-radius: 1px; background: var(--sky-green);
}

/* ---------- the answer card (straddles the treeline) ---------- */
.lift { margin-top: -24px; position: relative; z-index: 1; }   /* the card stands on the forest floor */
@media (min-width: 1024px) { .lift { margin-top: -104px; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--reach-5);
  box-shadow: 0 24px 48px -32px rgba(2, 8, 13, 0.55);
}
@media (min-width: 1024px) { .card { padding: var(--reach-6); } }
.answer { position: relative; overflow: hidden; }
.answer::before {               /* a thin band of aurora along the top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #4FD79A, #74E0AA 50%, #C58BE0 85%, #F2A3CC);
}
.answer__word {
  font: italic 520 46px/1 var(--serif); letter-spacing: -0.02em;
  margin-top: var(--reach-2);
}
@media (min-width: 1024px) { .answer__word { font-size: 72px; } }
.answer__word--yes { color: var(--green); }
.answer__now { display: flex; align-items: center; gap: var(--reach-2); margin-top: var(--reach-3); font-weight: 600; font-size: 17px; }
.answer__now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-2); flex: none; }
.answer__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--reach-4) var(--reach-5);
  margin-top: var(--reach-5); padding-top: var(--reach-5); border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .answer__facts { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: var(--reach-6); } }
.fact dt { font-size: 15px; color: var(--ink-2); }
.fact dd { font: 700 26px/1.15 var(--sans); letter-spacing: -0.01em; margin-top: var(--reach-1); }
.fact dd small { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; display: block; margin-top: 2px; }
.fact--hit dd { color: var(--green); }
.answer__time { margin-top: var(--reach-5); font-size: 15px; color: var(--ink-2); }

/* the side card next to the answer: next nights (members) or the free facts (locked) */
.side { display: grid; gap: var(--reach-3); align-content: start; margin-top: var(--reach-4); }
@media (min-width: 1024px) { .side { margin-top: 0; align-self: start; padding: var(--reach-5); } }
.free__big { font: 700 44px/1 var(--sans); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; margin-top: var(--reach-2); }
.free__links { display: grid; margin-top: var(--reach-2); }
.free__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.night {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--reach-1) var(--reach-3);
  padding: var(--reach-4) var(--reach-5); border-radius: 12px; background: var(--bg-2);
}
.night__day { font-weight: 700; }
.night__kp { font-size: 15px; color: var(--ink-2); text-align: right; }
.night__word { grid-column: 1 / -1; font: italic 520 22px/1.15 var(--serif); }

/* ---------- sections ---------- */
.section { padding-block: var(--reach-8); }
@media (min-width: 1024px) { .section { padding-block: var(--reach-9); } }
.section + .section, .read + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--bg-2); }
.section--first { padding-top: var(--reach-7); }
.section__head { display: grid; gap: var(--reach-3); align-content: start; margin-bottom: var(--reach-6); }
@media (min-width: 1024px) { .section__head--side { margin-bottom: 0; } }

/* how: Kp gauge */
.gauge { position: relative; padding-block: 44px 52px; }
.gauge__track {
  position: relative; height: 16px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 9 - 1px), var(--line) calc(100% / 9 - 1px) calc(100% / 9)), var(--bg-2);
}
.gauge__fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--kp) / 9 * 100%);
  border-radius: 8px; background: linear-gradient(90deg, #2FA374, #74E0AA 70%, #C58BE0 92%, #F2A3CC);
}
.gauge__need {
  position: absolute; top: 28px; bottom: 34px; left: calc(var(--need) / 9 * 100%);
  width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px;
}
.gauge__need-label, .gauge__kp-label {
  position: absolute; white-space: nowrap; font-size: 15px; line-height: 1.2;
}
.gauge__need-label { bottom: 0; transform: translateX(-80%); left: calc(var(--need) / 9 * 100%); color: var(--ink); }
.gauge__kp-label { top: 0; left: calc(var(--kp) / 9 * 100%); transform: translateX(-30%); color: var(--green); }
.gauge__kp-label .num, .gauge__need-label .num { font-size: 19px; }
.gauge__scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-top: var(--reach-2); font-variant-numeric: tabular-nums; }
.gauge--free .gauge__fill { display: none; }

/* how: tonight hour by hour (a data grid, one column per dark hour) */
.hours { margin-top: var(--reach-6); }
.hours__grid {
  display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr));
  column-gap: 3px; row-gap: var(--reach-2);
}
.hours__row-label { grid-column: 1 / -1; margin-top: var(--reach-3); }
.kpb {
  display: grid; place-items: center; min-height: 48px; border-radius: 8px;
  background: var(--bg-2); color: var(--ink-2); font-size: 15px; font-weight: 700;
}
.kpb--hit { background: color-mix(in srgb, var(--green) 16%, var(--surface)); color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.cloud { display: grid; gap: var(--reach-1); justify-items: center; }
.cloud__col { position: relative; width: 100%; height: 72px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.cloud__col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--c); background: var(--cloud); }
.cloud__v { font-size: 14px; font-weight: 700; }
.cloud__v small { font-size: 11px; font-weight: 600; }
.hour { text-align: center; font-size: 14px; color: var(--ink-2); }
.ampm { display: flex; border-top: 1px solid var(--line); padding-top: var(--reach-1); font-size: 14px; color: var(--ink-2); }
.hours__src { margin-top: var(--reach-5); }

/* past seven nights */
.past { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--reach-2); }
@media (min-width: 720px) { .past { column-gap: var(--reach-4); } }
.past__night { display: grid; gap: var(--reach-1); justify-items: center; text-align: center; }
.past__plot { position: relative; width: 100%; height: 180px; }
@media (min-width: 1024px) { .past__plot { height: 240px; } }
.past__bar {
  position: absolute; left: 50%; bottom: 0; width: min(64%, 56px); transform: translateX(-50%);
  height: calc(var(--kp) / 9 * 100%);
  border-radius: 999px 999px 4px 4px; background: var(--bar-short);
}
.past__night--hit .past__bar { background: var(--aurora); box-shadow: 0 0 24px -4px rgba(116, 224, 170, 0.55); }
.past__line {                    /* the town's line, drawn across all seven nights */
  position: absolute; left: 0; right: 0; top: calc(180px - var(--need) / 9 * 180px);
  border-top: 2px dashed var(--ink); pointer-events: none;
}
@media (min-width: 1024px) { .past__line { top: calc(240px - var(--need) / 9 * 240px); } }
.past__line span {
  position: absolute; left: 0; bottom: 6px; padding: 2px var(--reach-2); border-radius: 6px;
  background: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.past__kp { font-size: 18px; margin-top: var(--reach-2); }
.past__verdict { display: grid; justify-items: center; min-height: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.past__verdict .dot { width: 16px; height: 16px; }
.past__night--hit .past__verdict { color: var(--green); }
.past__word, .past__month { display: none; }
.past__date { font-size: 14px; color: var(--ink-2); line-height: 1.25; }
.past__date b { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .past__verdict .dot, .legend.past__legend { display: none; }
  .past__word, .past__month { display: inline; }
}
.past__note { margin-top: var(--reach-6); }

/* email / buy box */
.box { position: relative; overflow: hidden; }
.box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4FD79A, #74E0AA 50%, #C58BE0 85%, #F2A3CC); }
.box__title { font: italic 520 28px/1.12 var(--serif); letter-spacing: -0.012em; text-wrap: balance; display: block; }
@media (min-width: 1024px) { .box__title { font-size: 34px; } }
.box__form { display: grid; gap: var(--reach-4); margin-top: var(--reach-5); }
.box__row { display: grid; gap: var(--reach-3); }
@media (min-width: 720px) { .box__row { grid-template-columns: 1fr auto; align-items: start; } }
.box__fine { margin-top: var(--reach-4); }
.box__done-title { font: italic 520 28px/1.12 var(--serif); color: var(--green); }
.box__done p + p { margin-top: var(--reach-3); }
.box__done p:first-of-type { margin-top: var(--reach-3); }

/* locked: what members see */
.join__list { display: grid; gap: var(--reach-3); margin-top: var(--reach-5); }
.join__list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--reach-3); align-items: baseline; }
.join__list li::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; justify-self: center; transform: translateY(3px);
  background: linear-gradient(to top, #4FD79A, #C58BE0);
}
.join__buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--reach-4) var(--reach-5);
  margin-top: var(--reach-6); padding-top: var(--reach-5); border-top: 1px solid var(--line);
}
.join__price { font: 700 28px/1 var(--sans); letter-spacing: 0.01em; }
.join__free { margin-top: var(--reach-5); }

/* limits */
.limits { display: grid; gap: var(--reach-5) var(--gap); counter-reset: lim; }
@media (min-width: 720px)  { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .limits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.limits li { counter-increment: lim; padding-top: var(--reach-4); border-top: 2px solid var(--line); }
.limits li::before { content: counter(lim, decimal-leading-zero); display: block; margin-bottom: var(--reach-2); font: italic 520 22px/1 var(--serif); color: var(--violet); }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--reach-4);
  min-height: 64px; padding-block: var(--reach-4); cursor: pointer; list-style: none;
  font: italic 520 22px/1.25 var(--serif);
}
@media (min-width: 1024px) { .faq summary { font-size: 26px; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--ink-2); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--reach-5); max-width: 40em; color: var(--ink-2); }
.faq details > div p + p { margin-top: var(--reach-3); }
.faq a { overflow-wrap: anywhere; }          /* source addresses never push the page sideways */

/* footer: the page ends where the forest starts */
.foot { flex: 1 0 auto; position: relative; color-scheme: dark; background: var(--tree); color: var(--sky-ink-3); margin-top: 56px; padding-block: var(--reach-7) var(--reach-8); }
.foot__trees { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 56px; }
.foot a { color: var(--sky-ink); }
.foot__grid { row-gap: var(--reach-6); }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
@media (min-width: 720px) { .foot__links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.foot__brand { font: italic 600 24px/1.1 var(--serif); color: var(--sky-ink); }
.foot p { font-size: 15px; }
.foot p + p { margin-top: var(--reach-3); }

/* phone bottom bar: one button */
.bar { display: none; }
@media (max-width: 719.98px) {
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: var(--reach-3);
    min-height: var(--bar-h);
    padding: var(--reach-3) var(--pad) calc(var(--reach-3) + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bar .btn { flex: 1; }
  .bar__price { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
}

/* cookie banner: no overlay, no cross, two equal buttons */
.cookie {
  position: fixed; z-index: 30; left: var(--reach-3); right: var(--reach-3); bottom: calc(var(--bar-h) + var(--reach-3));
  display: grid; gap: var(--reach-4);
  padding: var(--reach-5); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(2, 8, 13, 0.5);
}
@media (min-width: 720px) { .cookie { left: auto; right: var(--pad); bottom: var(--pad); width: 440px; } }
.cookie p { font-size: 16px; }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--reach-3); }
.cookie--static { position: static; width: auto; box-shadow: none; }

/* state page: towns */
.towns { border-top: 1px solid var(--line); }
.towns__head, .town {
  display: grid; align-items: center; gap: var(--reach-2) var(--reach-4);
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: var(--reach-4);
  border-bottom: 1px solid var(--line);
}
.towns__head { padding-block: var(--reach-3); }
@media (min-width: 720px) {
  .towns__head, .town { grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 4fr) minmax(0, 1.6fr); }
  .towns--member .towns__head, .towns--member .town { grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 4fr) minmax(0, 1.6fr) minmax(0, 3fr); }
}
.town__name { font: italic 520 26px/1.15 var(--serif); }
.town__name a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.town__name a:hover { text-decoration: underline; }
.town__need { font-size: 16px; color: var(--ink-2); }
.town__need .num { color: var(--ink); font-size: 20px; }
.dots { display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; justify-content: start; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bar-short); }
.dot--hit { border-color: transparent; background: radial-gradient(circle at 50% 70%, #74E0AA 0 45%, #C58BE0 100%); box-shadow: 0 0 10px -2px rgba(116, 224, 170, 0.6); }
.dots--head span { font-size: 13px; text-align: center; color: var(--ink-2); line-height: 1.1; }
.dots--head b { display: block; font-size: 14px; color: var(--ink); }
.town__count { font-size: 16px; }
.show-wide { display: none; }
@media (min-width: 720px) { .show-wide { display: block; } .hide-wide { display: none; } }
.town__tonight { font: italic 520 20px/1.2 var(--serif); }
.town__tonight--yes { color: var(--green); }
@media (max-width: 719.98px) {
  .towns__head .h-need, .towns__head .h-count, .towns__head .h-tonight { display: none; }
  .town__left { display: grid; gap: 2px; }
  .town__count { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
  .town__tonight { grid-column: 1 / -1; }
}
.legend { display: flex; flex-wrap: wrap; gap: var(--reach-2) var(--reach-5); margin-top: var(--reach-4); font-size: 15px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--reach-2); }
.legend .dot { width: 16px; height: 16px; }

/* state sheet (states.html) */
.sheet { display: grid; gap: var(--reach-6) var(--gap); }
@media (min-width: 1024px) { .sheet--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sheet--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet__tag { margin-bottom: var(--reach-3); }

/* unsubscribe */
.choices { display: grid; gap: var(--reach-4); margin-top: var(--reach-6); }
@media (min-width: 720px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices form { display: grid; }
.choice {
  display: grid; gap: var(--reach-2); align-content: start; text-align: left;
  min-height: 132px; padding: var(--reach-5); border-radius: var(--r);
  border: 2px solid var(--btn-2); background: var(--surface); color: var(--ink); cursor: pointer;
}
.choice:hover { border-color: var(--green); }
.choice__t { font: italic 520 26px/1.15 var(--serif); }
.choice__d { font-size: 16px; color: var(--ink-2); }
.done-mark { width: 56px; height: 56px; margin-bottom: var(--reach-5); }

/* share card (1200 × 630) */
.share { width: 1200px; height: 630px; position: relative; overflow: hidden; color: var(--sky-ink); background: var(--sky-0); }
.share .sky__art { z-index: 0; }
.share::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(3, 7, 15, 0.92) 0%, rgba(3, 7, 15, 0.8) 45%, rgba(3, 7, 15, 0) 75%); }
.share__in { position: absolute; inset: 64px 72px 72px; display: grid; align-content: space-between; z-index: 1; }
.share .brand { font-size: 30px; }
.share .brand svg { width: 34px; height: 34px; }
.share__q { font: italic 520 76px/1.02 var(--serif); letter-spacing: -0.02em; max-width: 9.5em; }
.share__line { display: flex; align-items: center; gap: var(--reach-5); font-size: 24px; color: var(--sky-ink-2); }
.share__line .place__need { font-size: 24px; padding: var(--reach-1) var(--reach-4); }

/* Build additions (no new look): the phone bar steps aside while the buy card shows; a focused
   field stays clear of it; no bar in print; the members' page select uses the field style. */
.bar { transition: transform .2s ease, visibility .2s; }
.bar.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
@media (max-width: 719.98px) { html:has(body > .bar) { scroll-padding-bottom: calc(var(--bar-h) + 16px); } }
@media print { .bar { display: none; } }
select.input { appearance: auto; }
[hidden] { display: none !important; }

/* ---------- articles and guides (2026-11-16) ----------
   Two columns from 1024 px: the text at a reading measure on the left, the members' card on the
   right, standing on the treeline like the town page's answer and staying in view while you read.
   Under 1024 px the card follows the text, before Questions. */
.read { padding-block: var(--reach-7) var(--reach-8); row-gap: var(--reach-7); }
@media (min-width: 1024px) {
  .read { padding-block: var(--reach-8) var(--reach-9); }
  .read__text { grid-column: 1 / span 7; grid-row: 1; }
  .read__side {
    grid-column: 8 / -1; grid-row: 1;
    margin-top: calc(-1 * (var(--reach-8) + 104px));   /* up onto the forest floor, as .lift does */
    position: relative; z-index: 1;
  }
}
@media (min-width: 1280px) { .read__side { grid-column: 9 / -1; } }
/* sticky only where the whole card fits on the screen (it holds three fields since 2026-11-16) */
@media (min-width: 1024px) and (min-height: 760px) {
  .pick { position: sticky; top: var(--reach-4); }
}

/* the members' card: the town is the one choice, then the plan */
.pick { display: grid; align-content: start; }
.pick__title { font: italic 520 28px/1.1 var(--serif); letter-spacing: -0.012em; margin-top: var(--reach-1); }
@media (min-width: 1024px) { .pick__title { font-size: 30px; } }
.pick__list { margin-top: var(--reach-3); gap: var(--reach-1); font-size: 15px; line-height: 1.4; }
.pick__field { margin-top: var(--reach-4); gap: var(--reach-1); }
.pick__field + .pick__field { margin-top: var(--reach-3); }
.pick__btns { display: grid; gap: var(--reach-3); margin-top: var(--reach-4); }
.pick__fine { margin-top: var(--reach-3); font-size: 14px; }
.pick__fine + .pick__fine { margin-top: var(--reach-2); }

/* Article and guide bodies (written by the SEO agent): the site's own type at a reading measure. */
.prose { font-size: 17px; line-height: 1.62; max-width: 38em; }
@media (min-width: 1024px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: var(--reach-4); }
.prose h2 {
  font: italic 520 28px/1.14 var(--serif); letter-spacing: -0.012em;
  margin-top: var(--reach-7);
}
@media (min-width: 1024px) { .prose h2 { font-size: 34px; margin-top: 56px; } }
.prose h3 { font: 680 19px/1.3 var(--sans); letter-spacing: -0.005em; margin-top: var(--reach-6); }
@media (min-width: 1024px) { .prose h3 { font-size: 20px; } }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--reach-3); }   /* a heading sits close to its own text */
.prose strong { font-weight: 680; }
.prose a { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; overflow-wrap: break-word; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: var(--reach-2); }
.prose ul > li::before {          /* the aurora tick from the members' list */
  content: ""; position: absolute; left: 8px; top: 0.42em; width: 4px; height: 0.9em; border-radius: 2px;
  background: linear-gradient(to top, #4FD79A, #C58BE0);
}
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; padding-left: 32px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 20px; text-align: right;
  font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--violet);
}
.prose blockquote {
  margin-block: var(--reach-6);
  padding: var(--reach-1) 0 var(--reach-1) var(--reach-5);
  border-left: 3px solid #74E0AA;
  border-image: linear-gradient(to top, #4FD79A, #C58BE0) 1;
  font: italic 500 24px/1.3 var(--serif); letter-spacing: -0.005em; color: var(--ink);
}
@media (min-width: 1024px) { .prose blockquote { font-size: 28px; } }
.prose blockquote p + p { margin-top: var(--reach-3); }
.prose blockquote footer, .prose blockquote cite { display: block; margin-top: var(--reach-3); font: 500 15px/1.4 var(--sans); font-style: normal; color: var(--ink-2); }
.prose code {
  font-family: var(--mono); font-size: 0.86em;
  padding: 0.1em 0.4em; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.prose table {
  width: 100%; border-collapse: collapse;
  font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums lining-nums;
  margin-block: var(--reach-6);
}
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--reach-3) var(--reach-4) var(--reach-3) 0; }
.prose tr > :last-child { padding-right: 0; }
.prose thead th {
  vertical-align: bottom; padding-top: 0;
  font: 600 13px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 2px solid var(--ink);
}
.prose td { border-bottom: 1px solid var(--line); }
.prose td:first-child { font-weight: 600; }
@media (max-width: 719.98px) { .prose table { display: block; overflow-x: auto; font-size: 15px; } }

/* Phones (owner, 2026-11-16: "the mobiel menu needs to be in a drop down"): the brand and a Menu button
   on one row; the button opens the links as a list over the sky. A native <details>, so it works with
   scripts off. From 720 px the links sit in the bar as before. */
.drop { display: none; position: relative; }
@media (max-width: 719.98px) {
  .nav { display: none; }
  .topbar { position: relative; z-index: 5; }
  .drop { display: block; }
}
.drop__btn {
  display: inline-flex; align-items: center; gap: var(--reach-2);
  min-height: 44px; padding-inline: var(--reach-3);
  border: 1px solid rgb(220 232 227 / 0.35); border-radius: 999px;
  font-weight: 600; font-size: 16px; color: var(--sky-ink);
  background: rgb(3 7 15 / 0.45); cursor: pointer; list-style: none;
}
.drop__btn::-webkit-details-marker { display: none; }
.drop__btn:focus-visible { outline: 2px solid var(--sky-green); outline-offset: 2px; }
.drop__bars, .drop__bars::before, .drop__bars::after {
  display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor;
}
.drop__bars { position: relative; }
.drop__bars::before, .drop__bars::after { content: ""; position: absolute; left: 0; }
.drop__bars::before { top: -5px; }
.drop__bars::after { top: 5px; }
.drop[open] .drop__bars { background: transparent; }
.drop[open] .drop__bars::before { top: 0; transform: rotate(45deg); }
.drop[open] .drop__bars::after { top: 0; transform: rotate(-45deg); }
.drop__list {
  position: absolute; right: 0; top: calc(100% + var(--reach-2));
  display: grid; min-width: 232px; padding: var(--reach-2);
  background: var(--sky-1); border: 1px solid rgb(220 232 227 / 0.18); border-radius: 16px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.drop__list a {
  display: flex; align-items: center; min-height: 48px; padding-inline: var(--reach-3);
  border-radius: 10px; font-weight: 560; font-size: 17px; text-decoration: none; color: var(--sky-ink-2);
}
.drop__list a:hover, .drop__list a:focus-visible { background: var(--sky-2); color: var(--sky-ink); }
.drop__list a[aria-current="page"] { color: var(--sky-ink); box-shadow: inset 3px 0 0 var(--sky-green); }
.nav a[aria-current="page"] { color: var(--sky-ink); text-decoration: underline; text-decoration-color: var(--sky-green); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* The marketing tick box on every form with an email (owner, 2026-11-16). Starts unticked; the form needs it. */
.tick {
  display: grid; grid-template-columns: 24px 1fr; gap: var(--reach-2); align-items: start;
  font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer;
}
.tick input {
  width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sky-2);
  cursor: pointer;
}
.tick input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tick a { color: var(--ink); white-space: nowrap; }
.pick__tick { margin-top: var(--reach-4); }
