/* 3|4|5 design system. One file governs every page.
   Rules: one serif (brand + message), one sans (everything else),
   three text sizes for UI (label 11px, body 15px, small 13px), no pills, no shadows. */

:root {
  --bg: #f7f6f2;
  --tile: #e9e7e1;
  --ink: #171717;
  --muted: #7a7873;
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.28);
  --white: #ffffff;
  --tile-2: #e9e7e2;
  --accent: #8a6a4e;          /* warm brown: the latte and walnut pieces */
  --accent-soft: #c9b39b;
  --dark: #2b221c;            /* espresso instead of black for the purpose band */
  --dark-ink: #f1ebe4;
  --dark-muted: #b39c86;
  --max: 1360px;
  --gutter: 28px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-label: 11px;
  --ls-label: 0.18em;
  --fs-small: 13px;
  --fs-body: 15px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden; position: relative; max-width: 100vw;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin: 0 auto; }

/* ---------- type ---------- */
.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
}
.label.muted { color: var(--muted); }
.label.accent { color: var(--accent); }
.serif { font-family: var(--serif); font-weight: 400; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lines { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; }
.lines strong { font-weight: 400; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 60px;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav.right { justify-content: flex-end; }
.nav a, .nav button { color: var(--ink); opacity: 0.72; transition: opacity 0.2s var(--ease); }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { opacity: 1; }
.menu-btn, .site-menu { display: none; }
.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* balances the trailing letter-spacing so it centres */
  white-space: nowrap;
}
.bag-count { display: inline-block; min-width: 1.2em; text-align: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.link-u { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color 0.2s; }
.link-u:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.rule { height: 1px; background: var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }

/* ---------- hero (above the fold) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: flex; align-items: center; padding: 64px var(--gutter); }
.hero-copy-inner { max-width: 520px; margin: 0 auto; }
.hero .display { margin: 0 0 26px; }
.hero-lines { display: grid; gap: 4px; margin: 0 0 24px; }
.hero-sub { color: var(--muted); max-width: 400px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative; background: var(--tile); display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 60vh;
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.hero-caption { position: absolute; left: var(--gutter); bottom: 22px; color: var(--accent); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.tile { display: block; }
/* all tiles share one tone; the alternation read as inconsistent */
.tile-visual img { transform: scale(var(--zoom, 1)); }
.tile:hover .tile-visual img:not(.alt) { transform: scale(calc(var(--zoom, 1) * 1.02)); }
.tile.has-alt:hover .tile-visual img:not(.alt) { opacity: 0; }
.tile-visual img { transition: opacity 0.45s var(--ease), transform 0.8s var(--ease); }
.tile-visual {
  position: relative; background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden;
}
.tile-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%;
  transition: opacity 0.35s var(--ease);
}
.tile-visual img.alt { opacity: 0; }
.tile:hover .tile-visual img.alt { opacity: 1; }
.tile-visual.cover img { padding: 0; object-fit: cover; }
.tile-visual.flat img { padding: 0; object-fit: contain; }
.tile-meta { padding: 12px 0 0; display: grid; gap: 3px; }
.tile-name { font-size: var(--fs-small); }
.tile-sub { display: flex; justify-content: space-between; gap: 12px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(23,23,23,0.18); }

/* ---------- purpose band (the chapter change) ---------- */
.purpose { background: var(--dark); color: var(--dark-ink); padding: 120px 0; }
.purpose-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.purpose-eyebrow { color: var(--accent-soft); margin-bottom: 18px; }
.purpose-body { display: grid; gap: 18px; max-width: 560px; font-size: 17px; line-height: 1.75; color: var(--dark-ink); }
.purpose-body p { margin: 0; }
.purpose-sign { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; margin-top: 8px !important; }
.purpose-link { color: var(--dark-muted); border-color: rgba(241,239,234,0.3); width: max-content; margin-top: 10px; }
.purpose-link:hover { color: var(--dark-ink); border-color: var(--dark-ink); }

/* ---------- gift note ---------- */
.giftnote { text-align: center; padding: 110px 0; }
.giftnote .lines { display: grid; gap: 6px; margin: 0 0 22px; }
.giftnote p.sub { max-width: 560px; margin: 0 auto; color: var(--muted); }

/* ---------- story page ---------- */
.essay { padding: 0 0 110px; }
.essay-col { max-width: 640px; margin: 0 auto; font-family: var(--serif); font-size: 19px; line-height: 1.8; }
.essay-col h2 { margin: 0 0 22px; }
.essay-col .signoff { color: var(--muted); font-size: 17px; }
.essay-break { padding: 72px 0; margin: 40px 0; border-top: 1px solid var(--accent-soft); border-bottom: 1px solid var(--accent-soft); text-align: center; }
.essay-break .lines { display: grid; gap: 4px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--accent-soft); margin: 8px 0 !important; }
.stat + .stat { border-bottom: 1px solid var(--accent-soft); }
.stat-num { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.stat-text { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.essay-sources { max-width: 640px; margin: 48px auto 0; }
.essay-cta { display: flex; justify-content: center; margin-top: 56px; }
.story-text.prose { font-family: var(--serif); font-size: 19px; line-height: 1.8; }
.story-text .signoff { color: var(--muted); font-size: 17px; }
.story-text .label { font-family: var(--sans); }

/* ---------- catalog by category ---------- */
.section.shop { padding-bottom: 0; }
.shop-head { margin-bottom: 0; }
.cat { padding: 48px 0 48px; }
.cat:first-child { padding-top: 36px; }
.cat:first-child .section-head { border-top: 0; padding-top: 0; }
.cat:last-child { padding-bottom: 84px; }
.cat .section-head { border-top: 1px solid var(--line); padding-top: 22px; }
.cat-count { color: var(--muted); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.filters button { color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 40px 0 84px; align-items: start; }
.pdp-gallery { display: grid; gap: 12px; position: sticky; top: 80px; min-width: 0; }
.pdp-main { background: var(--tile); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transform: scale(var(--zoom, 1)); }
.pdp-main.cover img { padding: 0; object-fit: cover; }
.pdp-main.flat img { padding: 0; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { flex: 0 1 72px; min-width: 0; aspect-ratio: 1 / 1; background: var(--tile); border: 1px solid transparent; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pdp-info { display: grid; gap: 26px; padding-top: 6px; }
.pdp-title { display: grid; gap: 6px; }
.pdp-price { font-size: var(--fs-small); }
.opt { display: grid; gap: 10px; }
.opt-head { display: flex; justify-content: space-between; }
.color-list { display: flex; gap: 10px; flex-wrap: wrap; }
.color-list button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(23,23,23,0.18); position: relative; }
.color-list button[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink);
}
.size-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-list button {
  min-width: 52px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong);
  font-size: var(--fs-small); transition: border-color 0.2s var(--ease);
}
.size-list button:hover { border-color: var(--ink); }
.size-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pdp-actions { display: grid; gap: 10px; }
.pdp-hint { color: var(--muted); font-size: var(--fs-small); }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--sans); font-size: 16px; color: var(--muted); }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 0 18px; color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.acc ul { margin: 0; padding-left: 16px; }
.acc .acc-body p { margin: 0 0 0.8em; }
.acc .acc-body p:last-child { margin: 0; }

/* ---------- pdp good to know ---------- */
.know { display: grid; gap: 8px; padding: 18px 0 0; }
.pdp-ledger { display: grid; padding: 6px 0 14px; font-variant-numeric: tabular-nums; }
.pdp-ledger .pl-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pdp-ledger .pl-gives { color: var(--accent); border-bottom: 0; }
.know li { font-size: var(--fs-small); color: var(--muted); list-style: none; padding-left: 14px; position: relative; }
.know li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 1px; background: var(--muted); }

/* ---------- bag ---------- */
.bag-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; padding: 40px 0 84px; align-items: start; }
.bag-lines { border-top: 1px solid var(--line); }
.bag-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bag-style { margin-top: 4px; }
.bag-thumb { background: var(--tile); aspect-ratio: 1 / 1; overflow: hidden; }
.bag-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.bag-thumb.cover img { padding: 0; object-fit: cover; }
.bag-thumb.flat img { padding: 0; }
.bag-info { display: grid; gap: 4px; }
.qty { display: inline-flex; justify-self: start; border: 1px solid var(--line-strong); }
.qty button { width: 32px; height: 32px; }
.qty span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-small); border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.bag-right { display: grid; gap: 6px; justify-items: end; text-align: right; }
.bag-summary { position: sticky; top: 80px; display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; font-size: var(--fs-small); }
.sum-row.total { padding-top: 12px; border-top: 1px solid var(--line); }
.empty { padding: 80px 0; text-align: center; display: grid; gap: 18px; justify-items: center; }

/* ---------- thanks ---------- */
.thanks { max-width: 640px; margin: 0 auto; padding: 96px 0; display: grid; gap: 22px; text-align: center; justify-items: center; }
.thanks .lines { display: grid; gap: 4px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(23,23,23,0.42); }
.modal[open] { display: flex; }
.modal-box { background: var(--bg); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 32px; display: grid; gap: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-close { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.handoff-list { display: grid; gap: 10px; }
.handoff-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); font-size: var(--fs-small); }
.handoff-item .sub { color: var(--muted); }
.handoff-item .btn { min-height: 36px; padding: 0 14px; }
.handoff-item.done { border-color: var(--ink); }

/* ---------- home blocks ---------- */
.meaning { text-align: center; padding: 96px 0; }
.meaning .lines { display: grid; gap: 6px; margin: 0 0 22px; }
.meaning p.sub { max-width: 560px; margin: 0 auto; color: var(--muted); }
.quote { text-align: center; padding: 96px 0; }
.quote .display-sm { max-width: 820px; margin: 0 auto 16px; }
.quote p.sub { max-width: 560px; margin: 0 auto; color: var(--muted); }
.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.faq h3 { font-size: var(--fs-body); font-weight: 400; margin-bottom: 8px; }
.faq p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.closer { padding: 96px 0; text-align: center; display: grid; gap: 22px; justify-items: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row .nav { gap: 20px; flex-wrap: wrap; row-gap: 10px; }
.footer-row .nav a { white-space: nowrap; }
.footer-legal { margin-top: 22px; }
.nowrap { white-space: nowrap; }
/* ™ sits outside the wordmark's box so the mark itself stays centred */
.wordmark { position: relative; }
.wordmark .tm { position: absolute; left: 100%; top: 0.05em; margin-left: -0.2em; font-size: 0.42em; letter-spacing: 0; line-height: 1; }
@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  /* two even rows of three, centred, instead of a ragged 4 + 2 wrap */
  .footer-row .nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: center; gap: 14px 22px; }
  .footer-legal { text-align: center; }
}
/* an odd last link (partner with us) gets its own centered row instead of hanging in the first column */
@media (max-width: 640px) { .footer-row .nav a:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (max-width: 374px) {
  .footer-row .nav { grid-template-columns: repeat(2, auto); }
  .footer-row .nav a:last-child:nth-child(3n+1) { grid-column: auto; }
  .footer-row .nav a:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .hero-grid, .pdp, .bag-layout, .story-grid { grid-template-columns: 1fr; }
  .pdp-gallery, .bag-summary { position: static; }
  .faq { grid-template-columns: 1fr; gap: 22px; }
  .purpose-grid { grid-template-columns: 1fr; gap: 28px; }
  .purpose { padding: 72px 0; }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-copy { padding: 44px var(--gutter) 56px; }
  .cat { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { grid-template-columns: 1fr auto 1fr; min-height: 56px; }
  .nav { gap: 14px; }
  .nav.center { justify-content: center; }
  .nav a.hide-sm { display: none; }
  .menu-btn { display: inline-block; min-height: 44px; min-width: 44px; text-align: left; text-transform: inherit; letter-spacing: inherit; font-size: inherit; line-height: inherit; }
  .site-menu:not([hidden]) { display: block; border-top: 1px solid var(--line); }
  .site-menu .wrap { display: grid; padding: 6px 0 14px; }
  .site-menu a { color: var(--ink); opacity: 0.72; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-menu a:last-child { border-bottom: 0; }
  .site-menu a[aria-current="page"] { opacity: 1; }
  html.menu-open { overflow: hidden; }
  .wordmark { font-size: 16px; letter-spacing: 0.24em; }
  /* one piece at a time: each row becomes a swipe strip, one tile per screen */
  .grid, .grid.four {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid { scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; width: calc(100% + 2 * var(--gutter)); }
  .cat .wrap, .section .wrap { overflow: hidden; }
  .grid > .tile { flex: 0 0 calc(100% - 2 * var(--gutter) - 18px); scroll-snap-align: start; }
  .tile-meta { padding-top: 12px; }
  .section-head .cat-count::after { content: " · swipe"; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .hero-visual img { padding: 4% 6% 14%; }
  .section-head .label.muted { text-align: right; }
  .hero-copy-inner .display { font-size: clamp(44px, 14vw, 60px); }
  .purpose { padding: 56px 0; }
  .giftnote, .closer { padding: 64px 0; }
  .stats-band { margin: 40px auto; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .site-footer { padding-bottom: 80px; } /* room for the top button at the very bottom */
  .footer-legal .legal-sep { display: none; }
  .footer-legal .legal-rights { display: block; margin-top: 6px; }
  .section { padding: 56px 0; }
  .meaning, .quote, .closer { padding: 64px 0; }
  .bag-line { grid-template-columns: 72px 1fr; }
  .bag-right { grid-column: 1 / -1; justify-items: start; text-align: left; flex-direction: row; display: flex; justify-content: space-between; align-items: center; }
  .modal-box { padding: 22px; }
  .handoff-item { grid-template-columns: 1fr; }
}

/* product shots: let any white/light mockup background melt into the tile */
.tile-visual.blend img, .pdp-main.blend img { mix-blend-mode: darken; }


/* paint-chip colour fan: static on the grid (shows what exists), a picker on the product page */
.chips { display: inline-flex; align-items: center; }
.chip {
  display: inline-block; width: 14px; height: 20px; border-radius: 2px;
  border: 1px solid rgba(23,23,23,0.18); box-shadow: 0 0 0 1.5px var(--bg);
  margin-left: -6px; position: relative;
}
.chip:first-of-type { margin-left: 0; }
/* product page: chips spread out on every screen, each its own tap target (the grid keeps the fan) */
.color-list { gap: 8px; flex-wrap: wrap; }
.color-list button {
  width: 28px; height: 36px; border-radius: 3px; margin-left: 0;
  box-shadow: 0 0 0 2px var(--bg); transition: border-color 0.2s var(--ease);
}
.color-list button:hover { border-color: var(--ink); }
.color-list button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.color-list button[aria-pressed="true"]::after { display: none; }
/* phones: eleven hoodie colors fit on one row */
@media (max-width: 420px) { .color-list { gap: 6px; } .color-list button { width: 26px; } }
/* style row: same box as the size buttons, the mark set in the brand serif */
.style-list button { width: auto; min-width: 0; padding: 0 16px; font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tile-sub .tile-left { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- story page ---------- */
.story-hero { background: var(--dark); color: var(--dark-ink); padding: 80px 0 64px; overflow: hidden; }
.story-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.story-hero .display { color: var(--dark-ink); margin: 14px 0 18px; }
.story-hero-sub { max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--dark-muted); margin: 0 0 28px; }
.story-hero-lines { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--dark-ink); }
.story-hero-sign { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); color: var(--accent-soft); line-height: 1; padding-bottom: 4px; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 72px; padding: 96px var(--gutter) 64px; align-items: start; }
.story-text { max-width: 620px; }
.story-chapter { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--accent-soft); }
.story-chapter:last-child { border-bottom: 0; }
.story-chapter .display-sm { margin: 8px 0 20px; }
.story-chapter .essay-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.story-facts { position: sticky; top: 84px; }
.story-facts-inner { background: var(--tile); padding: 26px 28px 28px; display: grid; gap: 0; }
.story-facts .section-head { margin-bottom: 6px; }
.fact { padding: 18px 0; border-top: 1px solid var(--accent-soft); display: grid; gap: 6px; }
.fact .stat-num { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.fact .stat-text { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.story-facts .essay-sources { margin-top: 18px; line-height: 1.8; }
.story-closer { background: var(--dark); color: var(--dark-ink); }
.story-closer .display { color: var(--dark-ink); max-width: 820px; margin: 16px auto 0; font-size: clamp(30px, 4vw, 54px); }
.story-closer .lines { color: var(--accent-soft); }
@media (max-width: 960px) {
  .story-hero { padding: 56px 0 44px; }
  .story-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-hero-sign { justify-self: end; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .story-facts { position: static; }
  .story-facts-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .story-facts .section-head, .story-facts .essay-sources { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .story-facts-inner { grid-template-columns: 1fr; } }

/* ---------- send a 345 ---------- */
.send { padding: 72px var(--gutter) 96px; }
.send-intro { max-width: 640px; margin-bottom: 48px; }
.send-intro .display { margin: 12px 0 14px; }
.send-intro .sub { color: var(--muted); margin: 0; }
.send-grid { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
.send-controls { display: grid; gap: 26px; }
.send-nums { display: flex; gap: 8px; flex-wrap: wrap; }
.send-nums button { min-width: 56px; height: 46px; padding: 0 16px; border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-transform: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.send-nums button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.send-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; font: inherit; font-size: var(--fs-body); color: var(--ink); border-radius: 0; }
.send-input:focus { outline: none; border-color: var(--accent); }
.send-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.send-preview { background: var(--tile); padding: 24px; display: flex; justify-content: center; }
.send-preview canvas { width: 100%; max-width: 480px; height: auto; display: block; box-shadow: 0 24px 60px rgba(23,23,23,0.12); }
.send-foot { margin-top: 72px; }
.send-foot .sub { color: var(--muted); margin-top: 24px; }
@media (max-width: 860px) { .send-grid { grid-template-columns: 1fr; gap: 36px; } .send-preview { order: -1; } .support .send-preview { order: 1; } }

/* support */
.send-textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; min-height: 150px; }
select.send-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a6a4e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-aside { display: block; }
.support-answers { display: grid; gap: 0; }
.support-answers .label.accent { margin-bottom: 10px; }
.support-answers .fact .label { color: var(--ink); }
.support .send-actions .btn { min-width: 160px; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* highlights: one accent device, used sparingly. the pipe, the full stop, one phrase per section */
.pipe { color: var(--accent); }
.hl-dot { color: var(--accent); }
.hl { color: var(--accent); }
.purpose .hl, .story-closer .hl, .story-hero .hl { color: var(--accent-soft); }

/* rotating word */
.rotator { display: inline-block; text-align: left; transition: opacity 0.42s var(--ease), transform 0.42s var(--ease); }
.rotator.out { opacity: 0; transform: translateY(6px); }
.rotator-line { line-height: 1.15; text-align: left; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.story-closer .rotator-line { margin: 16px auto 0; }
@media (max-width: 640px) {
  .rotator-line { width: auto; }
  .story-closer .rotator { min-width: 0 !important; display: inline; }
}

/* ticker band under the header: the reason line, cycling */
.ticker { background: var(--dark); color: var(--dark-ink); }
.ticker-line { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 0.35em; font-family: var(--serif); font-size: 16px; line-height: 1.3; text-align: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.ticker .rotator { color: var(--accent-soft); min-width: 0 !important; }
.ticker-tail { color: var(--dark-muted); }
@media (max-width: 640px) {
  .ticker-line { font-size: 15px; display: block; }
  .ticker .rotator { min-width: 0 !important; }
  .ticker-tail { display: block; }
}

/* the ledger */
.accent { color: var(--accent); }
.partner-card { background: var(--tile); padding: 22px 24px; margin: 8px 0 18px; display: grid; gap: 10px; font-family: var(--sans); font-size: var(--fs-body); }
.partner-card p { margin: 0; }
.partner-name { font-family: var(--serif); font-size: 22px; }
.ledger-table-wrap { overflow-x: auto; margin: 18px 0; font-family: var(--sans); }
.ledger-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ledger-table th { text-align: right; font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.ledger-table th:first-child, .ledger-table td:first-child { text-align: left; padding-left: 0; }
.ledger-table td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger-table td:last-child { font-weight: 500; }
.ledger-table .narrow { display: none; }
.story-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .ledger-table .wide { display: none; }
  .ledger-table .narrow { display: table-cell; }
  .ledger-table th, .ledger-table td { padding: 9px 6px; }
  .ledger-table td:first-child { white-space: normal; }
  .ledger-row { grid-template-columns: auto 1fr auto; }
  .ledger-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
.ledger-totals { margin: 18px 0 8px; font-family: var(--sans); }
.ledger-totals .fact { border-top: 0; padding-top: 0; }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: var(--fs-small); }
.promo { margin: 4px 0 2px; }
.promo .send-input { height: 42px; font-size: var(--fs-small); }
.thanks-gives { color: var(--muted); margin-top: 14px; }
.thanks-nudge { width: 100%; max-width: 460px; display: grid; gap: 14px; justify-items: center; margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.thanks-nudge p { color: var(--muted); }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.thanks-actions .btn { min-width: 180px; }
@media (max-width: 640px) {
  .thanks-actions { flex-direction: column; width: 100%; }
  .thanks-actions .btn { width: 100%; }
}
