/* 苍山下·山货社 — Cangshan Provisions
   Xizhou, Dali · Yunnan · China
   ------------------------------------------------------------
   A year-round mountain-goods shop set on the shoulder of the
   Cangshan ridge above the Bai village of Xizhou. The collection
   is the page: four seasonal shelves, browsed left to right.

   Visual system:
     • Palette: indigo dye #2C3E6B / cotton paper #F6F1E6 /
       bamboo green #8B9A6D / cangshan slate #3D4451 /
       dye-line cream #FBF8F0.
     • Four seasonal tones (each band takes its own):
         spring  — new-leaf green #7E9461
         summer  — rain blue + mushroom brown #6E7A8B / #7A5430
         autumn  — honey gold #B5802B / persimmon #C7592C
         winter  — cured ham red #8C2F2A / pine-smoke #4B4640
     • Typography: Noto Serif SC (display, CJK serif) +
       Marcellus (Latin accents). Tabular numerals throughout.
     • Signature motion:
         1. INDIGO DYE-WASH entrance — every section transition
            runs through a radial-gradient dye-diffusion
            (clipped, mask-animated, indigo centre → paper).
         2. Four horizontal SCROLL-SNAP collection bands — each
            season shelf is a horizontal scroll-snap row of
            product cards (the "组先于件" iron rule).
         3. Product-card HOVER flips up an "origin-tag" like a
            small cloth label stitched onto the card.
     • Plus (≥2 detail animations):
         – Hero status pulse (the season-pill dot)
         – Section title's gold rule draws left→right on entry
         – Season-plaque tide mark pulses behind the band label
     • NO glass, NO cinnabar stamps, NO wash/parchment faux.
       Built like an indigo-dyed ledger hanging from a beam.
   ------------------------------------------------------------ */

/* ---------- Webfonts (OFL) ---------- */
@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/notoserifsc-cjk-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF, U+2E80-2EFF, U+3105-312F, U+3400-4DBF;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/notoserifsc-latin-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Indigo dye chemistry */
  --indigo:        #2C3E6B;          /* base indigo (cloth in shade) */
  --indigo-deep:   #1F2D52;          /* deep vat indigo */
  --indigo-soft:   #5C6F9A;          /* lighter wash */
  --indigo-pale:   #B3BCD2;          /* fabric faded in sun */
  --indigo-cream:  #FBF8F0;          /* dye-line cream */

  /* Paper */
  --paper:         #F6F1E6;          /* cotton / rice paper */
  --paper-2:       #EFE7D4;          /* aged paper */
  --paper-3:       #FDFAF2;          /* fresh paper */

  /* Ink */
  --ink:           #3D4451;          /* cangshan slate ink */
  --ink-soft:      #5A6172;          /* soft slate */
  --ink-mute:      #8C8F99;          /* mute slate */

  /* Cangshan */
  --cangshan:      #3D4451;
  --bamboo:        #8B9A6D;          /* bamboo green */
  --bamboo-deep:   #6A7A4F;
  --stream:        #6E7A8B;          /* rain-blue / stream */

  /* Seasonal tones (per band) */
  --spring-tone:   #7E9461;          /* new-leaf green */
  --spring-tone-2: #B5C58A;          /* tender bud */
  --summer-tone:   #7A5430;          /* mushroom brown */
  --summer-tone-2: #6E7A8B;          /* rain blue */
  --autumn-tone:   #B5802B;          /* honey gold */
  --autumn-tone-2: #C7592C;          /* persimmon */
  --winter-tone:   #8C2F2A;          /* cured red */
  --winter-tone-2: #4B4640;          /* pine smoke */

  /* Surfaces */
  --rule-on-paper:    rgba(61,68,81,0.18);
  --rule-thin:        rgba(61,68,81,0.10);
  --rule-on-dark:     rgba(251,248,240,0.22);
  --rule-on-indigo:   rgba(251,248,240,0.28);

  /* Layout */
  --max:        1240px;
  --gut:        clamp(1rem, 2.4vw, 1.6rem);

  /* Fonts */
  --display: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "PingFang SC", "Hiragino Mincho ProN", serif;
  --body:    "Noto Serif SC", "PingFang SC", "Noto Sans SC", "Hiragino Sans", system-ui, sans-serif;
  --latin:   "Marcellus", "Noto Serif SC", serif;

  /* Motion */
  --dye-wash-dur: 1100ms;
}

/* ---------- Reset & defaults ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto;
    *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  }
}
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 90;
  background: var(--indigo); color: var(--indigo-cream);
  padding: 0.6rem 1rem; font-family: var(--display); font-weight: 500;
  border-radius: 2px;
  transition: top 160ms ease-out;
}
.skip:focus-visible { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  max-width: 28ch;
}
h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1rem; max-width: 60ch; }
.muted { color: var(--ink-mute); }
em.q { font-style: italic; font-family: var(--display); font-weight: 500; }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  margin: 0 0 0.9rem;
  display: inline-flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 0;
  border-top: 1px solid currentColor;
  display: inline-block;
  transform: translateY(-4px);
}
.dark-band .eyebrow { color: rgba(251,248,240,0.62); }

/* Latin words inside CJK text take Marcellus */
.latin, .word-latin {
  font-family: var(--latin);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   SIGNATURE #1 — INDIGO DYE-WASH entrance
   Each section has a ::before dye-stain overlay that scales from
   the centre outward on entry, then fades to transparent.
   ============================================================ */

/* Default: dye-stain is hidden, section is "dipped" clean */
.dye-section {
  position: relative;
  isolation: isolate;
}
.dye-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 30% 40% at 50% 50%,
    var(--indigo) 0%,
    var(--indigo-deep) 38%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity var(--dye-wash-dur) cubic-bezier(.5,0,.2,1),
    transform var(--dye-wash-dur) cubic-bezier(.4,.05,.2,1);
}

/* When JS adds is-dyed, the stain expands, then clears */
.dye-section.is-dyed::before {
  opacity: 0.92;
}
.dye-section.is-cleared::before {
  opacity: 0;
  transform: scale(3.4);
}

/* No-JS fallback: no dye overlay, content always visible */
.no-js .dye-section::before { display: none; }

/* ============================================================
   1. HERO — 100svh, season-pill status, dye-wash first frame
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: #0F1A2E;
  color: var(--indigo-cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute; inset: 0;
  background-image: url('hero-cangshan-1600.webp');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}

.hero::before {
  /* bottom-only scrim so headline reads, photo lives above */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 50%;
  background:
    linear-gradient(180deg,
      rgba(15,26,46,0.08) 0%,
      rgba(15,26,46,0.45) 28%,
      rgba(15,26,46,0.80) 64%,
      rgba(15,26,46,0.92) 100%);
  z-index: 1; pointer-events: none;
}

.hero::after {
  /* the dye-wash mask for the hero photo: indigo stain sweeps
    top → bottom on load, then dissolves (signature #1, main) */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--indigo) 0%,
    var(--indigo-deep) 60%,
    var(--indigo) 100%);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%, #000 35%, transparent 50%, transparent 100%);
          mask-image: linear-gradient(180deg,
    #000 0%, #000 35%, transparent 50%, transparent 100%);
  opacity: 1;
  animation: hero-dye-sweep 1900ms cubic-bezier(.5,0,.2,1) forwards;
}
@keyframes hero-dye-sweep {
  0%   { opacity: 1; -webkit-mask-position: 0% 100%; mask-position: 0% 100%; }
  60%  { opacity: 0.55; }
  100% { opacity: 0.18; }
}

/* No-JS fallback: no dye sweep */
.no-js .hero::after { display: none; }

/* Masthead: floating bar on the hero */
.masthead {
  position: absolute;
  z-index: 6;
  top: 0; left: 0; right: 0;
  padding: 1.2rem var(--gut) 0;
  display: flex; justify-content: center;
}
.masthead-inner {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 1.3rem;
  background: rgba(15,26,46,0.62);
  border: 1px solid rgba(251,248,240,0.18);
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--indigo-cream);
  white-space: nowrap;
}
.wordmark .accent { color: var(--spring-tone-2); font-style: italic; font-weight: 400; }
.masthead .signal {
  margin: 0;
  text-align: center;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.78);
}
.masthead .signal span + span::before { content: "·"; margin: 0 0.5em; color: rgba(251,248,240,0.42); }

.masthead nav { display: flex; align-items: center; gap: 1.1rem; }
.masthead nav a {
  color: rgba(251,248,240,0.86);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.35rem 0;
}
.masthead nav a:hover { color: var(--indigo-cream); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch {
  display: flex; gap: 0.6rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(251,248,240,0.18);
}
.lang-switch a {
  color: rgba(251,248,240,0.72);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-family: var(--latin);
}
.lang-switch a[aria-current="page"] { color: var(--indigo-cream); font-weight: 400; border-bottom: 1px solid var(--spring-tone-2); }
.lang-switch a:hover { color: var(--indigo-cream); }

/* Hero status pill — detail animation #1: pulse dot */
.hero-status {
  position: absolute;
  z-index: 4;
  left: var(--gut);
  top: clamp(7.5rem, 14vh, 10rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.95rem;
  background: rgba(15,26,46,0.62);
  border: 1px solid rgba(251,248,240,0.32);
  color: var(--indigo-cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.hero-status .pulse {
  width: 0.6em; height: 0.6em;
  background: var(--spring-tone-2);
  border-radius: 50%;
  position: relative;
  animation: status-pulse 2.6s ease-in-out infinite;
}
.hero-status .pulse::before {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--spring-tone-2);
  content: "";
  animation: status-pulse-ring 2.6s ease-out infinite;
  opacity: 0.6;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.72); }
}
@keyframes status-pulse-ring {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Hero text — bottom-left, inside scrim */
.hero-text {
  position: absolute;
  z-index: 4;
  left: var(--gut);
  right: var(--gut);
  bottom: clamp(4.4rem, 11vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 3vw, 3rem);
  color: var(--indigo-cream);
  pointer-events: none;
}
.hero-text > * { pointer-events: auto; }
.hero-eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.92);
}
.hero-eyebrow .accent { color: var(--spring-tone-2); }
.hero h1 {
  color: var(--indigo-cream);
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 24px rgba(15,26,46,0.55), 0 1px 2px rgba(15,26,46,0.4);
}
.hero-tagline {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(251,248,240,0.88);
  max-width: 44ch;
  text-shadow: 0 1px 14px rgba(15,26,46,0.45);
}

/* Season-pill line: small detail band listing the four shelves */
.hero-shelves {
  position: absolute;
  z-index: 4;
  left: var(--gut);
  right: var(--gut);
  bottom: clamp(1.2rem, 3.5vh, 2rem);
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: rgba(251,248,240,0.86);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-shelves span {
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-shelves span::before {
  content: "";
  width: 0.4em; height: 0.4em;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
}
.hero-shelves .is-now {
  color: var(--spring-tone-2);
}
.hero-shelves .is-now::before {
  background: var(--spring-tone-2);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(181,197,138,0.20);
}

/* ============================================================
   2. FACT BAND — four seasonal anchors, BELOW the hero
   ============================================================ */
.fact-band {
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--rule-on-paper);
  border-bottom: 1px solid var(--rule-on-paper);
}
.fact-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vh, 2.2rem) var(--gut);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.4vw, 2rem);
}
.fact-item {
  padding: 0 1rem;
  border-left: 1px solid var(--rule-on-paper);
}
.fact-item:first-child { padding-left: 0; border-left: 0; }
.fact-item .fact-key {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* ink-mute (#8C8F99 on paper-2 #EFE7D4) measured ~2.62:1 — too light.
     ink-soft (#5A6172) gives ~4.99:1 while staying in the slate palette. */
  color: var(--ink-soft);
}
.fact-item .fact-val {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.35;
}

/* ============================================================
   3. THE COLLECTION — four horizontal scroll-snap bands
   (signature #2 — "组先于件")
   ============================================================ */
.collection {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4.5rem, 7.5vw, 7rem) var(--gut) clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--rule-on-paper);
  overflow: hidden;
}
.collection-inner { max-width: var(--max); margin: 0 auto; }
.collection-head { margin-bottom: clamp(2.4rem, 4.4vw, 3.4rem); padding-top: clamp(0.8rem, 1.6vw, 1.4rem); border-top: 1px solid var(--rule-on-paper); }
.collection-head h2 { margin: 0 0 0.7rem; max-width: none; }
.collection-head .sub {
  margin: 0; color: var(--ink-soft); font-family: var(--display); font-style: italic; font-weight: 400;
  max-width: 64ch; font-size: 1.06rem; line-height: 1.55;
}

/* Each seasonal band = a full-width row */
.season-band {
  position: relative;
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 260px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: stretch;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: clamp(1.2rem, 2vw, 1.8rem);
  border-top: 1px solid var(--rule-on-paper);
}
.season-band:first-of-type {
  margin-top: 0; padding-top: 0; border-top: 0;
}

/* The seasonal plaque — left side */
.season-plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 1.3rem 1.6rem;
  border: 1px solid var(--rule-on-paper);
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}

/* Tide mark behind the plaque — detail animation #2
   a slow radial pulse, very faint, evoking dye slowly
   diffusing through cotton */
.season-plaque::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, var(--plaque-tone, var(--indigo)) 0%, transparent 50%);
  opacity: 0.07;
  z-index: -1;
  animation: tide-mark 7s ease-in-out infinite alternate;
}
@keyframes tide-mark {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.05; }
  100% { transform: translate(8%, 4%) scale(1.08); opacity: 0.10; }
}

.season-glyph {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 1;
  color: var(--plaque-tone, var(--indigo));
  letter-spacing: 0;
}
.season-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.16rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.season-name em {
  font-style: italic;
  font-family: var(--latin);
  font-weight: 400;
  color: var(--plaque-tone, var(--indigo));
  margin-right: 0.45rem;
}
.season-meta {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.season-note {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* The scroll-snap row of product cards */
.season-shelf {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 22%);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gut);
  padding: 0.4rem 0.2rem 1.4rem;
  margin: 0 -0.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-on-paper) transparent;
}
.season-shelf::-webkit-scrollbar { height: 6px; }
.season-shelf::-webkit-scrollbar-track { background: transparent; }
.season-shelf::-webkit-scrollbar-thumb { background: var(--rule-on-paper); border-radius: 3px; }
/* Keyboard-focusable scroll region (tabindex=0 added per axe); show a
   clear, high-contrast focus ring so keyboard users see they have it. */
.season-shelf:focus { outline: none; }
.season-shelf:focus-visible {
  outline: 2px solid var(--indigo-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Product card — signature #3: hover flips origin-tag up */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--paper-3);
  border: 1px solid var(--rule-on-paper);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(44,62,107,0.36);
}

/* "Dye-stain" wash on hover — small indigo gradient lifts up
   from the bottom edge */
.product-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--card-tone, var(--indigo-soft)) 100%);
  opacity: 0;
  transition: opacity 280ms ease-out;
  pointer-events: none;
  z-index: 0;
}
.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 0.10;
}

.product-card .card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  z-index: 1;
}
.product-card .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}
.product-card:hover .card-thumb img,
.product-card:focus-within .card-thumb img {
  transform: scale(1.04);
}

.product-card .card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.05rem 1.2rem;
  z-index: 1;
}
.product-card .card-num {
  font-family: var(--latin);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--card-tone, var(--indigo));
  text-transform: uppercase;
}
.product-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.32;
}
.product-card h3 em {
  font-style: italic;
  font-family: var(--latin);
  font-weight: 400;
  color: var(--card-tone, var(--indigo));
  margin-right: 0.4rem;
}
.product-card .origin {
  margin: 0;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.product-card .origin b {
  font-weight: 500;
  color: var(--ink);
}
.product-card .card-note {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.product-card .card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule-on-paper);
  margin-top: 0.5rem;
}
.product-card .price {
  font-family: var(--display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0;
}
.product-card .unit {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

/* Origin tag — a small cloth label that flips up on hover */
.origin-tag {
  position: absolute;
  z-index: 3;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.42rem 0.65rem 0.5rem;
  background: var(--card-tone, var(--indigo));
  color: var(--indigo-cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transform-origin: top right;
  transform: rotate(0deg) translateY(0);
  transition: transform 320ms cubic-bezier(.4,.05,.2,1);
  box-shadow: 0 6px 14px -8px rgba(44,62,107,0.4);
}
.origin-tag::before {
  /* tiny cloth-stitch dot at the top */
  position: absolute;
  top: -3px; left: 50%;
  width: 5px; height: 5px;
  background: var(--indigo-cream);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}
.product-card:hover .origin-tag,
.product-card:focus-within .origin-tag {
  transform: rotate(-3deg) translateY(-3px);
}

/* Variant: spring */
.season-band[data-season="spring"] { --plaque-tone: var(--spring-tone); --card-tone: var(--spring-tone); }
.season-band[data-season="summer"] { --plaque-tone: var(--summer-tone); --card-tone: var(--summer-tone); }
.season-band[data-season="autumn"] { --plaque-tone: var(--autumn-tone); --card-tone: var(--autumn-tone); }
.season-band[data-season="winter"] { --plaque-tone: var(--winter-tone); --card-tone: var(--winter-tone); }

/* Hint that the shelf is horizontally scrollable */
.season-shelf-hint {
  display: none;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0.6rem 0 0;
  text-align: right;
}
.season-shelf-hint::before { content: "← "; opacity: 0.55; }
.season-shelf-hint::after  { content: " →"; opacity: 0.55; }

/* ============================================================
   4. PLACE LEDGER — nineteen peaks, eighteen streams, village ledger
   ============================================================ */
.place {
  position: relative;
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(5rem, 8vw, 7.5rem) var(--gut) clamp(3rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-on-paper);
  overflow: hidden;
}
.place-banner {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 0;
  height: clamp(280px, 38vh, 420px);
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
}
.place-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.7) contrast(1.04);
}
.place-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.place-head { margin-bottom: clamp(2.4rem, 4.4vw, 3.4rem); padding-top: clamp(2.4rem, 4vw, 3.4rem); }
.place-head h2 { margin: 0 0 0.7rem; max-width: none; }
.place-head .sub {
  margin: 0; color: var(--ink-soft); font-family: var(--display); font-style: italic; font-weight: 400;
  max-width: 62ch; font-size: 1.06rem; line-height: 1.55;
}

.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.4vw, 3.6rem);
  align-items: start;
}
.place-copy p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.82; max-width: 52ch; }
.place-copy p + p { margin-top: 0.85rem; }
.place-copy .lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 1rem;
}
.place-copy strong { color: var(--indigo-deep); font-weight: 500; }

/* The 19-peak / 18-stream ledger */
.ledger {
  background: var(--paper-3);
  border: 1px solid var(--rule-on-paper);
  border-radius: 2px;
  padding: 1.2rem 1.4rem 1.3rem;
}
.ledger-title {
  margin: 0 0 0.9rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-on-paper);
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.2rem;
}
.ledger-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule-on-paper);
  align-items: baseline;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .n {
  font-family: var(--latin);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-align: right;
}
.ledger-row .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.ledger-row .name em {
  font-style: italic;
  font-family: var(--latin);
  font-weight: 400;
  color: var(--indigo-deep);
  margin-right: 0.35rem;
}
.ledger-row .crop {
  grid-column: 2 / -1;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* "In numbers" stat strip */
.place-stats {
  margin-top: clamp(3rem, 6vw, 4.6rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-on-paper);
  border-bottom: 1px solid var(--rule-on-paper);
}
.stat {
  padding: 1.4rem 1.2rem 1.3rem;
  border-left: 1px solid var(--rule-on-paper);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .figure {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
  line-height: 1;
}
.stat .figure .unit { color: var(--autumn-tone); font-size: 0.6em; margin-left: 0.18em; font-style: italic; font-weight: 400; font-family: var(--latin); }
.stat .label {
  margin: 0.5rem 0 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   5. SHIPPING — honest constraints ledger
   ============================================================ */
.shipping {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(5rem, 8vw, 7.5rem) var(--gut);
  border-top: 1px solid var(--rule-on-paper);
}
.shipping-inner { max-width: var(--max); margin: 0 auto; }
.shipping-head { margin-bottom: clamp(2rem, 4vw, 3rem); padding-top: clamp(0.8rem, 1.6vw, 1.4rem); border-top: 1px solid var(--rule-on-paper); }
.shipping-head h2 { margin: 0 0 0.7rem; max-width: none; }
.shipping-head .sub {
  margin: 0; color: var(--ink-soft); font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.06rem; line-height: 1.55; max-width: 60ch;
}

.ship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule-on-paper);
  border-radius: 2px;
  background: var(--paper-3);
}
.ship-cell {
  padding: clamp(1.4rem, 2.4vw, 1.8rem) clamp(1.2rem, 2vw, 1.6rem);
  border-left: 1px solid var(--rule-on-paper);
  border-bottom: 1px solid var(--rule-on-paper);
}
.ship-cell:nth-child(odd) { border-left: 0; }
.ship-cell:nth-last-child(-n+2) { border-bottom: 0; }
.ship-cell h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ship-cell h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
}
.ship-cell.is-yes h3::before { background: var(--spring-tone); }
.ship-cell.is-no  h3::before { background: var(--winter-tone); }
.ship-cell.is-cold h3::before { background: var(--summer-tone-2); }
.ship-cell.is-trust h3::before { background: var(--autumn-tone); }

.ship-cell p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.62; max-width: 46ch; }
.ship-cell p strong { color: var(--ink); font-weight: 500; }
.ship-cell .per {
  font-family: var(--latin);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--indigo-deep);
  margin-left: 0.5rem;
}

/* ============================================================
   6. SHOP — tiedye, three-tea, the cat
   ============================================================ */
.shop {
  background: var(--indigo-deep);
  color: var(--indigo-cream);
  padding: clamp(5rem, 9vw, 8rem) var(--gut);
  border-top: 1px solid var(--rule-on-paper);
  position: relative;
  isolation: isolate;
}
.shop::before {
  /* subtle dye texture */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(251,248,240,0.06) 0%, transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(126,148,97,0.10) 0%, transparent 38%);
  pointer-events: none;
  z-index: -1;
}
.shop-inner { max-width: var(--max); margin: 0 auto; }
.shop-head { margin-bottom: clamp(2.2rem, 4vw, 3rem); padding-top: clamp(0.8rem, 1.6vw, 1.4rem); border-top: 1px solid var(--rule-on-indigo); }
.shop-head .eyebrow { color: rgba(251,248,240,0.62); }
.shop-head h2 { color: var(--indigo-cream); margin: 0 0 0.7rem; max-width: none; font-weight: 500; }
.shop-head .sub {
  margin: 0;
  color: rgba(251,248,240,0.78);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06rem; line-height: 1.55; max-width: 56ch;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.shop-copy p { color: rgba(251,248,240,0.86); font-size: 1.02rem; line-height: 1.82; max-width: 52ch; }
.shop-copy p + p { margin-top: 0.85rem; }
.shop-copy .lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--indigo-cream);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 1rem;
}

/* Three-tea tasting row */
.three-tea {
  margin: clamp(1.8rem, 3vw, 2.4rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule-on-indigo);
  border-radius: 2px;
}
.three-tea-cell {
  padding: clamp(1rem, 2vw, 1.4rem);
  border-left: 1px solid var(--rule-on-indigo);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.three-tea-cell:first-child { border-left: 0; }
.three-tea-cell .name {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.06rem;
  color: var(--indigo-cream);
  letter-spacing: 0.02em;
}
.three-tea-cell .name em {
  font-style: italic;
  font-family: var(--latin);
  font-weight: 400;
  color: var(--spring-tone-2);
  margin-right: 0.4rem;
}
.three-tea-cell .note {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(251,248,240,0.74);
}
.three-tea-cell .order {
  margin: 0;
  font-family: var(--latin);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.5);
}

/* The shop plate (tiedye) */
.shop-plate {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.shop-plate-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--indigo);
  border: 1px solid var(--rule-on-indigo);
  box-shadow: 0 22px 44px -28px rgba(0,0,0,0.42);
  overflow: hidden;
}
.shop-plate-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(0.98);
}
.shop-plate-caption {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.86rem;
  color: rgba(251,248,240,0.66);
  letter-spacing: 0.02em;
  text-align: right;
}

/* The cat aside */
.shop-cat {
  margin-top: clamp(1.4rem, 2.4vw, 1.8rem);
  padding: 1rem 1.1rem;
  background: rgba(251,248,240,0.06);
  border-left: 2px solid var(--spring-tone-2);
  border-radius: 2px;
}
.shop-cat p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.96rem;
  line-height: 1.62;
  color: rgba(251,248,240,0.82);
  max-width: 48ch;
}
.shop-cat b { color: var(--spring-tone-2); font-style: normal; font-weight: 500; font-family: var(--display); }

/* ============================================================
   7. HERE — getting to Xizhou (rail / road / market day)
   ============================================================ */
.here {
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(5rem, 8vw, 7.5rem) var(--gut);
  border-top: 1px solid var(--rule-on-paper);
}
.here-inner { max-width: var(--max); margin: 0 auto; }
.here-head { margin-bottom: clamp(2rem, 4vw, 3rem); padding-top: clamp(0.8rem, 1.6vw, 1.4rem); border-top: 1px solid var(--rule-on-paper); }
.here-head h2 { margin: 0 0 0.7rem; max-width: none; }
.here-head .sub {
  margin: 0; color: var(--ink-soft); font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.06rem; max-width: 58ch;
}

.here-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
}
.here-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.here-cell {
  padding: 1.4rem 1.2rem 1.5rem;
  background: var(--paper-3);
  border: 1px solid var(--rule-on-paper);
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.here-cell h3 {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-deep);
}
.here-cell h3 .n { color: var(--ink-mute); font-weight: 500; margin-right: 0.6rem; font-family: var(--latin); }
.here-cell p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.62; }
.here-cell p strong { color: var(--ink); font-weight: 500; }
.here-cell .lead { font-family: var(--display); font-style: italic; font-size: 1.06rem; color: var(--ink); line-height: 1.5; margin: 0.2rem 0 0.3rem; }

/* Hours ledger on the right */
.here-hours {
  background: var(--paper-3);
  border: 1px solid var(--rule-on-paper);
  border-radius: 2px;
  padding: clamp(1.6rem, 3vw, 2rem) clamp(1.4rem, 2.4vw, 1.8rem);
}
.here-hours h3 {
  margin: 0 0 0.9rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule-on-paper);
}
.hours-row {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-on-paper);
  align-items: baseline;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .day {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hours-row .time {
  font-family: var(--display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  color: var(--ink);
}
.hours-row .time em {
  font-style: italic;
  font-family: var(--latin);
  color: var(--winter-tone);
  margin-left: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* Market day strip */
.market-day {
  margin-top: clamp(1.4rem, 2.4vw, 1.8rem);
  padding: 1rem 1.2rem;
  background: var(--paper);
  border-left: 2px solid var(--autumn-tone);
  border-radius: 2px;
}
.market-day p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; max-width: 56ch; }
.market-day b { color: var(--ink); font-weight: 500; }

/* ============================================================
   8. WRITE — mailto direct
   ============================================================ */
.write {
  background: var(--indigo);
  color: var(--indigo-cream);
  padding: clamp(5rem, 9vw, 8rem) var(--gut);
  position: relative;
}
.write-inner { max-width: var(--max); margin: 0 auto; }
.write-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule-on-indigo);
}
.write-head .eyebrow { color: rgba(251,248,240,0.62); }
.write-head h2 { color: var(--indigo-cream); margin: 0 0 0.7rem; max-width: none; font-weight: 500; }
.write-head .sub {
  margin: 0;
  color: rgba(251,248,240,0.78);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06rem; max-width: 46ch;
}
.write-email { margin: 0; }
.write-email .email-label {
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.62);
}
.write-email .email-addr {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--indigo-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(251,248,240,0.5);
  padding-bottom: 0.3rem;
  line-height: 1.2;
  transition: border-color 200ms ease-out, color 200ms ease-out;
}
.write-email .email-addr:hover { color: var(--spring-tone-2); border-color: var(--spring-tone-2); }
.write-email .email-note {
  margin: 0.9rem 0 0;
  font-family: var(--body);
  font-size: 0.92rem;
  color: rgba(251,248,240,0.7);
  max-width: 38ch;
  line-height: 1.55;
}

.write-coords {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.2rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.write-coords-block h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.62);
  margin: 0 0 0.9rem;
}
.write-coords-block p { margin: 0 0 0.4rem; font-size: 0.96rem; color: rgba(251,248,240,0.88); line-height: 1.55; }
.write-coords-block .lat-long {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--indigo-cream);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem !important;
}
.write-coords-block .phone {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--indigo-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(251,248,240,0.5);
}
.write-coords-block .phone:hover { color: var(--spring-tone-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(251,248,240,0.7);
  padding: 1.6rem var(--gut) 2.2rem;
  border-top: 1px solid var(--rule-on-indigo);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  font-size: 0.78rem;
}
.site-footer-inner .demo-note {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  max-width: 56ch;
  color: rgba(251,248,240,0.78);
}
.site-footer-inner .demo-credit {
  margin: 0; font-size: 0.74rem; letter-spacing: 0.04em;
  color: rgba(251,248,240,0.62);
}
.site-footer-inner a { color: rgba(251,248,240,0.86); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-inner a:hover { color: var(--spring-tone-2); }

/* ============================================================
   RESPONSIVE — keep DOM order, collapse cleanly
   ============================================================ */
@media (max-width: 1080px) {
  .fact-band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .fact-item:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .fact-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .place-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .write-coords { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .masthead-inner { gap: 0.8rem; padding: 0.55rem 0.9rem; display: flex; flex-wrap: wrap; align-items: center; }
  .masthead .signal { display: none; }
  .masthead nav { gap: 0.9rem 1.1rem; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }

  .season-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .season-plaque { max-width: 480px; }
  .season-shelf { grid-auto-columns: 68%; }

  .place-grid { grid-template-columns: 1fr; }
  .place-banner { height: 220px; }
  .here-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-plate { max-width: 480px; margin: 0 auto; }
  .three-tea { grid-template-columns: 1fr; }
  .three-tea-cell { border-left: 0; border-top: 1px solid var(--rule-on-indigo); }
  .three-tea-cell:first-child { border-top: 0; }
  .ship-grid { grid-template-columns: 1fr; }
  .ship-cell { border-left: 0 !important; border-bottom: 1px solid var(--rule-on-paper); }
  .ship-cell:last-child { border-bottom: 0; }
  .here-cells { grid-template-columns: 1fr; }
  .write-head { grid-template-columns: 1fr; align-items: start; gap: 1.6rem; }
  .write-coords { grid-template-columns: 1fr; }
}

/* Touch targets — ≥40×40px at ≤768 (WCAG AA / Apple HIG) */
@media (max-width: 768px) {
  .masthead nav a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5em; }
  .lang-switch a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5em; }
  /* Write / mailto CTA */
  .write-email .email-addr { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5em; }
  /* Phone link */
  .write-coords-block .phone { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5em; }
}

@media (max-width: 640px) {
  .masthead-inner { padding: 0.5rem 0.7rem; flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .masthead .wordmark { text-align: left; }
  .masthead nav { width: 100%; border-top: 1px solid rgba(251,248,240,0.18); padding-top: 0.55rem; margin-top: 0; justify-content: flex-start; gap: 0.5rem 1rem; }
  .lang-switch { border-left: 0; padding-left: 0; margin-left: auto; }

  .hero-text { grid-template-columns: 1fr; gap: 0.8rem; bottom: clamp(4.4rem, 12vh, 5.6rem); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-tagline { font-size: 0.92rem; line-height: 1.55; }
  .hero-status { top: clamp(6rem, 12vh, 8rem); font-size: 0.7rem; padding: 0.4rem 0.7rem; }
  .hero-shelves { font-size: 0.66rem; gap: 0.55rem 0.9rem; flex-wrap: wrap; justify-content: flex-start; padding: 0.5rem 0.7rem; bottom: 0.7rem; left: 0; right: 0; background: linear-gradient(180deg, transparent 0%, rgba(15,26,46,0.55) 60%); }

  .fact-band-inner { grid-template-columns: 1fr; }
  .fact-item { padding: 0.9rem 0; border-left: 0; border-top: 1px solid var(--rule-on-paper); }
  .fact-item:first-child { padding-top: 0; border-top: 0; }

  .place-stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--rule-on-paper); padding: 1rem 0; }
  .stat:first-child { border-top: 0; padding-top: 0; }

  .season-shelf { grid-auto-columns: 84%; }
  .season-shelf-hint { display: block; }

  .ledger-row { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .ledger-row .crop { font-size: 0.78rem; }

  .site-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .season-shelf { grid-auto-columns: 92%; }
  .hero-shelves { font-size: 0.6rem; gap: 0.4rem 0.7rem; }
}