/* ==========================================================================
   Smart.Homes — warm editorial design system
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Warm paper stack */
  --paper:      #FBF9F5;
  --paper-2:    #F4EEE3;
  --paper-3:    #EBE3D4;
  --paper-sunk: #F7F3EB;

  /* Ink */
  --ink:   #14110F;
  --ink-2: #3B3430;
  --ink-3: #6E645B;
  --ink-4: #938878;

  --line:   #E4DACA;
  --line-2: #D3C6B0;

  /* Brass accent */
  --brass:      #A8762B;
  --brass-deep: #855B1D;
  --brass-lift: #C08F3E;
  --brass-soft: #F6EAD3;
  --brass-tint: #FDF7EC;

  /* Secondary — muted sage */
  --sage:      #4C5D51;
  --sage-soft: #E8EEE8;

  --good: #2F6B4F;
  --good-soft: #E6F0E9;
  --bad: #9B3B2F;
  --bad-soft: #F8E9E5;

  --shadow-sm: 0 1px 2px rgba(20,17,15,.05), 0 1px 3px rgba(20,17,15,.04);
  --shadow-md: 0 4px 12px rgba(20,17,15,.06), 0 2px 4px rgba(20,17,15,.04);
  --shadow-lg: 0 18px 40px -12px rgba(20,17,15,.14), 0 6px 14px rgba(20,17,15,.05);
  --shadow-xl: 0 32px 64px -20px rgba(20,17,15,.2), 0 10px 22px rgba(20,17,15,.07);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --measure: 68ch;

  --header-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Light-only by design. `color-scheme: light` is load-bearing: it stops the
     browser rendering native controls — text inputs, checkboxes, scrollbars,
     autofill backgrounds — in dark colours on a device set to dark mode, which
     would otherwise leave unreadable form fields on an otherwise light page. */
  color-scheme: light;
}

/* No prefers-color-scheme override: the site keeps one warm editorial palette
   on every device, so it always matches the brand and the OG share images.
   To reinstate an automatic dark theme, add a `@media (prefers-color-scheme:
   dark)` block redefining these tokens, flip `color-scheme` to `light dark`,
   and restore the dark `theme-color` meta tag in _src/lib/layout.mjs. */

/* ----------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Subtle paper grain — the thing that sells "printed page" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brass); }

:where(a, button, input, select, textarea, summary, details, [tabindex]):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--brass-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.015em;
  font-weight: 600;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.02rem + .7vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem);
  margin-bottom: .5rem;
}
.section-sub { color: var(--ink-3); max-width: 62ch; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }
@media (min-width: 768px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

main { position: relative; z-index: 1; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  padding: .72rem 1.35rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn__icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--brass-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }

.btn--sm { padding: .5rem 1rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(20,17,15,.05); }

.site-header__inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
@media (min-width: 768px) { .site-header__inner { width: min(100% - 4rem, var(--wrap)); } }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand__mark { width: 26px; height: 26px; color: var(--brass); }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 600; letter-spacing: -.025em; color: var(--ink);
}
.brand__dot { color: var(--brass); }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }

/* Desktop nav */
.nav { display: none; }
@media (min-width: 1060px) { .nav { display: block; } }

.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .55rem .8rem;
  font-size: .9375rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--ink); background: var(--paper-2); }
.nav__link.is-active { color: var(--brass-deep); font-weight: 600; }
.nav__chev { width: 10px; height: 10px; opacity: .55; transition: transform .22s var(--ease); }
.nav__item--has-menu:hover .nav__chev, .nav__item:focus-within .nav__chev { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 265px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  max-height: min(70vh, 520px); overflow-y: auto;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu-list { list-style: none; margin: 0; padding: 0; }
.nav__menu-list a {
  display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav__menu-list a:hover { background: var(--brass-tint); color: var(--brass-deep); }
.nav__menu-list a[aria-current="page"] { color: var(--brass-deep); font-weight: 600; background: var(--brass-tint); }
.nav__menu-list li:first-child a { font-weight: 600; color: var(--ink); }

/* Hamburger */
.hamburger {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
@media (min-width: 1060px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(20,17,15,.45);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel-wrap {
  position: absolute; inset-block: 0; right: 0;
  width: min(92vw, 400px);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s var(--ease-out);
  box-shadow: var(--shadow-xl);
}
.drawer.is-open .drawer__panel-wrap { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); min-height: var(--header-h);
}
.drawer__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__nav { list-style: none; margin: 0; padding: .5rem .75rem; overflow-y: auto; flex: 1; }
.drawer__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .75rem; font-size: 1.02rem; font-weight: 600;
  font-family: var(--font-display); color: var(--ink);
  border-radius: var(--r-sm);
}
.drawer__toggle:hover { background: var(--paper-2); }
.drawer__chev { width: 12px; height: 12px; opacity: .5; transition: transform .25s var(--ease); }
.drawer__toggle[aria-expanded="true"] .drawer__chev { transform: rotate(180deg); }
.drawer__panel { list-style: none; margin: 0 0 .5rem; padding: 0 0 .35rem .75rem; }
.drawer__panel[hidden] { display: none; }
.drawer__panel a {
  display: block; padding: .5rem .75rem; font-size: .9375rem;
  color: var(--ink-3); text-decoration: none; border-left: 2px solid var(--line);
}
.drawer__panel a:hover { color: var(--brass-deep); border-left-color: var(--brass); background: var(--brass-tint); }
.drawer__foot { padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--line); }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------------ home */

.hero {
  position: relative;
  padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2.5rem, 1rem + 5vw, 4.5rem);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 460px at 12% -8%, var(--brass-soft), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, var(--sage-soft), transparent 60%);
  opacity: .85;
}
.hero__inner { display: grid; gap: clamp(2.25rem, 1rem + 4vw, 3.75rem); align-items: center; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.02fr .98fr; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-deep); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: .38rem .85rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .icon { width: .95em; height: .95em; }

.hero__title { margin-bottom: 1.1rem; letter-spacing: -.03em; }
.hero__title em {
  font-style: italic; color: var(--brass-deep);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
.hero__lede {
  font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem);
  color: var(--ink-3); max-width: 52ch; margin-bottom: 1.75rem; line-height: 1.6;
}

.trust-strip {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  font-size: .875rem; color: var(--ink-3); font-weight: 500;
}
.trust-strip li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip .icon { color: var(--brass); width: 1.05em; height: 1.05em; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(20,17,15,.1)); }

/* Marquee of logos / credibility row */
.credbar {
  border-block: 1px solid var(--line);
  background: var(--paper-sunk);
  padding: 1.15rem 0;
}
.credbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .75rem 2.25rem;
  font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
}
.credbar__label { color: var(--ink-3); }
.credbar__item { font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em; text-transform: none; color: var(--ink-2); }

/* Section rhythm */
.section { padding: clamp(3rem, 1.5rem + 5vw, 5.5rem) 0; }
.section--sunk { background: var(--paper-sunk); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: .6rem; display: block;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { position: relative; padding-top: 3.25rem; }
.step__num {
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--brass-deep); background: var(--brass-soft);
  border: 1px solid color-mix(in srgb, var(--brass) 28%, transparent);
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-3); font-size: .9688rem; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card__link {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.5rem; height: 100%; text-decoration: none; color: inherit;
}
.card__icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: .35rem;
  background: var(--brass-soft); color: var(--brass-deep);
}
.card__icon .icon { width: 1.25rem; height: 1.25rem; }
.card__kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-deep);
}
.card__title { font-size: 1.1875rem; line-height: 1.25; color: var(--ink); }
.card__text { font-size: .9375rem; color: var(--ink-3); line-height: 1.55; flex: 1; }
.card__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem;
  font-size: .875rem; font-weight: 600; color: var(--brass-deep);
}
.card__arrow { width: .95em; height: .95em; transition: transform .22s var(--ease); }
.card:hover .card__arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 1.6rem 1.5rem; text-align: center; }
.stat__value {
  font-family: var(--font-display); font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .875rem; color: var(--ink-3); margin-top: .55rem; line-height: 1.4; }
.stat__note { font-size: .75rem; color: var(--ink-4); margin-top: .3rem; }

/* --------------------------------------------------------------- article */

.article__head {
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) 0 clamp(1.25rem, .8rem + 1.5vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--paper-sunk), var(--paper));
}
.article__kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: .75rem;
}
.article__title { max-width: 22ch; margin-bottom: .9rem; }
.article--basic .article__title { max-width: none; }
.article__standfirst {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-3); max-width: 62ch; line-height: 1.55;
}
.article__meta { font-size: .875rem; color: var(--ink-4); margin-top: 1rem; }

.crumbs { margin-bottom: 1.1rem; }
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .8125rem; color: var(--ink-4);
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brass-deep); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--ink-2); font-weight: 500; }
.crumb-sep { opacity: .5; }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.35rem; font-size: .875rem; color: var(--ink-3);
}
.byline a { color: var(--ink-2); text-decoration-color: var(--line-2); }
.byline a:hover { color: var(--brass-deep); }
.byline__by { font-weight: 500; }
.byline__sep { opacity: .45; }
.byline__method { font-weight: 500; }

.disclosure-note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 1.35rem; padding: .8rem 1rem;
  font-size: .8125rem; line-height: 1.5; color: var(--ink-3);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-width: 72ch;
}
.disclosure-note .icon { color: var(--brass); margin-top: .12em; }

/* Two-column body with sticky rail */
.article__body {
  display: grid; gap: 2.5rem;
  padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0;
  align-items: start;
}
@media (min-width: 1020px) {
  .article__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; }
  .article__rail { position: sticky; top: calc(var(--header-h) + 1.75rem); order: 2; }
}

.article__rail { display: grid; gap: 1.5rem; }

/* Table of contents */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem;
  background: var(--paper-sunk);
}
.toc__title {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: .85rem;
}
.toc__list {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc; display: grid; gap: .1rem;
  max-height: 52vh; overflow-y: auto;
}
.toc__list a {
  display: block; padding: .35rem .6rem .35rem .75rem;
  font-size: .875rem; line-height: 1.4; color: var(--ink-3);
  text-decoration: none; border-left: 2px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color .18s, border-color .18s, background-color .18s;
}
.toc__list a:hover { color: var(--ink); background: var(--paper-2); }
.toc__list a.is-current {
  color: var(--brass-deep); border-left-color: var(--brass);
  background: var(--brass-tint); font-weight: 600;
}

.rail-cta {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  background: linear-gradient(155deg, var(--brass-tint), var(--paper));
}
.rail-cta__eyebrow {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: .55rem;
}
.rail-cta__text { font-size: .9375rem; color: var(--ink-2); margin-bottom: 1rem; line-height: 1.45; }

/* ----------------------------------------------------------------- prose */

.prose { max-width: var(--measure); font-size: 1.09375rem; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  margin-top: 2.6em; margin-bottom: .6em;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2em; margin-bottom: .5em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h4 { margin-top: 1.75em; margin-bottom: .4em; color: var(--ink); }

.prose p a { font-weight: 500; text-decoration-color: color-mix(in srgb, var(--brass) 45%, transparent); }
.prose p a:hover { text-decoration-color: var(--brass); }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brass); }
.prose ul li::marker { font-size: 1.1em; }

.prose blockquote {
  margin-inline: 0; padding: .35rem 0 .35rem 1.5rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5;
  color: var(--ink); font-style: italic;
}
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite {
  display: block; margin-top: .75rem; font-family: var(--font-body);
  font-size: .875rem; font-style: normal; color: var(--ink-4); font-weight: 500;
}

.prose strong { color: var(--ink); font-weight: 650; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: .12em .38em; border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .8125rem; color: var(--ink-4); margin-top: .65rem; text-align: center; }

/* Lead paragraph gets a little editorial flourish */
.prose--lead > p:first-child, .prose > .lede {
  font-size: 1.1875rem; line-height: 1.62; color: var(--ink-2);
}

/* --------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 2em 0;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.ctable { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ctable caption {
  caption-side: top; text-align: left; padding: 1rem 1.15rem .35rem;
  font-size: .8125rem; color: var(--ink-4); font-weight: 500;
}
.ctable thead th {
  background: var(--paper-3);
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600;
  color: var(--ink); text-align: left; padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.ctable tbody th {
  text-align: left; font-weight: 600; color: var(--ink);
  padding: .85rem 1.15rem; vertical-align: top; font-size: .9062rem;
}
.ctable td { padding: .85rem 1.15rem; vertical-align: top; color: var(--ink-2); }
.ctable tbody tr + tr th, .ctable tbody tr + tr td { border-top: 1px solid var(--line); }
.ctable tbody tr:hover { background: var(--paper-sunk); }
.ctable .yes { color: var(--good); font-weight: 600; }
.ctable .no { color: var(--bad); font-weight: 600; }

/* Stacked table on small screens */
@media (max-width: 640px) {
  .ctable, .ctable tbody, .ctable tr, .ctable td, .ctable th { display: block; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ctable tbody tr { border-bottom: 1px solid var(--line-2); padding: .35rem 0; }
  .ctable tbody tr:last-child { border-bottom: 0; }
  .ctable tbody th { background: var(--paper-3); font-size: .9375rem; padding: .7rem 1rem; }
  .ctable td { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; padding: .6rem 1rem; border-top: 1px solid var(--line); }
  .ctable td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--ink-4); font-size: .8125rem;
  }
}

/* --------------------------------------------------------- editorial UI */

.verdict {
  background: linear-gradient(150deg, var(--brass-tint), var(--paper));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.75rem;
  margin: 2em 0;
  box-shadow: var(--shadow-sm);
}
.verdict__title {
  font-size: 1.15rem; margin-bottom: .7rem;
  display: flex; align-items: center; gap: .5rem;
}
.verdict__title::before {
  content: ''; width: 3px; height: 1.05em; background: var(--brass); border-radius: 2px;
}
.verdict__body { color: var(--ink-2); font-size: 1rem; }
.verdict__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.verdict__list li {
  display: grid; gap: .1rem .9rem; padding-bottom: .65rem;
  border-bottom: 1px dashed var(--line-2); font-size: .9688rem;
}
.verdict__list li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 560px) { .verdict__list li { grid-template-columns: 15rem 1fr; align-items: baseline; } }
.verdict__label { font-weight: 600; color: var(--ink-3); font-size: .875rem; }
.verdict__value { color: var(--ink); font-weight: 500; }

.proscons { display: grid; gap: 1.25rem; margin: 2em 0; }
@media (min-width: 700px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons__col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.5rem; }
.proscons__col--pro { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 24%, transparent); }
.proscons__col--con { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 24%, transparent); }
.proscons__col h3 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  display: flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
}
.proscons__col--pro h3 { color: var(--good); }
.proscons__col--con h3 { color: var(--bad); }
.proscons__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.proscons__col li { position: relative; padding-left: 1.15rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.proscons__col li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
}
.proscons__col--pro li::before { background: var(--good); }
.proscons__col--con li::before { background: var(--bad); }

.callout {
  border-radius: var(--r-lg); padding: 1.35rem 1.5rem; margin: 2em 0;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: 1rem;
}
.callout--tip { background: var(--sage-soft); border-color: color-mix(in srgb, var(--sage) 26%, transparent); }
.callout--warn { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 26%, transparent); }
.callout--key { background: var(--brass-tint); border-color: color-mix(in srgb, var(--brass) 30%, transparent); }
.callout__title {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem;
}
.callout__body > * + * { margin-top: .8em; }
.callout__body ul { padding-left: 1.2em; }

/* Rating */
.stars { display: inline-block; position: relative; line-height: 0; white-space: nowrap; }
.stars svg { width: 1.05em; height: 1.05em; display: inline-block; }
.stars__bg { color: var(--line-2); fill: currentColor; }
.stars__fg {
  position: absolute; inset: 0; overflow: hidden;
  color: var(--brass); fill: currentColor;
}
.score { display: flex; align-items: center; gap: .9rem; }
.score__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
}
.score__num span { font-size: .95rem; color: var(--ink-4); font-weight: 500; }
.score__meta { display: grid; gap: .25rem; }
.score__label { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }

/* Spec box in the article rail */
.specbox {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.35rem; background: var(--paper);
}
.specbox h3 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1rem;
}
.specbox dl { display: grid; gap: .7rem; margin: 0; }
.specbox dt { font-size: .75rem; color: var(--ink-4); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.specbox dd { margin: .1rem 0 0; font-size: .9375rem; color: var(--ink); font-weight: 500; }
.specbox__score { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }

/* FAQ */
.faq { margin-top: 3rem; }
.faq > h2 { padding-top: 1.4rem; border-top: 1px solid var(--line); margin-bottom: 1.25rem; }
.faq__list { display: grid; gap: .6rem; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--paper-sunk); }
.faq__sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; background: var(--brass);
  transition: transform .25s var(--ease);
}
.faq__sign::before { inset: 6px 0 auto; height: 1.5px; }
.faq__sign::after { inset: 0 6px auto; width: 1.5px; height: 14px; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }
.faq__answer > * + * { margin-top: .85em; }

/* CTA band */
.cta-band {
  width: min(100% - 2.5rem, var(--wrap));
  margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 88% 0%, color-mix(in srgb, var(--brass) 18%, transparent), transparent 70%),
    var(--ink);
  color: var(--paper);
  display: grid; gap: 1.5rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; gap: 2.5rem; } }
@media (min-width: 768px) { .cta-band { width: min(100% - 4rem, var(--wrap)); } }
.cta-band h2 { color: var(--paper); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); margin-bottom: .5rem; }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 1rem; max-width: 54ch; }
.cta-band .btn--primary { background: var(--brass); color: #1a1206; }
.cta-band .btn--primary:hover { background: var(--brass-lift); color: #1a1206; }

/* Related */
.related { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.related .section-title { margin-bottom: 1.5rem; }

/* ------------------------------------------------------------- lead form */

.quote-section {
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0;
  background: var(--paper-sunk);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.lf-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: var(--shadow-xl);
  position: relative;
}
.lf-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brass) 7%, transparent), transparent 42%);
}
.lf-card__head { position: relative; margin-bottom: 1.5rem; }
.lf-card__title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); margin-bottom: .45rem; }
.lf-card__sub { font-size: .9375rem; color: var(--ink-3); line-height: 1.5; }

.lf { position: relative; }
.lf__progress {
  height: 3px; background: var(--line); border-radius: var(--r-pill);
  overflow: hidden; margin-bottom: 1.5rem;
}
.lf__progress-bar {
  display: block; height: 100%; background: var(--brass);
  border-radius: inherit; transition: width .4s var(--ease-out);
}

.lf__step { display: grid; gap: 1.1rem; animation: lf-in .32s var(--ease-out); }
.lf__step[hidden] { display: none; }
@keyframes lf-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.lf__fieldset { border: 0; padding: 0; margin: 0; }
.lf__legend {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--ink); padding: 0; margin-bottom: .3rem;
}
.lf__hint { font-size: .8438rem; color: var(--ink-4); margin-bottom: .9rem; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
@media (max-width: 420px) { .chips { grid-template-columns: 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip__body {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .85rem; height: 100%;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; color: var(--ink-2); line-height: 1.3;
  background: var(--paper);
  transition: border-color .18s, background-color .18s, color .18s, transform .18s var(--ease);
}
.chip__icon { color: var(--ink-4); transition: color .18s; width: 1.15rem; height: 1.15rem; }
.chip:hover .chip__body { border-color: var(--brass); transform: translateY(-1px); }
.chip input:checked + .chip__body {
  border-color: var(--brass); background: var(--brass-tint);
  color: var(--brass-deep); font-weight: 600;
}
.chip input:checked + .chip__body .chip__icon { color: var(--brass); }
.chip input:focus-visible + .chip__body { outline: 2px solid var(--brass); outline-offset: 2px; }

.lf__row { display: grid; gap: 1.1rem; }
.lf__row--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .lf__row--2 { grid-template-columns: 1fr 1fr; } }

.lf__field { display: grid; gap: .35rem; }
.lf__field label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.lf__opt { font-weight: 400; color: var(--ink-4); }
.lf__field input {
  width: 100%; padding: .78rem .95rem;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); font-size: 1rem;
  transition: border-color .18s, box-shadow .18s;
}
.lf__field input::placeholder { color: var(--ink-4); opacity: .75; }
.lf__field input:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent);
}
.lf__field input[aria-invalid="true"] { border-color: var(--bad); }
.lf__error { font-size: .8125rem; color: var(--bad); font-weight: 500; }
.lf__error[hidden] { display: none; }

.lf__consent {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .78rem; line-height: 1.5; color: var(--ink-3);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .85rem 1rem; cursor: pointer;
}
.lf__consent input {
  flex: none; margin-top: .12rem; width: 1.05rem; height: 1.05rem;
  accent-color: var(--brass); cursor: pointer;
}
.lf__consent a { color: var(--ink-2); }

.lf__reassure {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .8125rem; color: var(--ink-4);
}
.lf__reassure .icon { width: .95em; height: .95em; color: var(--brass); }

.lf__back {
  justify-self: start; font-size: .8125rem; font-weight: 600; color: var(--ink-3);
  padding: .2rem .1rem;
}
.lf__back:hover { color: var(--brass-deep); }

.lf__done, .lf__failed { text-align: center; padding: 1.5rem .5rem; animation: lf-in .4s var(--ease-out); }
.lf__done[hidden], .lf__failed[hidden] { display: none; }
.lf__done-mark {
  width: 3.25rem; height: 3.25rem; margin: 0 auto 1.1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--good-soft); color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
}
.lf__done-mark .icon { width: 1.6rem; height: 1.6rem; stroke-width: 2.2; }
.lf__done h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.lf__done p { font-size: .9688rem; color: var(--ink-3); max-width: 42ch; margin-inline: auto; }
.lf__done-next { margin-top: 1rem; font-size: .875rem; }
.lf__failed p { color: var(--bad); font-size: .9375rem; }

.lf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 1020px) { .sticky-cta { display: none; } }

/* Exit-intent modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,17,15,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(100%, 560px); max-height: 90vh; overflow-y: auto;
  transform: translateY(14px) scale(.98); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3);
}
.modal__close:hover { background: var(--paper-3); color: var(--ink); }
.modal__close svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------- hub */

.hub__head {
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: linear-gradient(to bottom, var(--paper-sunk), var(--paper));
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.hub__title { max-width: 20ch; margin-bottom: .9rem; }
.hub__standfirst { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-3); max-width: 64ch; line-height: 1.55; }
.hub__group { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hub__group-head { margin-bottom: 1.5rem; }

/* ------------------------------------------------------------ city hero */

.city-hero {
  position: relative;
  padding: clamp(2rem, 1rem + 4vw, 4rem) 0 clamp(2.5rem, 1.5rem + 4vw, 4rem);
  overflow: hidden;
}
.city-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 420px at 8% -10%, var(--brass-soft), transparent 62%),
    radial-gradient(700px 380px at 95% 10%, var(--sage-soft), transparent 60%);
}
.city-hero__inner { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.25rem); align-items: start; }
@media (min-width: 980px) { .city-hero__inner { grid-template-columns: 1fr minmax(400px, 460px); } }
.city-hero__title { margin-bottom: 1rem; }
.city-hero__standfirst { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--ink-3); max-width: 54ch; line-height: 1.6; }
@media (min-width: 980px) { .article__body--city { padding-top: 0; } }

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 0;
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 68%, transparent);
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
  position: relative; z-index: 1;
}
.footer__inner {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .footer__inner { width: min(100% - 4rem, var(--wrap)); } }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.15fr 2.6fr; gap: 4rem; } }

.brand--footer { color: var(--paper); margin-bottom: 1rem; }
.brand--footer .brand__text { color: var(--paper); }
.brand--footer .brand__mark { color: var(--brass); }
.footer__blurb { font-size: .9375rem; line-height: 1.6; max-width: 34ch; }

.footer__cols { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__title {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer__links a {
  font-size: .9062rem; color: color-mix(in srgb, var(--paper) 70%, transparent);
  text-decoration: none; transition: color .18s;
}
.footer__links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }

.footer__legal {
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding: 2rem 0 2.5rem;
}
.footer__legal > * {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  font-size: .8125rem; line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
  max-width: min(100% - 2.5rem, 90ch);
}
@media (min-width: 768px) { .footer__legal > * { width: min(100% - 4rem, var(--wrap)); } }
.footer__legal > * + * { margin-top: .9rem; }
.footer__legal strong { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.footer__legal a { color: var(--brass); }
.footer__copy { font-size: .78rem; }

/* ------------------------------------------------------------ animation */

/* Reveal states only apply once JS is confirmed running, so content is never
   invisible to a reader (or crawler) whose scripts failed to load. */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .4s; }

/* Reading progress */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 150;
  background: var(--brass); width: 0; transition: width .1s linear;
}

/* Hero SVG idle animation */
@keyframes pulse-node {
  0%, 100% { opacity: .35; r: 3; }
  50%      { opacity: 1; r: 5; }
}
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__art .node { animation: pulse-node 3.2s ease-in-out infinite; transform-origin: center; }
.hero__art .node:nth-of-type(2) { animation-delay: .5s; }
.hero__art .node:nth-of-type(3) { animation-delay: 1s; }
.hero__art .node:nth-of-type(4) { animation-delay: 1.5s; }
.hero__art .node:nth-of-type(5) { animation-delay: 2s; }
.hero__art .flow { stroke-dasharray: 4 8; animation: dash-flow 1.6s linear infinite; }
.hero__art .floater { animation: float-soft 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------- print */

@media print {
  .site-header, .footer, .cta-band, .quote-section, .sticky-cta,
  .article__rail, .drawer, .modal, .rail-cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ------------------------------------------------------- roundup picks */

.pick {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.65rem;
  background: var(--paper);
  margin-top: 1.25rem;
}
.pick__head {
  display: grid; gap: 1rem; align-items: center;
  padding-bottom: 1.15rem; margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) { .pick__head { grid-template-columns: auto 1fr; gap: 1.75rem; } }
.pick__why { font-size: .9688rem; color: var(--ink-2); line-height: 1.55; margin: 0; }
.pick__why strong { color: var(--ink); }
.pick__link { margin-top: 1.15rem; font-weight: 600; font-size: .9375rem; }
.pick__link a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.pick__link a:hover { text-decoration: underline; text-underline-offset: .2em; }
.pick__link .icon { width: .95em; height: .95em; transition: transform .2s var(--ease); }
.pick__link a:hover .icon { transform: translateX(3px); }
.prose .pick > * + * { margin-top: 1.15em; }
.prose .pick .proscons { margin: 1.25em 0 0; }

/* Contact / about supporting blocks */
.info-grid { display: grid; gap: 1.25rem; margin: 2em 0; }
@media (min-width: 700px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem; background: var(--paper-sunk);
}
.info-card h3 { font-size: 1.0625rem; margin-bottom: .45rem; }
.info-card p { font-size: .9375rem; color: var(--ink-3); margin: 0; }

/* Glossary */
.glossary { display: grid; gap: 0; margin: 2em 0; }
.glossary__item {
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  display: grid; gap: .35rem;
}
@media (min-width: 720px) { .glossary__item { grid-template-columns: 13rem 1fr; gap: 1.5rem; } }
.glossary__term {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.glossary__def { font-size: .9688rem; color: var(--ink-2); line-height: 1.6; }
.glossary__def p + p { margin-top: .6em; }

/* Alphabet jump nav */
.alpha-nav {
  display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5em 0 2em;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper-sunk);
}
.alpha-nav a {
  display: grid; place-items: center; min-width: 2rem; height: 2rem;
  border-radius: var(--r-sm); font-size: .875rem; font-weight: 600;
  text-decoration: none; color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--line);
}
.alpha-nav a:hover { background: var(--brass-tint); border-color: var(--brass); color: var(--brass-deep); }
