/* MycoVerse — Spore Print Atlas */

@font-face { font-family: "Young Serif"; src: url("fonts/YoungSerif-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --forest: #1f3a2c;
  --forest-deep: #15291f;
  --forest-raised: #284a39;
  --ivory: #efe7d6;
  --beige: #cdbba0;
  --brown: #6b4a33;
  --sage: #8fa08a;
  --charcoal: #232320;

  --bg: #efe7d6;
  --bg-2: #e4d9c2;
  --surface: #f6f0e3;
  --v-sage: #56694f;
  --v-beige: #85694a;
  --v-brown: #6b4a33;
  --ink: var(--charcoal);
  --ink-2: #545046;
  --line: rgba(35, 35, 32, .16);
  --line-strong: rgba(35, 35, 32, .32);
  --mark: var(--brown);
  --action: var(--forest);
  --on-action: var(--ivory);

  --field: var(--forest);
  --on-field: var(--ivory);
  --on-field-2: #bfc9b5;
  --field-line: rgba(239, 231, 214, .2);

  --ok: #2f6b45;
  --warn: #8a5a12;
  --err: #a1352a;

  --display: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a15;
    --bg-2: #18231c;
    --surface: #1b2620;
    --ink: #ece5d4;
    --ink-2: #b8b2a2;
    --line: rgba(236, 229, 212, .14);
    --line-strong: rgba(236, 229, 212, .3);
    --mark: #c9a988;
    --v-sage: #a9bca2;
    --v-beige: #d2bc99;
    --v-brown: #c9a988;
    --action: var(--ivory);
    --on-action: var(--forest-deep);
    --field: #1a3226;
    --ok: #7fbf92;
    --warn: #e0b46a;
    --err: #ef8a7d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a15; --bg-2: #18231c; --surface: #1b2620; --ink: #ece5d4; --ink-2: #b8b2a2;
  --line: rgba(236, 229, 212, .14); --line-strong: rgba(236, 229, 212, .3); --mark: #c9a988; --v-sage: #a9bca2; --v-beige: #d2bc99; --v-brown: #c9a988;
  --action: var(--ivory); --on-action: var(--forest-deep); --field: #1a3226;
  --ok: #7fbf92; --warn: #e0b46a; --err: #ef8a7d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--sage) var(--bg-2); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  caret-color: var(--brown);
  overflow-x: hidden;
}
::selection { background: var(--sage); color: var(--forest-deep); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--forest); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- field (forest) regions ---------- */
.field { background: var(--field); color: var(--on-field); }
.field ::selection { background: var(--ivory); color: var(--forest); }
.field .muted { color: var(--on-field-2); }
.muted { color: var(--ink-2); }

/* ---------- announcement + header ---------- */
.strip { background: var(--forest-deep); color: var(--on-field-2); font-size: .875rem; }
@media (max-width: 600px) { .strip { font-size: .8rem; } .strip .wrap { gap: .2rem; padding-block: .45rem; } }
.strip .wrap { display: flex; gap: .75rem 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; padding-block: .5rem; text-align: center; }
.strip .demo { color: var(--beige); }
.strip .demo strong { color: var(--ivory); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--forest); color: var(--ivory); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 20, 14, .28); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--on-field-2); font-size: .975rem; padding-block: .4rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--beige); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.cart-link { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; padding: .45rem .8rem .45rem .7rem; border: 1px solid var(--field-line); border-radius: 999px; }
.cart-link:hover { border-color: var(--beige); }
.cart-link svg { width: 20px; height: 20px; }
.count { display: inline-block; min-width: 1.4ch; height: 1.25em; overflow: hidden; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; }
.count span { display: block; }
.count.tick span { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-btn { display: none; background: none; border: 1px solid var(--field-line); border-radius: 999px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ivory); }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--forest); padding: .5rem var(--gutter) 1.25rem; border-top: 1px solid var(--field-line); box-shadow: 0 18px 30px rgba(10, 20, 14, .3); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--field-line); font-size: 1.1rem; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* ---------- buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(21, 41, 31, .22); text-decoration: none; }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.field .btn { background: var(--ivory); color: var(--forest); }
.field .btn.ghost { background: transparent; color: var(--ivory); border-color: rgba(239, 231, 214, .45); }
.field .btn.ghost:hover { border-color: var(--ivory); }
.btn.small { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn.block { width: 100%; }
.btn svg, .link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.packs { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.packs legend { font-size: .875rem; color: var(--ink-2); margin-bottom: .5rem; padding: 0; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, border-color .15s; }
.pack input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pack input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.pack input:disabled + span { opacity: .4; text-decoration: line-through; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); height: 48px; }
.stepper button { width: 44px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.stepper button svg { width: 16px; height: 16px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2.6ch; display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.price { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); margin-left: .4rem; letter-spacing: 0; }
.sample { display: inline-block; font-size: .75rem; letter-spacing: .02em; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: .05rem .5rem; vertical-align: middle; }

.stock { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.low { color: var(--warn); } .stock.low::before { background: var(--warn); }
.stock.out { color: var(--err); } .stock.out::before { background: var(--err); }

/* ---------- spore prints ---------- */
.print { display: block; color: var(--mark); }
.print svg { width: 100%; height: 100%; display: block; overflow: visible; }
.print .reveal { transform-origin: center; }
.js .print.develop-on-view:not(.develop) svg, .js .print.develop-wait svg { clip-path: circle(0% at 50% 50%); }
.js .print.develop svg { animation: develop 2.4s var(--ease) both; }
@keyframes develop { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(71% at 50% 50%); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -.025em; }
.hero .lede { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-field-2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.specimen { position: relative; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; color: var(--ivory); }
.specimen .print { position: absolute; inset: 0; color: var(--ivory); }
.specimen .porthole { position: absolute; inset: 25%; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px rgba(5, 12, 8, .45), 0 0 0 1px rgba(239, 231, 214, .35); background: #0d0d0c; }
.specimen .porthole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: translateX(9%) scale(1.06); transition: opacity 1.4s var(--ease), transform 6.5s cubic-bezier(.2, .6, .2, 1); }
.specimen .porthole img.on { opacity: 1; transform: none; }
.specimen .porthole img.off { opacity: 0; transform: translateX(-9%) scale(1.02); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.no-js .specimen .porthole img:first-child, .specimen .porthole img:only-child { opacity: 1; transform: none; }
.specimen .print { transition: opacity .45s var(--ease); }
.specimen .print.fading { opacity: 0; }
.specimen figcaption { transition: opacity .4s; }
.hero-pause { position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--field-line); background: transparent; color: var(--on-field-2); display: grid; place-items: center; cursor: pointer; }
.hero-pause:hover { color: var(--ivory); border-color: var(--beige); }
.hero-pause svg { width: 16px; height: 16px; }
.specimen figcaption { position: absolute; right: 0; bottom: 2%; text-align: right; font-size: .85rem; color: var(--on-field-2); }
.specimen figcaption em { font-family: var(--sans); font-style: italic; }

.harvest { border-top: 1px solid var(--field-line); }
.harvest .wrap { padding-block: 1.4rem; }
.harvest p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--on-field-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.engraved { font-family: var(--display); font-size: clamp(2.8rem, 5.4vw, 4.4rem); line-height: 1; color: var(--beige); letter-spacing: .01em; }
@supports (-webkit-text-stroke: 1px) {
  .engraved { color: var(--beige); -webkit-text-stroke: 1.5px var(--ivory); paint-order: stroke fill; }
}

@media (max-width: 860px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .hero > .wrap { gap: 2.5rem; }
  .specimen { width: min(86%, 400px); }
  .specimen figcaption { position: absolute; left: 0; right: 0; bottom: -2.2rem; text-align: center; }
  .hero-pause { bottom: -2.9rem; width: 44px; height: 44px; }
  .hero > .wrap { padding-bottom: 4.5rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 16ch; }
.section-head p { max-width: 42ch; color: var(--ink-2); }
.field .section-head p { color: var(--on-field-2); }

/* ---------- specimen plates (products) ---------- */
.plates { display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.plate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.plate:nth-child(even) .plate-media { order: 2; }
.plate-media { position: relative; }
.plate-media a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.plate-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform 1.2s var(--ease); }
.plate-media a:hover img { transform: scale(1.035); }
.plate-media .print { position: absolute; width: clamp(130px, 17vw, 210px); aspect-ratio: 1; right: -2.5rem; bottom: -2.75rem; background: var(--bg); border-radius: 50%; padding: 8px; }
.plate:nth-child(even) .plate-media .print { right: auto; left: -2.5rem; }
.plate-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 1px solid var(--mark); max-width: 30rem; }
.plate-label .no { font-family: var(--display); font-size: 1.05rem; color: var(--mark); letter-spacing: .02em; }
.plate-label .latin { margin: 0; }
.plate-title { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.plate-title a { text-decoration: none; }
.plate.is-out .plate-media img { filter: grayscale(.85); opacity: .7; }
.latin { font-style: italic; color: var(--ink-2); margin-top: .35rem; }
.plate .desc { margin-top: 1.25rem; max-width: 46ch; }
.plate .buy { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.buy-row .btn { flex: 0 0 auto; }

@media (max-width: 760px) {
  .plate { grid-template-columns: 1fr; }
  .plate:nth-child(even) .plate-media { order: 0; }
  .plate-media .print, .plate:nth-child(even) .plate-media .print { right: .5rem; left: auto; bottom: -2.75rem; width: 128px; }
  .plate-label { margin-top: 1.5rem; }
}

/* ---------- reasons ---------- */
.reasons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--field-line); }
.reasons li { display: grid; grid-template-columns: clamp(72px, 9vw, 120px) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--field-line); align-items: baseline; }
.reasons .print { color: var(--beige); width: 100%; aspect-ratio: 1; align-self: start; }
.reasons h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.reasons p { margin-top: .6rem; color: var(--on-field-2); max-width: 52ch; }
@media (max-width: 700px) { .reasons li { grid-template-columns: 64px 1fr; } }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.journey figure { margin: 0; }
.journey figure img { border-radius: var(--radius); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.journey figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-2); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 2rem 3.5rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: .95rem; font-variant-numeric: lining-nums; background: var(--bg); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: 0; border-left: 1px dashed var(--line-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--ink-2); margin-top: .3rem; }
@media (max-width: 800px) { .journey { grid-template-columns: 1fr; } .journey figure img { aspect-ratio: 4 / 3; } }

/* ---------- recipes ---------- */
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.recipe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.recipe h3 { font-size: 1.6rem; margin-top: 1.1rem; }
.recipe .meta { display: flex; gap: 1.25rem; margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.recipe .meta b { font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; margin-right: .25rem; }
.recipe details { margin-top: 1rem; border-top: 1px solid var(--line); }
.recipe summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding-block: .9rem; font-weight: 600; min-height: 44px; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe summary::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12M12 6v12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12M12 6v12'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.recipe details[open] summary::after { transform: rotate(45deg); }
.recipe h4 { font-family: var(--sans); font-weight: 600; font-size: .95rem; margin: .5rem 0 .4rem; }
.recipe ul, .recipe ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); }
.recipe li { margin-bottom: .35rem; }
@media (max-width: 900px) {
  .recipes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .recipe { scroll-snap-align: start; }
}

/* ---------- reviews ---------- */
.reviews-empty { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.reviews-empty .print { width: 88px; aspect-ratio: 1; }
.reviews-empty h3 { font-size: 1.6rem; }
.reviews-empty p { color: var(--ink-2); margin-top: .4rem; max-width: 56ch; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.quotes blockquote { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.35; }
.quotes cite { display: block; margin-top: .8rem; font-family: var(--sans); font-style: normal; color: var(--ink-2); font-size: .95rem; }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; }
.closing .wrap { position: relative; z-index: 1; padding-block: clamp(4.5rem, 10vw, 8rem); }
.closing h2 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); max-width: 13ch; }
.closing p { margin-top: 1.25rem; max-width: 40ch; color: var(--on-field-2); font-size: 1.15rem; }
.closing .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.closing .print { position: absolute; width: min(70vw, 720px); aspect-ratio: 1; right: -12%; top: 50%; transform: translateY(-50%); color: var(--ivory); opacity: .22; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-field-2); font-size: .95rem; }
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 4.5rem) 6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer .brand { color: var(--ivory); }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ivory); margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer .about { margin-top: 1rem; max-width: 32ch; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--field-line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- floating WhatsApp ---------- */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: .5rem; height: 54px; padding: 0 1.1rem 0 .95rem; border-radius: 999px; background: var(--forest); color: var(--ivory); text-decoration: none; font-weight: 600; box-shadow: 0 10px 28px rgba(10, 20, 14, .35); border: 1px solid rgba(239, 231, 214, .25); }
.wa svg { width: 24px; height: 24px; }
.wa:hover { background: var(--forest-raised); }
@media (max-width: 600px) { .wa span { display: none; } .wa { width: 54px; padding: 0; justify-content: center; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; z-index: 60; background: var(--charcoal); color: var(--ivory); padding: .85rem 1rem .85rem 1.2rem; border-radius: var(--radius); display: flex; align-items: center; gap: 1rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); transition: transform .45s var(--ease), visibility 0s .45s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }
.toast a { color: var(--beige); font-weight: 600; white-space: nowrap; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 18ch; }
.page-head p { margin-top: 1.1rem; max-width: 52ch; color: var(--on-field-2); font-size: 1.15rem; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.5rem; }
.crumbs a { color: inherit; }

/* ---------- catalogue grid ---------- */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.item { display: flex; flex-direction: column; }
.item .media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.item .media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transition: transform 1.2s var(--ease); }
.item .media:hover img { transform: scale(1.04); }
.item.is-out .media img { filter: grayscale(.85); opacity: .7; }
.item .badge { position: absolute; left: .75rem; top: .75rem; background: var(--bg); color: var(--ink); padding: .25rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.item .head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-top: 1.25rem; }
.item .head .print { width: 56px; aspect-ratio: 1; flex: none; }
.item h2 { font-size: 2rem; }
.item h2 a { text-decoration: none; }
.item .no { font-family: var(--display); color: var(--mark); margin-right: .5rem; font-size: 1rem; }
.item .desc { margin-top: .9rem; color: var(--ink-2); }
.item .buy { margin-top: 1.5rem; display: grid; gap: 1rem; margin-top: auto; padding-top: 1.5rem; }
@media (max-width: 960px) { .catalogue { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .catalogue { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.gallery .main { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.gallery .main img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.thumbs { display: flex; gap: .75rem; margin-top: .75rem; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: var(--radius); overflow: hidden; width: 88px; cursor: pointer; background: none; opacity: .65; transition: opacity .2s; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--ink); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-info { position: sticky; top: 96px; }
.product-info h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.product-info .plate-label { border-bottom: 0; padding-bottom: 0; margin-bottom: .5rem; }
.product-info .title-row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.product-info .title-row .print { width: clamp(120px, 12vw, 160px); aspect-ratio: 1; flex: none; }
.product-info .desc { margin-top: 1.25rem; }
.product-info .buy { margin-top: 2rem; display: grid; gap: 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.product-info .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.facts { margin: 2.5rem 0 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding-block: .85rem; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--ink-2); padding-right: 2rem; }
.note { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--bg-2); border-radius: var(--radius); font-size: .95rem; color: var(--ink-2); }
.note strong { color: var(--ink); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-info { position: static; } }

.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.related a { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center; text-decoration: none; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.related a:hover { border-color: var(--ink); }
.related img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.related h3 { font-size: 1.6rem; }
@media (max-width: 640px) { .related { grid-template-columns: 1fr; } .related a { grid-template-columns: 88px 1fr; } }

/* ---------- cart & checkout ---------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.line h3 { font-size: 1.45rem; }
.line h3 a { text-decoration: none; }
.line .sub { color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }
.line .controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .9rem; }
.line .amount { font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; text-align: right; align-self: start; }
.remove { background: none; border: 0; padding: .5rem 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; min-height: 44px; }
.remove:hover { color: var(--err); }
@media (max-width: 560px) { .line { grid-template-columns: 72px 1fr; } .line img { width: 72px; } .line .amount { grid-column: 2; text-align: left; } }

.summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.summary h2 { font-size: 1.8rem; margin-bottom: 1.25rem; }
.sumrow { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; font-variant-numeric: tabular-nums; }
.sumrow.total { border-top: 1px solid var(--line-strong); margin-top: .5rem; padding-top: 1rem; align-items: baseline; }
.sumrow.total span:last-child { font-family: var(--display); font-size: 2rem; }
.sumrow.discount { color: var(--ok); }
.summary .hint { font-size: .9rem; color: var(--ink-2); margin-top: .5rem; }
.summary .btn { margin-top: 1.25rem; }
.promo { display: flex; gap: .5rem; margin-top: 1.25rem; }
.promo input { flex: 1; min-width: 0; }
.mini-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: .75rem; align-items: center; font-size: .95rem; }
.mini-lines img { width: 52px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }

.empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.empty .print { width: 140px; aspect-ratio: 1; margin: 0 auto 1.5rem; }
.empty h2 { font-size: 2.2rem; }
.empty p { color: var(--ink-2); margin: .75rem auto 1.75rem; max-width: 40ch; }

/* forms */
.form { display: grid; gap: 2.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.form legend { font-family: var(--display); font-size: 1.6rem; margin-bottom: 1.1rem; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.fieldset-row { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(143, 160, 138, .45); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.error { color: var(--err); font-size: .9rem; }
.error:empty { display: none; }
.help { color: var(--ink-2); font-size: .9rem; }
.ok-msg { color: var(--ok); font-size: .9rem; }
.choices { display: grid; gap: .6rem; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .25rem .85rem; align-items: start; padding: .95rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 400; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice input { margin: .25rem 0 0; accent-color: var(--forest); width: 18px; height: 18px; }
.choice b { font-weight: 600; }
.choice small { grid-column: 2; color: var(--ink-2); font-size: .9rem; }
.banner { display: flex; gap: .85rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); font-size: .95rem; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--warn); }

.confirm { max-width: 760px; margin-inline: auto; }
.confirm .print { width: 120px; aspect-ratio: 1; }
.confirm h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 1.5rem; }
.confirm dl { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.confirm dt, .confirm dd { margin: 0; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.confirm dt { color: var(--ink-2); padding-right: 2rem; }

/* tracking */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; padding-bottom: 1.4rem; position: relative; color: var(--ink-2); }
.timeline li::before { content: ""; width: 14px; height: 14px; margin: .35rem auto 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); position: relative; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: calc(1.1rem - .5px); top: 1.2rem; bottom: 0; border-left: 1px solid var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline b { color: var(--ink); font-weight: 600; display: block; }

/* prose (about, policies) */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 3rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.draft { display: block; padding: 1rem 1.1rem; border: 1px dashed var(--warn); border-radius: var(--radius); color: var(--ink-2); font-size: .98rem; }
.draft::before { content: "Draft · "; color: var(--warn); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-list li > span:first-child { color: var(--ink-2); }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: .2rem; } }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 3rem; }
.credits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.credits-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center; }
.credits-list img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* reveal on scroll: visible by default, enhanced only with JS */
.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

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

/* Prices and quantities: lining, tabular figures so 1 never reads as I */
.price, .stepper output, .count, .line .amount, .sumrow.total span:last-child {
  font-family: var(--sans); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em;
}
.price { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.count { font-size: 1rem; line-height: 1.25; }
@media (max-width: 600px) { .reviews-empty { grid-template-columns: 1fr; } .reviews-empty .print { width: 72px; } }
