/* Keyedworks brand layer, "Gallery Paper" (docs/BRAND.md). Loaded after styles.css (and seo.css).
   Overrides type, color, spacing and component styles; adds the edition card, reviews and story page.
   The rule of the house: paper, stone and ink do the work; one accent (Kiln) marks what matters;
   a display serif speaks, a grotesk explains, a mono measures. Line colors live in the products, not the UI. */

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DE;
  --paper-3: #E2DCD0;
  --stone: #E9E3D8;
  --card: #FAF8F4;
  --ink: #1C1A17;
  --ink-2: #4B4740;
  --ink-3: #6E685F;
  --line: #DCD5C9;
  --line-2: #C9C1B3;
  --hair: color-mix(in srgb, var(--ink) 14%, transparent);
  --kiln: #A8462A;
  --kiln-hover: #8F3A21;
  --kiln-soft: #F1DDD3;
  --on-kiln: #FFFFFF;

  /* remap the old tokens so every legacy rule follows the new palette */
  --verm: var(--kiln);
  --verm-btn: var(--ink);
  --verm-btn-hover: var(--kiln);
  --on-verm: var(--paper);
  --verm-ink: var(--kiln);
  --verm-soft: var(--kiln-soft);
  --moss: #5E584F;
  --moss-soft: var(--paper-2);
  --ok: #3F5B3A;
  --focus: #2F5D8A;
  --shadow: none;
  --shadow-lift: 0 1px 2px rgba(28, 26, 23, .05), 0 14px 30px -18px rgba(28, 26, 23, .28);
  --promise-bg: #1C1A17;
  --promise-fg: #F4F1EA;
  --promise-fg2: rgba(244, 241, 234, .74);
  --promise-accent: #D9845F;
  --foot-bg: #1C1A17;
  --foot-fg: #F4F1EA;
  --foot-fg2: #ABA396;
  --foot-line: #34302A;

  /* line fields become quiet stone tints with ink text; the products bring the color */
  --f-plaques: #EAE3D6; --f-plaques-ink: var(--ink); --f-plaques-soft: #EAE3D6;
  --f-inserts: #E4E3D8; --f-inserts-ink: var(--ink); --f-inserts-soft: #E4E3D8;
  --f-grid: #E5E3DE;    --f-grid-ink: var(--ink);    --f-grid-soft: #E5E3DE;
  --f-fits: #E7E2DB;    --f-fits-ink: var(--ink);    --f-fits-soft: #E7E2DB;
  --f-studio: #ECE5D9;  --f-studio-ink: var(--ink);  --f-studio-soft: #ECE5D9;

  --radius: 6px;
  --radius-s: 3px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* the face the printer actually uses for letters: previews and name inputs keep it so what you see is what prints */
  --font-product: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161412; --paper-2: #1E1B18; --paper-3: #26221E; --stone: #211E1A; --card: #1B1916;
    --ink: #ECE6DA; --ink-2: #BDB5A8; --ink-3: #9C9488;
    --line: #2F2B26; --line-2: #3D3831;
    --kiln: #D9845F; --kiln-hover: #E89C7B; --kiln-soft: #33241D; --on-kiln: #161412;
    --verm-btn: var(--ink); --on-verm: var(--paper);
    --moss: #A39B8F; --ok: #9DB894; --focus: #8DB6E0;
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -18px rgba(0, 0, 0, .8);
    --promise-bg: #0F0E0C; --promise-fg: #ECE6DA; --promise-fg2: #B5AD9F; --promise-accent: #D9845F;
    --foot-bg: #0F0E0C; --foot-fg: #ECE6DA; --foot-fg2: #9C9488; --foot-line: #2A2622;
    --f-plaques: #221F1A; --f-plaques-soft: #EAE3D6; --f-inserts: #1F201B; --f-inserts-soft: #E4E3D8;
    --f-grid: #1F1F1D; --f-grid-soft: #E5E3DE; --f-fits: #211F1C; --f-fits-soft: #E7E2DB;
    --f-studio: #231F1A; --f-studio-soft: #ECE5D9;
    --sw-ring: rgba(236, 230, 218, .35);
  }
}
:root[data-theme="dark"] {
  --paper: #161412; --paper-2: #1E1B18; --paper-3: #26221E; --stone: #211E1A; --card: #1B1916;
  --ink: #ECE6DA; --ink-2: #BDB5A8; --ink-3: #9C9488;
  --line: #2F2B26; --line-2: #3D3831;
  --kiln: #D9845F; --kiln-hover: #E89C7B; --kiln-soft: #33241D; --on-kiln: #161412;
  --verm-btn: var(--ink); --on-verm: var(--paper);
  --moss: #A39B8F; --ok: #9DB894; --focus: #8DB6E0;
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -18px rgba(0, 0, 0, .8);
  --promise-bg: #0F0E0C; --promise-fg: #ECE6DA; --promise-fg2: #B5AD9F; --promise-accent: #D9845F;
  --foot-bg: #0F0E0C; --foot-fg: #ECE6DA; --foot-fg2: #9C9488; --foot-line: #2A2622;
  --f-plaques: #221F1A; --f-plaques-soft: #EAE3D6; --f-inserts: #1F201B; --f-inserts-soft: #E4E3D8;
  --f-grid: #1F1F1D; --f-grid-soft: #E5E3DE; --f-fits: #211F1C; --f-fits-soft: #E7E2DB;
  --f-studio: #231F1A; --f-studio-soft: #ECE5D9;
  --sw-ring: rgba(236, 230, 218, .35);
}
[data-line="studio"] { --field: var(--f-studio); --field-ink: var(--f-studio-ink); --field-soft: var(--f-studio-soft); }

/* light box: product stages stay lit in both themes (renders and live previews are drawn for a light ground) */
.hero-stage, .band-panel, .gal-stage, .gal-thumb, .line-hero-art, .story-card, .card-img, .line-art, .story-photo {
  --ink: #1C1A17; --ink-2: #4B4740; --ink-3: #6E685F; --paper: #F4F1EA; --card: #FAF8F4; --stone: #E9E3D8;
  --line: #DCD5C9; --line-2: #C9C1B3; --hair: rgba(28, 26, 23, .14); --kiln: #A8462A; --on-kiln: #FFFFFF; --focus: #2F5D8A;
}
:root { --panel: #E9E3D8; }
.band-panel { background: #FAF8F4; color: var(--ink); }

/* ── type ── */
body { font-feature-settings: "kern" 1; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; line-height: 1.06; font-optical-sizing: auto; }
h1 { font-weight: 340; letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-weight: 360; }
h3 { font-weight: 420; letter-spacing: -0.005em; line-height: 1.15; }
h1 em, h2 em, .hl { font-style: italic; }
.eyebrow { font-family: var(--font-mono); color: var(--ink-3); font-size: .74rem; letter-spacing: .16em; font-weight: 400; }
.lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 54ch; }
.mono { letter-spacing: .01em; }
.price, .price-big, .totals dd, .cart-line-h .mono { font-variant-numeric: tabular-nums; }
.link-arrow { color: var(--ink); font-weight: 500; text-decoration: none; }
.link-arrow::after { color: var(--kiln); }
.link-arrow:hover { color: var(--kiln); }
a:hover { color: var(--kiln); }

/* ── buttons: square shoulders, ink first, Kiln on hover ── */
.btn { border-radius: var(--radius-s); font-weight: 500; font-size: .95rem; letter-spacing: .01em; padding: .95em 1.6em; border-width: 1px; box-shadow: none; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn:active { transform: none; }
.btn-primary, .btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn-primary:hover, .btn-ink:hover { background: var(--kiln); border-color: var(--kiln); color: var(--on-kiln); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.is-added { background: var(--kiln); border-color: var(--kiln); color: var(--on-kiln); }

/* ── header ── */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--hair); }
.site-header::before { display: none; }
.bar { min-height: 68px; }
.brand { font-family: var(--font-display); font-weight: 470; font-size: 1.5rem; letter-spacing: -0.01em; gap: .6rem; }
.brand .mark { width: 22px; height: 22px; }
.brand:hover { color: var(--ink); }
.brand:hover .mark { color: var(--ink); transform: none; }
.brand .mark .notch { fill: var(--kiln); }
.nav-menu a { font-weight: 400; font-size: .95rem; border-radius: 0; padding: .5em .7em; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: none; box-shadow: none; text-decoration: underline; text-decoration-color: var(--kiln); text-underline-offset: .45em; text-decoration-thickness: 1px; }
.nav-toggle { border-radius: var(--radius-s); border-width: 1px; font-weight: 500; }
.cart-link { font-weight: 500; border-radius: var(--radius-s); }
.cart-link:hover { background: none; color: var(--kiln); }
.cart-count { background: var(--kiln); color: var(--on-kiln); }

/* ── footer ── */
.site-footer::before { display: none; }
.site-footer { margin-top: var(--section); }
.foot-brand .tag { font-family: var(--font-display); font-weight: 340; font-style: italic; font-size: var(--step-3); letter-spacing: -0.015em; }
.foot-h { color: var(--foot-fg2); letter-spacing: .16em; }
.foot-brand .brand { font-size: 1.6rem; }

/* ── hero ── */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 6rem) 0 var(--section); }
.hero-copy h1 { font-size: clamp(3.2rem, 2rem + 5.4vw, 6.6rem); max-width: 9ch; margin-bottom: .4em; }
.hero-copy h1 .hl { color: var(--kiln); white-space: normal; font-weight: 320; }
.hero-copy h1 .hl::after { display: none; }
.hero-proof { gap: 0; margin-top: var(--space-l); border-top: 1px solid var(--hair); max-width: 34rem; display: grid; }
.hero-proof li { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: .7em 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hero-proof li::before { width: 7px; height: 7px; background: var(--kiln); clip-path: none; }
.hero-proof li:nth-child(n) { --chip: var(--kiln); }
.hero-stage { border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.hero-stage::before { background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px); }
.hero-stage::after { display: none; }
.stage-tag { color: var(--ink-3); }
.stage-tag::before { border-radius: 0; background: var(--kiln); width: 7px; height: 7px; }
.hero-stage.has-scene .demo { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.demo-field label { color: var(--ink-3); }
.demo-input { border-radius: var(--radius-s); border: 1px solid var(--line-2); font-family: var(--font-product); font-weight: 700; }
.has-scene .demo-input { border-color: var(--line-2); }
.demo-meta { color: var(--ink-2); }

/* ── dimension motif: quieter ── */
.dim { color: var(--ink-3); }
.card-dim .dim-label { background: var(--paper); border-radius: 2px; color: var(--ink-2); }

/* ── sections: more air, hairlines instead of boxes ── */
.lines { padding: var(--section) 0 calc(var(--section) * .5); }
.featured { padding: calc(var(--section) * .5) 0 var(--section); }
.how { padding: var(--section) 0; }
.home-faq { padding: var(--section) 0 0; }
.sec-head { margin-bottom: var(--space-l); }
.sec-h { font-size: var(--step-4); max-width: 18ch; }
.sec-p { color: var(--ink-2); }

/* line tiles */
.line-card { border: 0; border-radius: 0; background: none; }
.line-card:hover { transform: none; box-shadow: none; }
.line-art { border-radius: var(--radius); background: var(--field-soft); }
.line-art img { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.line-art::after { display: none; }
.line-txt { border-top: 0; padding: 1rem 0 0; }
.line-card h3 { font-size: var(--step-2); font-weight: 380; }
.line-n { color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .14em; }
.line-card.is-soon { border: 0; }
.line-card.is-soon .line-art { border: 1px dashed var(--line-2); background: none; }
.soon-mark { font-family: var(--font-display); font-weight: 340; font-style: italic; color: var(--ink-3); }

/* product cards: the object on stone, the words underneath */
.grid.cards { gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1rem, .6rem + 1.5vw, 2rem); }
.card { border: 0; border-radius: 0; background: none; overflow: visible; }
.card-img { border-radius: var(--radius); background: var(--field-soft, var(--stone)); }
.card-img img { inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.card-badge, .card-badge.is-field { top: 12px; left: 12px; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink-2); border-radius: 2px; box-shadow: none; font-size: .66rem; letter-spacing: .12em; }
.card-body { padding: 1rem 0 0; gap: .35rem; }
.card-title { font-family: var(--font-display); font-weight: 420; font-size: var(--step-1); letter-spacing: -0.008em; }
.card-short { color: var(--ink-2); }
.card-foot { border-top: 1px solid var(--hair); padding-top: .65rem; margin-top: .6rem; }
.card-foot .price { font-family: var(--font-body); font-weight: 500; font-size: .98rem; }
.card-foot .price b { font-family: var(--font-mono); font-weight: 400; color: var(--ink-3); font-size: .7rem; letter-spacing: .12em; }
.card-main::after { border-radius: var(--radius); }
@media (hover: hover) {
  .card:hover { transform: none; box-shadow: none; }
  .card:not(.has-b):hover .img-a { transform: scale(1.025); }
  .card:hover .card-title a { text-decoration: underline; text-decoration-color: var(--kiln); text-underline-offset: .2em; text-decoration-thickness: 1px; }
}

/* the measured band: stone, ink, no grid noise */
.band { background: var(--stone); color: var(--ink); padding: var(--section) 0; }
.band::before { display: none; }
.band h2 { font-size: var(--step-5); max-width: 13ch; }
.band p { color: var(--ink-2); }
.band .eyebrow { color: var(--ink-3); opacity: 1; }
.band-panel { border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid var(--hair); }
.band-panel .pv { background: var(--paper); border-radius: var(--radius-s); }
.slider label { font-weight: 500; }
.slider input[type="range"] { accent-color: var(--ink); }

/* steps: numbered, ruled, no boxes */
.steps { gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); }
.steps li { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 1.2rem 0 1.6rem; }
.steps li::after { display: none; }
.step-n, .steps li:nth-child(n) .step-n { font-family: var(--font-mono); font-weight: 400; font-size: .78rem; letter-spacing: .14em; color: var(--kiln); margin-bottom: .6rem; }
.steps h3 { font-size: var(--step-2); font-weight: 380; }

/* promise: the one dark field */
.promise { padding: var(--section) 0; }
.promise h2 { font-size: var(--step-4); font-weight: 340; max-width: 17ch; }
.promise .eyebrow { color: var(--promise-accent); }
.why h3 { font-family: var(--font-display); font-weight: 420; font-size: var(--step-1); }

/* faq: a ruled list */
.faq { gap: 0; border-top: 1px solid var(--hair); }
.faq-item { border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; }
.faq-item summary { padding: 1.1rem 0; font-weight: 500; }
.faq-item summary::after { color: var(--ink-3); }
.faq-a { padding: 0 0 1.2rem; max-width: 64ch; }

/* page headers, prose */
.page-h { padding: var(--space-l) 0 var(--space-l); }
.page-h h1 { font-size: var(--step-6); max-width: 16ch; }
.prose h2, .line-body h2 { font-size: var(--step-3); margin-top: 2.6rem; }
.prose h3 { font-family: var(--font-display); }
.crumbs { font-size: .82rem; }

/* line page header: stone, not paint */
.line-hero { background: var(--field); color: var(--ink); }
.line-hero::before { display: none; }
.line-hero h1 { font-size: clamp(2.8rem, 1.8rem + 4.4vw, 5.6rem); }
.line-hero .eyebrow { color: var(--ink-3); }
.line-hero-art .frame { transform: none !important; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.line-hero-art.scene { border-radius: var(--radius); box-shadow: none; }
.shop-line { border-top: 1px solid var(--hair); }
.shop-line-h { padding-left: 0; }
.shop-line-h::before { display: none; }
.shop-line.soon { background: none; border: 1px dashed var(--line-2); color: var(--ink); }
.shop-line.soon .shop-line-h p, .shop-line.soon .link-arrow { color: var(--ink-2); }

/* ── product page ── */
.pd-buy h1 { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4rem); font-weight: 340; }
.line-chip { background: none; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 2px; min-height: 28px; font-size: .68rem; letter-spacing: .14em; }
.line-chip:hover { color: var(--kiln); filter: none; border-color: currentColor; }
.sku-chip { font-size: .68rem; letter-spacing: .14em; }
.gal-stage { border: 0; border-radius: var(--radius); background: var(--stone); }
.gal-main { background: var(--stone); }
.gal-main figcaption { border-radius: 2px; letter-spacing: .12em; font-size: .64rem; }
.gal-preview { background: var(--field-soft, var(--stone)); }
.gal-thumb { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--stone); }
.gal-thumb:hover { transform: none; border-color: var(--ink-3); }
.gal-thumb.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gal-thumb.is-preview { background: var(--stone); }
.pv svg text { font-family: var(--font-product); }
.scale-strip { border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); border-radius: 0; background: none; padding: 1rem 0; }
.scale-strip .scale-ico { background: var(--stone); color: var(--ink); border-radius: var(--radius-s); }
.scale-strip .scale-h { font-size: .72rem; letter-spacing: .16em; color: var(--ink-3); }
.scale-strip .scale-dims { background: none; color: var(--ink); padding: 0; }
.configurator { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--hair); background: var(--card); }
.price-big { font-family: var(--font-display); font-weight: 360; font-size: var(--step-4); letter-spacing: -0.01em; }
.field label, .field legend { font-weight: 500; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="password"], .field select, .field textarea { border-radius: var(--radius-s); border-width: 1px; }
.field-text input[type="text"] { font-family: var(--font-product); }
.swatch { border-width: 1px; }
.swatch:has(input:checked) { border-color: var(--ink); }
.notice { border-radius: var(--radius-s); border-left-color: var(--kiln); background: none; border-color: var(--hair); border-left-width: 2px; }
.ship-line .mono { color: var(--ink); }
.pd-section h2 { font-size: var(--step-3); }
.specs th { font-weight: 500; }
.specs th, .specs td { border-bottom-color: var(--hair); }
.measure-fig { border-radius: var(--radius); border-color: var(--hair); }
.related h2 { font-size: var(--step-4); }

/* ── cart ── */
.page-cart .page-h h1::after, .page-thankyou .page-h h1::after { display: none; }
.cart-line { border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; padding: 1.1rem 0; }
.cart-line img { border-radius: var(--radius-s); border: 0; background: var(--stone); }
.cart-line-h a { font-family: var(--font-display); font-weight: 420; font-size: var(--step-1); }
.cart-side { box-shadow: none; border: 1px solid var(--hair); border-radius: var(--radius); }
.free-ship { background: var(--stone); color: var(--ink); border-radius: var(--radius-s); }
.free-ship p { color: var(--ink-2); }
.free-bar { height: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.free-bar span { background: var(--kiln); }
.qty-ctl { border-radius: var(--radius-s); border-width: 1px; }
.qty-ctl input { border-inline-width: 1px; }
.totals .grand { font-family: var(--font-display); font-weight: 400; }
.cart-empty { font-family: var(--font-display); font-weight: 340; font-size: var(--step-2); }
.request-form { border-radius: var(--radius-s); border-width: 1px; background: var(--stone); }

/* forms elsewhere */
.contact-form, .notify { border-radius: var(--radius); border-color: var(--hair); }
.notify input[type="email"] { border-radius: var(--radius-s); border-width: 1px; }

/* seo.css pages (guides, blog, use cases) */
body .kw-tcard { border-radius: var(--radius); background: none; border-color: var(--hair); }
body .kw-tcard:hover, body .kw-tcard:focus-visible { border-color: var(--ink); }
body .kw-tcard-h { font-weight: 420; font-size: 1.15rem; }
body .kw-howto { border-radius: var(--radius); background: var(--stone); border: 0; }
body .kw-prose thead th { color: var(--ink-3); }
body .kw-callout { border-left-color: var(--kiln); }

/* ── motion: fades, no lifts, nothing bouncy ── */
@keyframes kw-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .io .rv { transform: translateY(10px); } }

/* ══════════════ new components (site/tools/brand.py) ══════════════ */

/* the edition line on product pages: 1 of 1, generated for you */
.kw-edition { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem 0 .2rem; border-top: 1px solid var(--hair); }
.kw-edition-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: .95rem; letter-spacing: -0.01em; line-height: 1; color: var(--ink); white-space: nowrap; }
.kw-edition-mark.is-stock { font-style: normal; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; border-color: var(--line-2); color: var(--ink-2); }
.kw-edition p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.kw-edition strong { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; margin-bottom: .15rem; }
.kw-promise-line { display: grid; gap: .25rem; margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.kw-promise-line b { font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kiln); white-space: nowrap; }
.kw-promise-line a { color: inherit; }

/* reviews: renders only when real reviews exist in site/content/reviews/<SKU>.yaml */
.kw-reviews { border-top: 1px solid var(--hair); padding-top: var(--space-l); }
.kw-reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.kw-reviews-score { font-family: var(--font-display); font-weight: 340; font-size: var(--step-4); line-height: 1; }
.kw-reviews-score span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--ink-3); margin-left: .5rem; text-transform: uppercase; }
.kw-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kw-review { padding: 1.2rem 0; border-bottom: 1px solid var(--hair); display: grid; gap: .35rem; }
.kw-stars { color: var(--kiln); letter-spacing: .15em; font-size: .85rem; }
.kw-review h3 { font-size: var(--step-1); margin: 0; }
.kw-review p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.kw-review-meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ── story page ── */
.story-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 6rem) 0 var(--space-xl); }
.story-hero h1 { font-size: clamp(3rem, 1.8rem + 5.6vw, 7rem); max-width: 11ch; margin-bottom: .35em; }
.story-hero h1 em { color: var(--kiln); font-weight: 320; }
.story-manifesto { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.32; letter-spacing: -0.01em; max-width: 34ch; color: var(--ink); margin: 0; text-wrap: pretty; }
.story-manifesto + .story-sign { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.story-sec { padding: var(--section) 0 0; }
.story-sec > .wrap > h2, .story-sec h2.sec-h { font-size: var(--step-4); max-width: 20ch; }
.story-steps { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: st; }
.story-steps li { border-top: 1px solid var(--ink); padding: 1.2rem 0 1.8rem; display: grid; gap: .45rem; align-content: start; }
.story-steps .n { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: var(--kiln); text-transform: uppercase; }
.story-steps h3 { font-size: var(--step-2); font-weight: 380; margin: 0; }
.story-steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (min-width: 760px) { .story-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .story-steps { grid-template-columns: repeat(4, 1fr); } }
.story-split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 900px) { .story-split { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }
.story-split p { color: var(--ink-2); max-width: 54ch; }
.story-card { position: relative; background: #FBF9F4; color: #1C1A17; border-radius: 3px; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); box-shadow: 0 1px 2px rgba(28, 26, 23, .08), 0 30px 60px -30px rgba(28, 26, 23, .45); max-width: 420px; width: 100%; margin-inline: auto; transform: rotate(-1.2deg); display: grid; gap: .6rem; }
.story-card .sc-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #6E685F; }
.story-card .sc-top .brand-mini { display: inline-flex; gap: .4rem; align-items: center; font-family: var(--font-display); font-size: .95rem; letter-spacing: -0.01em; text-transform: none; color: #1C1A17; }
.story-card .sc-top svg { width: 14px; height: 14px; }
.story-card .sc-eyebrow { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: #A8462A; margin-top: 1.2rem; }
.story-card .sc-for { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.story-card .sc-for em { display: block; font-size: 1.75em; font-weight: 320; }
.story-card dl { margin: 1.4rem 0 .4rem; display: grid; border-top: 1px solid rgba(28, 26, 23, .16); }
.story-card dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: .5rem; padding: .42rem 0; border-bottom: 1px solid rgba(28, 26, 23, .1); font-size: .8rem; }
.story-card dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #6E685F; padding-top: .15em; }
.story-card dd { margin: 0; color: #1C1A17; }
.story-card .sc-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; font-size: .72rem; color: #4B4740; line-height: 1.4; }
.story-card .sc-seal { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #1C1A17; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: .9rem; color: #1C1A17; }
.story-rules { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: 0; border-top: 1px solid var(--hair); max-width: 60ch; }
.story-rules li { padding: .9rem 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.story-rules li strong { color: var(--ink); font-weight: 500; }
.story-facts { display: grid; gap: 0; margin: var(--space-l) 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--hair); }
.story-facts div { padding: 1.2rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--hair); }
.story-facts b { display: block; font-family: var(--font-display); font-weight: 340; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; margin-bottom: .45rem; }
.story-facts span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.story-cta { padding: var(--section) 0 0; }
.story-cta .wrap { border-top: 1px solid var(--ink); padding-top: var(--space-l); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.story-cta h2 { font-size: var(--step-4); margin: 0; max-width: 16ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); } }
:root[data-theme="dark"] .story-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
@media (prefers-reduced-motion: reduce) { .story-card { transform: none; } }

.story-photo { margin: 0; border-radius: var(--radius); overflow: clip; background: var(--panel); }
.story-photo img { width: 100%; height: auto; display: block; }
.cart-side .help { font-size: .82rem; color: var(--ink-3); line-height: 1.5; margin: 0; }
.totals dd[data-tax-row] { font-family: var(--font-body); font-size: .85rem; color: var(--ink-3); }
