/* Site stylesheet v2 — catalog surfaces (home, gifts, tools, about).
 * Neutral editorial register: near-white chrome, near-black ink, imagery
 * carries the color, one accent reserved for links and highlights.
 * The capture page keeps its own slim stylesheet (styles.css).
 * Token discipline: ALL color lives in the two token blocks below —
 * no hex literals past them. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2");
}

/* ── tokens ─────────────────────────────────────────────────────────── */

/* Light only: no dark palette and no toggle. One palette means the
   imagery, which carries the color here, is judged against a single
   ground. */
:root {
  --paper: #FAF9F7;
  --paper-2: #F3F1ED;
  --surface: #FFFFFF;
  --tile: #F0EDE8;

  --ink: #141210;
  --ink-soft: #55524B;
  --ink-faint: #6E6961;
  --line: #E8E5DF;
  --line-2: #D5D1C9;

  --accent: #9C4B21;
  --accent-deep: #7F3D1B;
  --accent-soft: #F3E8DF;

  --band: #171412;
  --on-band: #F5F3EF;
  --on-ink: #FAF9F7;

  --r-s: 4px;
  --r-m: 10px;
  --r-l: 18px;
  --shadow-1: 0 1px 2px rgba(20, 18, 16, 0.05);
  --shadow-2: 0 8px 24px rgba(20, 18, 16, 0.08);
  --shadow-3: 0 20px 48px rgba(20, 18, 16, 0.12);
  --ring: 0 0 0 3px rgba(156, 75, 33, 0.35);

  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 42rem;
  --wrap: 82rem;
}

/* ── base ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent-soft); }

img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: var(--r-s); z-index: 200;
}
.skip:focus-visible { left: 1rem; top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring);
}

.kicker, .eyebrow {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

/* ── buttons ────────────────────────────────────────────────────────── */

.btn-pill {
  display: inline-block;
  background: var(--ink); color: var(--on-ink);
  border: 0; border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}
.btn-pill:hover { opacity: 0.82; color: var(--on-ink); transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.02rem; }
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink);
  padding: 0.6rem 1.35rem;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }

/* header CTA: the one dark, high-contrast target in the chrome */
.btn-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--on-ink);
  padding: 0.6rem 1.05rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.18s ease;
}
.btn-cta:hover { background: var(--accent-deep); color: var(--on-ink); }
.btn-cta:focus-visible { box-shadow: var(--ring); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

/* ── header + mega-nav ──────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.site-header .bar {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.mk-a { fill: var(--ink); }
.mk-b { fill: var(--paper); }
.wordmark {
  font-family: var(--display);
  font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.site-nav > a, .nav-drop > button {
  display: inline-block;
  text-decoration: none; color: var(--ink);
  font: inherit; font-size: 0.97rem; font-weight: 550;
  background: none; border: 0; cursor: pointer;
  padding: 0.5rem 0.8rem; border-radius: 999px;
}
.site-nav > a:hover, .nav-drop > button:hover { background: var(--paper-2); color: var(--ink); }
.site-nav .btn-pill { margin-left: 0.5rem; color: var(--on-ink); }
.site-nav .btn-pill:hover { color: var(--on-ink); }

.nav-drop { position: static; }
.nav-drop > button::after {
  content: ""; display: inline-block; margin-left: 0.45rem;
  width: 0.42em; height: 0.42em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.12em);
}
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: none;
}
.nav-drop.open .mega { display: block; }
.mega .inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2rem 1.5rem 2.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 2rem;
}
.mega h3 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.9rem;
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin-bottom: 0.55rem; }
.mega a { text-decoration: none; color: var(--ink-soft); font-size: 0.97rem; }
.mega a:hover { color: var(--ink); text-decoration: underline; }
.mega .feature-tile {
  display: block; text-decoration: none;
  border-radius: var(--r-m); overflow: hidden;
  background: var(--tile);
}
.mega .feature-tile .media { aspect-ratio: 4 / 3; background: var(--tile); display: grid; place-items: center; }
.mega .feature-tile .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega .feature-tile .label {
  display: block; padding: 0.8rem 1rem;
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
  background: var(--surface);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: var(--shadow-2);
    max-height: calc(100svh - 60px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-drop > button { padding: 0.7rem 0.25rem; width: 100%; text-align: left; border-radius: 0; }
  .site-nav .btn-pill { margin: 0.75rem 0 0; text-align: center; }
  .nav-drop .mega { position: static; box-shadow: none; border: 0; display: none; }
  .nav-drop.open .mega { display: block; }
  .mega .inner { grid-template-columns: 1fr 1fr; padding: 0.5rem 0 0.75rem; gap: 1.25rem; }
  .mega .feature-tile { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}

/* ── hero (imagery-led) ─────────────────────────────────────────────── */

.hero-band { position: relative; }
.hero-band .media {
  position: relative;
  width: 100%;
  height: clamp(25rem, 42vw, 36rem);
  background: var(--tile);
  overflow: hidden;
}
.hero-band .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* legibility scrim under the overlaid copy — fades with the theme */
.hero-band .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--paper) 82%, transparent) 0%,
    color-mix(in srgb, var(--paper) 40%, transparent) 34%,
    transparent 58%);
}
.hero-band .copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 0 2rem;
}
.hero-band .copy h1 { max-width: 12em; }
.hero-band .copy .lede {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 34rem; margin-bottom: 1.25rem;
}
.hero-band .trust-line { margin-top: 0.9rem; }

/* instant category access — the hero's primary feature: a symmetric
   frosted-glass grid, categories first, the two actions closing it */
.hero-quick {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 54rem;
}
.hero-quick a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 38%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent);
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  transition: background 140ms ease, border-color 140ms ease;
}
.hero-quick a:hover {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--ink);
}
.hero-quick .more {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--on-ink);
  border-color: transparent;
}
.hero-quick .more:hover { background: var(--ink); color: var(--on-ink); }

@media (max-width: 960px) {
  .hero-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-band .copy { position: static; padding: 1.75rem 0 0.5rem; }
  .hero-band .media { height: clamp(15rem, 55vw, 24rem); }
  .hero-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-quick a { background: var(--paper-2); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-quick .more { background: var(--ink); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.trust-line { margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--ink-faint); }

/* text-only hero fallback (until the hero image lands) */
.hero-plain { padding: 4.5rem 0 3rem; }
.hero-plain .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; margin-bottom: 1.5rem; }

/* ── sections ───────────────────────────────────────────────────────── */

.section { padding: 3.5rem 0; }
.section-tint { background: var(--paper-2); }
.section-head { margin: 0 0 1.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 40rem; }
.section-head .count { font-size: 0.9rem; color: var(--ink-faint); white-space: nowrap; }
.section-head-center { max-width: var(--measure); margin: 0 auto 2rem; text-align: center; }
.section-head-center p { color: var(--ink-soft); }

/* ── product tiles (the catalog card) ───────────────────────────────── */

.tile-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1rem;
}
.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .tile-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .tile-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .tile-grid.cols-4 { grid-template-columns: 1fr; } }
.related-band { border-top: 1px solid var(--line); margin-top: 1rem; }
.related-band .section-head p { margin: 0; }
.related-band .section-head a { color: var(--ink-soft); }
@media (max-width: 1080px) { .tile-grid, .tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .tile-grid, .tile-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .tile-grid, .tile-grid.cols-3 { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex; flex-direction: column;
}
.tile-media {
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border-radius: var(--r-s);
  display: grid; place-items: center;
  overflow: hidden;
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms ease;
}
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-media .ph { width: 34%; opacity: 0.3; color: var(--ink-faint); }
.tile-media.wide { aspect-ratio: 4 / 3; }
.tile-body { padding: 0.85rem 0.1rem 0; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.tile-name { font-family: var(--sans); font-weight: 650; font-size: 0.99rem; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.tile-name a { text-decoration: none; color: inherit; }
.tile-name a::after { content: ""; position: absolute; inset: 0; }
.tile-name a:hover { color: var(--ink-soft); }
.tile-why { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.tile-meta { margin-top: auto; padding-top: 0.5rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps > div { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.steps .kicker { color: var(--ink); margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.ours { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }

/* ── editorial band (feature / own products) ────────────────────────── */

.editorial-band { background: var(--paper-2); padding: 3.25rem 0; }
.editorial-band .inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: center;
}
.editorial-band .media {
  aspect-ratio: 4 / 3;
  background: var(--tile);
  border-radius: var(--r-l);
  overflow: hidden;
  display: grid; place-items: center;
}
.editorial-band .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editorial-band .media .ph { width: 30%; opacity: 0.3; color: var(--ink-faint); }
.editorial-band .items { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.editorial-band .item {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 1rem 1.2rem;
}
.editorial-band .item h3 { font-size: 1.03rem; margin-bottom: 0.2em; }
.editorial-band .item p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.editorial-band .item .meta { display: block; margin-top: 0.45rem; font-size: 0.84rem; color: var(--ink-faint); }
@media (max-width: 860px) { .editorial-band .inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── filter bar (hub catalog) ───────────────────────────────────────── */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding: 0.25rem 0 1.5rem;
}
.fchip {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-soft);
  cursor: pointer;
}
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.filter-count { margin-left: auto; font-size: 0.9rem; color: var(--ink-faint); }
.tile.hidden-by-filter { display: none; }

/* ── page head + breadcrumbs ────────────────────────────────────────── */

.page-head { padding: 2.75rem 0 1.25rem; }
.page-head .inner { max-width: var(--measure); margin: 0; }
.page-head.wide .inner { max-width: none; }
.page-head .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 40rem; }
.breadcrumbs { margin: 0 0 1.4rem; font-size: 0.86rem; color: var(--ink-faint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 0.4rem; color: var(--line-2); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* sticky in-page section chips */
.page-chips {
  position: sticky; top: 3.4rem; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  overflow-x: auto;
}
.page-chips .row { display: flex; gap: 0.5rem; }
.page-chips a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.page-chips a:hover { color: var(--ink); border-color: var(--ink); }

/* ── prose ──────────────────────────────────────────────────────────── */

.prose { max-width: var(--measure); margin: 0; }
.prose .lede { font-size: 1.12rem; }
.prose .lede::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; }

.disclosure {
  font-size: 0.85rem; color: var(--ink-faint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin: 0 0 1.5rem;
}

/* ── group heads within pick sections ───────────────────────────────── */

.pick-group { padding: 2.5rem 0 0; }
.pick-group .group-head { margin: 0 0 1.25rem; }
.pick-group .group-head h2 { margin-bottom: 0.25em; }
.pick-group .group-head p { color: var(--ink-soft); margin: 0; max-width: 44rem; }

/* ── pick list, the editorial row layout ─────────────────────────────
   Recommendations are described, not photographed: rows carry the reading
   weight so a page can hold twelve of them without turning into a wall of
   look-alike tiles. Mobile-first, single column; the name/reason split
   only appears once there is width for it. */

.section.tight { padding: 2.25rem 0 0; }

/* ── cover band + closing notes (picks first) ────────────────────────
   The page opens on its photograph and then goes straight to the catalog.
   The band is deliberately short so the first products are near the fold on
   a phone; the editorial notes sit at the end of the page. */
.cover-band { padding: 1rem 0 0; }
.cover-band .media {
  background: var(--tile); border-radius: var(--r-m); overflow: hidden;
  height: clamp(11rem, 30vw, 20rem);
}
.cover-band .media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.notes { border-top: 1px solid var(--line); }
.notes .prose { max-width: var(--measure); }
.notes h2 { margin: 0 0 0.75em; }
.notes p { color: var(--ink-soft); }

/* ── pick list, the editorial row layout ─────────────────────────────
   Recommendations are described, not photographed: rows carry the reading
   weight so a page can hold twelve of them without turning into a wall of
   look-alike tiles. Mobile-first, single column; the name/reason split
   only appears once there is width for it. */

.section.tight { padding: 2.25rem 0 0; }

/* ── page lead: the intro and the page's own cover, side by side ─────
   Mobile gets the picture first at full width, because on a phone the
   photograph is the fastest way to know what a page is; the reading column
   only sits beside it once there is room for both. */
.page-lead { padding: 1.25rem 0 1.5rem; }
.lead-grid { display: flex; flex-direction: column-reverse; gap: 1.5rem; }
.lead-media {
  background: var(--tile); border-radius: var(--r-m); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .lead-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 3rem; align-items: center;
  }
  .page-lead .prose { max-width: 34rem; }
}

.pick-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.prow { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.pnum {
  display: block; margin: 0 0 0.3rem;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.pname {
  font-family: var(--display); font-weight: 600;
  font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.005em;
  margin: 0 0 0.3rem;
}
.pname a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.pname a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.parrow {
  display: inline-block; margin-left: 0.4em; color: var(--ink-faint);
  border: 0; transition: transform 0.18s ease, color 0.18s ease;
}
.pname a:hover .parrow { transform: translateX(3px); color: var(--accent); }
.pwhy { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.prow .chips { margin-top: 0.55rem; }

@media (min-width: 900px) {
  .prow {
    display: grid; grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 0.75rem; align-items: start; padding: 1.3rem 0;
  }
  .pnum { margin: 0.35rem 0 0; }
  .pbody {
    display: grid; column-gap: 2.5rem;
    grid-template-columns: minmax(13rem, 20rem) minmax(0, 1fr);
    align-items: start;
  }
  .pname { margin: 0; font-size: 1.16rem; }
  .pwhy, .prow .chips { grid-column: 2; }
  .prow .chips { margin-top: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .parrow { transition: none; }
}

/* ── tool strip ─────────────────────────────────────────────────────── */

.tool-strip { margin: 2.25rem 0 0; }
.tool-card {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 1.25rem 1.5rem;
  position: relative;
}
.tool-card .mark {
  flex: none; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink);
  border-radius: var(--r-s);
}
.tool-card .mark svg { width: 1.3rem; height: 1.3rem; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.tool-card a { text-decoration: none; }
.tool-card a::after { content: ""; position: absolute; inset: 0; }
.tool-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* ── related ────────────────────────────────────────────────────────── */

.related ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.85rem 1.1rem;
  text-decoration: none; color: var(--ink);
  font-weight: 550; font-size: 0.95rem;
}
.related a:hover { border-color: var(--ink); }
@media (max-width: 700px) { .related ul { grid-template-columns: 1fr; } }

/* ── capture band ───────────────────────────────────────────────────── */

.capture-band { padding: 4rem 0; background: var(--band); color: var(--on-band); }
.capture-band .inner { max-width: 30rem; margin: 0 auto; }
.capture-band h2 { color: var(--on-band); text-align: center; }
.capture-band .sub {
  color: color-mix(in srgb, var(--on-band) 75%, transparent);
  text-align: center; margin-bottom: 2rem;
}
.capture-band form { margin: 0; }
.capture-band .field { margin: 0 0 1.1rem; }
.capture-band label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 600; }
.capture-band input, .capture-band select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--on-band) 25%, transparent);
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--on-band) 6%, transparent);
  color: var(--on-band);
  font: inherit;
  accent-color: var(--accent);
}
.capture-band select { appearance: none; -webkit-appearance: none; }
.capture-band .md-row { display: flex; gap: 0.6rem; }
.capture-band .md-row select { flex: 1; min-width: 0; }
.capture-band .md-row select#day { flex: 0 0 6rem; }
.capture-band option { color: var(--ink); background: var(--surface); }
.capture-band button[type="submit"] {
  display: block; width: 100%;
  margin: 1.4rem 0 0; padding: 0.95rem 1rem;
  border: 0; border-radius: 999px;
  background: var(--on-band); color: var(--band);
  font: inherit; font-weight: 650; cursor: pointer;
  transition: opacity 120ms ease;
}
.capture-band button[type="submit"]:hover { opacity: 0.85; }
.capture-band button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.capture-band .reassure { margin: 0.8rem 0 0; font-size: 0.86rem; color: color-mix(in srgb, var(--on-band) 65%, transparent); }
.capture-band .formerr {
  margin: 1rem 0 0; padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--on-band) 30%, transparent);
  border-radius: var(--r-s); font-size: 0.93rem;
}
.capture-band .success {
  margin: 1.5rem 0 0; padding: 1.2rem 1.3rem;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--on-band) 7%, transparent);
  font-weight: 550;
}
.capture-band .hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: color-mix(in srgb, var(--on-band) 58%, transparent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
#ts-slot { margin-top: 1rem; }
#ts-slot:empty { margin-top: 0; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 3.5rem 0 2rem;
  font-size: 0.94rem;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .brand-col p { color: var(--ink-soft); max-width: 19rem; }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
/* in-text links never rely on color alone (WCAG 1.4.1) */
.legal a, .prose a, .reassure a, .disclosure a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer .legal {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem; padding-top: 1.25rem;
  color: var(--ink-faint); font-size: 0.85rem;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (max-width: 500px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ── tools (interactive pages) ──────────────────────────────────────── */

.tool-shell { max-width: 40rem; margin: 0; }
.tool-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 1.5rem 1.6rem;
}
.tool-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tool-form label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 600; }
.tool-form input, .tool-form select {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink);
  font: inherit; accent-color: var(--accent);
}
.tool-form .actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
@media (max-width: 560px) { .tool-form .row { grid-template-columns: 1fr; } }

.tool-result { margin-top: 1.75rem; }
.tool-result[hidden] { display: none; }
.result-head {
  background: var(--paper-2);
  border-radius: var(--r-m);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
}
.result-head .big {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 650; line-height: 1;
  letter-spacing: -0.02em;
}
.result-head p { margin: 0.5rem 0 0; color: var(--ink-soft); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ladder li {
  display: flex; gap: 1rem; align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.95rem 1.15rem;
}
.ladder .when { flex: none; min-width: 8rem; font-family: var(--display); font-weight: 650; }
.ladder .what { color: var(--ink-soft); font-size: 0.95rem; }
.ladder li.past { opacity: 0.5; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.facts .k {
  flex: none; min-width: 9rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.facts .v { color: var(--ink); font-weight: 550; }
.tool-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--ink-faint); }

/* ── motion & a11y ──────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 450ms ease, transform 450ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.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;
}

@media print {
  .site-header, .site-footer, .capture-band, .cta-row, .nav-toggle,
  .page-chips, .filter-bar { display: none; }
  body { background: none; color: black; }
}
