/* ==========================================================================
   Artisan Tempeh — design system (public/css/site.css)
   "Warm Market" — Classic Indonesian Tempeh. Three merch colours (sand, dark chocolate,
   dark olive) and their tints; no red, no yellow. Batik motifs (kawung / truntum / parang /
   mega mendung / ceplok) on every band, a woven bamboo tray (tampah) under the product,
   banana-leaf transitions, lurik stripe bands, a gunungan silhouette, paper grain and linen.
   Display: Young Serif (400 only). Body: Nunito 400/600/700/800 + 400i.
   Noto Sans Javanese is used for one ornament (ꦠꦺꦩ꧀ꦥꦺ) only.
   Light only (color-scheme: light). Every animation/transition lives inside
   @media (prefers-reduced-motion: no-preference). Breakpoints 36 / 48 / 64 / 80em.

   TYPE FLOOR — nothing on the site is smaller than 1rem (16px). --fs-xs = 1rem, --fs-small =
   1.0625rem, --fs-body = 1.125rem (18px), --fs-lede 21–24px, nav links and buttons 1.125rem.
   Do not write a font-size below 1rem in any stylesheet.

   SHARED SHELL — design/shell.html (outside public/, not served) is the reference page: head lines, skip link,
   sprite, header, rules band, <main>, footer, sticky CTA, script. Every page copies those parts unchanged.

   MOTIF SPRITE — pages that use url(#kawung …) fills, <use href="#tampah">, <use href="#gunungan">,
   <use href="#leaf-sweep"> / <use href="#leaf-banana"> or <use href="#leaf-stitch"> must include the
   inline <svg class="sprite"> from design/motifs.svg.html right after the skip link. The CSS-only
   motifs (.batik-*, .batik-frame, .hem, .lurik, .selvedge, .weave) work without it.

   THE BADGE — the oval logo in the header is the shop sign. Order of the page top: the rules band (.ticker, pinned
   to the top of the window when motion is allowed), then the sticky header right under it, then <main>. At the top of the page the badge is big; as the page scrolls it docks
   into the bar. site.js writes --dock on .site-header, from 0 (big) to 1 (docked), over --dock-range px of scroll
   counted from where the header sticks, so the badge moves with the page under your finger (reduced motion: it
   switches between the two sizes instead). The menu panel forces it docked (.is-open); without JavaScript it stays
   big and the header is not sticky, so it scrolls away instead of covering the page.
     Below 64em: a MASTHEAD. The bar's background reaches down past the big badge (204px tall) with the wordmark
       lockup beside it ("Artisan / Tempeh" + "Handmade in Calgary"), and the kawung strip at its foot. It folds up
       by exactly the distance scrolled, so the page never slides under it; the lockup fades and the one-line
       wordmark (.nav-brand-name) fades in beside the docked badge.
     From 64em (<html class="has-sign">): the big badge hangs from the bar over the left of the first block, whose
       content sits beside it (THE SHOP SIGN, section 14). The one-line wordmark sits in the bar and slides left as
       the badge docks.
     Tokens (:root, section 1)
       --brand-h-top / --brand-h-compact   the badge's height big / docked (the big one is --sign-h from 64em)
       --brand-w       width of the big badge          --brand-top   space between the top of the bar and the big badge
       --mast-ext      how far the masthead reaches below the bar at the top of the page (0 from 64em)
       --dock-range    px of scroll over which the badge docks: --mast-ext, or --sign-reach from 64em
       --brand-gap     space between the masthead (or the badge, from 64em) and the first content
       --brand-clear   the least top padding the first block of <main> needs: --mast-ext + --brand-gap (0 from 64em)
       --header-h / --header-strip / --gutter   header bar height, the strip under it, the container side padding
     Tokens on .site-header (right now):  --d (dock state)  --brand-h / --brand-y (badge height / top)  --mast-now
     CLEARANCE (automatic, section 14)
       .site-header + main > :first-child gets padding-top: max(var(--pad-top), var(--brand-clear)).
       --pad-top is that block's own top padding: .section, .section-tight, .hero and .error-page set it; anything
       else (a .page-head, a plain <section>) falls back to clamp(2.5rem, 6vw, 4.5rem). To change the top padding
       of the first block in <main>, set --pad-top on it. Do not write padding-top there: this rule wins.
       The first child must be the first visible CONTENT block; a leading svg / .lurik / .hem / .weave-band
       is skipped, and so is the block after it, so do not start <main> with a decorative strip.
     Do not place anything between .site-header and <main>.

   FONT NOTE — Young Serif ships one weight. html { font-synthesis: none } stops the browser faking
   bold/italic, so any legacy `font-weight: 600` on a display element renders as the true 400 face.

   CLASS INDEX  (name — purpose — notes)
   Layout
     .container        — 72rem centred column, side gutter var(--gutter): 1rem, 1.5rem ≥ 36em
     .container-wide   — 84rem variant for photo/product grids
     .bleed            — breaks out of .container to the viewport edges
     .section          — vertical rhythm, padding clamp(3.5rem, 8vw, 7rem); position: relative (motif layers go inside)
     .section-tight    — half the section padding
                         (both expose their top padding as --pad-top for the badge clearance, see THE HANGING BADGE)
     .band-tint        — bone band · .band-leaf adds the leaf watermark at 5 % (kept for legacy pages)
     .band-dark        — olive-deep band, cream text, sand focus rings (headings cream, .eyebrow sand)
     .band-olive       — olive band; same text rules as .band-dark (.eyebrow bone)
     .band-sand        — sand band, chocolate-deep text
     .band-choc        — chocolate-deep band, sand text (footer colour)
     .linen            — adds the hairline linen weave to any cream/bone surface
     .grid             — 12-col grid ≥ 48em (single column below); use .col-N / .col-start-N on children
     .stack / .cluster — vertical rhythm helper / wrapping flex row of buttons
   Type
     .display          — Young Serif hero headline, fluid clamp, lh .98
     .eyebrow          — Nunito 800 1rem uppercase ls .12em olive-deep; .eyebrow-sambal = chocolate accent
     .section-num      — Young Serif numeral opener ("01 —") placed before a heading (upright; no italic face)
     .lede             — larger intro paragraph (21–24px), muted ink
     .marker           — sand highlight behind a word (use on <mark>)
     .link-arrow       — inline text link with a trailing arrow that nudges on hover
     .muted            — muted ink text
     .prose            — readable long-form text block (FAQ/About)
     .phrase           — greeting phrase in display type + .phrase-tr translation (Nunito caps, 1rem)
     .aksara           — the aksara Jawa ornament: .aksara-glyphs (lang="jv", aria-hidden) + .aksara-cap caption;
                         site.js hides the glyphs if Noto Sans Javanese never loads
   Buttons (all 1.125rem Nunito 800, hand-cut corners)
     .btn              — 48px base. Modifiers:
     .btn-primary      — olive fill, cream text, 3px olive-deep "press" shadow (the main CTA)
     .btn-secondary    — 2px chocolate outline, chocolate text; on dark bands cream text / sand outline
     .btn-outline      — alias of .btn-secondary
     .btn-ghost        — no border, olive-deep text, stitch underline on hover
     .btn-dark         — chocolate fill, cream text
     .btn-sm / .btn-lg — 44px / 56px · .btn-block — full width
     [disabled]/.is-loading — 55 % opacity, no pointer
   Cards & surfaces
     .card             — paper surface, 1.5px line border, hand-cut radius, soft chocolate shadow, padding
     .card-tint        — bone, no border
     .card-link        — whole-card anchor (block, inherits colour); lifts on hover (motion only)
     .paper            — a paper note: paper bg, 1.5px line border, --cut-2 radius, padding
     .rates            — <dl> of fee/pickup rows: <div><dt>…</dt><dd>…</dd></div>, dotted sand rules between
     .selvedge         — 10px vertical lurik stripe down the left edge of a card
     .stitch           — inset dashed "running stitch" ring (sand on dark; .stitch-olive for light surfaces)
     .patch            — round embroidered patch: olive felt, sand stitch ring, display type; <br><span> for the small line
                         .patch-light = cream patch for dark bands · .patches = centred row of rotated patches
     .sticker          — torn-edge paper note (title in .sticker-title); rotated 2°
     .price-tag        — paper swing tag with a punched hole: .price-tag-qty / .price-tag-price / .price-tag-note
     .price-list       — hanging price labels on a product card: <li><span class="q">4 blocks</span><span class="p">$35</span><span class="n">free delivery</span></li>
     .placeholder-photo — labelled photo frame kept on purpose: .ph-label (<span> = "Photo:" kicker) + .ph-hint;
                         variants .is-portrait (4:5) .is-square .is-wide .is-dark (olive)
   Motifs — batik (CSS-only; put the class on a positioned block, content sits above the layer)
     .batik-kawung / .batik-parang / .batik-truntum / .batik-megamendung / .batik-ceplok
                       — paints the motif on ::before at --batik-opacity (default .22). Add ONE surface modifier:
     .on-olive         — olive bg, cream motif 22 %     .on-olive-deep — olive-deep bg, cream motif 24 %
     .on-chocolate     — chocolate-deep bg, sand motif 22 %   .on-sand — sand bg, olive motif 16 %
     .on-cream / .on-bone — cream / bone bg, olive-deep motif 15 % / 16 %: the pattern must be plainly visible.
                         Headings, ledes and short lines read fine straight on it; put text-heavy blocks
                         (several paragraphs, forms, tables) on a .paper / .card panel.
                         Standalone shorthand also works: .batik-kawung-on-olive etc. (same five motifs × four surfaces)
                         The cloud motif (megamendung) is thin and sparse, so it is painted 1.2× stronger (--batik-boost).
     .batik-strong     — bumps the layer to 28 %
     .batik-frame      — 12px batik frame just inside the edge (any radius). Default parang; add .frame-kawung /
                         .frame-ceplok / .frame-megamendung / .frame-truntum. Dark tile on light cards; on
                         .notice-panel / .tile / dark surfaces it switches to the cream tile automatically.
     .batik-text       — fills big display text with olive + ceplok (background-clip: text); for huge numerals
     .batik-strip      — 12px strip: olive with the kawung at 35 % (header bottom edge, footer top)
     .motif            — absolutely positioned inline <svg> that fills its section with a SPRITE pattern:
                         <svg class="motif" aria-hidden="true"><rect width="100%" height="100%" fill="url(#truntum)"/></svg>
                         22 % by default; 16 % inside .on-cream / .on-bone / .on-sand (use the -dark patterns there)
   Motifs — bamboo & banana leaf
     .tampah           — the woven bamboo tray: <svg class="tampah" viewBox="0 0 500 500" aria-hidden="true"><use href="#tampah"/></svg>
                         absolutely fills its wrapper (.tampah-wrap: position relative, aspect 1, product <img> above it)
     .weave            — basket-weave texture as a surface background (CSS tile, no sprite); .weave-band = 24px strip
     .leaf-divider     — two long banana leaves crossing between sections (72px to 160px tall):
                         <svg class="leaf-divider" viewBox="0 0 1200 120" preserveAspectRatio="xMidYMid slice"
                         aria-hidden="true" focusable="false"><use href="#leaf-sweep"/></svg>
                         The strip's background is --leaf-bg (default cream): give it the colour of the section it
                         belongs with, e.g. style="--leaf-bg: var(--bone)". Front leaf = color (olive), back leaf =
                         --leaf-2 (olive-deep), midribs = --leaf-rib (sand). .is-flipped mirrors it, .is-deep swaps
                         the two greens. Keep the leaves dark: on an olive strip use .is-deep or a cream --leaf-bg.
     .leaf-bed         — wrapper that lays two big banana leaves under its content:
                         <div class="leaf-bed"><svg class="leaf-bed-leaf" viewBox="0 0 400 180" aria-hidden="true"
                         focusable="false"><use href="#leaf-banana"/></svg> …</div>
                         Add .is-tall when the content becomes a tall stack of cards on phones: the leaves then run down
                         the stack instead of across it. Same colour hooks as the divider (color, --leaf-2, --leaf-rib).
                         Put cards on top of it, not bare text; leave about 3rem of free space above the wrapper.
     .tampah-leaf      — a banana leaf lining the tray, between the .tampah svg and the render inside a .tampah-wrap:
                         <svg class="tampah-leaf" viewBox="0 0 400 180" aria-hidden="true" focusable="false"><use href="#leaf-banana"/></svg>
                         Its tips reach about 15 % past the rim on each side: leave that room or clip the parent.
     .sign-cloth       — desktop only: a length of batik cloth (sand, parang, lurik selvedges, tumpal border, fringe)
                         hanging behind the shop sign down the first block of <main>, so the column under the sign is
                         not an empty strip: <div class="sign-cloth" aria-hidden="true"></div> as the first child of
                         that block (section 17). --cloth-end = the gap it leaves above the block's bottom edge.
     .hero-leaves      — desktop only, alternative to .sign-cloth (not used on Home now): an inline svg of banana
                         leaves tucked behind the lower end of the sign (section 17).
     .bean-rain        — soybeans falling behind a section's content (every section of Home):
                         <div class="bean-rain" data-bean-rain aria-hidden="true"></div> as the section's first child.
                         Filled and animated by /js/beans.js, which also adds the fixed .bean-toggle pause button
                         (section 17).
     .swatch-card      — a paper card of batik cloth samples: .swatches > .swatch (+ one .batik-* and one .on-* class
                         each) and a <figcaption> (<strong> = its title). For a spot that needs a picture, not a photo.
                         (.swatch is only styled inside .swatches here; pages.css has its own .swatch for .craft-card.)
     .lurik            — 16px horizontal lurik stripe band (<div class="lurik" aria-hidden="true">)
     .hem              — chocolate band with the sand parang (CSS-only)
     .gunungan         — large wayang-kulit silhouette behind a dark section (section gets .has-gunungan):
                         <svg class="gunungan" viewBox="0 0 400 600" aria-hidden="true"><use href="#gunungan" class="gunungan-fill"/><use href="#gunungan" class="gunungan-stitch"/></svg>
     .brand-mark       — the stitched leaf badge as an inline svg (<use href="#leaf-stitch"/>) — patches, 404, not the header
   Forms
     .field            — label + control wrapper (display grid, gap .375rem); .field-row puts fields side by side
     .field input/select/textarea — 52px, paper bg, 1.5px line-strong border, olive focus ring, 1.125rem text
     .hint             — helper text under a control (muted ink, 1rem); give it an id and aria-describedby
     .field-error      — error message (chocolate-deep, "!" chip) — created by util.setFieldError
     .is-invalid       — on the wrapper: chocolate border on the control, shows .field-error
     .choice           — radio/checkbox card: <label class="choice"><input …><span class="choice-body">…</span></label>
                         native input is visually hidden; checked → olive ring + olive wash; focus → outline
     .choice-group     — grid of .choice (auto-fit, min 12rem); .choice-group-stack for one column
     .stepper          — −/value/+: <div class="stepper"><button>−</button><output class="stepper-value">1</output><button>+</button></div>
                         .stepper-value bumps on change when .bump is toggled (motion only)
     .chip             — pill toggle/filter button; selected state via aria-pressed="true" (olive fill)
     .chip-group       — flex-wrap row of chips; .chip-group-sticky pins it under the header
   Badges & status (1rem)
     .badge            — small uppercase pill; .badge-soy (sand/chocolate-deep) .badge-olive (olive/cream)
                         .badge-muted (bone/muted ink) .badge-choc (chocolate/cream)
     .status           — admin status pill by data-status: pending_payment/expired/cancelled/refunded muted sand;
                         paid olive fill; confirmed chocolate outline; fulfilled chocolate fill
   Notices
     .notice-panel     — the painted rules sign: olive board, cream ceplok frame, sand heading; <ul> of NOTICE items (<strong> title)
     .notice-grid      — the four "Good to know" tiles: .notice-tile > .notice-num (olive kawung circle) + h3 + p
   Ticker
     .ticker           — the olive rules band at the very top of every page, above the header (parang wash, lurik
                         stripe under it). Same four short phrases on every page: copy the <aside class="ticker">
                         from design/shell.html.
                         Motion allowed: a one-line marquee, 52px tall, pinned to the top of the window (site.js
                         repeats the phrases for a seamless loop; without JavaScript the one set slides through).
                         Reduced motion: a static list (a stack below 48em, a wrapped row above) that scrolls away.
                         --ticker-dur (60s) is the time the four phrases take to pass once.
     .ticker-track / .ticker-item — the <ul> and one phrase (sand dot before it; .is-notice = 800 weight).
                         1rem in the phone stack, 1.0625rem otherwise.
   Stats
     .stat             — figure block: .stat-value (Young Serif) + .stat-unit / .stat-prefix (small caps) + .stat-label
     .stat-cards       — <ul> of .stat as dashed cards (2-up) on a dark band
   Steps
     .steps / .step    — paper step cards with .step-num (olive kawung circle numeral); .step-accent = chocolate numeral
                         .steps.is-stacked = numeral above the title when the cards are four across (64em and up)
   Motion
     .reveal           — fades/translates in when site.js adds .in; --i (0…n) staggers by 90ms each.
                         Only hidden when html.js is present AND motion is allowed (never hides content otherwise)
   Chrome
     .skip-link        — visually hidden until focused; jumps to #main
     .visually-hidden  — screen-reader-only text
     .site-header      — sticky cream header with a kawung strip along its bottom; below 64em a masthead at the top of
                         the page. --dock (site.js) docks the badge as the page scrolls; .is-open = phone menu open
     .nav              — flex row: .nav-brand, .nav-links (ul; dropdown panel < 64em; stitch underline on hover /
                         aria-current="page"), .nav-right holding .nav-cta (primary, hidden < 36em) and .nav-toggle
                         (hamburger, < 64em); .nav-mobile-cta is the button inside the dropdown.
     .nav-brand        — the home link. It keeps a fixed slot in the bar so the nav never shifts. Inside: the <img>
                         badge (absolute, var(--brand-h) tall, chocolate drop shadow, capsule focus ring),
                         .nav-brand-name (one-line wordmark) and .nav-brand-lockup (.nbl-name + .nbl-tag, the big
                         wordmark beside the big badge below 64em). See THE BADGE above. .wordmark is hidden (legacy).
     .beside-sign      — on desktop pages with <html class="has-sign">, marks the element that must start to the right
                         of the big badge when the first block of <main> has no .container. See THE SHOP SIGN.
     .site-footer      — chocolate-deep footer, batik strip + lurik on top: .footer-grid, .footer-brand (badge ≈180px,
                         .footer-name, .footer-phrase), .footer-col (h2 + ul; .plain list with sand dots), .footer-bottom, .footer-fine
     .sticky-cta       — fixed bottom "Order now" on < 48em; site.js adds .is-visible after the hero scrolls out
   Admin / misc
     .table            — basic data table (wrap in .table-wrap for horizontal scroll)
     .drawer           — fixed right-side panel (min(32rem, 100%)); becomes a bottom sheet < 48em; .is-open shows it;
                         .drawer-backdrop dims the page; .drawer-header / .drawer-body / .drawer-footer
     .toast            — message pill appended to .toast-region (bottom centre) by site.toast(); data-type="error|success|info"
   Keep it fresh (Home + thanks)
     .fresh-grid/.fresh-card (fridge & freezer), .fresh-icon, .fresh-subhead, .fresh-thaw/.fresh-option/.fresh-num/.fresh-best/.fresh-or,
     .fresh-steps/.fresh-step-num, .fresh-tagline; .fresh-compact is the thanks-page card
   Home sections (section 17): .hero* (.hero-art holds a .tampah-wrap + .price-tag + .patch; .hero-micro = fact pills),
     .photo-frame (olive-deep 12px frame around a photo; add .batik-frame for the motif band), .what-*,
     .products/.product-card (selvedge built in)/.product-figure (bone, holds a .tampah-wrap)/.product-body/.product-tags,
     .logistics, .story-* (.story-badge = the big badge), .journey/.journey-title/.tiles/.tile (.is-feature spans 2 rows),
     .closing* (.closing-copy + .closing-art = text beside a tray), .error-page (404; pair .display with .batik-text;
     .error-tray = the empty tampah standing in for the zero)
     Illustrated tiles: .tile-scene (picture area built from the motifs), .tile.is-light (paper tile on a dark band),
     .tile-explain (.tile-art drawing beside an <h3> and a line of text; .tile-art.is-leaf for the banana leaf)
     .fresh-subhead wraps its text in <span> (paper chip) and .fresh-or is a paper pill so both read on the leaf bed
     .notice-panel .notice-aside — the display-type closing line inside the rules sign

   LEGACY TOKENS — order.css / pages.css / admin.css still read --sambal, --soy, --sage, --cream-2, --surface,
   --line-strong, --neutral-tint and the *-tint tokens. They are aliased to palette colours below so those pages
   stay coherent until wave 2 migrates them (grep "legacy alias").
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Palette — the aprons and tees */
  --sand: #D8CDB2;        /* sand cotton tee; embroidery thread */
  --sand-deep: #BFB092;   /* worn sand */
  --choc: #4B3126;        /* dark chocolate tee; secondary outline, .btn-dark */
  --choc-deep: #33201A;   /* body ink, footer */
  --olive: #4A5B3C;       /* apron and cap; primary buttons, dark sections */
  --olive-deep: #36432B;  /* shadow under olive, link colour on cream */
  --cream: #F4EEE1;       /* page */
  --bone: #EFE7D6;        /* deeper paper, alternate sections */
  --paper: #FAF6EC;       /* cards, tags, notes */
  --ink: #33201A;         /* = chocolate-deep */
  --ink-2: #6B5A4E;       /* muted text (5.7:1 on cream, 5.3:1 on bone) */
  --line: #D9CFBB;
  --line-strong: #96897D; /* muted ink at 70 % over paper — input borders need 3:1 */
  --olive-wash: rgb(74 91 60 / 0.09);   /* hover / selected wash on paper */
  --choc-wash: rgb(75 49 38 / 0.1);     /* error / attention wash */
  --sand-wash: rgb(216 205 178 / 0.5);  /* soft sand wash for notes */

  /* legacy alias — read by order.css / pages.css / admin.css until wave 2 */
  --cream-2: var(--bone);
  --surface: var(--paper);
  --sage: var(--sand);
  --sage-tint: var(--olive-wash);
  --sambal: var(--choc);
  --sambal-deep: var(--choc-deep);
  --sambal-tint: var(--choc-wash);
  --soy: var(--sand);
  --soy-tint: var(--sand-wash);
  --neutral-tint: var(--bone);

  /* Type — floor is 1rem everywhere */
  --font-display: 'Young Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-jv: 'Noto Sans Javanese', sans-serif;

  --fs-display: clamp(2.75rem, 1.5rem + 4.4vw, 5rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-stat: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --fs-lede: clamp(1.3125rem, 1.2rem + 0.6vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 1.0625rem;
  --fs-xs: 1rem;
  --fs-ui: 1.125rem;       /* nav links, buttons, inputs */
  --lh-body: 1.6;

  /* Space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --s10: 8rem;
  --section-pad: clamp(3.5rem, 8vw, 7rem);

  /* Hand-cut corners: slightly uneven radii read as scissors, not CAD */
  --cut: 18px 22px 16px 24px / 24px 16px 22px 18px;
  --cut-2: 22px 14px 20px 16px / 16px 22px 14px 20px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 0 rgb(51 32 26 / 0.06), 0 8px 18px -12px rgb(51 32 26 / 0.3);
  --shadow-md: 0 1px 0 rgb(51 32 26 / 0.06), 0 14px 28px -18px rgb(51 32 26 / 0.35);
  --shadow-lg: 0 2px 0 rgb(51 32 26 / 0.06), 0 28px 48px -24px rgb(51 32 26 / 0.45);
  --shadow-render: drop-shadow(0 18px 24px rgb(51 32 26 / 0.28));

  --focus-color: var(--olive);
  --focus: 3px solid var(--focus-color);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.6s;
  --ticker-dur: 60s;        /* time for the four phrases to pass once (slower, easier to read) */

  /* Chrome geometry. --header-h is the header BAR (the nav row); the kawung strip under it adds --header-strip. */
  --gutter: 1rem;           /* side padding of .container / .container-wide (1.5rem from 36em) */
  --header-h: 4.5rem;
  --header-strip: 10px;

  /* The badge: the oval logo (480 x 755 artwork). Big at the top of the page, docked in the bar once scrolled.
     See "THE BADGE" above. */
  --brand-ratio: 0.6358;                /* width / height of the badge */
  --brand-top: 0.75rem;                 /* space between the top of the bar and the top of the big badge */
  --brand-h-top: 12.75rem;              /* 204px: the big badge (the sign's size, --sign-h, from 64em) */
  --brand-h-compact: 3.75rem;           /* 60px: docked in the bar (4rem from 64em) */
  --brand-w: calc(var(--brand-h-top) * var(--brand-ratio));   /* width of the big badge */
  --mast-pad: 0.75rem;                  /* space under the big badge, inside the masthead */
  --mast-ext: calc(var(--brand-top) + var(--brand-h-top) + var(--mast-pad) - var(--header-h));   /* how far the masthead reaches below the bar at the top of the page */
  --dock-range: var(--mast-ext);        /* px of scroll over which the badge docks (site.js reads it) */
  --brand-gap: 1.25rem;                 /* space between the masthead (or the hanging badge, from 64em) and the first content */
  --brand-clear: calc(var(--mast-ext) + var(--brand-gap));   /* the least top padding the first block of <main> needs */
  --band-h: calc(3.125rem + 16px);      /* the rules band is never shorter than this (one line + the lurik stripe); slimmer when pinned */
  --band-stripe: 16px;                  /* the lurik stripe under the rules band (8px when pinned) */
  --ticker-pin: 0px;                    /* height of the rules band pinned to the top of the window (motion allowed), else 0 */
  --chrome-h: calc(var(--ticker-pin) + var(--header-h) + var(--header-strip));   /* everything pinned at the top once the badge has docked: sticky panels and hash links start below it */
  --shell-max: 72rem;                   /* the column the header and the first block line up on; wider on desktop pages */

  /* Lurik: thin woven stripes. Horizontal lines for bands, vertical for card edges. */
  --lurik-h: repeating-linear-gradient(180deg,
    var(--olive) 0 3px, var(--cream) 3px 4px, var(--choc) 4px 6px, var(--sand) 6px 8px,
    var(--olive-deep) 8px 9px, var(--cream) 9px 10px, var(--choc) 10px 11px, var(--sand) 11px 13px,
    var(--olive) 13px 14px, var(--cream) 14px 15px, var(--sand) 15px 16px);
  --lurik-v: repeating-linear-gradient(90deg,
    var(--olive) 0 2px, var(--cream) 2px 3px, var(--choc) 3px 4px, var(--sand) 4px 6px,
    var(--olive-deep) 6px 7px, var(--cream) 7px 8px, var(--sand) 8px 10px);

  /* Batik tiles as data URIs. "-light" = cream strokes for dark surfaces, "-dark" = olive-deep strokes
     for sand/cream surfaces. Same drawings as the sprite patterns in design/motifs.svg.html. */
  --kawung-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='%23F4EEE1' stroke-width='1.3'%3E%3Cellipse cx='10' cy='10' rx='9.5' ry='5' transform='rotate(45 10 10)'/%3E%3Cellipse cx='30' cy='10' rx='9.5' ry='5' transform='rotate(-45 30 10)'/%3E%3Cellipse cx='10' cy='30' rx='9.5' ry='5' transform='rotate(-45 10 30)'/%3E%3Cellipse cx='30' cy='30' rx='9.5' ry='5' transform='rotate(45 30 30)'/%3E%3Cpath stroke-width='1' d='M20 17.5v5M17.5 20h5M0 17.5v5M-2.5 20h5M40 17.5v5M37.5 20h5M20-2.5v5M17.5 0h5M20 37.5v5M17.5 40h5'/%3E%3C/g%3E%3Cg fill='%23F4EEE1'%3E%3Ccircle cx='10' cy='10' r='1.3'/%3E%3Ccircle cx='30' cy='10' r='1.3'/%3E%3Ccircle cx='10' cy='30' r='1.3'/%3E%3Ccircle cx='30' cy='30' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --kawung-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='%2336432B' stroke-width='1.3'%3E%3Cellipse cx='10' cy='10' rx='9.5' ry='5' transform='rotate(45 10 10)'/%3E%3Cellipse cx='30' cy='10' rx='9.5' ry='5' transform='rotate(-45 30 10)'/%3E%3Cellipse cx='10' cy='30' rx='9.5' ry='5' transform='rotate(-45 10 30)'/%3E%3Cellipse cx='30' cy='30' rx='9.5' ry='5' transform='rotate(45 30 30)'/%3E%3Cpath stroke-width='1' d='M20 17.5v5M17.5 20h5M0 17.5v5M-2.5 20h5M40 17.5v5M37.5 20h5M20-2.5v5M17.5 0h5M20 37.5v5M17.5 40h5'/%3E%3C/g%3E%3Cg fill='%2336432B'%3E%3Ccircle cx='10' cy='10' r='1.3'/%3E%3Ccircle cx='30' cy='10' r='1.3'/%3E%3Ccircle cx='10' cy='30' r='1.3'/%3E%3Ccircle cx='30' cy='30' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --truntum-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cdefs%3E%3Cpath id='s' d='M6.5 0L2.4 1 4.6 4.6 1 2.4 0 6.5-1 2.4-4.6 4.6-2.4 1-6.5 0-2.4-1-4.6-4.6-1-2.4 0-6.5 1-2.4 4.6-4.6 2.4-1Z'/%3E%3C/defs%3E%3Cg fill='%23F4EEE1'%3E%3Cuse href='%23s' x='16' y='16'/%3E%3Cuse href='%23s' x='48' y='48'/%3E%3Ccircle cx='48' cy='16' r='1.3'/%3E%3Ccircle cx='16' cy='48' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --truntum-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cdefs%3E%3Cpath id='s' d='M6.5 0L2.4 1 4.6 4.6 1 2.4 0 6.5-1 2.4-4.6 4.6-2.4 1-6.5 0-2.4-1-4.6-4.6-1-2.4 0-6.5 1-2.4 4.6-4.6 2.4-1Z'/%3E%3C/defs%3E%3Cg fill='%2336432B'%3E%3Cuse href='%23s' x='16' y='16'/%3E%3Cuse href='%23s' x='48' y='48'/%3E%3Ccircle cx='48' cy='16' r='1.3'/%3E%3Ccircle cx='16' cy='48' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --parang-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg transform='rotate(-45 28 28)' fill='none' stroke='%23D8CDB2' stroke-linecap='round'%3E%3Cpath d='M-20 10C-17 4-13 4-10 10S-3 16 0 10 7 4 10 10 17 16 20 10 27 4 30 10 37 16 40 10 47 4 50 10 57 16 60 10 67 4 70 10 77 16 80 10' stroke-width='2.4'/%3E%3Cpath d='M-20 16C-17 10-13 10-10 16S-3 22 0 16 7 10 10 16 17 22 20 16 27 10 30 16 37 22 40 16 47 10 50 16 57 22 60 16 67 10 70 16 77 22 80 16' stroke-width='1'/%3E%3Cpath d='M-20 29H80' stroke-width='.8'/%3E%3Cpath d='M-20 46C-17 40-13 40-10 46S-3 52 0 46 7 40 10 46 17 52 20 46 27 40 30 46 37 52 40 46 47 40 50 46 57 52 60 46 67 40 70 46 77 52 80 46' stroke-width='2.4'/%3E%3Cpath d='M-20 52C-17 46-13 46-10 52S-3 58 0 52 7 46 10 52 17 58 20 52 27 46 30 52 37 58 40 52 47 46 50 52 57 58 60 52 67 46 70 52 77 58 80 52' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  --parang-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg transform='rotate(-45 28 28)' fill='none' stroke='%2336432B' stroke-linecap='round'%3E%3Cpath d='M-20 10C-17 4-13 4-10 10S-3 16 0 10 7 4 10 10 17 16 20 10 27 4 30 10 37 16 40 10 47 4 50 10 57 16 60 10 67 4 70 10 77 16 80 10' stroke-width='2.4'/%3E%3Cpath d='M-20 16C-17 10-13 10-10 16S-3 22 0 16 7 10 10 16 17 22 20 16 27 10 30 16 37 22 40 16 47 10 50 16 57 22 60 16 67 10 70 16 77 22 80 16' stroke-width='1'/%3E%3Cpath d='M-20 29H80' stroke-width='.8'/%3E%3Cpath d='M-20 46C-17 40-13 40-10 46S-3 52 0 46 7 40 10 46 17 52 20 46 27 40 30 46 37 52 40 46 47 40 50 46 57 52 60 46 67 40 70 46 77 52 80 46' stroke-width='2.4'/%3E%3Cpath d='M-20 52C-17 46-13 46-10 52S-3 58 0 52 7 46 10 52 17 58 20 52 27 46 30 52 37 58 40 52 47 46 50 52 57 58 60 52 67 46 70 52 77 58 80 52' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  --megamendung-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cg fill='none' stroke='%23F4EEE1' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 50C10 40 22 38 30 44 36 30 56 28 64 40 72 34 88 36 96 50'/%3E%3Cpath d='M0 42C10 32 22 30 32 36 38 22 58 20 66 32 74 26 88 28 96 42'/%3E%3Cpath d='M0 34C12 24 24 22 34 28 40 14 60 12 68 24 76 18 88 20 96 34' stroke-width='1'/%3E%3Cpath d='M0 62C8 56 16 56 24 60M72 60C80 56 88 56 96 62' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  --megamendung-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cg fill='none' stroke='%2336432B' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 50C10 40 22 38 30 44 36 30 56 28 64 40 72 34 88 36 96 50'/%3E%3Cpath d='M0 42C10 32 22 30 32 36 38 22 58 20 66 32 74 26 88 28 96 42'/%3E%3Cpath d='M0 34C12 24 24 22 34 28 40 14 60 12 68 24 76 18 88 20 96 34' stroke-width='1'/%3E%3Cpath d='M0 62C8 56 16 56 24 60M72 60C80 56 88 56 96 62' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  --ceplok-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23F4EEE1' stroke-width='1.2'%3E%3Cpath d='M24 0L48 24 24 48 0 24Z'/%3E%3Ccircle cx='24' cy='24' r='9'/%3E%3Ccircle cx='24' cy='24' r='3.5'/%3E%3Cpath d='M24 10v-4M24 38v4M10 24h-4M38 24h4M14.1 14.1l-2.8-2.8M33.9 33.9l2.8 2.8M33.9 14.1l2.8-2.8M14.1 33.9l-2.8 2.8'/%3E%3C/g%3E%3Cg fill='%23F4EEE1'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='48' cy='0' r='2'/%3E%3Ccircle cx='0' cy='48' r='2'/%3E%3Ccircle cx='48' cy='48' r='2'/%3E%3Ccircle cx='24' cy='24' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --ceplok-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%2336432B' stroke-width='1.2'%3E%3Cpath d='M24 0L48 24 24 48 0 24Z'/%3E%3Ccircle cx='24' cy='24' r='9'/%3E%3Ccircle cx='24' cy='24' r='3.5'/%3E%3Cpath d='M24 10v-4M24 38v4M10 24h-4M38 24h4M14.1 14.1l-2.8-2.8M33.9 33.9l2.8 2.8M33.9 14.1l2.8-2.8M14.1 33.9l-2.8 2.8'/%3E%3C/g%3E%3Cg fill='%2336432B'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='48' cy='0' r='2'/%3E%3Ccircle cx='0' cy='48' r='2'/%3E%3Ccircle cx='48' cy='48' r='2'/%3E%3Ccircle cx='24' cy='24' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  /* Basket weave (tampah): over-under strands, sand / sand-deep with chocolate shading */
  --weave-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23D8CDB2'/%3E%3Crect width='12' height='12' fill='%23BFB092'/%3E%3Crect x='12' y='12' width='12' height='12' fill='%23BFB092'/%3E%3Cg stroke='%234B3126' stroke-width='.9' stroke-opacity='.42'%3E%3Cpath d='M0 3.5h12M0 7.5h12M0 11.5h12M12 15.5h12M12 19.5h12M12 23.5h12'/%3E%3Cpath d='M15.5 0v12M19.5 0v12M23.5 0v12M3.5 12v12M7.5 12v12M11.5 12v12'/%3E%3C/g%3E%3Cg stroke='%234B3126' stroke-width='1' stroke-opacity='.3'%3E%3Cpath d='M0 12.5h12M12 .5h12M12.5 0v12M.5 12v12'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Responsive tokens. Everything derived from them (--brand-w, --mast-ext, --brand-clear) follows. */
@media (min-width: 36em) { :root { --gutter: 1.5rem; } }
@media (min-width: 64em) { :root { --header-h: 5rem; --brand-h-compact: 4rem; } }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--chrome-h) + 1rem);
  background: var(--cream);
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Paper grain: one SVG noise tile multiplied over everything (fixed, non-interactive). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: var(--grain);
  background-size: 240px 240px;
}

main { flex: 1 0 auto; }

h1, h2, h3 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { margin: 0 0 0.5em; font-size: 1.25rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; line-height: 1.25; text-wrap: balance; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
ul.plain, ol.plain { list-style: none; padding: 0; margin: 0; }

a { color: var(--olive-deep); text-underline-offset: 0.15em; text-decoration-thickness: 2px; }
a:hover { color: var(--choc); }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg.sprite, svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

strong, b { font-weight: 800; }
em { font-style: italic; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1.5px dashed var(--sand-deep); margin: var(--s6) 0; }

:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.band-dark, .band-olive, .band-choc, .site-footer, .ticker, .notice-panel, .patch, .placeholder-photo.is-dark,
.on-olive, .on-olive-deep, .on-chocolate { --focus-color: var(--sand); }
.btn-primary:focus-visible, .btn-dark:focus-visible { outline-color: var(--sand); box-shadow: 0 0 0 3px var(--cream); }

::selection { background: var(--sand); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container { max-width: calc(72rem + 2 * var(--gutter)); }
.container-wide { max-width: calc(84rem + 2 * var(--gutter)); }

.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* --pad-top repeats each section type's own top padding: the clearance rule in section 14 reads it when the
   section is the first thing in <main> (padding-top there = the larger of --pad-top and --brand-clear). */
.section { --pad-top: var(--section-pad); padding-block: var(--section-pad); position: relative; }
.section-tight { --pad-top: calc(var(--section-pad) / 2); padding-block: calc(var(--section-pad) / 2); position: relative; }
.section > .container, .section > .container-wide, .section-tight > .container, .section-tight > .container-wide { position: relative; z-index: 1; }

.band-tint { background: var(--bone); }
.band-sand { background: var(--sand); color: var(--choc-deep); }
.band-dark { background: var(--olive-deep); color: var(--cream); }
.band-olive { background: var(--olive); color: var(--cream); }
.band-choc { background: var(--choc-deep); color: var(--sand); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4, .band-dark a,
.band-olive h1, .band-olive h2, .band-olive h3, .band-olive h4, .band-olive a,
.band-choc h1, .band-choc h2, .band-choc h3, .band-choc h4, .band-choc a { color: var(--cream); }
.band-dark a:hover, .band-olive a:hover, .band-choc a:hover { color: var(--sand); }
.band-dark .eyebrow, .band-choc .eyebrow { color: var(--sand); }
.band-olive .eyebrow { color: var(--bone); }
.band-dark .muted, .band-olive .muted, .band-choc .muted { color: var(--bone); }
.band-dark .lede, .band-olive .lede { color: var(--bone); }
.band-sand .eyebrow { color: var(--olive-deep); }
.band-sand .lede { color: var(--choc); }

.band-leaf { position: relative; isolation: isolate; }
.band-leaf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/logo-leaf.svg') 0 0 / 160px 160px repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Linen weave: two hairline repeating gradients under the batik layer. */
.linen {
  background-image:
    repeating-linear-gradient(0deg, rgb(51 32 26 / 0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(51 32 26 / 0.03) 0 1px, transparent 1px 4px);
}

.grid { display: grid; gap: var(--s5); }
@media (min-width: 48em) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
  .col-start-2 { grid-column-start: 2; }
  .col-start-6 { grid-column-start: 6; }
  .col-start-7 { grid-column-start: 7; }
  .col-start-8 { grid-column-start: 8; }
}

.stack > * + * { margin-top: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.45em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: var(--s3);
}
.eyebrow [lang] { letter-spacing: 0.08em; }
.eyebrow-sambal { color: var(--choc); }

.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125em;
  color: var(--olive-deep);
  letter-spacing: 0;
  margin-right: 0.35em;
  font-variant-numeric: tabular-nums;
}
.band-dark .section-num, .band-olive .section-num { color: var(--sand); }

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.measure { max-width: 38rem; }
.center { text-align: center; }

.marker {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  background: linear-gradient(180deg, transparent 58%, var(--sand) 58%, var(--sand) 94%, transparent 94%);
  padding: 0 0.08em;
  margin: 0 -0.04em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 800;
  text-decoration: none;
  color: var(--olive-deep);
  min-height: 44px;
}
.link-arrow::after { content: '→'; display: inline-block; }
.link-arrow:hover { color: var(--choc); text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin-bottom: 1.25em; }
.prose li + li { margin-top: 0.35em; }

/* A phrase with its translation beside it */
.phrase {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  color: var(--choc);
  line-height: 1.3;
}
.phrase-tr { font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--choc); }
.band-dark .phrase, .band-olive .phrase, .band-choc .phrase { color: var(--cream); }
.band-dark .phrase-tr, .band-olive .phrase-tr, .band-choc .phrase-tr { color: var(--sand); }

/* The aksara Jawa ornament. Glyphs hang long tails below the baseline; give them room. */
.aksara { display: grid; gap: 0.1rem; margin: 0 0 0.5rem; line-height: 1; }
.aksara-glyphs {
  font-family: var(--font-jv);
  font-size: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  line-height: 1.9;
  color: var(--sand-deep);
  letter-spacing: 0.02em;
  user-select: none;
}
.aksara-cap { margin-top: 0.35rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   5. Buttons — hand-cut corners, a real press on hover, 1.125rem Nunito 800
   Primary: olive fill, cream text (6.4:1). Secondary: chocolate outline. Dark: chocolate fill.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--cut);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-ui);
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
}
.btn-primary { background: var(--olive); border-color: var(--olive); color: var(--cream); box-shadow: 0 3px 0 var(--olive-deep); }
.btn-primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--cream); box-shadow: 0 4px 0 var(--choc-deep); }
.btn-primary:active { box-shadow: 0 1px 0 var(--olive-deep); }
.btn-secondary, .btn-outline { background: transparent; border-color: var(--choc); color: var(--choc); }
.btn-secondary:hover, .btn-outline:hover { background: var(--choc); color: var(--cream); }
.band-dark .btn-secondary, .band-olive .btn-secondary, .band-choc .btn-secondary, .site-footer .btn-secondary,
.band-dark .btn-outline, .band-olive .btn-outline, .band-choc .btn-outline, .site-footer .btn-outline { border-color: var(--sand); color: var(--cream); }
.band-dark .btn-secondary:hover, .band-olive .btn-secondary:hover, .band-choc .btn-secondary:hover, .site-footer .btn-secondary:hover,
.band-dark .btn-outline:hover, .band-olive .btn-outline:hover, .band-choc .btn-outline:hover, .site-footer .btn-outline:hover { background: var(--sand); color: var(--choc-deep); }
.btn-ghost { background: transparent; color: var(--olive-deep); padding-inline: 0.75rem; }
.btn-ghost:hover { color: var(--choc); text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.band-dark .btn-ghost, .band-olive .btn-ghost, .band-choc .btn-ghost { color: var(--cream); }
.btn-dark { background: var(--choc); border-color: var(--choc); color: var(--cream); box-shadow: 0 3px 0 var(--choc-deep); }
.btn-dark:hover { background: var(--choc-deep); border-color: var(--choc-deep); color: var(--cream); }
.btn-dark:active { box-shadow: 0 1px 0 var(--choc-deep); }
.btn-sm { min-height: 44px; padding: 0.4rem 1.1rem; }
.btn-lg { min-height: 56px; padding: 0.85rem 1.75rem; font-size: 1.1875rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled='true'], .btn.is-loading { opacity: 0.55; pointer-events: none; }

/* --------------------------------------------------------------------------
   6. Cards & paper surfaces
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--cut);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card-tint { background: var(--bone); border-color: transparent; box-shadow: none; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; border-color: var(--sand-deep); }
.card-link h3 { color: var(--olive-deep); }
.card-link:hover h3 { color: var(--choc); }

.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--cut-2);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.paper h3 { font-size: 1.5rem; color: var(--olive-deep); margin-bottom: 0.75rem; }

.rates { margin: 0; display: grid; gap: 0.5rem; }
.rates div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dotted var(--sand-deep);
}
.rates div:last-child { border-bottom: 0; padding-bottom: 0; }
.rates dt { font-weight: 700; color: var(--ink); }
.rates dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--choc); white-space: nowrap; }

/* Lurik selvedge down a card's left edge */
.selvedge { position: relative; padding-left: 10px; overflow: hidden; }
.selvedge::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--lurik-v); }

/* Running stitch: an inset dashed ring */
.stitch { outline: 1.5px dashed var(--sand); outline-offset: -8px; }
.stitch-olive { outline: 1.5px dashed var(--olive); outline-offset: -8px; }

/* Embroidered patch: olive felt, a ring of sand running stitch */
.patch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 136px;
  min-height: 136px;
  padding: 0.7rem;
  margin: 0;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.15;
  text-align: center;
  box-shadow: var(--shadow-md);
  outline: 1.5px dashed var(--sand);
  outline-offset: -8px;
  rotate: -9deg;
}
.patch span { display: block; font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone); margin-top: 0.3rem; }
.patch-light { background: var(--cream); color: var(--olive-deep); outline-color: var(--olive); }
.patch-light span { color: var(--ink-2); }
.patches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
.patches .patch { width: 150px; min-height: 150px; }
.patches li:nth-child(1) .patch, .patches .patch:nth-child(1) { rotate: -7deg; }
.patches li:nth-child(2) .patch, .patches .patch:nth-child(2) { rotate: 4deg; }
.patches li:nth-child(3) .patch, .patches .patch:nth-child(3) { rotate: -3deg; }

/* Torn-edge paper note */
.sticker {
  position: relative;
  width: min(100%, 280px);
  padding: 1.1rem 1.2rem 0.9rem;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  rotate: 2deg;
  clip-path: polygon(0 4%, 6% 0, 20% 3%, 38% 0, 55% 2%, 72% 0, 90% 3%, 100% 1%, 100% 97%, 92% 100%, 74% 97%, 58% 100%, 40% 98%, 24% 100%, 8% 97%, 0 100%);
}
.sticker p { margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.sticker-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--olive-deep); margin-bottom: 0.2rem; }

/* Paper price tag with a punched hole */
.price-tag {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0.8rem 1rem 0.8rem 2.1rem;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-md);
  clip-path: polygon(0 50%, 14% 0, 100% 0, 100% 100%, 14% 100%);
  line-height: 1.15;
}
.price-tag::before {
  content: '';
  position: absolute;
  left: 11%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bone);
  box-shadow: inset 0 0 0 2px var(--sand-deep);
}
.price-tag-qty { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.price-tag-price { font-family: var(--font-display); font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); color: var(--olive-deep); }
.price-tag-note { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }

/* Price labels, stacked like a row of hanging tags */
.price-list { list-style: none; display: grid; gap: 0.5rem; margin: 1.25rem 0 1.5rem; padding: 0; }
.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.1rem 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  border: 1.5px dashed var(--sand-deep);
  border-radius: var(--cut-2);
  line-height: 1.15;
}
.price-list .q { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.price-list .p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); color: var(--choc); grid-row: span 2; }
.price-list .n { font-size: var(--fs-xs); font-weight: 800; color: var(--olive-deep); text-transform: uppercase; letter-spacing: 0.03em; }
@media (min-width: 30em) {
  .price-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-list li { grid-template-columns: 1fr; align-content: start; text-align: center; padding: 0.75rem 0.5rem 0.85rem; }
  .price-list .p { grid-row: auto; }
  .price-list .n { margin-top: 0.2rem; }
}

/* Photo placeholders — intentional, labelled, textured */
.placeholder-photo {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  min-height: 220px;
  padding: 1.75rem;
  text-align: center;
  color: var(--olive-deep);
  background:
    repeating-linear-gradient(-45deg, rgb(74 91 60 / 0.08) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(0deg, rgb(51 32 26 / 0.03) 0 1px, transparent 1px 4px),
    var(--bone);
  border: 2px dashed rgb(74 91 60 / 0.6);
  border-radius: var(--cut);
}
.placeholder-photo::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(74 91 60 / 0.28);
  border-radius: inherit;
  pointer-events: none;
}
.ph-label { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.25; max-width: 26ch; margin-inline: auto; }
.ph-label span { display: block; font: 800 var(--fs-xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--ink-2); }
.ph-hint { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.placeholder-photo.is-portrait { aspect-ratio: 4 / 5; min-height: 0; }
.placeholder-photo.is-square { aspect-ratio: 1; min-height: 0; }
.placeholder-photo.is-square .ph-label { font-size: 1.125rem; }
.placeholder-photo.is-wide { min-height: 240px; }
.placeholder-photo.is-dark {
  color: var(--bone);
  background:
    repeating-linear-gradient(-45deg, rgb(244 238 225 / 0.07) 0 2px, transparent 2px 14px),
    var(--olive);
  border-color: rgb(216 205 178 / 0.55);
}
.placeholder-photo.is-dark::before { border-color: rgb(216 205 178 / 0.28); }
.placeholder-photo.is-dark .ph-label span, .placeholder-photo.is-dark .ph-hint { color: var(--bone); }

/* --------------------------------------------------------------------------
   7. Motifs — batik layers, frames, strips, text fills
   The layer paints on ::before; the element must be positioned (given) and its children
   are lifted above it (z-index 1 on direct children that are positioned). Dense text sits
   on solid panels (.card/.notice-panel/.paper) placed on top of the layer.
   -------------------------------------------------------------------------- */
[class*='batik-'] { position: relative; isolation: isolate; }
:where([class*='batik-']:not(.batik-frame):not(.batik-text):not(.batik-strip) > *) { position: relative; z-index: 1; } /* zero specificity: positioned children (.gunungan, .motif) keep their own rules */
.batik-kawung::before, .batik-parang::before, .batik-truntum::before, .batik-megamendung::before, .batik-ceplok::before,
[class*='batik-kawung-on']::before, [class*='batik-parang-on']::before, [class*='batik-truntum-on']::before,
[class*='batik-megamendung-on']::before, [class*='batik-ceplok-on']::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(var(--batik-opacity, 0.22) * var(--batik-boost, 1));
  background-image: var(--batik-tile);
  background-size: var(--batik-size, auto);
  border-radius: inherit;
}
/* Which drawing */
.batik-kawung, [class*='batik-kawung-on'] { --batik-tile: var(--kawung-light); --batik-tile-dark: var(--kawung-dark); --batik-tile-light: var(--kawung-light); }
.batik-parang, [class*='batik-parang-on'] { --batik-tile: var(--parang-light); --batik-tile-dark: var(--parang-dark); --batik-tile-light: var(--parang-light); }
.batik-truntum, [class*='batik-truntum-on'] { --batik-tile: var(--truntum-light); --batik-tile-dark: var(--truntum-dark); --batik-tile-light: var(--truntum-light); }
.batik-megamendung, [class*='batik-megamendung-on'] { --batik-tile: var(--megamendung-light); --batik-tile-dark: var(--megamendung-dark); --batik-tile-light: var(--megamendung-light); --batik-boost: 1.2; } /* thin, sparse lines: a little more ink */
.batik-ceplok, [class*='batik-ceplok-on'] { --batik-tile: var(--ceplok-light); --batik-tile-dark: var(--ceplok-dark); --batik-tile-light: var(--ceplok-light); }
/* Which surface */
.on-olive, [class*='-on-olive']:not([class*='-on-olive-deep']) { background-color: var(--olive); color: var(--cream); --batik-opacity: 0.22; --batik-tile: var(--batik-tile-light); }
.on-olive-deep, [class*='-on-olive-deep'] { background-color: var(--olive-deep); color: var(--cream); --batik-opacity: 0.24; --batik-tile: var(--batik-tile-light); }
.on-chocolate, [class*='-on-chocolate'] { background-color: var(--choc-deep); color: var(--sand); --batik-opacity: 0.22; --batik-tile: var(--batik-tile-light); }
.on-sand, [class*='-on-sand'] { background-color: var(--sand); color: var(--choc-deep); --batik-opacity: 0.16; --batik-tile: var(--batik-tile-dark); }
.on-cream, [class*='-on-cream'] { background-color: var(--cream); color: var(--ink); --batik-opacity: 0.15; --batik-tile: var(--batik-tile-dark); }
.on-bone, [class*='-on-bone'] { background-color: var(--bone); color: var(--ink); --batik-opacity: 0.16; --batik-tile: var(--batik-tile-dark); }
.batik-strong { --batik-opacity: 0.28; }
.on-olive h1, .on-olive h2, .on-olive h3, .on-olive-deep h1, .on-olive-deep h2, .on-olive-deep h3, .on-chocolate h1, .on-chocolate h2, .on-chocolate h3,
[class*='-on-olive'] h2, [class*='-on-olive'] h3, [class*='-on-chocolate'] h2, [class*='-on-chocolate'] h3 { color: var(--cream); }
.on-olive .eyebrow, [class*='-on-olive'] .eyebrow { color: var(--bone); }
.on-olive-deep .eyebrow, .on-chocolate .eyebrow, [class*='-on-olive-deep'] .eyebrow, [class*='-on-chocolate'] .eyebrow { color: var(--sand); }
.on-olive .lede, .on-olive-deep .lede, [class*='-on-olive'] .lede { color: var(--bone); }
.on-sand .eyebrow, [class*='-on-sand'] .eyebrow { color: var(--olive-deep); }

/* Batik frame: a 12px motif band just inside the edge (mask keeps the middle clear) */
.batik-frame { position: relative; }
.batik-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: var(--frame-w, 12px);
  background: var(--frame-tile, var(--parang-dark));
  background-size: var(--frame-size, auto);
  opacity: var(--frame-opacity, 0.55);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.batik-frame.frame-kawung { --frame-tile: var(--kawung-dark); }
.batik-frame.frame-ceplok { --frame-tile: var(--ceplok-dark); }
.batik-frame.frame-megamendung { --frame-tile: var(--megamendung-dark); }
.batik-frame.frame-truntum { --frame-tile: var(--truntum-dark); }
.notice-panel.batik-frame, .tile.batik-frame, .band-dark .batik-frame, .band-olive .batik-frame, .band-choc .batik-frame,
.placeholder-photo.is-dark.batik-frame, .on-olive.batik-frame, .on-olive-deep.batik-frame, .on-chocolate.batik-frame { --frame-tile: var(--parang-light); --frame-opacity: 0.6; }
.notice-panel.batik-frame.frame-kawung, .tile.batik-frame.frame-kawung, .band-dark .batik-frame.frame-kawung, .on-olive.batik-frame.frame-kawung { --frame-tile: var(--kawung-light); }
.notice-panel.batik-frame.frame-ceplok, .tile.batik-frame.frame-ceplok, .band-dark .batik-frame.frame-ceplok, .on-olive.batik-frame.frame-ceplok { --frame-tile: var(--ceplok-light); }
.notice-panel.batik-frame.frame-megamendung, .tile.batik-frame.frame-megamendung, .band-dark .batik-frame.frame-megamendung { --frame-tile: var(--megamendung-light); }
.notice-panel.batik-frame.frame-truntum, .tile.batik-frame.frame-truntum, .band-dark .batik-frame.frame-truntum { --frame-tile: var(--truntum-light); }
:where(.batik-frame > *) { position: relative; z-index: 1; }

/* Big display text filled with olive + ceplok (fallback: solid olive) */
.batik-text {
  color: var(--olive);
  background: var(--olive) var(--ceplok-light);
  background-size: 48px 48px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (-webkit-background-clip: text) { .batik-text { background: none; } }

/* Thin batik strip: olive with the kawung at 35 % (header bottom edge, footer top) */
.batik-strip, .batik-strip::before { height: 12px; }
.batik-strip { position: relative; display: block; background: var(--olive); overflow: hidden; }
.batik-strip::before { content: ''; position: absolute; inset: 0; background: var(--kawung-light); background-size: 24px 24px; opacity: 0.35; }

/* Full-bleed SPRITE motif layer behind a section's content */
.motif { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; pointer-events: none; z-index: 0; }
.on-cream > .motif, .on-bone > .motif, .on-sand > .motif { opacity: 0.16; } /* use the -dark patterns here: url(#kawung-dark) … */

/* Lurik band and batik hem */
.lurik { height: 16px; background: var(--lurik-h); }
.hem { position: relative; height: clamp(32px, 4.5vw, 48px); background: var(--choc); overflow: hidden; }
.hem::before { content: ''; position: absolute; inset: 0; background: var(--parang-light); opacity: 0.28; }

/* Basket weave surface / band */
.weave { background: var(--sand) var(--weave-tile); background-size: 24px 24px; }
.weave-band { height: 24px; background: var(--sand) var(--weave-tile); background-size: 24px 24px; border-block: 2px solid var(--choc); }

/* The tampah (woven bamboo tray) under a product render */
.tampah-wrap { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1; display: grid; place-items: center; }
.tampah { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; filter: drop-shadow(0 18px 26px rgb(51 32 26 / 0.32)); }
.tampah-wrap > img, .tampah-wrap > picture { position: relative; z-index: 2; width: 84%; filter: var(--shadow-render); }
/* A banana leaf lining the tray, between the tampah and the render (the way tempeh is set out in Indonesia):
   <svg class="tampah-leaf" viewBox="0 0 400 180" aria-hidden="true" focusable="false"><use href="#leaf-banana"/></svg>
   placed after the .tampah svg inside a .tampah-wrap. The leaf tips reach past the rim, so leave about 15 % of
   the tray's width free on each side (or clip the parent). Same colour hooks as the other leaves. */
.tampah-leaf { position: absolute; z-index: 1; left: 50%; top: 50%; width: 130%; height: auto; max-width: none; translate: -50% -50%; rotate: -9deg; scale: 1 1.5; color: var(--olive); --leaf-2: var(--olive-deep); pointer-events: none; filter: drop-shadow(0 8px 10px rgb(51 32 26 / 0.3)); }

/* Banana leaves between sections: two long blades crossing at the tips. The front leaf takes `color`, the back
   leaf --leaf-2, the midribs --leaf-rib (sand). 10vw keeps the 1200 x 120 drawing uncropped up to 100rem wide. */
.leaf-divider { display: block; width: 100%; height: clamp(4.5rem, 10vw, 10rem); background: var(--leaf-bg, var(--cream)); color: var(--olive); --leaf-2: var(--olive-deep); }
.leaf-divider.is-flipped { transform: scaleX(-1); }
.leaf-divider.is-deep { color: var(--olive-deep); --leaf-2: var(--olive); }

/* Two big leaves laid under a block */
.leaf-bed { position: relative; isolation: isolate; }
.section:has(.leaf-bed), .section-tight:has(.leaf-bed) { overflow: clip; } /* the leaves run past the container on purpose */
.leaf-bed-leaf { position: absolute; z-index: -1; left: -8%; top: -3rem; width: 116%; height: auto; max-width: none; color: var(--olive); --leaf-2: var(--olive-deep); pointer-events: none; rotate: -4deg; }
.leaf-bed > :not(.leaf-bed-leaf) { position: relative; z-index: 1; }
/* Phones: a bigger, more tilted pair, so the leaves show around the first cards. For a tall stack of cards add
   .is-tall to the .leaf-bed and the leaves run down the stack instead of across it. */
@media (max-width: 47.99em) {
  .leaf-bed-leaf { left: -30%; top: 1rem; width: 160%; rotate: -12deg; }
  .leaf-bed.is-tall .leaf-bed-leaf { left: 50%; top: 50%; width: 60rem; translate: -50% -50%; rotate: -68deg; }
}

/* The gunungan behind a dark section */
.has-gunungan { overflow: hidden; }
.gunungan { position: absolute; z-index: 0; right: -6%; top: -4%; height: 112%; width: auto; max-width: none; pointer-events: none; color: var(--cream); }
.gunungan-fill { fill: currentColor; opacity: 0.08; }
.gunungan-stitch { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 6 5; opacity: 0.18; }
@media (max-width: 52.49em) { .gunungan { right: -30%; top: auto; bottom: -8%; height: 70%; } }

/* The stitched leaf badge as an inline svg */
.brand-mark { width: 44px; height: 44px; flex: none; }

/* Batik swatches: a paper card of cloth samples, for a spot that needs a picture but not a photograph.
   <figure class="swatch-card"><div class="swatches" aria-hidden="true"><span class="swatch batik-kawung on-olive"></span>
   <span class="swatch batik-parang on-chocolate"></span><span class="swatch batik-truntum on-sand"></span></div>
   <figcaption><strong>Batik</strong> one line about it</figcaption></figure>
   Each .swatch takes one .batik-* motif class and one .on-* surface class; a lurik selvedge runs along its lower edge.
   Every rule here needs the .swatches parent. */
.swatch-card { margin: 0; padding: 1.1rem 1rem 1rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--cut-2); box-shadow: var(--shadow-md); }
.swatches { display: flex; justify-content: center; padding: 0.4rem 0.5rem 0.9rem; }
/* Scoped to .swatches: pages.css has a .swatch of its own (the sample area of a .craft-card) and must not inherit these. */
.swatches > .swatch { --batik-opacity: 0.55; --batik-size: 30px; display: block; flex: 0 1 6rem; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 0 rgb(51 32 26 / 0.12), 0 8px 14px -8px rgb(51 32 26 / 0.5); }
.swatches > .swatch::after { content: ''; position: absolute; inset: auto 0 0; height: 9px; background: var(--lurik-h); }
.swatches > .swatch + .swatch { margin-left: -0.9rem; }
.swatches > .swatch:nth-child(1) { rotate: -7deg; }
.swatches > .swatch:nth-child(2) { rotate: 1.5deg; translate: 0 -0.35rem; z-index: 1; }
.swatches > .swatch:nth-child(3) { rotate: 8deg; }
.swatch-card figcaption { text-align: center; font-size: var(--fs-small); font-weight: 700; line-height: 1.4; color: var(--ink-2); }
.swatch-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; color: var(--olive-deep); }

/* --------------------------------------------------------------------------
   8. Forms — paper controls on cream, olive focus, chocolate for errors
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.375rem; margin-bottom: var(--s5); }
.field > label, .field-label, legend.field-label {
  font-weight: 800;
  font-size: var(--fs-small);
  color: var(--ink);
}
.field .optional { font-weight: 600; color: var(--ink-2); }
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--fs-ui);
  line-height: 1.4;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%234A5B3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 1px;
  border-color: var(--olive);
}
.field input[type='date'] { min-width: 0; }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 36em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row { margin-top: var(--s5); }

.hint { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; }
.field-error { font-size: var(--fs-xs); color: var(--choc-deep); font-weight: 800; margin: 0; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; margin-right: 0.4em; border-radius: 50%; background: var(--choc); color: var(--cream); font-size: 1em; line-height: 1; vertical-align: 0.05em; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--choc) !important; box-shadow: inset 0 0 0 1px var(--choc); }
.is-invalid > label, .is-invalid .field-label { color: var(--choc-deep); }

fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { padding: 0; }

.choice-group { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: var(--s5); }
.choice-group-stack { grid-template-columns: 1fr; }
.choice {
  position: relative;
  display: block;
  cursor: pointer;
  min-height: 44px;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.95rem 1rem 0.95rem 2.9rem;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 0 transparent;
}
.choice-body::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}
.choice input[type='checkbox'] ~ .choice-body::before { border-radius: 4px; }
.choice-body::after {
  content: '';
  position: absolute;
  left: calc(1rem + 5px);
  top: calc(1.15rem + 5px);
  width: calc(1.25rem - 10px);
  height: calc(1.25rem - 10px);
  border-radius: 50%;
  background: var(--olive);
  opacity: 0;
}
.choice input[type='checkbox'] ~ .choice-body::after { border-radius: 1px; }
.choice-title { font-weight: 800; }
.choice-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.choice:hover .choice-body { border-color: var(--olive); }
.choice:has(input:checked) .choice-body { border-color: var(--olive); background: var(--olive-wash); box-shadow: inset 0 0 0 1px var(--olive); }
.choice:has(input:checked) .choice-body::before { border-color: var(--olive); }
.choice:has(input:checked) .choice-body::after { opacity: 1; }
.choice:has(input:focus-visible) .choice-body { outline: var(--focus); outline-offset: 2px; }
.choice:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.is-invalid .choice-body { border-color: var(--choc); }

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  overflow: hidden;
}
.stepper button {
  width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--olive-deep);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  display: grid;
  place-items: center;
}
.stepper button:hover:not(:disabled) { background: var(--olive-wash); }
.stepper button:disabled { color: var(--line-strong); }
.stepper button:focus-visible { outline-offset: -3px; border-radius: var(--r-pill); }
.stepper-value {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  padding-inline: 0.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--line);
}

.chip-group { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-group-sticky {
  position: sticky;
  top: var(--chrome-h);
  z-index: 5;
  padding-block: var(--s3);
  background: rgb(244 238 225 / 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--olive-deep);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  cursor: pointer;
}
.chip:hover { border-color: var(--olive); background: var(--olive-wash); color: var(--olive-deep); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.chip .count { font-weight: 600; opacity: 0.85; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   9. Badges & status pills (never below 1rem)
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-soy { background: var(--sand); color: var(--choc-deep); }
.badge-olive { background: var(--olive); color: var(--cream); }
.badge-muted { background: var(--bone); color: var(--ink-2); border: 1px solid var(--line); }
.badge-choc { background: var(--choc); color: var(--cream); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--sand-wash);
  color: var(--ink-2);
}
.status::before { content: ''; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.status[data-status='pending_payment'],
.status[data-status='cancelled'],
.status[data-status='expired'],
.status[data-status='refunded'] { background: var(--sand-wash); border-color: var(--line); color: var(--ink-2); }
.status[data-status='paid'] { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.status[data-status='confirmed'] { background: transparent; border-color: var(--choc); color: var(--choc); }
.status[data-status='fulfilled'] { background: var(--choc); border-color: var(--choc); color: var(--cream); }

/* --------------------------------------------------------------------------
   10. Notices (the four customer rules) — the painted sign
   -------------------------------------------------------------------------- */
.notice-panel {
  position: relative;
  isolation: isolate;
  background: var(--olive);
  color: var(--cream);
  border-radius: var(--cut);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-block: var(--s5) var(--s6);
  box-shadow: var(--shadow-md);
}
.notice-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--megamendung-light);
  opacity: 0.14;
  pointer-events: none;
}
.notice-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 12px;
  background: var(--ceplok-light);
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.notice-panel > * { position: relative; z-index: 1; }
.notice-panel .eyebrow { color: var(--sand); margin-bottom: var(--s2); }
.notice-panel h2, .notice-panel h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); color: var(--sand); margin-bottom: var(--s4); }
.notice-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3) var(--s6); }
.notice-panel li { padding-left: 1.6rem; position: relative; line-height: 1.5; color: var(--bone); }
.notice-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 2px rgb(244 238 225 / 0.3);
}
.notice-panel strong, .notice-panel a { color: var(--cream); }
.notice-panel a:hover { color: var(--sand); }
.notice-panel .notice-aside { margin: var(--s5) 0 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--bone); }
@media (min-width: 44em) { .notice-panel ul { grid-template-columns: 1fr 1fr; } }

.notice-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  counter-reset: notice;
}
@media (min-width: 36em) { .notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .notice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.notice-tile {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--cut);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.notice-tile:nth-child(odd) { rotate: -0.5deg; }
.notice-tile:nth-child(even) { rotate: 0.6deg; }
.notice-num, .step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--olive) var(--kawung-light);
  background-size: 28px 28px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
  box-shadow: 0 2px 0 var(--olive-deep), inset 0 0 0 40px rgb(74 91 60 / 0.72);
  font-variant-numeric: tabular-nums;
}
.notice-tile h3 { font-size: 1.5rem; margin: 0.25rem 0 0; color: var(--ink); }
.notice-tile p { color: var(--ink); font-size: var(--fs-small); margin: 0; }

/* --------------------------------------------------------------------------
   11. Ticker — the rules band: olive, parang wash, lurik stripe under it. The first thing on every page.
   Static by default (reduced motion): the full list (a stack on phones, a wrapped row from 48em), at the top of
   the page. When motion is allowed it is a slim one-line marquee pinned to the top of the window, with the header
   sticking right under it (section 18).
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  isolation: isolate;
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
}
.ticker::before { content: ''; position: absolute; inset: 0 0 var(--band-stripe); z-index: 0; background: var(--parang-light); opacity: 0.16; pointer-events: none; }
.ticker::after { content: ''; display: block; position: relative; z-index: 1; height: var(--band-stripe); background: var(--lurik-h); }
.ticker-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: calc(var(--band-h) - var(--band-stripe));
  margin: 0;
  /* The list stays inside the .container column (the band sits above the header, so nothing hangs over it) */
  --band-edge: max(var(--gutter), (100% - var(--shell-max)) / 2);
  padding: 0.6rem var(--band-edge);
  list-style: none;
}
.ticker-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 0.15rem 0 0.15rem 1.2rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.ticker-item::before { content: ''; position: absolute; left: 0.1rem; top: calc(0.15rem + 0.65em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }
.ticker-item.is-notice { font-weight: 800; }
.ticker-item strong { font-weight: 800; color: var(--cream); margin-right: 0.35em; }
.ticker-track > [aria-hidden='true'] { display: none; } /* the marquee's repeats (added by site.js) never show in the static list */
@media (min-width: 48em) {
  .ticker-track { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; justify-content: flex-start; gap: 0 0.25rem; padding-block: 0.5rem; }
  .ticker-item { max-width: 100%; padding: 0.35rem 1.1rem 0.35rem 1.4rem; font-size: var(--fs-small); line-height: 1.35; }
  .ticker-item::before { top: calc(0.35rem + 0.675em - 4px); }
}

/* --------------------------------------------------------------------------
   12. Stats
   -------------------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--olive-deep);
  white-space: nowrap;
}
.stat-unit, .stat-prefix { font-family: var(--font-body); font-size: max(1rem, 0.38em); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-unit { margin-left: 0.15em; }
.stat-prefix { margin-right: 0.15em; }
.stat-label { font-size: var(--fs-small); color: var(--ink-2); max-width: 16rem; line-height: 1.4; }
.band-dark .stat-value, .band-olive .stat-value, .stat-cards .stat-value { color: var(--cream); }
.band-dark .stat-label, .band-olive .stat-label, .stat-cards .stat-label { color: var(--bone); }
.stat-cards { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.stat-cards .stat {
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: rgb(244 238 225 / 0.07);
  border: 1.5px dashed rgb(216 205 178 / 0.6);
  border-radius: var(--cut-2);
}
.stat-cards .stat-value { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); white-space: normal; }
.stat-cards .stat-label { font-size: var(--fs-xs); max-width: none; }

/* --------------------------------------------------------------------------
   13. Steps — paper cards with a numbered olive patch
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s4); margin: 0 0 clamp(2rem, 5vw, 3.5rem); counter-reset: step; }
.step {
  position: relative;
  padding: 1.4rem 1.4rem 1.25rem 5.25rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--cut);
  box-shadow: var(--shadow-sm);
}
.step:nth-child(even) { rotate: 0.6deg; }
.step:nth-child(odd) { rotate: -0.5deg; }
.step .step-num { position: absolute; left: 1.1rem; top: 1.2rem; }
.step h3 { font-size: 1.375rem; margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.step strong { color: var(--ink); }
.step.step-accent .step-num { background-color: var(--choc); box-shadow: 0 2px 0 var(--choc-deep), inset 0 0 0 40px rgb(75 49 38 / 0.72); }
@media (min-width: 36em) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }
/* .steps.is-stacked — four across (64em and up) the numeral sits above the title, so the text gets the card's full width */
@media (min-width: 64em) {
  .steps.is-stacked .step { padding: 1.4rem 1.4rem 1.5rem; }
  .steps.is-stacked .step .step-num { position: static; margin-bottom: 0.9rem; }
}
/* Below 64em the cards are a single column (or two): straight, all the same height, numeral and title centred, so
   a title that wraps to two lines doesn't make one card taller or the stack look lopsided. */
@media (max-width: 63.999em) {
  .steps.is-stacked .step { rotate: none; display: flex; align-items: center; gap: 1rem; min-height: 6.25rem; padding: 1rem 1.25rem; }
  .steps.is-stacked .step .step-num { position: static; flex: 0 0 auto; margin: 0; }
  .steps.is-stacked .step h3 { margin: 0; }
}

/* --------------------------------------------------------------------------
   14. Chrome: skip link, header, nav, footer, sticky CTA
   -------------------------------------------------------------------------- */
:root {
  /* kawung with the strokes already at 35 %: for thin strips where a layer can't be used */
  --kawung-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23F4EEE1' stroke-opacity='.4' stroke-width='1.6'%3E%3Cellipse cx='10' cy='10' rx='9.5' ry='5' transform='rotate(45 10 10)'/%3E%3Cellipse cx='30' cy='10' rx='9.5' ry='5' transform='rotate(-45 30 10)'/%3E%3Cellipse cx='10' cy='30' rx='9.5' ry='5' transform='rotate(-45 10 30)'/%3E%3Cellipse cx='30' cy='30' rx='9.5' ry='5' transform='rotate(45 30 30)'/%3E%3C/g%3E%3Cg fill='%23F4EEE1' fill-opacity='.5'%3E%3Ccircle cx='10' cy='10' r='1.6'/%3E%3Ccircle cx='30' cy='10' r='1.6'/%3E%3Ccircle cx='10' cy='30' r='1.6'/%3E%3Ccircle cx='30' cy='30' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--olive);
  color: var(--cream);
  border-radius: var(--cut);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--choc); }

/* The header. See "THE BADGE" in the header comment. --dock comes from site.js; --dock-force docks the badge while
   the phone menu is open (registered so it can ease); --d is the state right now and everything below follows it. */
@property --dock-force { syntax: '<number>'; inherits: true; initial-value: 0; }
.site-header {
  position: relative;   /* sticky once site.js runs (.js): without it the big badge would cover the page */
  z-index: 50;
  --dock: 0;
  --d: max(var(--dock), var(--dock-force));
  --name-gap: 0.75rem;
  --brand-y-compact: calc((var(--header-h) - var(--brand-h-compact)) / 2);
  --brand-h: calc(var(--brand-h-top) - (var(--brand-h-top) - var(--brand-h-compact)) * var(--d));
  --brand-y: calc(var(--brand-top) + (var(--brand-y-compact) - var(--brand-top)) * var(--d));
  --mast-now: calc(var(--mast-ext) * (1 - var(--d)));
  background: rgb(244 238 225 / calc(1 - 0.08 * var(--d)));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.js .site-header { position: sticky; top: var(--ticker-pin); }   /* right under the pinned rules band */
.site-header.is-open { --dock-force: 1; }
/* The masthead (below 64em): the bar's background reaching down past the big badge; it folds up as the badge docks */
.site-header::before { content: ''; position: absolute; left: 0; right: 0; top: var(--header-h); height: calc(var(--mast-now) + 1px); background: rgb(244 238 225); pointer-events: none; }
/* The kawung strip: at the foot of the bar, or of the masthead while it is open */
.site-header::after { content: ''; position: relative; display: block; height: var(--header-strip); background: var(--olive) var(--kawung-strip); background-size: 24px 24px; transform: translateY(var(--mast-now)); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--header-h);
  position: relative;
}
/* The home link: the badge, the one-line wordmark and (below 64em) the big lockup, all out of the flow so they can
   move as the badge docks. The link keeps a fixed slot in the bar so the nav never shifts: the docked badge and
   wordmark below 64em, the big badge and wordmark from 64em. */
.nav-brand {
  --name-w: 10.5rem;   /* the one-line wordmark: "Artisan Tempeh" in Young Serif is 8.22em wide */
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  align-self: stretch;
  width: calc(var(--brand-h-compact) * var(--brand-ratio) + var(--name-gap) + var(--name-w));
  min-width: 44px;
  min-height: 44px;
  color: var(--choc);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-brand img {
  position: absolute;
  left: 0;
  top: var(--brand-y);
  height: var(--brand-h);
  width: auto;
  max-width: none;
  border-radius: 999px;   /* the artwork is a capsule: the focus ring follows it */
  filter: drop-shadow(0 2px 3px rgb(51 32 26 / 0.22)) drop-shadow(0 10px 14px rgb(51 32 26 / 0.26));
  transform-origin: 50% 0;
}
.nav-brand .wordmark { display: none; }
/* The one-line wordmark: always just right of the badge, in the middle of the bar. Below 64em it fades in as the
   badge docks (the lockup has the name until then). */
.nav-brand-name {
  position: absolute;
  left: calc(var(--brand-h) * var(--brand-ratio) + var(--name-gap));
  top: calc(var(--header-h) / 2);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--choc-deep);
  white-space: nowrap;
  opacity: clamp(0, (var(--d) - 0.5) * 2.5, 1);
}
/* The big lockup beside the big badge (below 64em): stacked name and a tagline, centred on the badge. It shrinks
   and fades as the badge docks. */
.nav-brand-lockup {
  position: absolute;
  left: calc(var(--brand-h) * var(--brand-ratio) + var(--name-gap) + 0.25rem);
  top: calc(var(--brand-y) + var(--brand-h) / 2);
  display: grid;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter) - var(--brand-w) - var(--name-gap) - 1.25rem);
  transform: translateY(-50%) scale(calc(1 - 0.4 * var(--d)));
  transform-origin: 0 50%;
  opacity: clamp(0, (0.6 - var(--d)) * 2.5, 1);
}
.nbl-name { font-family: var(--font-display); font-size: clamp(2rem, 11vw, 2.5rem); line-height: 1; color: var(--choc-deep); white-space: nowrap; }
.nbl-name span { display: block; }
.nbl-tag { font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--olive); text-wrap: balance; }
/* "Alberta, Canada" + the Canada flag on its own line under the tagline (phones and tablets; the lockup is hidden on desktop) */
.nbl-place { display: flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.nbl-place .flag-ca { width: 1.5em; height: 0.75em; margin-left: 0; }
.nav-brand:hover { color: var(--choc); }
/* Focus ring on the badge itself: a cream band, then chocolate, so it shows on the cream bar and on the olive band */
.nav-brand:focus-visible { outline: none; }
.nav-brand:focus-visible img { outline: 3px solid var(--choc-deep); outline-offset: 4px; box-shadow: 0 0 0 4px var(--cream); }

/* Clearance: the first block in <main> starts below the masthead (see CLEARANCE in the header comment) */
.site-header + main > :first-child:where(:not(svg, .lurik, .hem, .weave-band, .batik-strip)) { padding-top: max(var(--pad-top, clamp(2.5rem, 6vw, 4.5rem)), var(--brand-clear)); }

/* THE SHOP SIGN — desktop (64em and up), on pages whose <html> has class="has-sign".
   No masthead here: the big badge hangs from the bar over the left of the first block of <main> (--sign-h tall:
   16vw, 160–288px) and docks into the bar as the page scrolls; the one-line wordmark stays in the bar and slides
   left with it. Nothing may sit under the big badge, so the first block keeps its content BESIDE it:
     - its .container / .container-wide starts after the badge (padding-inline-start) and widens to --shell-max;
       if your first block is built differently, put .beside-sign on the element that holds its content;
     - the block is at least as tall as the badge reaches into <main> (min-height), so the next block starts below it.
   Tokens (:root.has-sign, 64em and up):
     --sign-h / --sign-w   the big badge's size      --sign-gap   space between it and the content beside it
     --sign-reach          how far it reaches into <main>, past the bar and its strip
     --shell-max           90rem here: the header and the first block line up on this wider column */
@media (min-width: 64em) {
  :root.has-sign {
    --shell-max: 90rem;
    --sign-h: max(6rem, min(16vw, 18rem, 100vh - 9rem));
    --sign-w: calc(var(--sign-h) * var(--brand-ratio));
    --sign-gap: clamp(1.75rem, 3vw, 3rem);
    --sign-reach: max(0px, calc(var(--brand-top) + var(--sign-h) - var(--header-h) - var(--header-strip)));
    --brand-h-top: var(--sign-h);
    --mast-ext: 0px;
    --dock-range: max(8rem, var(--sign-reach));
    --brand-clear: 0px;
  }
  .has-sign .site-header > .container { max-width: calc(var(--shell-max) + 2 * var(--gutter)); }
  /* The slot in the bar: the big badge and the wordmark beside it, so the links never move as the badge docks */
  .nav-brand { --name-w: 11.5rem; width: calc(var(--brand-w) + var(--name-gap) + var(--name-w)); }
  .nav-brand-name { font-size: 1.375rem; opacity: 1; }
  .nav-brand-lockup, .site-header::before { display: none; }
  /* Content beside the badge */
  .has-sign .site-header + main > :first-child:where(:not(svg, .lurik, .hem, .weave-band, .batik-strip)) { min-height: calc(var(--sign-reach) + var(--brand-gap)); }
  .has-sign .site-header + main > :first-child > :is(.container, .container-wide),
  .has-sign .beside-sign {
    max-width: calc(var(--shell-max) + 2 * var(--gutter));
    padding-inline-start: calc(var(--gutter) + var(--sign-w) + var(--sign-gap));
  }
}
/* Small desktops: the column beside the sign is narrow, so the Home headline steps down to keep four lines */
@media (min-width: 64em) and (max-width: 79.99em) {
  .has-sign .hero .display { font-size: clamp(3.25rem, 5.6vw, 4.5rem); }
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.25rem 0.85rem;
  font-size: var(--fs-ui);
  font-weight: 800;
  text-decoration: none;
  color: var(--choc-deep);
  border-radius: var(--r-pill);
}
/* A running stitch under the link, like the hem of the apron */
.nav-links a:hover { color: var(--olive-deep); text-decoration: underline dashed var(--olive); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-links a[aria-current='page'] { color: var(--olive-deep); text-decoration: underline dashed var(--olive); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-right { display: flex; align-items: center; gap: var(--s2); }
/* The bag: shown by site.js once the saved order has something in it; links to the order page. The count is a pill
   on its corner, olive with cream text, never red and never under 16px (owner rules). */
.nav-bag {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--olive-deep);
  text-decoration: none;
}
.nav-bag[hidden] { display: none; }
.nav-bag:hover { background: var(--olive-wash); }
.nav-bag-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-bag-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--cream);
}
/* The breakdown that drops down from the bag (built by site.js): lines, subtotal, GST, total. 16px and up. */
.nav-right { position: relative; z-index: 8; }   /* above the badge and the masthead (z 6), like the open menu (z 7) */
.bag-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 60;
  width: min(23rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper);
  border: 2px solid var(--olive);
  border-radius: var(--cut-2);
  box-shadow: var(--shadow-md);
  color: var(--choc-deep);
  text-align: left;
}
.bag-panel[hidden] { display: none; }
.bag-panel-title { margin: 0 0 0.6rem; font-size: 1.5rem; line-height: 1.1; }
.bag-lines { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.bag-lines li { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.bag-line-label { min-width: 0; }
.bag-line-amount, .bag-totals dd { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0; }
.bag-totals { margin: 0; padding-top: 0.6rem; border-top: 1px dashed var(--sand-deep); display: grid; gap: 0.3rem; }
.bag-totals > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.bag-totals dt { color: var(--ink-2); }
.bag-total { margin-top: 0.3rem; padding-top: 0.5rem; border-top: 2px solid var(--choc-deep); font-size: 1.25rem; }
.bag-total dt { color: var(--choc-deep); font-weight: 800; }
.bag-note { margin: 0.75rem 0 0.9rem; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.bag-go { width: 100%; }
.bag-go, .bag-go:hover { color: var(--cream); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .nav-bag.is-bumped .nav-bag-count { animation: bag-bump 0.45s var(--ease-out); }
  @keyframes bag-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
}
/* Phones: the masthead's "Artisan Tempeh" starts just under the bar, so while the masthead is open the bag and the
   menu button sit a little higher, easing back to the middle of the bar as it docks (--d from site.js). */
@media (max-width: 35.999em) {
  .nav-right { transform: translateY(calc(-0.5rem * (1 - var(--d)))); }
}
.nav-cta { display: none; }
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--olive-deep);
}
.nav-toggle:hover { background: var(--olive-wash); }
.nav-toggle .bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.site-header.is-open .nav-toggle .bars { background: transparent; }
.site-header.is-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
.site-header.is-open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  padding: 0 1rem 1rem;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  z-index: 7;   /* over the badge while it docks */
}
.site-header.is-open .nav-links::before { content: ''; display: block; height: 10px; margin: 0 -1rem 0.5rem; background: var(--olive) var(--kawung-strip); background-size: 24px 24px; }
.site-header.is-open .nav-links::after { content: ''; display: block; order: 99; height: 8px; margin: 0.5rem -1rem -1rem; background: var(--lurik-h); }
.site-header.is-open .nav-links a { padding: 0.6rem 1rem; font-size: 1.25rem; }
.site-header.is-open .nav-links .nav-mobile-cta { margin-top: 0.5rem; }
.nav-mobile-cta .btn { width: 100%; }
.nav-links .btn, .nav-links .btn:hover { color: var(--cream); text-decoration: none; border-radius: var(--cut); }
@media (min-width: 36em) {
  .nav-cta { display: inline-flex; }
  .site-header.is-open .nav-links { left: -1.5rem; right: -1.5rem; padding-inline: 1.5rem; }
  .site-header.is-open .nav-links::before, .site-header.is-open .nav-links::after { margin-inline: -1.5rem; }
  .nav-mobile-cta { display: none; }
}
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .nav-links, .site-header.is-open .nav-links {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-header.is-open .nav-links::before, .site-header.is-open .nav-links::after { display: none; }
  .site-header.is-open .nav-links a { padding: 0.25rem 0.85rem; font-size: var(--fs-ui); }
  .nav-mobile-cta { display: none; }
}

.site-footer {
  background: var(--choc-deep);
  color: var(--sand);
  padding-block: 0 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.site-footer::before { content: ''; display: block; height: 16px; background: var(--lurik-h); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.site-footer::after { content: ''; display: block; height: 12px; margin-top: var(--s6); background: var(--olive) var(--kawung-strip); background-size: 24px 24px; }
.site-footer > .container { position: relative; }
.site-footer > .container::before { content: ''; position: absolute; inset: -100% -50vw 0; z-index: -1; background: var(--parang-light); opacity: 0.18; pointer-events: none; }
.site-footer a { color: var(--cream); text-decoration-color: rgb(216 205 178 / 0.45); }
.site-footer a:hover { color: var(--sand); text-decoration-style: dashed; }
.footer-grid { display: grid; gap: var(--s6) var(--s6); }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.3fr 1.1fr 0.9fr 1.3fr; gap: var(--s6) var(--s7); } }
.footer-brand img { height: 180px; width: auto; margin-bottom: var(--s4); filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.35)); }
.footer-brand p { color: var(--sand); max-width: 24rem; font-size: var(--fs-small); margin: 0 0 0.25rem; }
.footer-brand address { font-style: normal; color: var(--sand); }
/* Instagram: the glyph and "@artisan_tempeh" are one link (tap either) */
.footer-brand address .footer-ig { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--sand); min-height: 44px; min-width: 44px; font-weight: 700; }
.footer-brand address .footer-ig svg { display: block; flex: 0 0 auto; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); margin-bottom: 0.2rem; }
.footer-phrase { margin-top: var(--s4) !important; font-family: var(--font-display); font-size: 1.25rem; color: var(--cream); }
.footer-col h2, .footer-col h3 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-deep); margin-bottom: var(--s3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.footer-col .plain { gap: 0.5rem; font-size: var(--fs-small); color: var(--sand); }
.footer-col .plain li { padding-left: 1.1rem; position: relative; line-height: 1.45; }
.footer-col .plain li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.footer-bottom {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1.5px dashed rgb(216 205 178 / 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  justify-content: space-between;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--sand-deep);
}
.footer-fine { max-width: 44rem; font-size: var(--fs-xs); color: var(--sand-deep); line-height: 1.5; }
.footer-fine strong { color: var(--cream); font-weight: 800; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  transform: translate(-50%, 150%);
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-lg), 0 3px 0 var(--olive-deep);
  padding-inline: 2rem;
  white-space: nowrap;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (min-width: 48em) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   15. Tables, drawer, toast
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--bone); white-space: nowrap; position: sticky; top: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--olive-wash); }
.table tr[tabindex], .table tr.is-clickable { cursor: pointer; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-sub { display: block; color: var(--ink-2); font-size: var(--fs-xs); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(51 32 26 / 0.5);
  opacity: 0;
  visibility: hidden;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(32rem, 100%);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s5) var(--s4); border-bottom: 1.5px dashed var(--sand-deep); }
.drawer-header h2 { font-size: 1.625rem; margin: 0; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: var(--s5); }
.drawer-footer { padding: var(--s4) var(--s5); border-top: 1.5px dashed var(--sand-deep); display: flex; flex-wrap: wrap; gap: var(--s3); background: var(--bone); }
.drawer-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bone);
  color: var(--olive-deep);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.drawer-close:hover { background: var(--sand); }
@media (max-width: 47.99em) {
  .drawer {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
  .drawer::before { content: ''; display: block; width: 2.5rem; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0.6rem auto 0; }
}

.toast-region {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  gap: var(--s2);
  justify-items: center;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  max-width: 32rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--cut-2);
  border-left: 5px solid var(--sand);
  background: var(--choc-deep);
  color: var(--cream);
  font-weight: 700;
  font-size: var(--fs-small);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.toast[data-type='error'] { background: var(--choc); border-left-color: var(--cream); }
.toast[data-type='success'] { background: var(--olive); border-left-color: var(--sand); }

/* --------------------------------------------------------------------------
   16. Keep it fresh (Home) — .fresh-grid/.fresh-card fridge & freezer, .fresh-thaw options, .fresh-steps,
   .fresh-tagline; .fresh-compact is the thanks-page card. Designed for the sand band (paper cards on sand).
   -------------------------------------------------------------------------- */
.fresh-grid { display: grid; gap: var(--s4); }
@media (min-width: 36em) { .fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
.fresh-card {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper);
  border: 1.5px solid rgb(75 49 38 / 0.18);
  border-radius: var(--cut);
  box-shadow: var(--shadow-md);
}
.fresh-card:nth-child(odd) { rotate: -0.6deg; }
.fresh-card:nth-child(even) { rotate: 0.7deg; }
.fresh-card h3 { margin: 0 0 0.25rem; font-size: 1.5rem; color: var(--olive-deep); }
.fresh-card p, .fresh-option p, .fresh-steps p { margin: 0; }
.fresh-icon { flex: 0 0 auto; display: block; width: 3rem; height: 3rem; color: var(--olive); }
.fresh-icon svg { display: block; width: 100%; height: 100%; }
.fresh-subhead {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: clamp(2.5rem, 6vw, 4rem) 0 var(--s5);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  text-align: center;
  color: var(--choc);
}
.fresh-subhead::before, .fresh-subhead::after { content: ''; flex: 1 1 0; height: 0; border-top: 2px dotted var(--choc); opacity: 0.55; }
.fresh-subhead > span { padding: 0.15em 0.8em; background: var(--paper); border: 1.5px solid rgb(75 49 38 / 0.18); border-radius: var(--cut-2); box-shadow: var(--shadow-sm); }
.fresh-thaw { display: grid; gap: var(--s3); align-items: stretch; }
@media (min-width: 48em) { .fresh-thaw { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s4); align-items: center; } }
.fresh-option {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  height: 100%;
  padding: var(--s5);
  background: var(--paper);
  border: 1.5px solid rgb(75 49 38 / 0.18);
  border-radius: var(--cut-2);
  box-shadow: var(--shadow-sm);
}
.fresh-option .fresh-icon { width: 2.5rem; height: 2.5rem; }
.fresh-option h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}
.fresh-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-weight: 800;
  box-shadow: 0 2px 0 var(--olive-deep);
}
.fresh-best {
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--choc-deep);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fresh-or { margin: 0; justify-self: center; align-self: center; padding: 0.35rem 0.9rem; background: var(--paper); border: 1.5px solid rgb(75 49 38 / 0.18); border-radius: var(--r-pill); text-align: center; color: var(--choc); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.fresh-steps { list-style: none; display: grid; gap: var(--s3); margin: var(--s5) 0 0; padding: 0; }
@media (min-width: 48em) { .fresh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.fresh-steps li {
  position: relative;
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s4) var(--s4) var(--s4) var(--s4);
  background: var(--paper);
  border: 1.5px dashed var(--choc);
  border-radius: var(--cut-2);
}
.fresh-steps p { font-size: var(--fs-small); }
.fresh-step-num { flex: 0 0 auto; font-family: var(--font-display); font-size: 1.875rem; line-height: 1; color: var(--olive-deep); }
@media (min-width: 48em) {
  .fresh-steps li + li::before {
    content: '→';
    position: absolute;
    left: calc(var(--s6) / -2);
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--choc);
    font-size: 1.5rem;
  }
}
.fresh-tagline-phrase { text-align: center; }
.fresh-tagline { margin: clamp(2rem, 5vw, 3rem) 0 0; text-align: center; color: var(--olive-deep); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.fresh-compact { margin-top: var(--s5); padding: var(--s5); background: var(--bone); border: 1.5px dashed var(--sand-deep); border-radius: var(--cut); }
.fresh-compact h2 { margin: 0 0 var(--s2); font-size: 1.5rem; }
.fresh-compact ul { margin: 0; padding-left: 1.1rem; }
.fresh-compact li { margin: 0.3rem 0; }

/* --------------------------------------------------------------------------
   17. Home-page sections (hero, what, products, how, story, journey, closing) + 404
   -------------------------------------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-bottom: 0; }

.photo-frame { position: relative; margin: 0; padding: 12px; background: var(--olive-deep); border-radius: var(--cut); box-shadow: var(--shadow-md); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.photo-frame figcaption { padding: 0.8rem 0.5rem 0.2rem; color: var(--bone); font-size: var(--fs-small); font-weight: 700; }

/* Hero */
.hero { --pad-top: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 40rem; }
.hero-copy .lede { margin-block: var(--s4) var(--s5); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.feature-chips { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.feature-chips > li { padding: 0.5rem 1.15rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.02em; color: var(--choc-deep); background: var(--sand); border: 2px solid var(--sand-deep); border-radius: 999px; }
@media (min-width: 48em) { .feature-chips > li { font-size: 1.125rem; padding: 0.55rem 1.35rem; } }
.hero-micro { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.5rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.hero-micro > * { padding: 0.35rem 0.85rem; border: 1.5px dashed var(--sand-deep); border-radius: 999px; background: var(--paper); }
.hero-art { position: relative; width: min(100%, 540px); margin-inline: auto; padding: 5% 4% 9%; }
.hero-art .price-tag { position: absolute; z-index: 3; right: 0; bottom: 5%; rotate: -5deg; }
.hero-art .patch { position: absolute; z-index: 3; left: 0; top: 0; width: 124px; min-height: 124px; font-size: 1.0625rem; rotate: -12deg; }
@media (min-width: 52.5em) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-art { margin-inline: 0 auto; }
}
/* The hero beside the shop sign (desktop). The sign takes the left of the first screen, so the copy is set a
   little tighter: three headline lines, a wider lede, the tray level with the headline, and the Order now
   button inside the first screen of a 720px-tall window. (This comes after the small-desktop headline rule in
   section 14 and replaces it.)
   .hero-leaves — banana leaves tucked behind the lower end of the sign and hanging down the column under it,
   so that column is never an empty strip. Decoration only: an inline <svg class="hero-leaves"> placed first in
   the hero, hidden below 64em. It starts behind the sign (--leaves-tuck of the sign's height) and ends above
   the hero's bottom edge. Colour hooks as the other leaves: color, --leaf-2, --leaf-rib. */
.hero-leaves { display: none; }
@media (min-width: 64em) {
  .has-sign .hero { --pad-top: clamp(1.5rem, 2.6vw, 3.25rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
  .has-sign .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(17rem, 31vw, 27rem); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .has-sign .hero .display { font-size: clamp(3.25rem, 4.6vw, 4rem); margin-bottom: 0.4em; }
  .has-sign .hero-copy { max-width: none; }
  .has-sign .hero-copy .lede { max-width: 36rem; margin-block: 0 var(--s5); font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
  .has-sign .hero-art { width: 100%; margin: clamp(0.5rem, 35vh - 14rem, 5rem) 0 0; }   /* a taller window lets the tray sit lower, level with the middle of the copy */
  .has-sign .hero-leaves {
    --leaves-tuck: 0.38;
    --leaves-top: calc(var(--sign-reach) - var(--sign-h) * var(--leaves-tuck));
    display: block;
    position: absolute;
    z-index: 1;
    top: var(--leaves-top);
    left: calc(max(var(--gutter), (100% - var(--shell-max)) / 2) - var(--sign-w) * 0.07);
    width: calc(var(--sign-w) * 1.14);
    height: calc(100% - var(--leaves-top) - 1.25rem);
    max-width: none;
    color: var(--olive);
    --leaf-2: var(--olive-deep);
    pointer-events: none;
    filter: drop-shadow(0 10px 12px rgb(51 32 26 / 0.28));
  }
}
/* .sign-cloth — a length of batik cloth hanging behind the shop sign, from the rules band down the first block of
   <main>, so the column under the sign is never an empty strip. Sand cloth, parang, lurik selvedges, a tumpal
   (row of triangles) border and a fringe at its end. Decoration only, desktop only (hidden below 64em):
     <div class="sign-cloth" aria-hidden="true"></div>   as the first child of the first block of <main>
   The block must be positioned (.section, .hero and every .batik-* block are). The cloth is as wide as the sign
   plus 0.75rem each side and ends --cloth-end above the block's bottom edge; it sits under the block's content. */
.sign-cloth { display: none; }
@media (min-width: 64em) {
  .has-sign .sign-cloth {
    --cloth-end: clamp(1.5rem, 2.6vw, 2.75rem);
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: var(--cloth-end);
    left: calc(max(var(--gutter), (100% - var(--shell-max)) / 2) - 0.75rem);
    width: calc(var(--sign-w) + 1.5rem);
    padding-bottom: 18px;   /* the fringe hangs here, below the woven cloth */
    background:
      linear-gradient(180deg, rgb(51 32 26 / 0.3), rgb(51 32 26 / 0) 18px),
      linear-gradient(90deg, rgb(51 32 26 / 0.1), rgb(51 32 26 / 0) 16%, rgb(250 246 236 / 0.16) 50%, rgb(51 32 26 / 0) 84%, rgb(51 32 26 / 0.12)),
      var(--lurik-v) left top / 10px 100% no-repeat,
      var(--lurik-v) right top / 10px 100% no-repeat,
      var(--sand);
    background-clip: content-box;
    filter: drop-shadow(0 2px 2px rgb(51 32 26 / 0.18)) drop-shadow(0 14px 18px rgb(51 32 26 / 0.22));
    pointer-events: none;
  }
  .has-sign .sign-cloth.is-short { bottom: auto; height: calc((100% - var(--cloth-end)) * 0.7); }   /* 30% shorter, for tall first blocks (Home) */
  /* Cream cloth with a kawung weave, for pages whose first block is sand with parang (Order), so the cloth stands out */
  .has-sign .sign-cloth.is-cream {
    background:
      linear-gradient(180deg, rgb(51 32 26 / 0.3), rgb(51 32 26 / 0) 18px),
      linear-gradient(90deg, rgb(51 32 26 / 0.1), rgb(51 32 26 / 0) 16%, rgb(250 246 236 / 0.16) 50%, rgb(51 32 26 / 0) 84%, rgb(51 32 26 / 0.12)),
      var(--lurik-v) left top / 10px 100% no-repeat,
      var(--lurik-v) right top / 10px 100% no-repeat,
      var(--cream);
    background-clip: content-box;
  }
  .has-sign .sign-cloth.is-cream::before { background: var(--kawung-dark); background-size: 40px 40px; opacity: 0.5; }
  .has-sign .sign-cloth::before { content: ''; position: absolute; inset: 0 10px 82px; background: var(--parang-dark); opacity: 0.34; }
  .has-sign .sign-cloth::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 82px;
    background:
      var(--lurik-h) left top / 100% 16px no-repeat,
      conic-gradient(from 150deg at 50% 0, var(--choc) 60deg, rgb(75 49 38 / 0) 0) center 22px / 40px 36px repeat-x,
      linear-gradient(var(--choc), var(--choc)) left 60px / 100% 4px no-repeat,
      repeating-linear-gradient(90deg, rgb(75 49 38 / 0.62) 0 2px, rgb(75 49 38 / 0) 2px 5px) left bottom / 100% 18px no-repeat;
  }
}

/* What is tempeh (olive, truntum) */
.what-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.what-copy p { max-width: 58ch; }
.what-copy p:not(.eyebrow) { color: var(--bone); }
.what-copy h2 { color: var(--cream); }
.what-visual { position: relative; width: min(100%, 580px); margin-inline: auto; }
.what-visual .sticker { position: relative; margin: -1.5rem auto 0; z-index: 3; }
@media (min-width: 52.5em) {
  .what-grid { grid-template-columns: 1.05fr 0.95fr; }
  .what-visual .sticker { position: absolute; right: -4%; bottom: -8%; margin: 0; }
}

/* Products — cards with a lurik selvedge and a tampah under the render */
.products { display: grid; gap: var(--s5); }
@media (min-width: 48em) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--cut);
  box-shadow: var(--shadow-md);
}
.product-figure {
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem) 0.5rem;
  background: radial-gradient(60% 55% at 50% 60%, rgb(74 91 60 / 0.16), transparent 70%), var(--bone);
  display: grid;
  place-items: center;
  position: relative;
}
.product-figure .tampah-wrap { width: min(100%, 340px); }
.product-body { padding: clamp(1.25rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.product-body .eyebrow { margin-bottom: 0; }
.product-body h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin: 0; }
.product-body > p { color: var(--ink-2); max-width: 44ch; margin: 0; }
.product-body .price-list { margin: 0.25rem 0 0.5rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; }
.product-body .btn { align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }   /* long labels wrap on the smallest phones */
.fineprint, .wholesale-line { margin-top: var(--s6); font-size: var(--fs-small); color: var(--ink-2); }

/* How it works — logistics notes */
.logistics { display: grid; gap: var(--s5); margin-top: var(--s6); }
.logistics > * { min-width: 0; }
@media (min-width: 48em) {
  .logistics { grid-template-columns: 1fr 1fr; }
  .logistics .placeholder-photo.is-wide { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .logistics { grid-template-columns: 1fr 1fr 1.3fr; }
  .logistics .placeholder-photo.is-wide { grid-column: auto; }
}

/* Story — badge, two placeholders, aksara Jawa ornament */
.story-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-visual { position: relative; width: min(100%, 460px); margin-inline: auto; display: grid; gap: 1rem; }
.story-badge { justify-self: center; height: clamp(240px, 32vw, 320px); width: auto; margin-bottom: 0.5rem; filter: drop-shadow(0 14px 24px rgb(51 32 26 / 0.3)); }
.story-visual .placeholder-photo { box-shadow: var(--shadow-md); }
.story-visual .placeholder-photo.is-square { width: 62%; justify-self: end; margin-top: -3.5rem; rotate: 2.5deg; }
.story-visual .swatch-card { width: 66%; justify-self: end; margin-top: -3.5rem; rotate: 2.5deg; }
.story-copy p:not(.eyebrow):not(.aksara) { max-width: 56ch; }
.story-copy .aksara { margin-bottom: 1.25rem; }
.story-copy .aksara-glyphs { color: #7A846A; }   /* olive at about 70 % on cream: 3.4:1, where the sand-deep default is too faint to read as writing */
.story-copy .paper { max-width: 40rem; padding: clamp(1.25rem, 3vw, 2rem); }
.story-copy h2 { max-width: 18ch; }
@media (min-width: 52.5em) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; }
  .story-visual { margin-inline: 0; }
}

/* Journey: Semarang to Calgary */
.journey .lede { max-width: 46ch; }
.journey-title { display: grid; gap: 0; margin: 0 0 clamp(1.75rem, 4vw, 3rem); line-height: 0.9; color: var(--cream); }   /* room for the descenders of "Calgary" */
.journey-title .big { font-size: clamp(3rem, 1rem + 12vw, 10rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.journey-title .to {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0.35em 0 0.35em 0.15em;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.journey-title .to::after { content: ''; flex: 1 1 auto; max-width: 320px; height: 0; border-top: 3px dotted var(--sand); opacity: 0.8; }
/* The three patches under the tiles: big enough for two lines of display type and a small line at 16px */
.journey .patches { gap: 0.75rem clamp(0.75rem, 3vw, 1.5rem); }
.journey .patches .patch { align-content: center; row-gap: 0.15rem; }
.journey .patches .patch br { display: none; }   /* the small line is a block already */
.journey .patches .patch { width: clamp(10.5rem, 44vw, 12.5rem); min-height: clamp(10.5rem, 44vw, 12.5rem); padding: 1.4rem 1.1rem; font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.25rem); }
.tiles { display: grid; gap: 1rem; margin: clamp(1.5rem, 4vw, 3rem) 0; }
.tile { position: relative; margin: 0; background: var(--olive); border-radius: var(--cut-2); overflow: hidden; box-shadow: var(--shadow-md); padding: 12px; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.tile figcaption { padding: 0.8rem 0.4rem 0.4rem; font-size: var(--fs-small); font-weight: 700; color: var(--bone); }
.tile.placeholder-photo { min-height: 240px; aspect-ratio: auto; padding: 1.75rem; }
.tile.is-feature img { aspect-ratio: 4 / 3; }
@media (min-width: 48em) {
  .tiles { grid-template-columns: 1.5fr 1fr; grid-auto-rows: auto; }
  .tile.is-feature { grid-row: span 2; display: flex; flex-direction: column; }
  .tile.is-feature img { flex: 1 1 auto; aspect-ratio: auto; height: 100%; min-height: 0; }
}
/* Illustrated tiles (no photographs).
   .tile-scene    — the picture area of a tile built from the motifs: a bone ground with the kawung, holding a
                    .tampah-wrap (tray, .tampah-leaf lining, product render). Put it where the <img> would go.
   .tile.is-light — a paper tile for a dark band (dark batik frame, ink text).
   .tile-explain  — a tile that explains one thing: .tile-art (a motif drawing; .is-leaf for the banana leaf)
                    beside an <h3> and a short <p>. */
.tile-scene { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; border-radius: 10px; padding: clamp(2rem, 6vw, 3.25rem) clamp(1.5rem, 5vw, 3rem); background: radial-gradient(58% 52% at 50% 54%, rgb(74 91 60 / 0.2), transparent 72%), var(--bone); }
.tile-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--kawung-dark); opacity: 0.17; pointer-events: none; }
.tile-scene .tampah-wrap { width: min(78%, 27rem); }
.tile .tile-scene .tampah-wrap > img { width: 76%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; flex: none; }
.tile.is-light { background: var(--paper); color: var(--ink); --focus-color: var(--olive); }
.tile.is-light.batik-frame { --frame-tile: var(--parang-dark); --frame-opacity: 0.5; }
.tile.is-light.batik-frame.frame-kawung { --frame-tile: var(--kawung-dark); }
.tile.is-light.batik-frame.frame-ceplok { --frame-tile: var(--ceplok-dark); }
.tile.is-light.batik-frame.frame-truntum { --frame-tile: var(--truntum-dark); }
.tile.is-light.batik-frame.frame-megamendung { --frame-tile: var(--megamendung-dark); }
.tile-explain { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1.25rem; align-items: center; padding: 1.75rem 1.75rem 1.75rem 1.5rem; }
.tile-explain .tile-art { width: clamp(5.5rem, 24vw, 7rem); aspect-ratio: 1; display: grid; place-items: center; }
.tile-explain .tile-art svg { width: 100%; height: auto; max-width: none; filter: drop-shadow(0 8px 10px rgb(51 32 26 / 0.3)); }
.tile-explain .tile-art.is-leaf svg { width: 135%; rotate: -32deg; scale: 1 1.4; color: var(--olive); --leaf-2: var(--olive-deep); }
.tile.tile-explain h3 { margin: 0 0 0.3rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); color: var(--olive-deep); }
.tile.tile-explain p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
@media (min-width: 48em) { .tile.is-feature .tile-scene { flex: 1 1 auto; } }
/* Tablets: the scene runs full width and the explainers sit side by side under it */
@media (min-width: 48em) and (max-width: 63.99em) {
  .tiles:has(.tile-explain) { grid-template-columns: 1fr 1fr; }
  .tiles:has(.tile-explain) .tile.is-feature { grid-column: 1 / -1; grid-row: auto; }
  .tile-explain { padding-inline: 1.5rem 1.25rem; column-gap: 1rem; }
}
@media (min-width: 80em) { .tile-explain .tile-art { width: 9.5rem; } }

/* Closing */
.closing-grid { display: grid; gap: 1.5rem; align-items: center; }
.closing h2 { max-width: 14ch; }
.closing .cluster { margin: 0; }
@media (min-width: 52.5em) {
  .closing-grid { grid-template-columns: 1.2fr 0.8fr; }
  .closing .cluster { justify-content: flex-end; }
}
/* Closing with a picture: .closing-copy holds the heading, the lede and the buttons; .closing-art holds a
   .tampah-wrap (tray, .tampah-leaf lining, render) beside it, under it on phones. */
.closing:has(.closing-art) { overflow: clip; }
.closing .closing-copy .cluster { justify-content: flex-start; margin-top: var(--s5); }
.closing-art { width: min(100%, 25rem); margin-inline: auto; padding: 9% 13%; }
@media (min-width: 52.5em) { .closing-art { margin-inline: auto 0; } }

/* .bean-rain — soybeans falling behind a section's content (every section of the Home page). Decoration only:
     <div class="bean-rain" data-bean-rain aria-hidden="true"></div>   as the first child of the section
     (in the hero: after .sign-cloth), before its content
   /js/beans.js fills each layer with .bean spans while its section is on screen and animates them (transform and
   opacity only, so the layout never moves). The layer stays empty without JavaScript and with reduced motion.
   It sits above the section's background and batik and under its content (.section > .container, .hero-copy and
   the cloth are z-index 1); the section must be positioned (.section, .hero and every .batik-* block are).
   On cream and bone a bean is mostly paper and bone, paler than sand, with a sand-deep outline: dark text
   passing over one keeps its contrast. On olive the beans are olive-deep with a faint sand rim, darker than the
   band, so the cream text there keeps its contrast too.
   .bean-toggle — the round pause / play button beans.js adds, fixed in the bottom-left corner of the screen. */
.bean-rain { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; container-type: size; }   /* a size container: beans.js places the beans in cqw / cqh */
.bean {
  position: absolute; top: 0; left: 0; width: var(--bean, 28px); height: calc(var(--bean, 28px) * 0.8); opacity: 0;
  border: 2px solid var(--sand-deep); border-radius: 52% 48% 50% 50% / 54% 54% 46% 46%;
  background: radial-gradient(ellipse at 36% 30%, var(--paper) 0 12%, var(--bone) 40%, var(--sand) 92%);
}
.bean::after { content: ''; position: absolute; left: 54%; top: 60%; width: 26%; height: 15%; translate: -50% -50%; rotate: -8deg; border-radius: 999px; background: var(--choc); opacity: 0.5; }   /* the hilum, the bean's little scar */
.on-olive .bean, .on-olive-deep .bean, .on-chocolate .bean { border-color: rgb(216 205 178 / 0.45); background: radial-gradient(ellipse at 36% 30%, rgb(216 205 178 / 0.2) 0 14%, var(--olive-deep) 70%); }   /* a faint sand rim so the shape reads on the band */
.on-olive .bean::after, .on-olive-deep .bean::after, .on-chocolate .bean::after { background: var(--sand); opacity: 0.35; }
.bean-toggle {
  position: fixed; z-index: 39; left: max(1rem, env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1.5px dashed var(--sand-deep); border-radius: 50%; background: var(--paper); color: var(--olive-deep); box-shadow: var(--shadow-md); cursor: pointer;
}
.bean-toggle:hover { border-style: solid; }
.bean-toggle:focus-visible { border-radius: 50%; }
.bean-toggle::before { content: ''; width: 0.75rem; height: 0.875rem; border-inline: 0.25rem solid currentColor; }   /* pause: two bars */
.bean-toggle[data-state='paused']::before { width: 0.875rem; border: 0; background: currentColor; clip-path: polygon(12% 0, 100% 50%, 12% 100%); }   /* play: a triangle */

/* 404 */
.error-page { --pad-top: clamp(4rem, 12vw, 9rem); text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.error-page .display { font-size: clamp(6rem, 24vw, 13rem); line-height: 1; margin-bottom: var(--s2); }
.error-page .lede { margin-inline: auto; }
/* The zero of "404" is an empty tampah: the tempeh has wandered off the tray. <svg class="error-tray"> sits inline between the two 4s. */
.error-page .error-tray { display: inline-block; width: 0.76em; height: 0.76em; margin: 0 0.06em; vertical-align: -0.2em; filter: drop-shadow(0 0.03em 0.04em rgb(51 32 26 / 0.32)); }
@media (min-width: 64em) {
  /* Beside the shop sign: less air above, so the two buttons are inside the first screen */
  .has-sign .error-page { --pad-top: clamp(2.25rem, 4vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
  .has-sign .error-page .display { font-size: clamp(8rem, 12vw, 11rem); }
}

/* --------------------------------------------------------------------------
   18. Motion (only when the visitor hasn't asked for reduced motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  a, .btn, .chip, .choice-body, .nav-links a, .stepper button, .drawer-close, .link-arrow::after, .card-link, .card-link h3 {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s var(--ease-out), opacity 0.3s ease;
  }
  .btn-primary:hover, .btn-dark:hover { transform: translateY(-1px); }
  .btn-primary:active, .btn-dark:active { transform: translateY(2px); }
  .link-arrow:hover::after { transform: translateX(0.25em); }
  .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .product-card, .fresh-card, .notice-tile, .tile { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
  .product-card:hover, .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .tampah-wrap > img, .tampah-wrap > picture { transition: transform 0.6s var(--ease-out); }
  .product-card:hover .tampah-wrap > img, .product-card:hover .tampah-wrap > picture { transform: translateY(-4px) scale(1.02); }

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* The rules band as a one-line marquee. Without JavaScript the one set of phrases slides through and starts
     again (ticker-solo). site.js repeats the set, flags the track [data-cloned] and the loop turns seamless;
     --ticker-loop (set by site.js) is how many sets one loop travels, so the speed stays the same on wide screens. */
  /* Pinned to the top of the window as one slim line (same type size, thinner stripe); the header sticks under it */
  :root { --band-h: calc(2.75rem + 8px); --band-stripe: 8px; --ticker-pin: var(--band-h); }
  .ticker { position: sticky; top: 0; z-index: 51; height: var(--band-h); }
  .ticker-track { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 0; width: max-content; padding: 0.25rem 0; animation: ticker-solo var(--ticker-dur) linear infinite; }
  .ticker-track[data-cloned] { animation-name: ticker; animation-duration: calc(var(--ticker-dur) * var(--ticker-loop, 1)); }
  .ticker-item { padding: 0.25rem 1.25rem 0.25rem 2.1rem; font-size: var(--fs-small); line-height: 1.35; white-space: nowrap; }
  .ticker-item::before { left: 1.1rem; top: calc(0.25rem + 0.675em - 4.5px); width: 9px; height: 9px; }
  .ticker-track > [aria-hidden='true'] { display: block; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }

  /* The badge follows the scroll itself (no transition there); opening the phone menu docks it with an ease,
     and it sways a little under the pointer */
  .site-header { transition: --dock-force 0.35s var(--ease-out); }
  .nav-brand img { transition: rotate 0.6s var(--ease-out); }
  @media (hover: hover) { .nav-brand:hover img { rotate: -2deg; } }

  .stepper-value.bump { animation: bump 0.25s var(--ease-out); }

  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out), background-color 0.2s ease; }
  .site-header.is-open .nav-links { animation: menu-in 0.25s var(--ease-out); }

  .sticky-cta { transition: transform 0.4s var(--ease-out), opacity 0.3s ease, visibility 0.4s; }
  .drawer { transition: transform 0.35s var(--ease-out), visibility 0.35s; }
  .drawer-backdrop { transition: opacity 0.3s ease, visibility 0.3s; }
  .toast { animation: toast-in 0.3s var(--ease-out); }
  .toast.is-leaving { animation: toast-out 0.3s ease forwards; }
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-solo { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  body::after, .site-header, .ticker, .sticky-cta, .skip-link, .toast-region, .lurik, .hem, .leaf-divider, .motif, .gunungan, .batik-strip { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}

@media print { .sign-cloth, .hero-leaves, .bean-rain, .bean-toggle { display: none !important; } }

/* The hidden attribute must beat any display-setting class (banners, drawers, panels). */
[hidden] { display: none !important; }

/* Home page: a tighter rhythm (shorter bands, smaller product art) so the page reads in about half the scroll */
#what, #products, #how, #story, .closing { --section-pad: clamp(1.75rem, 3.5vw, 2.75rem); }
#products .product-figure .tampah-wrap { width: min(100%, 170px); }
#products .section-head, #how .section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
#how .steps { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
/* Victoria's photo (2026-11-19): above the copy on phones, beside it from 52.5em. Plain olive frame, no batik on Home. */
#story .story-grid { grid-template-columns: minmax(0, 1fr); }
#story .story-photo { width: min(100%, 24rem); justify-self: center; rotate: -1.5deg; }
@media (min-width: 52.5em) {
  #story .story-grid.has-photo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  #story .story-photo { width: 100%; max-width: 26rem; }
}
#story .story-copy h2 { max-width: 20ch; }
.closing.is-compact .closing-art { display: none; }
@media (min-width: 64em) { .closing h2 { max-width: none; } }

/* Home hero: a small Canada flag after "Calgary." so visitors see at once that the shop is Canadian.
   The real flag in its real red: the owner's one exception to the no-red palette (2026-11-17), because an
   olive version read as Nigeria's flag. test/ownerRules.test.js allows this red on .flag-ca lines only. */
.with-flag { white-space: nowrap; }
.flag-ca {
  display: inline-block;
  width: 1.1em;
  height: 0.55em;
  margin-left: 0.22em;
  vertical-align: 0.06em;
  border-radius: 0.04em;
  box-shadow: 0 0 0 0.02em rgb(51 32 26 / 0.22), 0 0.05em 0.12em rgb(51 32 26 / 0.18);
}
.flag-ca-field { fill: #FFFFFF; }
/* Below 64em the masthead shows the flag under "Handmade in Calgary" on every page, so the hero one would repeat it */
@media (max-width: 63.999em) { .hero .flag-ca { display: none; } }
.flag-ca-band, .flag-ca-leaf { fill: #D52B1E; } /* flag-ca: official Canada flag red */

/* Home: recipes teaser after the story (2026-11-19). Card styles come from recipe.css, which Home also loads.
   Phones: a swipeable row of cards. From 48em: three cards side by side. */
#recipes-teaser .home-recipe-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.25rem 1rem; max-width: none; }
#recipes-teaser .home-recipe-grid .recipe-card { scroll-snap-align: start; }
@media (min-width: 48em) {
  #recipes-teaser .home-recipe-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; }
}
.home-recipes-more { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; text-align: center; }

/* Organic Soy Tempeh on its tray (Home product card, Order page): the white blocks fill the top two thirds of the
   render and only the thin leaf reaches down, so a centred image box looks high. Nudge it down to sit in the middle. */
.product-card .tampah-wrap > img[src*="tempeh-block"],
.product-media .tampah-wrap > img[src*="tempeh-block"] { translate: 0 9%; }

/* Footer logo links Home (2026-11-19); copyright line carries the Privacy link. */
.footer-logo { display: inline-block; border-radius: 999px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Privacy page: one readable paper column. */
.privacy-doc { max-width: 46rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.privacy-doc h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin: 1.75rem 0 0.5rem; }
.privacy-doc h2:first-of-type { margin-top: 0.75rem; }
.privacy-doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.privacy-doc li { margin: 0.4rem 0; }
.privacy-updated { color: var(--ink-2); margin: 0; }
