/* encoreberryville.com — public storefront.
 *
 * Her reviews say "clean", "aesthetic", "beautifully displayed". The bar is
 * BOUTIQUE, not thrift store: generous whitespace, an inscriptional display
 * face, one metal accent, and photography given room to be the loudest thing
 * on screen.
 *
 * ►► TOKENS ARE THE ONLY PLACE A COLOUR IS NAMED. ◄◄
 * Values below are the measured brand palette (lockup/palette.md): gold #E0AD52
 * and ink #191919 were sampled from the badge itself; every neutral is a tuned
 * relative of one of them. No component rule may hardcode a colour.
 *
 * ►► THE CONSTRAINT THAT SHAPES THIS WHOLE FILE ◄◄
 * Brand gold on paper is 1.93:1. It fails every text threshold, so gold cannot
 * carry text, links, icon meaning or a functional border on a LIGHT surface:
 *
 *     --gold-500  fills, the monogram, graphic shapes.  NEVER text on light.
 *     --gold-700  3.23:1 — focus rings, functional borders, type >= 24px
 *     --gold-900  5.92:1 — gold body text and inline links on light
 *
 * On --espresso gold is 8.28:1 and fully text-safe, which is why the dark
 * sections are where it gets to be loud. The primary button is therefore a gold
 * FILL with an INK label (8.60:1), never gold text on paper.
 *
 * Second rule, applied deliberately throughout: ONE gold accent per viewport,
 * plus the primary CTA. The page is mostly paper and ink; the gold is what makes
 * it look expensive and it stops working the moment there are four of them.
 *
 * Mobile-first: base rules target 375px. Most of her traffic arrives from an
 * Instagram or Facebook link on a phone.
 */

/* Cinzel — SIL OFL 1.1, self-hosting permitted; licence ships at
 * /assets/fonts/OFL.txt. Latin subset, full 400-900 axis, 36 KB. Display only:
 * its "lowercase" is small caps, which is beautiful at heading sizes and mud
 * below ~20px, so body copy and small labels stay on the text faces. */
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/cinzel-var-latin.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- brand, measured from the badge --------------------------------- */
  --gold-100: #F9EDD8;   /* gold-washed surface: quiet callout, hover fill    */
  --gold-300: #F1D5A4;   /* decorative rules on light; gold text on espresso  */
  --gold-500: #E0AD52;   /* BRAND. Fills and shapes. Never text on light.     */
  --gold-700: #AD8439;   /* 3.23:1 — focus rings, functional borders          */
  --gold-900: #7A5B23;   /* 5.92:1 — gold text and inline links on light      */
  --ink:      #191919;   /* body text; the brand black                        */
  --espresso: #201C18;   /* dark sections. Warm — pure #000 under gold is cheap */

  /* --- neutrals: warm, deliberately not grey --------------------------- */
  --paper:     #FBF8F3;  /* page background, and what the lockup reverses to  */
  --linen:     #F4EFE7;  /* alternating sections, card fills                  */
  --stone-200: #E5DCCE;  /* hairline dividers. Decorative only (1.28:1).      */
  --stone-300: #CCC1B1;  /* decorative rules, placeholder fills               */
  --stone-400: #B2A798;  /* disabled/placeholder text; secondary text on dark */
  --stone-500: #948776;  /* 3.31:1 — the lowest border allowed to MEAN something */
  --stone-600: #786F65;  /* 4.65:1 — secondary body text, captions            */
  --stone-800: #3D3833;  /* 10.94:1 — headings on light                       */

  /* --- semantic. Warning is terracotta, NOT amber: amber shares the brand
     gold's hue and a status pill would read as a brand accent. ---------- */
  --success: #426E48;  --success-tint: #D3F2D7;  --success-on-dark: #81B888;
  --warning: #A84825;  --warning-tint: #F4DCD4;  --warning-on-dark: #DB8363;
  --error:   #99282F;  --error-tint:   #F5D7D9;  --error-on-dark:   #D1646C;
  --info:    #4B6275;  --info-tint:    #D7E7F5;  --info-on-dark:    #8FADC7;

  /* --- roles. Components reference THESE, not the scales above, so a dark
     section can re-point them once and every child follows. ------------- */
  --bg: var(--paper);
  --card-bg: var(--paper);
  /* Decorative card edge. A card's meaning never depends on seeing its border,
     so this may sit below 3:1; --border is what is used when an edge must be
     perceived (inputs, chips, secondary buttons). */
  --card-edge: var(--stone-300);
  --text: var(--ink);
  --text-muted: var(--stone-600);
  --heading: var(--stone-800);
  --border: var(--stone-500);
  --border-subtle: var(--stone-200);
  --accent: var(--gold-500);
  --link: var(--gold-900);
  --focus: var(--gold-900);

  /* --- type ------------------------------------------------------------ */
  /* Display: inscriptional caps, matching the badge. Large sizes only. */
  --font-display: 'Cinzel', ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  /* Small display: card titles, pull quotes, h3 — sizes where Cinzel closes up. */
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-hero: clamp(2.2rem, 9.5vw, 4.25rem);
  --step-h1: clamp(1.8rem, 6vw, 2.75rem);
  --step-h2: clamp(1.5rem, 4.5vw, 2rem);
  --step-h3: clamp(1.05rem, 3vw, 1.25rem);
  --step-small: 0.8125rem;

  --track-wide: 0.18em;

  /* --- space / shape --------------------------------------------------- */
  --gap: 1rem;
  --pad-x: 1.125rem;
  --section-y: clamp(2.75rem, 8vw, 5rem);
  --measure: 34rem;
  --wrap: 76rem;
  --radius: 2px;      /* boutique = crisp corners, not app-rounded */
  --radius-pill: 999px;
  --tap: 44px;
  --shadow: 0 1px 2px rgba(25, 25, 25, 0.05), 0 12px 32px -20px rgba(25, 25, 25, 0.35);
}

/* ---------------------------------------------------------------------------
 * COMPATIBILITY ALIASES — temporary, and safe to delete once nothing reads them.
 *
 * The token names above replaced an earlier `--color-*` set of mine. Chunk D's
 * includes/reserve.php styles the checkout from those old names (38 references),
 * and an undefined custom property inside a shorthand makes the whole
 * declaration invalid at computed-value time — so `border: 1px solid
 * var(--color-line-strong)` silently became NO BORDER. That blanked the input
 * outlines and card edges on the page that takes money.
 *
 * These aliases restore every old name to its new role, so their file keeps
 * working untouched. Chunk D owns that file; when it moves to the role tokens
 * this block goes away.
 * ------------------------------------------------------------------------- */
:root {
  --color-ink: var(--ink);
  --color-paper: var(--paper);
  --color-surface: var(--card-bg);
  --color-bone: var(--linen);
  --color-line: var(--border-subtle);
  --color-line-strong: var(--border);
  --color-muted: var(--text-muted);
  --color-invert: var(--paper);
  --color-gold: var(--gold-500);
  --color-gold-deep: var(--gold-900);
  --color-gold-soft: var(--gold-100);
  --color-open: var(--success);
  --color-alert: var(--error);
}

/* Dark surfaces re-point the roles once; every descendant inherits. This is
   why no component needs a `.section-ink .thing { color: ... }` override. */
.hero, .section-ink, .sitefoot, .announce {
  --card-bg: var(--espresso);
  --text: var(--paper);
  --text-muted: var(--stone-400);
  --heading: var(--paper);
  --border: var(--stone-600);
  --border-subtle: rgba(251, 248, 243, 0.16);
  --card-edge: var(--stone-600);
  --link: var(--gold-300);
  --focus: var(--gold-500);
}

/* A --linen section is what makes a --paper card read as lifted. Cards never
   take the linen themselves — see the --card-bg note above. */

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must win over any component's own `display`. Without this, JS setting
   .hidden on an element styled `display: inline-flex` does nothing. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Nothing may push the page sideways at 375px. Wide children scroll in their
     own container instead (.table-wrap, .chiprow). */
  overflow-x: hidden;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-synthesis-weight: none;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
/* Cinzel is a DISPLAY face and its "lowercase" is small caps — handsome at
   heading sizes, mud below ~20px. So h1/h2 only; h3 and every smaller display
   element stay on the text serif. */
h1, h2 { font-family: var(--font-display); letter-spacing: 0.005em; }
h3     { font-family: var(--font-serif);  letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 8px; top: 8px; z-index: 100;
  background: var(--paper);
  padding: 10px 14px;
  border: 1px solid var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: var(--step-small);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-900);
  font-weight: 600;
}
/* The hero spends its gold on the headline and the CTA, so its eyebrow goes
   neutral rather than adding a third accent to the same viewport. */
.hero .eyebrow { color: var(--stone-300); }
.section-ink .eyebrow { color: var(--gold-500); }

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

/* =========================================================================
   Announcement strip — open/closed + the pickup-only fact, on every page.
   "We don't ship" is the single most important expectation to set early.
   ========================================================================= */

.announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem var(--pad-x);
  background: var(--espresso);
  color: var(--text);
  font-size: var(--step-small);
  letter-spacing: 0.02em;
  text-align: center;
}
.announce-dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-pill);
  background: var(--stone-500);
  flex: none;
}
/* Open/closed is stated in the adjacent text; the dot only reinforces it, so
   colour is never the sole signal (WCAG 1.4.1). Sage rather than gold keeps the
   hero viewport's gold budget for the headline and the CTA. */
.announce-dot.is-open { background: var(--success-on-dark); }
.announce-sep { display: none; color: var(--text-muted); }
.announce-quiet { opacity: 0.8; }
/* The two facts stack on a phone, where a separator between them reads as a
   stray character at the end of the first line. */
@media (min-width: 560px) { .announce-sep { display: inline; } }

/* =========================================================================
   Masthead
   ========================================================================= */

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: 0.9rem var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
}
/* 40px is the measured floor for the horizontal lockup — below it the
   "CONSIGNMENTS" caps fall under 7px and stop resolving (README §2). Width and
   height are declared so the header cannot reflow when the SVG lands. */
.brand img { width: 170px; height: 40px; }
@media (min-width: 860px) { .brand img { width: 204px; height: 48px; } }

.navtoggle {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0 0.85rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--step-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}
.navtoggle-bars, .navtoggle-bars::before, .navtoggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  content: "";
}
.navtoggle-bars { position: relative; }
.navtoggle-bars::before { position: absolute; top: -5px; }
.navtoggle-bars::after { position: absolute; top: 5px; }

.sitenav { grid-column: 1 / -1; }
.sitenav[data-open="false"] { display: none; }
.sitenav ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.sitenav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  font-size: var(--step-small);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  border-top: 1px solid var(--border-subtle);
}
.sitenav a[aria-current="page"] { color: var(--gold-900); }
.sitenav-call a { color: var(--text-muted); letter-spacing: 0.05em; }

@media (min-width: 860px) {
  .masthead { grid-template-columns: auto 1fr; padding-block: 1.1rem; }
  .navtoggle { display: none; }
  .sitenav { grid-column: 2; display: block !important; justify-self: end; }
  .sitenav ul { display: flex; align-items: center; gap: 1.6rem; margin: 0; }
  .sitenav a { border-top: 0; }
  .sitenav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-700); }
  .sitenav-call { padding-left: 1.6rem; border-left: 1px solid var(--border-subtle); }
}

/* =========================================================================
   Hero. Typographic on purpose: we have no photography of the shop yet, and a
   stock photo of somebody else's boutique would be a lie on page one.
   ========================================================================= */

.hero {
  background: var(--espresso);
  color: var(--text);
  padding-block: clamp(3rem, 14vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 44rem; margin-inline: 0; }
.hero .eyebrow { color: var(--gold-500); }
.hero h1 {
  font-size: var(--step-hero);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-500);
}
.hero p {
  font-size: 1.0625rem;
  color: var(--text);
  opacity: 0.85;
  max-width: var(--measure);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 1.6rem;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  /* Gold FILL with an INK label = 8.60:1. Gold *text* on paper is 1.93:1 and
     fails outright, which is exactly why the primary CTA is built this way. */
  background: var(--gold-500);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
/* Darker metal on hover, not paler: ink on --gold-700 is 5.14:1, still AA. */
.btn:hover { background: var(--gold-700); border-color: var(--gold-700); }

/* Secondary: transparent fill, --text label, 1px --border — the lowest border
   allowed to carry meaning (3.31:1 on paper). */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--gold-100); border-color: var(--gold-700); }
.hero .btn-ghost:hover,
.section-ink .btn-ghost:hover,
.sitefoot .btn-ghost:hover { background: rgba(224, 173, 82, 0.16); border-color: var(--gold-500); }

.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* =========================================================================
   Sections
   ========================================================================= */

.section { padding-block: var(--section-y); }
.section-tight { padding-top: 0; }
/* Marks a section break without a fill — used where a --linen band would put
   secondary text (--stone-600) on linen, which is 4.31:1 and under AA. */
.section-rule { border-top: 1px solid var(--border-subtle); }
.section-snug { padding-top: 1.5rem; }
.section-bone { background: var(--linen); }
.section-ink { background: var(--espresso); color: var(--text); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem var(--gap);
  margin-bottom: 1.75rem;
}
.section-head h2 { font-size: var(--step-h2); }
.section-head .link-more {
  font-size: var(--step-small);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--link);
  white-space: nowrap;
}

.pagehead {
  padding-block: clamp(1.75rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}
.pagehead h1 { font-size: var(--step-h1); }
.pagehead .lead { margin-top: 0.9rem; margin-bottom: 0; }

.crumbs { padding-top: 1rem; font-size: var(--step-small); color: var(--text-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--stone-400); }

/* =========================================================================
   Item grid
   ========================================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { min-width: 0; }
.card-link { display: grid; gap: 0.7rem; text-decoration: none; }

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--border-subtle);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}
.card-link:hover .card-media img { transform: scale(1.03); }

.card-body { display: grid; gap: 0.2rem; }
.card-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  /* Two lines, then ellipsis — a long Instagram-pasted title must not shove the
     price out of alignment across the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: var(--step-small); color: var(--text-muted); }
.card-price { font-size: 0.9375rem; font-weight: 600; margin-top: 0.15rem; }

/* Placeholder tile: a photo exists but its derivatives are not generated yet.
   Never a broken <img>, never a blank box. */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  /* Intrinsic ratio, so the placeholder behaves like the <img> it stands in for
     when a parent does NOT pin a height. Ignored when both dimensions are
     definite (inside .card-media, .gallery-frame, or a fixed thumbnail box),
     which is the common case. */
  aspect-ratio: 3 / 4;
  align-self: center;
  background: repeating-linear-gradient(135deg,
    var(--linen) 0 12px, var(--paper) 12px 24px);
}
.ph-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--stone-300);
}

/* =========================================================================
   Empty / notice states
   ========================================================================= */

.empty, .notice {
  padding: clamp(2rem, 7vw, 3.25rem) 1.25rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
}
.empty p, .notice p { max-width: 32rem; margin-inline: auto; }
.empty p:last-child, .notice p:last-child { margin-bottom: 0; }
.notice h1 { font-size: var(--step-h2); margin-bottom: 0.75rem; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* =========================================================================
   Category chips + filter bar (shop)
   ========================================================================= */

.chiprow {
  display: flex;
  gap: 0.5rem;
  /* Scrolls in its own container rather than widening the page. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.chiprow::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1.1rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.chip[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip-count { color: var(--text-muted); margin-left: 0.4rem; font-size: var(--step-small); }
.chip[aria-current="true"] .chip-count { color: var(--stone-300); }

.filters {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
}
.filters-row { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .filters-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--step-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: 0 2.25rem 0 0.75rem;
  font: inherit;
  color: var(--ink);
  background-color: var(--card-bg);
  border: 1px solid var(--stone-500);
  border-radius: var(--radius);
  /* Inline SVG chevron — self-hosted by definition, no asset request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23786F65' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
  appearance: none;
}

.filters-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.filters-count { font-size: var(--step-small); color: var(--text-muted); margin: 0; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.pager-state { font-size: var(--step-small); color: var(--text-muted); }

/* =========================================================================
   Item detail
   ========================================================================= */

.item { display: grid; gap: 2rem; padding-bottom: var(--section-y); }
@media (min-width: 900px) {
  .item { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .item-detail { position: sticky; top: 6.5rem; }
  .gallery {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* Photos stack rather than hiding behind a JS-driven thumbnail switcher: it is
   the pattern a phone shopper already knows from Instagram, and it needs no
   script to work. */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Bleed to the viewport edge so the next photo peeks and reads as swipeable. */
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; }
.gallery:has(> :only-child) { grid-auto-columns: 100%; }
.gallery-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--border-subtle);
}
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }

.item-detail h1 { font-size: var(--step-h1); margin-bottom: 0.5rem; }
.item-cat {
  font-size: var(--step-small);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.item-cat a { color: var(--link); text-decoration-color: var(--gold-700); }
/* Price is emphasis by SIZE and WEIGHT, never colour — gold numerals on paper
   would be 1.93:1, on the single most important figure on the page. */
.item-price {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  margin: 1rem 0 0.35rem;
}
.item-was {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.item-was s { text-decoration-thickness: 1px; }
.item-tax { font-size: var(--step-small); color: var(--text-muted); margin-bottom: 1.25rem; }

/* Scarcity, stated because it is literally true — not a countdown timer. */
.oneof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  background: var(--gold-100);   /* 1.09:1 on paper — a wash, not an accent */
  border-left: 3px solid var(--gold-900);   /* 5.53:1 against the gold-100 wash */
  font-size: 0.9375rem;
}
.oneof strong { font-weight: 600; }

.item-actions { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.item-actions .btn { width: 100%; }
.item-actions-note { font-size: var(--step-small); color: var(--text-muted); margin: 0.25rem 0 0; }

.specs { margin: 0 0 1.5rem; border-top: 1px solid var(--border-subtle); }
.specs div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.specs dt { font-size: var(--step-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }

.item-desc { margin-bottom: 1.5rem; }
.item-desc p:last-child { margin-bottom: 0; }

.howto { margin: 0; padding: 1.25rem; background: var(--linen); border-radius: var(--radius); }
.howto h2 { font-family: var(--font-serif); font-size: var(--step-h3); margin-bottom: 0.6rem; }
.howto ol { margin: 0; padding-left: 1.1rem; font-size: 0.9375rem; }
.howto li:last-child { margin-bottom: 0; }

/* =========================================================================
   Steps / quotes / callout
   ========================================================================= */

.steps { display: grid; gap: 1.5rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.steps li { margin: 0; counter-increment: step; }
.steps h3 { font-size: var(--step-h3); margin-bottom: 0.35rem; }
.steps h3::before {
  content: counter(step);
  display: block;
  font-size: var(--step-small);
  letter-spacing: var(--track-wide);
  color: var(--gold-900);
  margin-bottom: 0.5rem;
}
.section-ink .steps h3::before { color: var(--gold-500); }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.section-ink .steps p { color: var(--text); opacity: 0.8; }

.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .quotes.quotes-stack { grid-template-columns: minmax(0, 1fr); }
}
.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* gold-900, not brand gold: these are 14px glyphs on a light card. */
.quote-stars { color: var(--gold-900); letter-spacing: 0.15em; font-size: 0.875rem; margin-bottom: 0.65rem; }
.quote blockquote { margin: 0 0 0.9rem; font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.5; }
.quote figcaption { font-size: var(--step-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.callout {
  padding: clamp(1.75rem, 6vw, 2.75rem);
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-top: 3px solid var(--gold-700);
  border-radius: var(--radius);
}
.callout h2 { font-size: var(--step-h2); margin-bottom: 0.7rem; }
.callout p { max-width: var(--measure); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

.split { display: grid; gap: 2rem; }
/* Cards in a two-column split size to their content; stretching the shorter one
   to the row height leaves a tall empty box. */
.split > * { align-self: start; }
@media (min-width: 880px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; } }

/* =========================================================================
   Prose (about, consign, terms, privacy, visit)
   ========================================================================= */

.prose { max-width: 40rem; }
.prose h2 { font-size: var(--step-h2); margin: 2.25rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-h3); margin: 1.75rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--text-muted); }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--border-subtle); }

.pending {
  padding: 1.1rem 1.25rem;
  background: var(--linen);
  border-left: 3px solid var(--stone-500);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.pending p:last-child { margin-bottom: 0; }

.factcard {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.factcard h2 { font-family: var(--font-serif); font-size: var(--step-h3); margin-bottom: 0.9rem; }
.factcard h3 { font-size: var(--step-h3); margin-top: 1.5rem; }
.factcard address { font-style: normal; margin-bottom: 0.8rem; }
.factcard + .prose { margin-top: 1.5rem; }

/* =========================================================================
   Consignment lists (/consign)
   =========================================================================
   The accept list, the prep list and the do-not-accept list are the three
   things a consignor scans before loading the car. Markers instead of bullets,
   so the shape carries the meaning down the page; both glyphs are ::before
   content, which keeps them out of the accessible name of the list item. */

/* The glance table carries phrases ("40% of the selling price"), not the short
   clock values .hours-table was built to hold in one tabular line — at 320px the
   no-wrap cell pushed past the card edge. Opt-in modifier, so /visit keeps its
   un-wrapped hours column. */
.hours-table.is-wordy td { white-space: normal; }

.checklist, .nolist { list-style: none; padding-left: 0; }
.checklist li, .nolist li { position: relative; padding-left: 1.55rem; margin-bottom: 0.45rem; }
.checklist li::before, .nolist li::before { position: absolute; left: 0; font-weight: 700; }
.checklist li::before { content: "\2713"; color: var(--gold-900); }   /* 5.48:1 on linen */
.nolist li::before    { content: "\00D7"; color: var(--warning); font-size: 1.15em; }

/* "Items we do not accept" is the most useful block on the page — it is what
   saves somebody a wasted drive across the county — so it gets its own lifted
   surface rather than being one more run of bullets. Paper on the linen band,
   with the terracotta rule; the warning TINT is only 1.14:1 against linen and
   would not have read as a distinct surface at all. */
.nobox {
  padding: 1.25rem 1.35rem;
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
}
.nobox > :last-child { margin-bottom: 0; }

/* Her sign-off, kept exactly as she wrote it. On espresso, gold is finally
   text-safe (--gold-300 is 11.92:1), so this is where it gets to carry type. */
.signoff {
  margin: 1.75rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--gold-300);
  text-wrap: balance;
  max-width: var(--measure);
}

/* --- the handful of spacing utilities the pages actually need ------------- */
.u-mt { margin-top: 1rem; }
.u-mb { margin-bottom: 1.5rem; }
.u-mb0 { margin-bottom: 0; }

/* Visually hidden, still announced. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.hours-table th { font-weight: 400; color: var(--text-muted); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-table tr[data-today="1"] th, .hours-table tr[data-today="1"] td { font-weight: 600; color: var(--ink); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.closures { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.9375rem; }
.closures li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border-subtle); }

/* =========================================================================
   Footer
   ========================================================================= */

.sitefoot {
  background: var(--espresso);
  color: var(--text);
  padding-block: var(--section-y) 1.75rem;
  margin-top: auto;
}
.sitefoot a { color: inherit; }
.sitefoot h2 {
  font-family: var(--font-body);
  font-size: var(--step-small);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 0.8rem;
}

.sitefoot-grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) { .sitefoot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; } }
@media (min-width: 1000px) { .sitefoot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }

.sitefoot-col p, .sitefoot-col address { font-size: 0.9375rem; font-style: normal; }
/* The DARK lockup, not a re-coloured light one: its wordmark reverses to
   --paper and its tagline steps up to --gold-500, because the contrast maths
   inverts on a dark surface. Never recolour a lockup in CSS (README §4.4). */
.sitefoot-brand { margin: 0 0 0.9rem; }
.sitefoot-brand img { width: 204px; height: 48px; }
.sitefoot-tag {
  font-size: var(--step-small) !important;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-500);   /* 8.28:1 on espresso — the footer's one accent */
  margin-bottom: 0.9rem;
}
.sitefoot-note { color: var(--text); opacity: 0.65; font-size: var(--step-small) !important; }

.sitefoot-links { list-style: none; padding: 0; margin: 0; }
.sitefoot-links li { margin-bottom: 0.15rem; }
.sitefoot-links a, .sitefoot-col address + p a { display: inline-flex; align-items: center; min-height: 34px; font-size: 0.9375rem; }

.hours-list { margin: 0; font-size: 0.9375rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.hours-list dt { color: var(--text); opacity: 0.7; }
.hours-list dd { margin: 0; }

.ornament {
  display: block;
  width: 108px;
  height: 96px;
  margin: 0 auto 1.75rem;
}

.sitefoot-legal {
  width: 100%;
  max-width: var(--wrap);
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--pad-x) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: var(--step-small);
  opacity: 0.7;
}
.sitefoot-legal p { margin: 0; }

/* =========================================================================
   Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
