/* ==========================================================================
   The Yard Index. The damicodigital.com design system (type, section themes,
   cards, the fixed header) in a green palette of its own.

   Components below read only --sec-* / --btn-* / --field-* tokens, never a
   brand anchor, so any section flips light or dark with one class:
   t-linen, t-white (light), t-forest, t-pine (dark).

   Fonts are self-hosted (latin subsets from Google Fonts, SIL Open Font
   License), so no visitor IP goes to a font CDN and the CSP stays 'self'.
   ========================================================================== */

@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/cinzel-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Grape Nuts"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/grape-nuts-400.woff2") format("woff2"); }

:root {
  /* ---- Brand anchors --------------------------------------------------- */
  --forest: #1F4D34;          /* brand primary, dark bands            */
  --pine:   #0F2A1C;          /* display text, footer                 */
  --linen:  #F6F5EE;          /* canvas                               */
  --sprout: #B9DA6E;          /* the spotlight: primary buttons       */
  --white:  #FFFFFF;

  --sprout-hover: #A8CB5A;
  --sprout-text:  #16240C;    /* text inside sprout (10.3:1)          */
  --sprout-soft:  #DCEBB8;
  --moss:         #4A7322;    /* the only sprout-family green legible as text on light (5.1:1) */
  --body-ink:     #1B2620;
  --muted-ink:    #56655C;    /* 5.6:1 on linen                       */
  --forest-lift:  #2A5E41;
  --forest-deep:  #15382A;
  --linen-warm:   #ECEBE0;

  --clay: #B8402F;            /* moved down, errors                   */
  --sky:  #2A6FAA;            /* moved up                             */
  --clay-lt: #F0A08F;
  --sky-lt:  #8EC3EE;

  --pine-rgb:   15 42 28;
  --forest-rgb: 31 77 52;
  --linen-rgb:  246 245 238;
  --sprout-rgb: 185 218 110;

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans:    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-script:  "Grape Nuts", "Bradley Hand", cursive;

  --fs-h1:      clamp(2.25rem, 4.6vw, 3.5rem);
  --fs-h2:      clamp(1.875rem, 3.8vw, 2.875rem);
  --fs-h3:      1.25rem;
  --fs-body-lg: 1.1875rem;
  --fs-body:    1rem;
  --fs-meta:    0.875rem;
  --fs-eyebrow: clamp(1.375rem, 1.8vw, 1.75rem);

  --lh-h1: 1.08; --lh-h2: 1.2; --lh-h3: 1.3; --lh-body: 1.65; --lh-loose: 1.7;
  --ls-display: -0.03em;
  --ls-caps: 0.08em;

  /* ---- Space, shape, elevation ----------------------------------------- */
  --container: 1180px;
  --narrow: 820px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3rem, 6vw, 5.5rem);
  --r: 8px;
  --r-pill: 9999px;

  --shadow-card: 0 14px 34px rgb(var(--pine-rgb) / .07);
  --shadow-lift: 0 18px 44px rgb(var(--pine-rgb) / .14);
  --shadow-sprout: 0 4px 14px rgb(var(--sprout-rgb) / .40);
  --shadow-sprout-hover: 0 6px 20px rgb(var(--sprout-rgb) / .55);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;

  color-scheme: light;
}

/* ==========================================================================
   Section themes
   ========================================================================== */

:root, .t-linen, .t-white, .island {
  --sec-fg:       var(--pine);
  --sec-muted:    var(--body-ink);
  --sec-dim:      var(--muted-ink);
  --sec-faint:    var(--muted-ink);
  --sec-hairline: rgb(var(--forest-rgb) / .13);
  --sec-hairline-strong: rgb(var(--forest-rgb) / .24);
  --sec-accent:   var(--forest);
  --sec-eyebrow:  var(--moss);
  --sec-rule:     var(--sprout-soft);
  --sec-shadow:   var(--shadow-card);
  --sec-shadow-lift: var(--shadow-lift);
  --sec-up: var(--sky); --sec-down: var(--clay);

  /* Sprout is 1.44:1 on linen, so the button carries a hairline edge. */
  --btn-bg: var(--sprout); --btn-fg: var(--sprout-text); --btn-bg-hover: var(--sprout-hover);
  --btn-bd: rgb(var(--forest-rgb) / .22);
  --btn-shadow: var(--shadow-sprout); --btn-shadow-hover: var(--shadow-sprout-hover);
  --btn-ghost-fg: var(--forest); --btn-ghost-bd: rgb(var(--forest-rgb) / .26);
  --btn-ghost-bg-hover: rgb(var(--forest-rgb) / .06);

  --field-bg: var(--white); --field-bd: rgb(var(--forest-rgb) / .24); --field-fg: var(--body-ink);
  --icon-bg: rgb(var(--forest-rgb) / .06); --icon-bd: rgb(var(--forest-rgb) / .12);
  --focus-ring: var(--forest);
}
.t-linen { --sec-bg: var(--linen); --sec-surface: var(--white); --sec-surface-bd: rgb(var(--forest-rgb) / .09); }
.t-white { --sec-bg: var(--white); --sec-surface: var(--linen); --sec-surface-bd: rgb(var(--forest-rgb) / .09); }
.island  { --sec-bg: var(--linen); --sec-surface: var(--white); --sec-surface-bd: rgb(var(--forest-rgb) / .09); color: var(--body-ink); }

.t-forest, .t-pine {
  --sec-fg:       var(--linen);
  --sec-muted:    rgb(var(--linen-rgb) / .90);
  --sec-dim:      rgb(var(--linen-rgb) / .64);
  --sec-faint:    rgb(var(--linen-rgb) / .66);
  --sec-hairline: rgb(var(--linen-rgb) / .18);
  --sec-hairline-strong: rgb(var(--linen-rgb) / .30);
  --sec-accent:   var(--sprout);
  --sec-eyebrow:  var(--sprout);
  --sec-rule:     rgb(var(--sprout-rgb) / .45);
  --sec-shadow:   0 14px 34px rgb(0 0 0 / .30);
  --sec-shadow-lift: 0 18px 44px rgb(0 0 0 / .45);
  --sec-up: var(--sky-lt); --sec-down: var(--clay-lt);

  --btn-bg: var(--sprout); --btn-fg: var(--sprout-text); --btn-bg-hover: var(--sprout-hover);
  --btn-bd: transparent;
  --btn-shadow: 0 4px 14px rgb(0 0 0 / .28); --btn-shadow-hover: 0 6px 20px rgb(0 0 0 / .38);
  --btn-ghost-fg: var(--linen); --btn-ghost-bd: rgb(var(--linen-rgb) / .34);
  --btn-ghost-bg-hover: rgb(var(--linen-rgb) / .08);

  --field-bg: rgb(var(--linen-rgb) / .07); --field-bd: rgb(var(--linen-rgb) / .28); --field-fg: var(--linen);
  --icon-bg: rgb(var(--linen-rgb) / .07); --icon-bd: rgb(var(--linen-rgb) / .15);
  --focus-ring: var(--sprout);
}
.t-forest { --sec-bg: var(--forest); --sec-surface: var(--forest-lift); --sec-surface-bd: rgb(var(--linen-rgb) / .14); }
.t-pine   { --sec-bg: var(--pine);   --sec-surface: var(--forest-deep); --sec-surface-bd: rgb(var(--linen-rgb) / .12); }

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--body-ink); background: var(--linen);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { padding-top: var(--header-h); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
a { color: var(--sec-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sec-fg); }
:focus-visible { outline: 2px solid var(--focus-ring, var(--forest)); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--forest); color: var(--linen); }
/* .field is display:grid, which would beat the UA rule for [hidden]. */
[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 50%; top: 0; z-index: 200; transform: translate(-50%, -120%);
  background: var(--forest); color: var(--linen); padding: 12px 22px; border-radius: 0 0 var(--r) var(--r);
  font-size: var(--fs-meta); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--linen); }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--sec-fg); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.02em; }
p { color: var(--sec-muted); }
.dim { color: var(--sec-dim); }
.lede, .lead { font-size: var(--fs-body-lg); line-height: var(--lh-loose); color: var(--sec-muted); text-wrap: pretty; }
.small { font-size: var(--fs-meta); color: var(--sec-faint); }
.subtle { color: var(--sec-faint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-script); font-size: var(--fs-eyebrow); line-height: 1;
  color: var(--sec-eyebrow); transform: rotate(-3deg); transform-origin: left center;
}
.eyebrow svg { flex: none; width: 48px; height: auto; opacity: .85; }

/* System tags: Space Mono, uppercase, wide tracking */
.chip, .tag, .label, .field > label, .field legend, .list-label, .stat-strip dt, .step__n,
.footer__col h2, .row__strength, .movement h3, .compare__label, .factor__weight, .city-card__meta, .score-label {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase;
}

/* ---- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.sec { position: relative; background: var(--sec-bg); color: var(--sec-fg); padding-block: var(--section-y); }
.sec--edge { border-top: 1px solid var(--sec-hairline); }
.sec--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .eyebrow { margin-bottom: 1.1rem; }
.sec-head h2 { margin-bottom: 1rem; }
.sec-head p + p { margin-top: .9rem; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Buttons. .btn is the spotlight; .btn--secondary the outline.
   ========================================================================== */
.btn {
  --btn-py: 15px; --btn-px: 24px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-py) var(--btn-px); min-height: 48px; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); box-shadow: var(--btn-shadow);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease),
              box-shadow .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); box-shadow: var(--btn-shadow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--secondary, .btn--ghost { background: transparent; color: var(--btn-ghost-fg); border-color: var(--btn-ghost-bd); box-shadow: none; }
.btn--secondary:hover, .btn--ghost:hover { background: var(--btn-ghost-bg-hover); color: var(--btn-ghost-fg); border-color: var(--sec-hairline-strong); box-shadow: none; }
.btn--small { --btn-py: 10px; --btn-px: 16px; min-height: 42px; font-size: .9375rem; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sec-accent); text-decoration: none; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--sec-accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Chips ------------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; max-width: 100%;
  border-radius: var(--r-pill); border: 1px solid var(--sec-hairline); background: var(--sec-surface);
  font-size: .75rem; letter-spacing: .1em; color: var(--sec-muted);
}
.dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }
.t-forest .dot, .t-pine .dot { background: var(--sprout); }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgb(var(--linen-rgb) / .84);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: rgb(var(--pine-rgb) / .10); }
.header[data-over="dark"] {
  background: rgb(var(--pine-rgb) / .74);
  --sec-fg: var(--linen); --sec-muted: rgb(var(--linen-rgb) / .78); --sec-faint: rgb(var(--linen-rgb) / .74);
  --sec-hairline: rgb(var(--linen-rgb) / .18); --focus-ring: var(--sprout); --btn-bd: transparent;
}
.header[data-over="dark"].is-scrolled { border-bottom-color: rgb(var(--linen-rgb) / .16); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--sec-fg); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--sec-fg); }
.wordmark em { font-style: normal; color: var(--moss); }
.header[data-over="dark"] .wordmark em, .t-pine .wordmark em, .t-forest .wordmark em { color: var(--sprout); }
.wordmark__mark { flex: none; width: 30px; height: 30px; }
.m-bg { fill: var(--forest); } .m-1 { fill: var(--sprout-soft); } .m-2 { fill: var(--linen); } .m-3 { fill: var(--sprout); }
.header[data-over="dark"] .m-bg, .t-pine .m-bg, .t-forest .m-bg { fill: rgb(var(--linen-rgb) / .12); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r-pill); font-weight: 500; letter-spacing: -0.01em;
  color: var(--sec-faint); text-decoration: none; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--sec-fg); background: rgb(var(--pine-rgb) / .05); }
.header[data-over="dark"] .nav a:hover { background: rgb(var(--linen-rgb) / .10); }
.nav a[aria-current="page"] { color: var(--sec-fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--moss);
}
.header[data-over="dark"] .nav a[aria-current="page"]::after { background: var(--sprout); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Mobile menu: a <details>, so it opens without the script too. */
.mnav { display: none; position: relative; }
.mnav > summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  color: var(--sec-fg); cursor: pointer; list-style: none;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav__bars, .mnav__bars::before, .mnav__bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.mnav__bars::before, .mnav__bars::after { content: ""; position: absolute; left: 0; }
.mnav__bars::before { top: -6px; } .mnav__bars::after { top: 6px; }
.mnav[open] .mnav__bars { background: transparent; }
.mnav[open] .mnav__bars::before { transform: translateY(6px) rotate(45deg); }
.mnav[open] .mnav__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mnav__panel {
  position: fixed; inset: var(--header-h) 0 auto 0; padding: 1rem var(--gutter) 1.5rem;
  background: var(--linen); border-bottom: 1px solid rgb(var(--pine-rgb) / .10); box-shadow: var(--shadow-lift);
}
.mnav__panel a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
  font-size: 1.0625rem; font-weight: 500; color: var(--pine); text-decoration: none;
  border-bottom: 1px solid rgb(var(--pine-rgb) / .08);
}
.mnav__panel a[aria-current="page"] { color: var(--moss); }
.mnav__panel .btn { margin-top: 1rem; width: 100%; border-bottom: 1px solid var(--btn-bd); }

@media (max-width: 900px) {
  .nav { display: none; }
  .mnav { display: block; }
  .header__cta { display: none; }
}
@media (max-width: 380px) { .wordmark { font-size: .875rem; gap: 8px; } .wordmark__mark { width: 26px; height: 26px; } }

/* ---- Breadcrumb ------------------------------------------------------- */
.crumbs { font-size: var(--fs-meta); color: var(--sec-faint); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: var(--sec-faint); text-decoration: none; }
.crumbs a:hover { color: var(--sec-accent); text-decoration: underline; }

/* ==========================================================================
   Hero / page heads
   ========================================================================== */
.hero { padding-top: clamp(2.25rem, 5vw, 4.25rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: 1.1rem 0 1.1rem; }
.hero .page-head__sub { font-size: var(--fs-body-lg); color: var(--sec-faint); margin-bottom: 1.1rem; }
.hero__copy > p { max-width: 38rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .hero { padding-top: 1.75rem; padding-bottom: 2rem; }
  .hero h1 { margin: .9rem 0 .8rem; }
  .hero .page-head__sub { margin-bottom: .8rem; }
  .stat-strip { margin-top: 1.25rem; }
  .list-sec { padding-top: 1.5rem; }
}

/* Load-in: CSS only, so it never depends on the script. */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
.rise-1 { --d: 60ms; } .rise-2 { --d: 140ms; } .rise-3 { --d: 220ms; } .rise-4 { --d: 300ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Framed photo with a floating tag */
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r);
  box-shadow: var(--sec-shadow-lift); border: 1px solid var(--sec-surface-bd); rotate: 1.5deg;
  transition: rotate .6s var(--ease);
}
.hero-photo:hover img { rotate: 0deg; }
.hero-photo__tag {
  position: absolute; left: -10px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--forest); color: var(--linen);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase;
  box-shadow: var(--shadow-lift);
}
.hero-photo__tag svg { color: var(--sprout); }
.hero-photo__card {
  position: absolute; right: -8px; top: 22px; padding: 14px 18px; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--sec-surface-bd); box-shadow: var(--shadow-lift); rotate: -2deg;
}
.hero-photo__card b { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--pine); }
.hero-photo__card span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--moss); }
@media (max-width: 900px) { .hero-photo { max-width: 560px; } .hero-photo__tag { left: 12px; } .hero-photo__card { right: 12px; } }
/* City pages keep the list near the top on a phone: the photo is a desktop extra. */
@media (max-width: 900px) { .hero-photo--desktop { display: none; } }

/* Stat strip: three numbers as small cards */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 1.75rem; max-width: 38rem; }
.stat-strip div {
  display: flex; flex-direction: column-reverse; gap: 6px; padding: 16px 18px;
  background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r);
}
.stat-strip dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1; color: var(--sec-fg); font-variant-numeric: tabular-nums; }
.stat-strip dt { font-size: .6875rem; color: var(--sec-faint); }
@media (max-width: 420px) { .stat-strip div { padding: 12px 12px; } .stat-strip dt { font-size: .625rem; letter-spacing: .04em; } }

/* ==========================================================================
   The list
   ========================================================================== */
.list-sec { padding-top: clamp(2.5rem, 5vw, 4rem); }
.list-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .6875rem; color: var(--sec-faint); padding-bottom: .75rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--sec-fg);
}
.rows { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 12px; counter-reset: none; }

.row {
  position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1.25rem;
  padding: 22px 24px; background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.row:hover { transform: translateY(-2px); box-shadow: var(--sec-shadow-lift); border-color: var(--sec-hairline-strong); }
/* #1 gets the spotlight treatment; #2 and #3 a quieter edge. */
.row:first-child {
  border-color: rgb(var(--forest-rgb) / .35);
  background: linear-gradient(180deg, rgb(var(--sprout-rgb) / .16), transparent 60%), var(--sec-surface);
  box-shadow: var(--sec-shadow);
}
.row:nth-child(-n+3)::before {
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sprout);
}
.row:first-child::before { background: var(--forest); }

.row__rank {
  grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: .95; color: var(--sec-accent); font-variant-numeric: tabular-nums; text-align: center;
}
.row:first-child .row__rank { color: var(--pine); }

.row__main { min-width: 0; }
.row__name {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0 0 .35rem;
  font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em;
}
.row__name a { color: var(--sec-fg); text-decoration: none; }
.row__name a:hover { color: var(--sec-accent); text-decoration: underline; }
.row__signal { margin: 0 0 .5rem; font-variant-numeric: tabular-nums; color: var(--sec-muted); }
.row__strength {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 .65rem; padding: 5px 11px;
  border-radius: var(--r-pill); background: rgb(var(--sprout-rgb) / .22); border: 1px solid rgb(var(--sprout-rgb) / .6);
  font-size: .6875rem; color: var(--moss);
}
.row__strength::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }
.row__contact { margin: 0; font-size: var(--fs-meta); color: var(--sec-faint); }
.row__contact a { color: var(--sec-accent); text-decoration: none; }
.row__contact a:hover { text-decoration: underline; }
.row__claim { margin: .6rem 0 0; font-size: var(--fs-meta); }
.row__claim a { font-weight: 600; color: var(--moss); }

.row__score { grid-column: 2; margin: .9rem 0 0; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.score-label { font-size: .6875rem; color: var(--sec-faint); }
.score-value { font-size: 1.625rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--sec-fg); font-variant-numeric: tabular-nums; }
.score-bar {
  display: block; flex-basis: 100%; height: 6px; max-width: 12rem; margin-top: .45rem;
  border-radius: 3px; background: rgb(var(--forest-rgb) / .10); overflow: hidden;
}
.score-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--moss), var(--forest)); transition: width 1s var(--ease); }

.verified {
  display: inline-flex; align-items: center; gap: .3rem; padding: 3px 9px 3px 7px; border-radius: var(--r-pill);
  background: var(--forest); color: var(--linen); font-size: .75rem; font-weight: 600; letter-spacing: 0;
}
.verified svg { color: var(--sprout); }

@media (min-width: 46rem) {
  .row { grid-template-columns: 3.75rem minmax(0, 1fr) 9rem; column-gap: 1.75rem; padding: 24px 28px; }
  .row__score { grid-column: 3; grid-row: 1 / span 2; margin: 0; display: block; text-align: right; }
  .row__score .score-label { display: none; }
  .score-value { font-size: 2.25rem; }
  .score-bar { margin: .7rem 0 0 auto; }
}
@media (max-width: 420px) { .row { padding: 18px 16px; column-gap: .9rem; grid-template-columns: 2.5rem minmax(0, 1fr); } .row__name { font-size: 1.125rem; } }

/* ==========================================================================
   Bands: quote form (dark), landscapers (light), closers
   ========================================================================== */
.booking__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.booking h2 { margin: 1.1rem 0 1rem; }
.booking .checks { margin-top: 1.75rem; }
.booking__card { background: var(--linen); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .55); }
@media (max-width: 960px) { .booking__grid { grid-template-columns: minmax(0, 1fr); } }

.band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band h2 { margin: 1.1rem 0 1rem; }
.band p + p { margin-top: .9rem; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 1.75rem 0 1.25rem; }
.band__actions > a:not(.btn) { font-weight: 600; }
@media (max-width: 860px) { .band__grid { grid-template-columns: minmax(0, 1fr); } }

/* The Top 10 badge, pinned up like a sticker */
.sticker { position: relative; justify-self: center; width: min(100%, 320px); margin: 0; padding: 18px;
  background: var(--white); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); box-shadow: var(--sec-shadow-lift); rotate: -2deg;
  transition: rotate .5s var(--ease); }
.sticker:hover { rotate: 0deg; }
.sticker::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; rotate: 3deg;
  width: 96px; height: 24px; border-radius: 2px; background: rgb(var(--sprout-rgb) / .7); }
.sticker img { width: 100%; }
.sticker figcaption { margin-top: 10px; text-align: center; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--moss); }

.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.6; color: var(--sec-muted); }
.checks svg { margin-top: 4px; color: var(--sec-accent); }
.t-linen .checks svg, .t-white .checks svg, .island .checks svg { color: var(--moss); }
.checks b { font-weight: 600; color: var(--sec-fg); }

.closer { text-align: center; }
.closer h2 { margin: 1.1rem auto 1rem; max-width: 40rem; }
.closer p { margin-inline: auto; max-width: 38rem; }
.closer .band__actions { justify-content: center; }

/* ==========================================================================
   Cards: points, city cards, steps
   ========================================================================== */
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 30px;
  background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sec-shadow-lift); }
.card p { line-height: 1.62; }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 6px;
  border-radius: var(--r); color: var(--sec-accent); background: var(--icon-bg); border: 1px solid var(--icon-bd);
}

.city-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .city-grid { grid-template-columns: minmax(0, 1fr); } }
.city-card a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 20px;
  background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r);
  color: var(--sec-fg); text-decoration: none;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.city-card a:hover { transform: translateY(-3px); box-shadow: var(--sec-shadow-lift); border-color: var(--sec-hairline-strong); color: var(--sec-fg); }
.city-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.city-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: var(--ls-display); }
.city-card__top svg { flex: none; color: var(--moss); transition: transform .3s var(--ease); }
.city-card a:hover .city-card__top svg { transform: translateX(4px); }
.city-card__meta { font-size: .6875rem; color: var(--sec-faint); }
.city-card__leader { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sec-hairline); font-size: var(--fs-meta); color: var(--sec-muted); }
.city-card__leader b { font-weight: 600; color: var(--sec-fg); }

/* ---- Weight table with bars (home + city "how") ------------------------ */
.factor-table, .weights { margin: 1.25rem 0 1.5rem; }
.factor-table th, .factor-table td, .weights th, .weights td {
  text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--sec-hairline);
}
.factor-table thead th, .weights thead th {
  padding-top: 0; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--sec-faint); border-bottom: 2px solid var(--sec-fg);
}
.factor-table tbody th, .weights tbody th { font-weight: 600; color: var(--sec-fg); }
.factor-table th .subtle, .weights td .subtle { display: block; margin-top: 3px; font-weight: 400; font-size: var(--fs-meta); color: var(--sec-faint); }
.factor-table .num, .weights .num { text-align: right; white-space: nowrap; padding-right: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sec-fg); }
.weight-bar { display: block; width: 8rem; height: 6px; margin: 8px 0 0 auto; border-radius: 3px; background: rgb(var(--forest-rgb) / .10); overflow: hidden; }
.weight-bar span { display: block; height: 100%; width: 0; background: var(--moss); border-radius: 3px; transition: width 1s var(--ease); }
.table-card { padding: clamp(20px, 3vw, 32px); background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); }
.table-card .factor-table { margin: 0 0 1.25rem; }
@media (max-width: 520px) { .weight-bar { width: 4.5rem; } }

/* ==========================================================================
   Movement, "how this list is built", disclosure, other lists
   ========================================================================== */
.movement { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 1.25rem; }
@media (max-width: 760px) { .movement { grid-template-columns: minmax(0, 1fr); } }
.movement > div { padding: 22px 22px 20px; background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); }
.movement h3 { display: flex; align-items: center; gap: 8px; margin-bottom: .9rem; font-size: .75rem; color: var(--sec-faint); }
.movement h3 svg { flex: none; }
.movement ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.movement li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-meta); font-variant-numeric: tabular-nums; color: var(--sec-muted); }
.movement .move { flex: none; font-weight: 700; }
.move--up { color: var(--sec-up); }
.move--down { color: var(--sec-down); }
.move--new { color: var(--moss); }
.t-forest .move--new, .t-pine .move--new { color: var(--sprout); }
.movement h3.is-up svg { color: var(--sec-up); } .movement h3.is-down svg { color: var(--sec-down); } .movement h3.is-new svg { color: var(--moss); }

.next-rerank { display: flex; align-items: center; gap: 8px; }
.next-rerank svg { color: var(--moss); }

.how {
  background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r);
  margin-bottom: 1.5rem;
}
.how > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 26px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: var(--ls-display); color: var(--sec-fg);
}
.how > summary::-webkit-details-marker { display: none; }
.how > summary:hover { color: var(--sec-accent); }
.how__ico { position: relative; flex: none; width: 18px; height: 18px; color: var(--sec-accent); }
.how__ico::before, .how__ico::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.how__ico::after { transform: rotate(90deg); }
.how[open] .how__ico::after { transform: rotate(0deg); }
.how__body { padding: 0 26px 24px; }
.how__body > p { max-width: 68ch; }
.how__body > p + p { margin-top: .9rem; }

.disclosure {
  padding: 24px 26px; margin-bottom: 1.5rem; border: 1px solid var(--sec-hairline); border-left: 3px solid var(--moss);
  border-radius: var(--r); background: var(--sec-surface);
}
.disclosure h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.disclosure p { font-size: var(--fs-meta); line-height: 1.7; color: var(--sec-muted); }

.other-lists h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.other-lists ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.other-lists li a, .other-lists li[aria-current] {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--sec-hairline);
  font-size: var(--fs-meta); font-weight: 500; text-decoration: none; color: var(--sec-muted); background: var(--sec-surface);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.other-lists li a:hover { border-color: var(--sec-accent); color: var(--sec-accent); }
.other-lists li[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--linen); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label { font-size: .6875rem; color: var(--sec-faint); }
.field .hint { font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.field__hint { font-size: var(--fs-meta); color: var(--sec-faint); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: max(16px, 1rem); line-height: 1.4;
  background: var(--field-bg); color: var(--field-fg); border: 1px solid var(--field-bd); border-radius: var(--r);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 5.5rem; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(var(--sprout-rgb) / .55);
}
[aria-invalid="true"] { border-color: var(--clay) !important; box-shadow: 0 0 0 3px rgb(184 64 47 / .14); }

.field--check label {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; text-transform: none;
  font-size: var(--fs-meta); line-height: 1.55; color: var(--sec-muted);
}
.field--check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: .2rem; accent-color: var(--forest); }

.form button[type="submit"] { justify-self: start; }
.error { margin: 0; font-size: var(--fs-meta); font-weight: 600; color: var(--clay); }
.form-note { margin: 0; font-size: var(--fs-meta); color: var(--sec-faint); max-width: 54ch; }
.form-status { margin: 0; font-size: var(--fs-meta); font-weight: 600; color: var(--clay); }
.form-status:empty { display: none; }
.form-success { padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-radius: var(--r); background: rgb(var(--sprout-rgb) / .2); border-left: 4px solid var(--forest); }
.form-success h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The quote form in two columns: name, phone, email and ZIP pair up. */
@media (min-width: 560px) {
  #quote-form { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  #quote-form > * { grid-column: 1 / -1; }
  #quote-form > div.field:nth-of-type(-n+4) { grid-column: auto; }
}

.form-card { margin-bottom: 1.5rem; padding: clamp(22px, 3vw, 32px); background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); box-shadow: var(--sec-shadow); }

/* ==========================================================================
   Score page
   ========================================================================== */
.score-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(5rem, 9vw, 7rem); }
.score-head h1 { margin: 1rem 0 1rem; }
.score-head p { max-width: 42rem; font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.score-head a { color: var(--sprout); }

.compare {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  margin-top: calc(-1 * clamp(3.5rem, 7vw, 5rem)); position: relative; z-index: 2;
}
.compare > div { padding: clamp(20px, 3vw, 30px); background: var(--white); border: 1px solid rgb(var(--forest-rgb) / .10); border-radius: var(--r); box-shadow: var(--shadow-lift); }
.compare > div:first-child { background: linear-gradient(180deg, rgb(var(--sprout-rgb) / .22), transparent 70%), var(--white); border-color: rgb(var(--forest-rgb) / .3); }
.compare__label { margin: 0 0 .6rem; font-size: .6875rem; color: var(--muted-ink); }
.compare__value { margin: 0 0 .35rem; font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1; color: var(--pine); font-variant-numeric: tabular-nums; }
.compare__sub { margin: 0; font-size: var(--fs-meta); color: var(--muted-ink); }
@media (max-width: 480px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.moves { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 1rem; }
@media (max-width: 720px) { .moves { grid-template-columns: minmax(0, 1fr); } }
.moves li { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); border-top: 3px solid var(--sprout); }
.moves .pts { align-self: flex-start; padding: 4px 11px; border-radius: var(--r-pill); background: var(--forest); color: var(--linen); font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.moves h3 { font-size: 1.25rem; }

.factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 1rem; }
@media (max-width: 760px) { .factors { grid-template-columns: minmax(0, 1fr); } }
.factor { padding: 22px 24px; background: var(--sec-surface); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); }
.factor__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 14px; }
.factor__label { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.factor__weight { font-size: .625rem; color: var(--moss); }
.bars { display: grid; gap: 8px; margin-bottom: 12px; }
.bar { display: grid; grid-template-columns: 3.75rem 1fr auto; align-items: center; gap: .75rem; font-size: var(--fs-meta); }
.bar__who { color: var(--sec-faint); }
.bar__track { display: block; height: 12px; border-radius: 6px; background: rgb(var(--forest-rgb) / .08); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1s var(--ease); }
.bar__value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sec-muted); }
.bar--you .bar__fill { background: linear-gradient(90deg, var(--moss), var(--forest)); }
.bar--you .bar__who, .bar--you .bar__value { color: var(--sec-fg); font-weight: 700; }
.bar--leader .bar__fill { background: repeating-linear-gradient(135deg, rgb(var(--pine-rgb) / .45) 0 4px, rgb(var(--pine-rgb) / .12) 4px 8px); }
.bar--median .bar__fill { background: rgb(var(--forest-rgb) / .22); }
.factor__note { font-size: var(--fs-meta); color: var(--sec-faint); }

.badge-block { margin-bottom: 2rem; display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.badge-block > div:first-child img { width: 100%; max-width: 18rem; padding: 14px; background: var(--white); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); box-shadow: var(--sec-shadow); margin-bottom: 1rem; }
@media (max-width: 720px) { .badge-block { grid-template-columns: minmax(0, 1fr); } }
.embed pre {
  margin: .75rem 0; padding: 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.6;
  background: var(--pine); color: var(--sprout-soft); border-radius: var(--r);
}
.copy-status { margin-left: .75rem; font-size: var(--fs-meta); color: var(--moss); font-weight: 600; }

/* ==========================================================================
   Prose pages (methodology, disclosure, privacy, about, small pages)
   ========================================================================== */
.page-top { padding-top: clamp(2.25rem, 5vw, 4rem); }
.prose { max-width: 46rem; }
.prose > h1 { margin-bottom: 1.1rem; }
.prose > .lede { margin-bottom: 1.5rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.75rem 0 .9rem; padding-top: 1.75rem; border-top: 1px solid var(--sec-hairline); display: flow-root; }
.prose h3 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 1.75rem 0 .5rem; }
.prose p, .prose li { line-height: 1.75; }
.prose p + p { margin-top: .9rem; }
.prose ul, .prose ol { margin: .9rem 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 1.4rem; color: var(--sec-muted); }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sprout); border: 1px solid var(--moss); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; font-size: .8125rem; color: var(--moss); }
.prose strong { color: var(--sec-fg); }
.prose code { font-family: var(--font-mono); font-size: .8125rem; padding: .1rem .35rem; border-radius: 4px; background: rgb(var(--forest-rgb) / .08); color: var(--pine); }
.prose .plain-links { gap: 0; }
.prose .plain-links li { padding-left: 0; border-bottom: 1px solid var(--sec-hairline); }
.prose .plain-links li::before { content: none; }
.prose .plain-links a { display: block; padding: 12px 0; font-weight: 500; text-decoration: none; }
.prose .plain-links a:hover { text-decoration: underline; }
.prose .portrait-figure { margin: 0 0 1.75rem; max-width: 16rem; }
.prose .portrait-figure img { width: 100%; border-radius: var(--r); box-shadow: var(--sec-shadow-lift); border: 1px solid var(--sec-surface-bd); rotate: -1.5deg; }
.prose .portrait-figure figcaption { margin-top: .9rem; font-family: var(--font-script); font-size: 1.375rem; line-height: 1.2; color: var(--moss); }
@media (min-width: 44rem) { .prose .portrait-figure { float: right; margin: .4rem 0 1.5rem 2.25rem; } }
.changelog { display: grid; gap: 0; margin: .9rem 0; }
.changelog div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--sec-hairline); }
.changelog dt { font-family: var(--font-mono); font-weight: 700; font-size: .8125rem; color: var(--moss); font-variant-numeric: tabular-nums; }
.changelog dd { margin: 0; color: var(--sec-muted); }
.prose .form { margin-top: 1.5rem; padding: clamp(22px, 3vw, 30px); background: var(--white); border: 1px solid var(--sec-surface-bd); border-radius: var(--r); box-shadow: var(--sec-shadow); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--sec-hairline); }
.footer__brand p { margin-top: 1rem; max-width: 34rem; line-height: 1.7; color: var(--sec-muted); }
.footer__brand a:not(.wordmark) { color: var(--sprout); }
.footer__col h2 { font-size: .6875rem; color: var(--sec-faint); margin-bottom: 1rem; }
.foot-links { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot-links a { color: var(--sec-muted); text-decoration: none; }
.foot-links a:hover { color: var(--sprout); }
.footer__bottom { padding-top: 1.5rem; }
.footer__bottom p { font-size: var(--fs-meta); color: var(--sec-faint); }
@media (max-width: 680px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Scroll reveal. The script marks only what starts below the fold, so
   nothing is hidden without JS and nothing flashes on load.
   ========================================================================== */
.reveal-wait { opacity: 0; transform: translateY(16px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { animation: none; }
  .reveal-wait { opacity: 1; transform: none; }
  .dot::after { display: none; }
}

@media print {
  .header, .site-foot, .band, .booking, .skip-link { display: none; }
  main { padding-top: 0; }
  body, .sec { background: #fff; color: #000; }
  .row { break-inside: avoid; box-shadow: none; }
}
