/* ==========================================================================
   Touch Grass Supply Co. — base stylesheet
   A field-guide / mail-order-catalog look: paper, ink, grass.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3eedf;
  --paper-2: #e9e2cd;
  --ink: #1b1b17;
  --ink-2: #4a473e;
  --muted: #6e6a5e;
  --grass: #2f6b2f;
  --grass-deep: #1f4a21;
  --sprout: #b8d86b;
  --signal: #e4572e;
  --rule: 2px solid var(--ink);
  --hair: 1px solid rgba(27, 27, 23, 0.18);
  --radius: 4px;
  --page: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--grass); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.page-width { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1, .h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono, .eyebrow, .tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; color: var(--ink-2); }
.rte h2, .rte h3 { margin-top: 1.4em; }
.rte ul { padding-left: 1.2em; }
.rte img { height: auto; }
.rte table { border-collapse: collapse; width: 100%; }
.rte td, .rte th { border-bottom: var(--hair); padding: 8px 4px; text-align: left; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper);
  border: var(--rule); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover { color: var(--paper); background: var(--grass-deep); transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.button:active { transform: none; box-shadow: none; }
.button--secondary { background: transparent; color: var(--ink); }
.button--secondary:hover { background: var(--sprout); color: var(--ink); }
.button--sprout { background: var(--sprout); color: var(--ink); }
.button--sprout:hover { background: var(--sprout); color: var(--ink); }
.button--full { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- Announcement + Header ---------- */
.announcement { background: var(--ink); color: var(--paper); text-align: center; padding: 9px var(--gutter); }
.announcement p { margin: 0; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.announcement a { color: var(--sprout); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--rule); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; }
.site-header__logo { justify-self: center; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-header__logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.logo-word small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header__icons { justify-self: end; display: flex; gap: 6px; align-items: center; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--radius); }
.icon-button:hover { background: var(--paper-2); color: var(--ink); }
.icon-button svg { width: 22px; height: 22px; }
.cart-count[hidden] { display: none; }
.cart-count { font-family: var(--font-mono); font-size: .75rem; background: var(--sprout); border: 1.5px solid var(--ink); border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 5px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-header__logo { justify-self: start; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo-word { font-size: 1.2rem; }
  .logo-word small { display: none; }
  .mobile-nav[open] { display: block; border-top: var(--hair); padding: 8px 0 18px; }
  .mobile-nav ul { list-style: none; padding: 0; margin: 0; }
  .mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; text-decoration: none; border-bottom: var(--hair); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a:hover { color: var(--sprout); }
.section--grass { background: var(--grass); color: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section + .section--bordered, .section--bordered { border-top: var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- Hero ---------- */
.hero { border-bottom: var(--rule); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(78vh, 760px); }
.hero__copy { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px) 0; display: flex; flex-direction: column; justify-content: center; }
.hero__copy h1 { max-width: 11ch; }
.hero__copy h1 em { font-style: normal; color: var(--grass); position: relative; white-space: nowrap; }
.hero__copy h1 em::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .22em; background: var(--sprout); z-index: -1; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.hero__art { background: var(--grass); border-left: var(--rule); border-right: var(--rule); position: relative; display: grid; place-items: center; padding: 40px; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__art .illo { width: min(78%, 420px); color: var(--ink); }
.hero__stamp { position: absolute; right: 24px; bottom: 24px; width: 120px; height: 120px; border-radius: 50%; background: var(--sprout); border: var(--rule); display: grid; place-items: center; text-align: center; font-family: var(--font-mono); font-size: .68rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-12deg); }
.hero__stamp strong { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-right: 0; }
  .hero__art { border-left: 0; border-right: 0; border-top: var(--rule); margin: 0 calc(var(--gutter) * -1); min-height: 340px; }
}

/* ---------- Marquee ---------- */
.marquee { border-bottom: var(--rule); background: var(--sprout); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; padding: 14px 0; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.01em; }
.marquee__track span::after { content: "✳"; margin-left: 48px; font-size: 1rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; gap: 0; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: var(--rule); border-left: var(--rule); }
.grid > * { border-right: var(--rule); border-bottom: var(--rule); }
@media (max-width: 1100px) { .grid { --cols: 3 !important; } }
@media (max-width: 760px) { .grid { --cols: 2 !important; } }
@media (max-width: 340px) { .grid { --cols: 1 !important; } }
@media (max-width: 760px) { .card__body { padding: 12px 12px 16px; } .card__title { font-size: 1.05rem; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--paper); text-decoration: none; transition: background .15s ease; }
.card:hover { background: #fbf8ee; color: var(--ink); }
.card__media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--paper-2); border-bottom: var(--hair); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media .illo { width: 62%; transition: transform .3s ease; }
.card:hover .card__media .illo { transform: rotate(-3deg) scale(1.04); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__no { color: var(--muted); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; margin: 2px 0 6px; }
.card__vendor { color: var(--muted); font-size: .9rem; }
.card__price { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tag { display: inline-block; padding: 4px 8px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 2px; font-size: .68rem; }
.tag--sprout { background: var(--sprout); }
.tag--signal { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.tag--ink { background: var(--ink); color: var(--paper); }
.price__compare { text-decoration: line-through; color: var(--muted); font-weight: 400; }

/* ---------- Collection tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border: var(--rule); border-radius: var(--radius); background: var(--paper); text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); color: var(--ink); }
.tile__media { aspect-ratio: 4 / 3; background: var(--sprout); border-bottom: var(--rule); display: grid; place-items: center; overflow: hidden; }
.tile:nth-child(4n+2) .tile__media { background: var(--paper-2); }
.tile:nth-child(4n+3) .tile__media { background: #d8cfb3; }
.tile:nth-child(4n+4) .tile__media { background: #9cc39a; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media .illo { width: 52%; }
.tile__body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile__title { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; }

/* ---------- Manifesto / text blocks ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.manifesto__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.02em; }
.manifesto__big mark { background: var(--sprout); color: var(--ink); padding: 0 .1em; }
.manifesto__body { font-size: 1.15rem; }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); }
.pillar { padding: 32px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: var(--rule); }
.pillar__num { font-family: var(--font-mono); font-size: .8rem; color: inherit; opacity: .7; }
.pillar h3 { margin-top: 10px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { padding-left: 0; border-left: 0; border-top: var(--rule); } }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; border-bottom: var(--rule); }
.product__media { border-right: var(--rule); background: var(--paper-2); }
.product__media-main { aspect-ratio: 1 / 1; display: grid; place-items: center; position: sticky; top: 74px; }
.product__media-main img { width: 100%; height: 100%; object-fit: cover; }
.product__media-main .illo { width: 58%; }
.product__thumbs { display: flex; gap: 0; border-top: var(--rule); overflow-x: auto; }
.product__thumbs button { flex: 0 0 96px; aspect-ratio: 1; border: 0; border-right: var(--rule); padding: 0; background: var(--paper); cursor: pointer; }
.product__thumbs button[aria-current="true"] { outline: 3px solid var(--grass); outline-offset: -3px; }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { padding: clamp(28px, 4vw, 56px) var(--gutter); }
.product__info h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.product__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.product__price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; display: flex; gap: 14px; align-items: baseline; margin: 6px 0 22px; }
.product__form { display: grid; gap: 16px; padding: 22px 0; border-top: var(--rule); border-bottom: var(--rule); margin-bottom: 24px; }
.option-group { border: 0; padding: 0; margin: 0; }
.option-group legend { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.option-group__values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-group input { position: absolute; opacity: 0; pointer-events: none; }
.option-group label { border: var(--rule); border-radius: var(--radius); padding: 9px 14px; cursor: pointer; font-weight: 500; background: var(--paper); }
.option-group input:checked + label { background: var(--ink); color: var(--paper); }
.option-group input:focus-visible + label { outline: 3px solid var(--grass); outline-offset: 2px; }
.qty { display: inline-flex; border: var(--rule); border-radius: var(--radius); height: 52px; background: var(--paper); }
.qty button { width: 44px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; }
.qty input { width: 52px; text-align: center; border: 0; background: none; font: 500 1rem var(--font-mono); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.shopify-payment-button__button { border-radius: var(--radius) !important; min-height: 52px; }
.product__assurances { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: .95rem; }
.product__assurances li { display: flex; gap: 10px; align-items: center; }
.product__assurances svg { width: 20px; height: 20px; flex: none; color: var(--grass); }
.product__desc ul { list-style: none; padding: 0; border-top: var(--hair); }
.product__desc li { padding: 9px 0; border-bottom: var(--hair); font-family: var(--font-mono); font-size: .88rem; }
.product__desc h3 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-top: 1.8em; }
.analog-note { background: var(--sprout); border: var(--rule); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px; }
.analog-note .mono { display: block; margin-bottom: 4px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__media { border-right: 0; border-bottom: var(--rule); }
  .product__media-main { position: static; }
}

/* ---------- Collection page ---------- */
.collection-hero { border-bottom: var(--rule); padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); }
.collection-hero .lede { max-width: 56ch; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.select { appearance: none; border: var(--rule); border-radius: var(--radius); background: var(--paper) url("/assets/data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1b17' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 10px 36px 10px 12px; font: 500 .95rem var(--font-body); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { text-decoration: none; }
.filters .tag { font-size: .72rem; padding: 7px 10px; }
.filters .is-active { background: var(--ink); color: var(--paper); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; font-family: var(--font-mono); }
.pagination a, .pagination span { padding: 8px 12px; border: var(--rule); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); }

/* ---------- Cart drawer + cart page ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(27, 27, 23, .45); opacity: 0; transition: opacity .2s ease; border: 0; width: 100%; cursor: pointer; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); border-left: var(--rule); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: var(--rule); }
.drawer__head h2 { font-size: 1.8rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 22px; }
.drawer__foot { border-top: var(--rule); padding: 18px 22px 22px; display: grid; gap: 12px; }
.free-ship { font-size: .9rem; }
.free-ship__bar { height: 10px; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 6px; background: var(--paper); }
.free-ship__bar span { display: block; height: 100%; background: var(--grass); transition: width .3s ease; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: var(--hair); align-items: start; }
.line__media { width: 76px; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media .illo { width: 70%; }
.line__title { font-weight: 700; text-decoration: none; line-height: 1.25; display: block; }
.line__variant { color: var(--muted); font-size: .88rem; }
.line__price { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.line__controls { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.line__controls .qty { height: 36px; }
.line__controls .qty button { width: 32px; }
.line__controls .qty input { width: 36px; }
.line__remove { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: .85rem; color: var(--muted); }
.totals { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; }
.small { font-size: .85rem; color: var(--muted); }
.cart-empty { text-align: center; padding: 48px 0; }
.cart-empty .illo { width: 120px; margin: 0 auto 16px; }
.cart-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.cart-page__summary { border: var(--rule); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; position: sticky; top: 96px; background: var(--paper); box-shadow: var(--shadow); }
.cart-page textarea { width: 100%; min-height: 80px; border: var(--rule); border-radius: var(--radius); background: var(--paper); padding: 10px; font: inherit; }
@media (max-width: 900px) { .cart-page { grid-template-columns: 1fr; } .cart-page__summary { position: static; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select { border: var(--rule); border-radius: var(--radius); background: var(--paper); padding: 12px; font: inherit; width: 100%; }
.form-narrow { max-width: 520px; }
.form-status { border: var(--rule); padding: 12px 14px; border-radius: var(--radius); background: var(--sprout); margin-bottom: 16px; }
.form-status--error { background: #f6c9bc; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0; max-width: 520px; }
.inline-form input { flex: 1; min-width: 0; border: var(--rule); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); padding: 0 14px; height: 56px; font: inherit; color: var(--ink); }
.inline-form .button { border-radius: 0 var(--radius) var(--radius) 0; min-height: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.site-footer a { text-decoration: none; color: var(--paper); }
.site-footer a:hover { color: var(--sprout); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(243, 238, 223, .2); }
.footer__grid h3 { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sprout); margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 12vw, 10rem); line-height: .85; letter-spacing: -0.04em; margin: 40px 0 24px; color: var(--sprout); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; opacity: .75; }
.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-icons svg { width: 38px; height: 24px; }
.site-footer .inline-form input { background: transparent; color: var(--paper); border-color: var(--paper); }
.site-footer .inline-form .button { background: var(--sprout); color: var(--ink); border-color: var(--paper); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.illo { color: var(--ink); }
.illo .f1 { fill: var(--sprout); }
.illo .f2 { fill: var(--paper); }
.illo .f3 { fill: var(--ink); }
.illo .f4 { fill: #d8cfb3; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: clamp(5rem, 18vw, 14rem); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); z-index: 95; transition: transform .25s ease; font-weight: 500; }
.toast.is-visible { transform: translate(-50%, 0); }
.search-form { display: flex; max-width: 640px; }
.article-card { border-top: var(--rule); padding: 24px 0; display: grid; gap: 6px; text-decoration: none; }
.article { max-width: 720px; margin: 0 auto; }
.article .rte { font-size: 1.12rem; }
.illo .f5 { fill: var(--signal); }
.illo .s2 { stroke: var(--paper); }
.illo .s5 { stroke: var(--signal); }

/* ---------- affiliate site additions ---------- */
.tag--kids { background: #f6c9bc; }
.tag.is-active { background: var(--ink); color: var(--paper); }
.card__price { flex-wrap: wrap; }
.card__price .small { font-family: var(--font-body); }
.buy-stack { display: grid; gap: 10px; }
.crumbs { margin-bottom: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.disclosure { border-top: var(--hair); padding-top: 14px; margin-top: 28px; }
.split-art { border: var(--rule); border-radius: var(--radius); aspect-ratio: 1 / 1; max-width: 100%; background: var(--sprout); }
.split-art .illo { width: 52%; }
.button--secondary.on-dark { color: var(--paper); border-color: var(--paper); }
.button--secondary.on-dark:hover { color: var(--ink); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.guide-card { border: var(--rule); border-radius: var(--radius); padding: 22px; text-decoration: none; display: grid; gap: 8px; align-content: start; background: var(--paper); transition: transform .12s ease, box-shadow .12s ease; }
.guide-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); color: var(--ink); }
.guide-card h3 { margin: 0; }
.guide-card p { margin: 0; color: var(--ink-2); }
.guide { max-width: 860px; }
.guide h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.guide .rte p, .guide .rte li { max-width: 68ch; font-size: 1.08rem; }
.guide-grid { margin: 20px 0 8px; }
.product__price .small { font-family: var(--font-body); font-size: .9rem; }
.compare { width: 100%; overflow-x: auto; }
.compare table { min-width: 560px; font-size: .95rem; }
.compare th { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.quick-answer { border: var(--rule); border-radius: var(--radius); background: var(--sprout); padding: 18px 20px; margin: 18px 0 24px; box-shadow: var(--shadow); }
.quick-answer .mono { display: block; margin-bottom: 6px; }
.quick-answer p { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.toc { border-left: var(--rule); padding: 4px 0 4px 18px; margin: 8px 0 28px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.faq { display: grid; gap: 10px; }
.faq details { border: var(--rule); border-radius: var(--radius); padding: 12px 16px; background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }
.sources { font-size: .92rem; }
button.tag { cursor: pointer; font-family: var(--font-mono); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .toolbar { display: block; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .filters > * { flex: none; }
}
.guide h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.compare { margin: 8px 0 28px; border-top: var(--rule); }
.compare td, .compare th { vertical-align: top; }
.compare tbody th { text-align: left; }
.price-label { display: block; width: 100%; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem !important; }
.product__price { flex-wrap: wrap; row-gap: 2px; }
.footer__amazon { font-size: .85rem; opacity: .8; margin: 0 0 14px; }
.hero__art--photo { padding: 0; overflow: hidden; }
.hero__art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-art { overflow: hidden; }
.split-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--photo { background: #fff; }
.card__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.product__media-main--photo { background: #fff; overflow: hidden; }
.product__media-main--photo img { width: 100%; height: 100%; object-fit: contain; }
.photo-credit { font-size: .74rem; color: var(--muted); padding: 8px 14px; margin: 0; border-top: var(--hair); background: var(--paper); }
.photo-credit a { color: inherit; }
.credits { display: grid; gap: 8px; }
