
/* ---------------------------------------------------------------------------
   Faces

   Montserrat for headings, buttons and labels, DM Sans for everything else,
   as the brand guidelines of 2026-11-16 set them (DM Sans replaced Inter: it
   shares Montserrat's rounded, geometric shapes). Both are the variable cuts
   and both are self-hosted: the CSP admits no font host, and a page that waits
   on a third party for its headline is slower for nothing. Montserrat is cut
   to 600-800, the three weights the guidelines name, and DM Sans to 400-700.
   Only latin is preloaded (see Layout.tsx); latin-ext is fetched only by a
   page that contains one of its characters.

   If the site ever carries Nepali, the guidelines name Mukta for that body
   text. It is not shipped: nothing on the site is in Devanagari yet.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------------------
   Tokens

   The palette is the brand guidelines' (2026-11-16), which retuned the
   handoff's: a deeper navy, a neutral off-white where the cream was warm, the
   greys cooled to match it and the greens deepened. Two grounds carry the whole
   site: a
   navy one (the header, the top of every page, the footer, dark cards) and a
   cream one (the shopping and content bands). Every component reads the
   ground's own variables rather than a colour, so a card, a link or a field
   drawn on either ground takes the right pair without a second rule:

     --bg / --fg          the ground and its type
     --fg-soft            long prose
     --fg-muted           secondary type, meta lines
     --card / --card-line a raised surface on this ground
     --image              the box behind a photograph or a placeholder
     --line / --line-strong  hairlines, and the borders of outlined controls
     --link / --link-hover   links in running text
     --field-*            inputs

   The old names the carried-over blocks read (--paper, --ink, --rule ...) are
   set from these on each ground, below.

   The token names still say cream, because every rule in the sheet reads
   them; the colour behind them is the guidelines' off-white.

   The navy is deeper than the guidelines' #040B19, at the client's word
   (2026-11-25): near-black with a navy cast, #02050C, and the raised tones and
   lines darkened with it so a card still lifts off the ground (1.05:1 for a
   card, 1.13 for a raised-2 box, borders 1.29 to 1.74). Every type pairing on
   navy gains a little contrast from it. The logo files keep the guidelines'
   navy; at favicon size the two cannot be told apart.

   The red is a purer one than the guidelines' #C0392B, also at the client's
   word the same day: #CA1414. (#B20710 was tried first and read too dark; the
   client compared the two side by side on the hero and chose this.) The rest
   of the red family was solved around it on the same hue.

   Contrast, worked rather than assumed (WCAG relative luminance). The rows on
   navy are against #02050C:
     off-white #F3F4EE on navy #02050C       18.4:1
     #adafa7 faint on navy                    9.2:1
     #ff6464 link on navy                     7.1:1  (6.2:1 on navy raised 2;
                                                       the brand red is 3.5:1
                                                       there, so it is a fill
                                                       on navy and never type)
     #3a6213 green on off-white               6.5:1
     #a10f0f link on off-white                7.3:1  (6.5:1 on the image box)
     white on #CA1414                         5.8:1
     #c4c5bd muted on navy                   11.7:1  (10.4:1 on navy raised 2)
     #3d4656 muted on off-white               8.6:1
     #8d9086 field border on white            3.2:1  (the 3:1 a control's
                                                       edge needs; the warm
                                                       #a9967c it replaced was
                                                       2.9:1)
   --------------------------------------------------------------------------- */
:root {
  --navy: #02050c;
  --navy-raised: #070d1c;
  --navy-raised-2: #0d1629;
  --navy-line: #18223b;
  /* Not in the guidelines: the header controls' resting border, kept one step
     above the line and one below the strong line, as it was. */
  --navy-line-2: #212c4b;
  --navy-line-3: #2b3759;
  --cream: #f3f4ee;
  /* The light ground itself is ivory, #FFFFF0, at the client's word
     (2026-11-25, after trying it on the home page). --cream stays the
     guidelines' off-white because it is also the type on every navy band; only
     the light ground's background moved. Cards on it are a deeper warm,
     #f7f5e1, a step down from the page, with the warm hairline as their edge.
     Chosen from four treatments tried side by side on the home shelf; the
     guidelines' #fafaf7 read as grey on ivory, pure white as cool, and an
     ivory card relied on its hairline alone. */
  --ivory: #fffff0;
  --cream-card: #f7f5e1;
  --cream-image: #e6e7df;
  /* Warm, to sit with the ivory: the guidelines' #d0d2c9 is a cool grey and
     read as one on it. 1.3:1 on ivory, which is a hairline's job; nothing
     that must be seen is drawn in it alone. */
  --cream-line: #e4e2cc;
  /* Not in the guidelines: the strong line and field border on the light
     ground, on the same neutral grey ramp as the rest. */
  --cream-line-2: #8d9086;
  --red: #ca1414;
  --red-deep: #a10f0f;
  --red-deeper: #780a0a;
  --red-soft: #ff6464;
  --red-softer: #ffa8a8;

  --badge-last-bg: #fad4d4;
  --badge-last-fg: #780a0a;
  --badge-pre-bg: #dfe3ec;
  --badge-pre-fg: #02050c;

  --font-system: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", var(--font-system);
  --font-body: "DM Sans", var(--font-system);
  --font-eyebrow: "Montserrat", var(--font-system);

  /* The ramp the carried-over blocks were written against, kept so they keep
     their proportions. New components set their sizes from the handoff. */
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 0.35vw + 1.05rem, 1.3rem);
  --step-2: clamp(1.5rem, 0.9vw + 1.3rem, 2rem);
  --step-3: clamp(2rem, 2vw + 1.5rem, 3rem);
  --step-4: clamp(2.75rem, 5.5vw + 0.25rem, 5.5rem);
  --track-1: -0.01em;
  --track-2: -0.02em;
  --track-3: -0.025em;
  --track-4: -0.03em;

  /* 1280px of content and 24px either side, 16px on a phone. Every public
     page fills this width (2026-11-25); none sits in a narrower column. */
  --shell: 1328px;
  --gutter: 24px;

  --radius-btn: 14px;
  --radius-field: 12px;
  --radius-image: 14px;
  --radius-card: 22px;
  --radius-panel: 24px;
  --radius-hero: 28px;
}

/* The navy ground: the page itself, and every band that sits on it. */
:root,
.on-navy,
.masthead,
.crumb-bar,
.page-head,
.site-footer {
  --bg: var(--navy);
  --fg: var(--cream);
  --fg-soft: #dadbd4;
  --fg-muted: #c4c5bd;
  --fg-faint: #adafa7;
  --card: var(--navy-raised);
  --card-line: var(--navy-line);
  --image: var(--navy-raised-2);
  --line: var(--navy-raised-2);
  --line-strong: var(--navy-line-3);
  --link: var(--red-soft);
  --link-hover: var(--red-softer);
  --eyebrow: var(--red-soft);
  --field-bg: var(--navy-raised);
  --field-line: var(--navy-line-3);
  --field-fg: var(--cream);
  --ok-ink: #9fd07a;
  --warn-ink: #f0bf72;
  --sale-ink: var(--red-soft);
  --info-ink: #a9c3ec;

  --paper: var(--bg);
  --panel: var(--navy-raised);
  --surface: var(--card);
  --photo-ground: var(--image);
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
  --ink-muted: var(--fg-muted);
  --rule: var(--card-line);
  --rule-strong: var(--fg);
  --accent: var(--red);
  --accent-muted: var(--red-soft);
  --accent-2: #5e8931;
}

/* The cream ground. */
.on-cream,
.section {
  --bg: var(--ivory);
  --fg: var(--navy);
  --fg-soft: #2f3747;
  --fg-muted: #3d4656;
  --fg-faint: #4b5059;
  --card: var(--cream-card);
  --card-line: var(--cream-line);
  --image: var(--cream-image);
  --line: var(--cream-line);
  --line-strong: var(--cream-line-2);
  --link: var(--red-deep);
  --link-hover: var(--red-deeper);
  --eyebrow: var(--red-deep);
  --field-bg: #fff;
  --field-line: var(--cream-line-2);
  --field-fg: var(--navy);
  /* #3a6213 is the guidelines' green on light, 6.8:1 on the card and 5.7:1 on
     the image box; #8a5000 is 5.2:1 at worst. Both are always a second signal
     beside a word, never the only one. */
  --ok-ink: #3a6213;
  --warn-ink: #8a5000;
  --sale-ink: var(--red-deep);
  --info-ink: #1f4e79;

  --paper: var(--bg);
  --panel: var(--cream-image);
  --surface: var(--card);
  --photo-ground: var(--image);
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
  --ink-muted: var(--fg-muted);
  --rule: var(--card-line);
  --rule-strong: var(--fg);
  --accent: var(--red);
  --accent-muted: var(--red-deep);
  --accent-2: #3a6213;
}

/* The red band: white type, and the cream as its button. */
.on-red {
  --bg: var(--red);
  --fg: #fff;
  --fg-soft: #fff;
  --fg-muted: #fff;
  --line-strong: #fff;
  --link: #fff;
  --link-hover: var(--cream);
}

/* ---------------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The browser's own rule for the hidden attribute sets display to none, and
   any class that sets display outranks it. An attribute that says "not
   rendered" has to win: the cart count and the close button on the corner
   popup both rely on it (trap 9 in CLAUDE.md). */
[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

/* ---------------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 46rem) {
  :root { --gutter: 16px; }
}

/* Available to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* The brand guidelines' label: Montserrat 800, 13px, uppercase, +18%. The
   tag badge below is the same role and takes the same four figures. */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow--ink { color: var(--fg); }

/* The guidelines' intro paragraph: 20px at 1.6. A step down on a phone, where
   20px is five words a line. */
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--fg-muted); max-width: 40rem; }
@media (max-width: 46rem) {
  .lede { font-size: 1.0625rem; }
}

.surface { background: var(--surface); }

/* Row of buttons. Kept under its old name because the 404, the receipts and
   the carried-over About block all render it. */
.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Buttons

   52px tall at rest, 56 for the main action of a page, 44 for the small pill
   on a card. Montserrat on the large ones and DM Sans on the small, as drawn.
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { border-color: var(--fg); color: var(--fg); }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

/* Navy on cream. */
.btn--dark { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-raised-2); border-color: var(--navy-raised-2); color: var(--cream); }

/* Cream on navy or on the red band. --onaccent is the old name for the same
   job, rendered by the carried-over pages. */
.btn--cream,
.btn--onaccent { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--cream:hover,
.btn--onaccent:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* White outline, for the second button on the red band. */
.btn--light { border: 1.5px solid #fff; color: #fff; }
.btn--light:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; color: #fff; }

.btn--pill { border-radius: 999px; }

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn--large { min-height: 56px; font-size: 1rem; border-radius: 16px; }
.btn--block { width: 100%; }

/* An icon-only button: square, the mark in the middle. */
.btn--icon { padding: 0; width: 44px; }
.btn__mark { display: block; }

/* An arrow in a line of type: Arrow in components/ui.tsx, which is where the
   site used to type the character. The reset makes every svg a block, which
   would put the arrow on a line of its own, so this says inline-block out
   loud and gives back the height the reset set to auto. One em square, so it
   follows the type it stands beside at any size. The gap is a margin and not
   a space in the markup, so it is the same everywhere and a word and its
   arrow cannot part across two lines. It is lowered by a little under a fifth
   of an em, which puts the shaft level with the middle of the lowercase
   rather than the middle of the box. The admin sheet carries the same rule,
   because no rule in this file reaches an admin page. */
.arrow {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  margin-inline-start: 0.3em;
  vertical-align: -0.18em;
}
.arrow--before { margin-inline: 0 0.3em; }
.arrow--alone { margin: 0; }

/* ---------------------------------------------------------------------------
   Fields

   48px, a 12px corner and a 1.5px border, as drawn. White inside on the cream
   band, raised navy on the navy ground. Every form on the site reads these:
   the checkout, the request form, the shop's filters and its search.
   --------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label,
.field > label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}
.field__hint { font-size: 0.875rem; color: var(--fg-muted); font-weight: 400; }

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-field);
  background-color: var(--field-bg);
  color: var(--field-fg);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { padding-block: 12px; resize: vertical; min-height: 7rem; }
/* A file input is the same box, but the browser draws its button at the top
   of it, so it takes even padding to sit in the middle, and the button is
   drawn as ours rather than the system's grey one. 6 + 34 + 6 and the border
   come to the 48px of the fields around it. */
.field input[type="file"] {
  display: flex;
  align-items: center;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--fg);
  color: var(--bg);
  font: 700 0.875rem/1 var(--font-display);
  cursor: pointer;
}
.field input[type="file"]:hover::file-selector-button { opacity: 0.88; }
.field input::placeholder,
.field textarea::placeholder,
.input::placeholder { color: var(--fg-muted); opacity: 1; }

/* A drawn select, so it is the same box as the inputs beside it. The chevron
   is the navy or cream it sits on, through two copies of the same data URI. */
select,
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2302050c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.on-navy select,
.page-head select,
.masthead select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23f3f4ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input[type="checkbox"],
input[type="radio"] { accent-color: var(--red); }

/* The Halloween banner's two faces, from the contest app's own design, and
   used nowhere else (see the Halloween block near the end of this sheet):
   Pirata One, the poster's blackletter, for the headline, and EB Garamond,
   roman and italic, variable 400-800, for the rest of it. Latin only, and
   never preloaded: an unreferenced face is never fetched, so they cost
   nothing on a page with no banner, and they come off with the banner after
   the event. OFL, licences beside the files. */
@font-face {
  font-family: "Pirata One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pirata-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   Posters are shown whole

   A photograph of a table can be cropped to a shape and lose nothing that
   matters; a poster cannot. It is somebody's artwork with words on it, and
   a cover crop cuts the words off, so wherever an event's own poster is
   rendered, the whole of it is visible and the box takes the letterboxing.

   The tint underneath goes with it: those radial washes exist to stand in
   for a missing photograph, and behind a contained one they turn the mount
   into a coloured smear.
   --------------------------------------------------------------------------- */
.event__poster .photo {
  background-image: none;
  background-color: var(--photo-ground);
}
.event__poster .photo img { object-fit: contain; }



/* ---------------------------------------------------------------------------
   Browse by kind

   A wrapping row of chip links above the filter panel. Links rather than a
   second form: choosing a kind is the commonest way to cut the shelf, and a
   link is one tap where a select-and-apply is three.
   --------------------------------------------------------------------------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.cat-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 36px;
}
.cat-nav__link:hover { border-color: var(--accent); text-decoration: none; }
.cat-nav__link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-nav__count { font-size: 0.6875rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cat-nav__link[aria-current="page"] .cat-nav__count { color: #c4c5bd; }


/* ---------------------------------------------------------------------------
   The filter panel

   Auto-fitting columns rather than a fixed count: the panel carries six or
   seven controls on /shop and one fewer on a collection page, and a grid that
   counts its own children keeps both looking deliberate. Nothing here reacts
   to a change — there is no script to react with — so Apply is a real button
   and the whole thing reads as a form, which is what it is.
   --------------------------------------------------------------------------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1rem;
}

/* The applied filters, above the controls that set them. */
.filters__applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.filters__applied-label {
  font-family: var(--font-eyebrow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  min-height: 30px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
/* The accent on hover says what the click does: it removes the chip. */
.filter-chip:hover { background: var(--accent); }
.filter-chip__x { font-size: 0.875rem; line-height: 1; opacity: 0.75; }
.filters__clear { font-size: 0.75rem; font-weight: 600; margin-left: auto; }
/* The search box earns two columns wherever there are two to earn. */
.filters__field--wide { grid-column: span 2; }
.filters__field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.filters__label {
  font-family: var(--font-eyebrow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.filters__field select,
.filters__field input {
  width: 100%;
  /* 44px of thumb, which is what these are tapped with far more often than
     they are clicked. */
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rule-strong);
  /* background-color, not the shorthand — see the select rule below, whose
     chevron a shorthand at this specificity would reset away. */
  background-color: var(--surface);
  font: inherit;
  font-size: 0.875rem;
  color: inherit;
  /* One option carries its own explanation after a dash, and in a 15rem rail
     that runs past the edge. An ellipsis is a cut somebody can see is a cut;
     the default clip takes it off mid-letter. */
  text-overflow: ellipsis;
}

/* Dropdowns, drawn rather than inherited from the platform.

   A native select is a grey bevelled box with a grey chevron, which is the
   one widget on this site nobody had drawn — on a page of square edges and a
   single rule weight it reads as a control borrowed from another program. So
   the platform look comes off, the border matches the fields beside it, and
   the arrow is ours: a data URI, because a select cannot hold a
   pseudo-element and the mark has to be a background. The stroke colour is
   baked into the SVG, so it has to be updated by hand if --ink moves. */
select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314110f' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.7rem auto;
  padding-right: 2.1rem;
}
select::-ms-expand { display: none; }
.filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.filters__check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.filters__check input { width: 1.05rem; height: 1.05rem; }
.filters__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 34rem) {
  .filters { padding: 1rem; }
  /* One column is the only honest layout at this width, and the search box
     stops asking for a second one that is not there. */
  .filters__grid { grid-template-columns: minmax(0, 1fr); }
  .filters__field--wide { grid-column: auto; }
  .filters__actions { flex: 1 1 100%; }
  .filters__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Shop tiles — image-led routes into the catalogue
   --------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  list-style: none;
  padding: 0;
}
.tile { position: relative; background: var(--surface); }
.tile a { display: block; text-decoration: none; }
.tile .photo { --photo-ratio: 4 / 5; }
/* The label sits over the image, so the scrim has to carry the contrast on its
   own — a real photograph underneath may be any brightness. The stops keep the
   scrim at 85% or darker everywhere the text actually sits (white on that is
   ~13:1 even over a white photo); a plain two-stop fade drops to ~35% at the
   top of the text and would fail over light images. */
.tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.25rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(12, 10, 9, 0.95) 0%,
    rgba(12, 10, 9, 0.85) 72%,
    rgba(12, 10, 9, 0) 100%
  );
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: var(--track-1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
/* The hover is a fill, so it takes --accent itself. The label stays white,
   which means the shadow and everything else about it carry over unchanged —
   only the colour behind it swaps from the scrim to the orange.
   94% rather than the scrim's 85%: the photo showing through is arbitrary, so
   this has to hold at both extremes. It does — white lands at 4.8:1 over a
   pure-white image and 5.8:1 over a pure-black one. At 88% the white case
   dropped to 4.4:1. */
.tile a:hover .tile__label {
  background: linear-gradient(
    to top,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 94%, transparent) 72%,
    rgba(12, 10, 9, 0) 100%
  );
}
.tile__count { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-top: 0.2rem; }
/* The 0.85 above is comfortable over the dark scrim, but over the orange it
   puts this 11px label at 4.3:1. Full strength on hover, where it is 5.3:1. */
.tile a:hover .tile__count { opacity: 1; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Four tall portraits are 550px of signposting on a phone. These are a way
   into the catalogue rather than the catalogue, so they take a landscape crop
   and lose a third of the height.

   aspect-ratio directly, not --photo-ratio: the Photo component writes that
   variable into a style attribute on every instance, and an inline custom
   property beats any stylesheet rule that tries to set the same one. What a
   stylesheet can still do is win on the property that reads it. */
@media (max-width: 46rem) { .tile .photo { aspect-ratio: 4 / 3; } }


/* ---------------------------------------------------------------------------
   Event list
   --------------------------------------------------------------------------- */
.events { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); }
.event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
/* A row with a poster grows a third column for it; without one, nothing about
   the calendar changes. */
.event--postered { grid-template-columns: 72px minmax(0, 1fr) clamp(6rem, 12vw, 9rem); align-items: center; }
.event__poster { max-width: 100%; }
@media (max-width: 520px) {
  .event--postered { grid-template-columns: 72px minmax(0, 1fr); }
  .event__poster { grid-column: 2; max-width: 12rem; }
}
.event__date { text-align: left; border-right: 1px solid var(--rule); padding-right: 1rem; }
.event__day { display: block; font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; letter-spacing: var(--track-1); line-height: 1; }
.event__month { display: block; margin-top: 0.2rem; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-muted); }
.event__title { font-size: 1.0625rem; }
.event__title a { text-decoration: none; }
.event__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.event__meta { margin-top: 0.3rem; font-size: 0.8125rem; color: var(--ink-muted); }
.event__note { margin-top: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
/* An olive chip. These notes say "Beginners welcome" or "Rs 500 entry" — they
   describe the event rather than ask for a click, which is exactly the split
   --accent-2 marks, and a filled chip separates them from the plain muted note
   above without borrowing the button's colour. Ink on the olive is 4.9:1;
   white would be 3.8:1, so this is the side of the pairing that works.
   inline-block so the fill wraps the words rather than the column. */
.event__note--accent {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--accent-2);
  color: var(--ink);
}

/* Three-across variant used on the home page. */
.events--columns { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.events--columns .event { border-bottom: 0; border-right: 1px solid var(--rule); padding-inline: 1.25rem; }
.events--columns .event:first-child { padding-left: 0; }
.events--columns .event:last-child { border-right: 0; }
@media (max-width: 860px) {
  .events--columns { grid-template-columns: 1fr; }
  .events--columns .event { border-right: 0; border-bottom: 1px solid var(--rule); padding-inline: 0; }
  .events--columns .event:last-child { border-bottom: 0; }
}


/* ---------------------------------------------------------------------------
   Prose + card lists (placeholder pages)
   --------------------------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-1); margin-top: 2.25rem; }
.prose h3 { font-size: 1.0625rem; }
.prose section > * + * { margin-top: 0.4rem; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: 0.4rem; }
/* Ink, not orange: prose links are body-sized. They keep the underline the
   reset leaves on them, which is what marks them as links, and the accent
   arrives on hover as the decoration colour. */
.prose a { color: var(--ink); }

/* ---------------------------------------------------------------------------
   About blocks

   A statement on the left, the paragraphs that back it up on the right, with a
   rule between one block and the next. The shop's own idiom for this is
   .page-head split and .admin-toolbar: a heading and its detail beside each
   other rather than stacked, so the eye has somewhere to rest on a wide screen
   instead of reading one 62ch column all the way down.

   The eyebrow is accent type, which the note in the tokens calls an exception
   and is the third on the site after the semantic inks and the masthead's
   current section. It is derived rather than assumed, because it moves the day
   either token moves: b0501b on fffdf9 is 5.16 to 1, clear of the 4.5 body
   type needs. These blocks are therefore paper only. On panel the same pair is
   4.57 to 1, which passes but with nothing spare, so a block moved onto the
   alternate band wants the sum re-checked rather than assumed to carry over.
   --------------------------------------------------------------------------- */
.about-block { display: grid; gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: start; }
.about-block + .about-block {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.about-block__eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.about-block__title {
  font-size: var(--step-3);
  letter-spacing: var(--track-3);
  /* Short enough to wrap into two or three lines of its own, which is what
     makes it read as a statement rather than as a section heading. */
  max-width: 11ch;
  margin-block: 0.85rem 0;
}
.about-block .hero__actions { margin-top: 1.6rem; }
@media (min-width: 60rem) {
  .about-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.link-grid {
  display: grid;
  /* auto-FIT, not auto-fill. Fill leaves the tracks it could not fill standing,
     and this grid paints its gaps by showing --rule through them — so four
     links in a row with space for five drew a full-height grey cell with
     nothing in it, which reads as a card that failed to load. Fit collapses
     the empty tracks and the cards take the width back. Reported off a
     screenshot on 2026-09-09; /events and the 404 render this too. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
  padding: 0;
}
.link-card { background: var(--surface); padding: 1.25rem; }
.link-card__title { font-size: 1.0625rem; }
.link-card__title a { text-decoration: none; }
.link-card__title .arrow { color: var(--ink-muted); }
.link-card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.link-card p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-muted); }

/* A quiet aside at the foot of a section: the caveat, not the copy. */
.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 62ch;
}


/* ---------------------------------------------------------------------------
   The blog (2026-09-15, to the client's reference)

   Three blocks: a featured post beside a rail of the latest, a scrolling row
   of cards under it, and the post itself set in .prose.

   The reference is a rounded, drop-shadowed SaaS layout. What is taken from it
   is the *arrangement* — the two-thirds/one-third top row, the title written
   across the foot of the photograph, the thumbnail rows, the card row with its
   two arrows. What is not taken is its geometry: this site draws squared
   corners and hairlines, has five border-radius declarations in four thousand
   lines, and has no drop shadow on any surface. A rounded card here would be
   the only one on the site.

   Every chip is .card-flag, the site's own, for the same reason.
   --------------------------------------------------------------------------- */

/* The top row. Two thirds and one third above 60rem, stacked below, which is
   where a 22rem rail stops being a column and starts being a squeeze. */
.blog-top { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 60rem) {
  .blog-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}

/* ---- the featured post ---- */

.blog-lead { position: relative; display: block; text-decoration: none; color: inherit; }
/* The scrim, and it is not decoration.

   White type over an uploaded photograph is white type over whatever the shop
   photographs next — a pale table, a bright window — so the contrast cannot be
   left to the picture. This reaches --ink at 0.86 by the bottom, which is
   13.1:1 against white, and the placeholder's own tint sits under the same
   wash. It starts at 38% of the height so the top of the picture is untouched.

   A pseudo-element rather than a background on the panel, because the panel is
   only as tall as its words and the fade has to begin well above them. */
.blog-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 38%,
    color-mix(in srgb, var(--ink) 55%, transparent) 68%,
    color-mix(in srgb, var(--ink) 86%, transparent) 100%
  );
  pointer-events: none;
}
.blog-lead__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  /* Above the scrim its own pseudo-element paints. */
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
}
.blog-lead__title {
  font-size: var(--step-2);
  letter-spacing: var(--track-2);
  line-height: 1.12;
  max-width: 26ch;
  margin-top: 0.75rem;
}
.blog-lead__meta { margin-top: 0.6rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.82); }
/* The credit chip is bottom-left on every other photograph on the site, which
   is exactly where this panel now is. Moved to the top of the picture on this
   card only — the same scoped override the product stage takes, and for the
   same reason: the chip has to stay legible and stay off the words. */
.blog-lead .photo__credit { top: 0; bottom: auto; }
.blog-lead:hover .blog-lead__title { text-decoration: underline; text-decoration-color: #fff; }

/* ---- the rail beside it ---- */

.blog-latest__head { font-size: var(--step-1); letter-spacing: var(--track-1); }
.blog-latest__list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  /* A hairline between rows rather than a gap, which is what makes four short
     rows read as one list instead of four floating pairs. */
  gap: 0;
}
.blog-latest__list li + li { border-top: 1px solid var(--rule); }
.blog-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding-block: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.blog-row__shot { width: 4rem; }
.blog-row__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.blog-row__meta { margin-top: 0.3rem; font-size: 0.75rem; color: var(--ink-muted); }
.blog-row:hover .blog-row__title { text-decoration: underline; text-decoration-color: var(--accent); }

/* ---- founders corner ---- */

.founders__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.founders__lede { margin-top: 0.35rem; color: var(--ink-muted); font-size: 0.9375rem; }
.founders__nav { display: flex; gap: 0.5rem; }
/* The one round thing on the site, and it is round because an arrow in a
   square reads as a button in a toolbar rather than as a pager on a rail. They
   are anchors, not buttons: each one jumps the rail to an end. 44px because
   they are standalone targets under a thumb. */
.founders__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.founders__arrow:hover { background: var(--ink); color: var(--paper); }

.founders__rail {
  /* Named, because the scrolling variant has to subtract it to work out how
     wide a card must be for exactly three to fit. */
  --rail-gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--rail-gap);
}
/* Past three cards the row scrolls instead of squeezing. Fixed-width tracks,
   because an auto track in a scroller collapses to its content.

   No scroll-behavior: smooth here, deliberately — trap 17. With it set, the
   browser does not scroll a fragment target into a scroller at all, so the two
   arrows would set the hash, move the page and leave the rail exactly where it
   was. That is the fault the hero's dots carried, unnoticed, for weeks. */
.founders__rail--scrolls {
  /* Exactly three across, and the fourth off the edge. A minmax() here sizes
     every track to its own minimum the moment the row overflows, which put
     four 256px cards in a 968px rail: it scrolled by 117px, the fourth card
     was three quarters visible, and the arrows had almost nothing to do. The
     width is computed from the rail instead, so three fill it at any size. */
  grid-auto-columns: calc((100% - var(--rail-gap) * 2) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* The gap is inside the scroller, so the last card needs padding to clear
     the shell's own gutter when it is scrolled to. */
  padding-bottom: 0.5rem;
}
.founders__slide {
  scroll-snap-align: start;
  /* An anchor jump scrolls the page as well as the rail, and the masthead is
     sticky at 57px. Without this the card's own title is what goes under it. */
  scroll-margin-block-start: 5rem;
  scroll-margin-inline-start: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
/* --surface on the --panel band this section sits in. The other way round —
   a white card on --paper — is 1.01:1, which is the sum that stopped .section
   being white in the 2026-09-09 redesign and is why this band is --panel. */
.post-card:hover { border-color: var(--rule-strong); }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--accent); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1rem, 2vw, 1.25rem); }
.post-card .card-flag { align-self: start; margin-bottom: 0.75rem; }
.post-card__title { font-size: var(--step-1); letter-spacing: var(--track-1); line-height: 1.2; }
.post-card__excerpt { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.9375rem; }
/* Pushed to the foot, so the datelines line up across a row of cards whose
   titles wrap to different numbers of lines. */
.post-card__meta { margin-top: auto; padding-top: 1rem; font-size: 0.75rem; color: var(--ink-muted); }

/* The accent chip. Every other chip on the site is a fill and this is one too;
   white on --accent is 5.2:1, which clears the bar for the small bold type
   .card-flag sets. */
.card-flag--blog { background: var(--accent); color: #fff; }

/* Two across where three would put the excerpt in a 200px column. */
@media (max-width: 60rem) {
  .founders__rail--scrolls { grid-auto-columns: calc((100% - var(--rail-gap)) / 2); }
}
@media (max-width: 46rem) {
  /* One card at a time, most of the width, so the next one peeks in at the
     edge — which is the only affordance a rail has with nothing running. */
  .founders__rail--scrolls { grid-auto-columns: 82%; }
  .blog-lead__title { font-size: var(--step-1); }
  /* The arrows are a pointer control on a row a thumb already swipes, and at
     this width they cost a line above the rail for nothing. */
  .founders__nav { display: none; }
}

/* ---- the post itself ----

   .prose already carries the 62ch measure, the rhythm and the heading sizes,
   so this adds only what a long-form page wants that a placeholder page does
   not: a step up in body size, because 62ch of 16px read for four minutes is
   not the same ask as three paragraphs on /about, and a soft ink for the same
   reason the tokens give one. */
.post__body { font-size: var(--step-1); color: var(--ink-soft); }
/* The headings stay full-strength ink against the softened body, which is what
   makes them read as structure rather than as slightly larger prose. */
.post__body h2 { color: var(--ink); letter-spacing: var(--track-1); }

/* ---------------------------------------------------------------------------
   Search + cart
   --------------------------------------------------------------------------- */
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 34rem; margin-top: 1.25rem; }
.search-form input {
  flex: 1 1 16rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.search-form input::placeholder { color: var(--ink-muted); }

/* The heading over the recommended shelf, when nothing has been asked yet. */
.search-suggest__title { font-size: var(--step-2); letter-spacing: var(--track-2); margin: 1.5rem 0 1.5rem; }


/* ---------------------------------------------------------------------------
   Checkout
   --------------------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
.checkout__form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }

/* Two fields to a row once the column is wide enough to hold two.

   Nine stacked boxes made a checkout a page you scroll rather than a page you
   fill in — the client's note was that the details do not fit in one view. The
   width was already there and unused, so it goes into a second column rather
   than into wider boxes: a phone number does not get easier to type at 700px.

   The legend needs no help. A fieldset renders it above the anonymous box
   that holds everything else, so it is not a grid item and cannot be pulled
   into a column.

   Everything in a fieldset spans both columns by default and only a field
   opts back into one, the way .admin-fieldset does upstairs. That way the
   shipping choice, its paragraph and any note dropped in later keep the full
   width they were drawn at, and the pairing stays a decision taken per field.

   The breakpoint is the form column's width, not the window's: at 62rem the
   left column is around 530px, which is two boxes of 255. Below that they
   stack, and the tighter spacing above still shortens the page. */
@media (min-width: 62rem) {
  .checkout__form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    align-items: start;
  }
  .checkout__form fieldset > * { grid-column: 1 / -1; }
  .checkout__form fieldset > .checkout-field { grid-column: auto; }
  .checkout__form fieldset > .checkout-field--wide { grid-column: 1 / -1; }
}
.checkout__form legend {
  font-family: var(--font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 0 0.75rem;
}
.checkout-field { margin-bottom: 0.9rem; }
.checkout-field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.3rem; }
.checkout-field input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font: inherit;
  color: inherit;
}
.checkout-field--invalid input { border-color: var(--accent); }
.checkout-field__hint { display: block; font-size: 0.8125rem; color: var(--ink-muted); margin-top: 0.3rem; }
.checkout-field__error { display: block; font-size: 0.8125rem; color: var(--accent); margin-top: 0.3rem; }
.checkout__terms { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 1.25rem; }

.checkout__summary { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem; }
.checkout__summary h2 { font-size: 1rem; margin: 0 0 1rem; }
.checkout__summary ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkout__summary li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.9375rem; }
.checkout__summary dl { margin: 0; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.checkout__summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-size: 0.9375rem; }
.checkout__summary dt, .checkout__summary dd { margin: 0; }
.checkout__total { font-weight: 700; border-top: 1px solid var(--rule); margin-top: 0.5rem; padding-top: 0.6rem !important; }

@media (max-width: 46rem) {
  .checkout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  /* The summary leads on a narrow screen: what you are paying matters more
     than the form you have not filled in yet. */
  .checkout__summary { order: -1; }
}


/* ---------------------------------------------------------------------------
   Thumbs

   The filter controls already decided this: they carry a 44px min-height and a
   comment about being tapped more often than clicked. Nothing around them got
   the same treatment, so one form shipped two answers about how big a thumb is
   — a 44px select with a 35px Apply button sitting next to it.

   Settled here, and only under a coarse pointer. What a mouse sees does not
   move. That is the point rather than a hedge: the storefront proportions were
   drawn, and a pointer query is how you leave a drawing alone on the surface it
   was drawn for while still being tappable on the one it was not. The admin
   sheet says as much where it scopes its own coarse block to .admin.

   The masthead links grow through a pseudo-element instead of padding. They
   carry hover and current-page state on a bottom border, and padding would push
   that rule away from the word it underlines; an inset overlay adds the hit
   area and moves nothing.

   No backticks anywhere in here: this stylesheet is one String.raw template
   literal, and a backtick in a comment ends it.
   --------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn--small { min-height: 44px; padding-block: 0.55rem; }

  /* The floor above is a height, and a height is only half of a thumb target
     on a button with no word in it: an 18px bag in 0.45rem of padding is 33px
     across whatever its height is. The square has to be squared in both
     directions or the card's Add is the one control on the shelf a thumb can
     miss sideways. */
  .btn--icon { min-width: 44px; }

  /* 16px is the threshold under which iOS Safari zooms the document on focus.
     At 14px, tapping the search box rescales the page and leaves the shopper
     pinching back out to see the results they just asked for. */
  .filters__field select,
  .filters__field input,
  .shop-sort select { font-size: 1rem; }
  .filters__check input { width: 1.35rem; height: 1.35rem; }

  .masthead__link,
  .masthead__utils a { position: relative; }
  .masthead__link::after,
  .masthead__utils a::after {
    content: "";
    position: absolute;
    /* Vertical is the axis that was short: 28px of link against a 44px
       thumb. Horizontal grows too, but only to -0.35rem, because the list
       gap bottoms out at 1rem and two overlays wider than half of it would
       meet in the middle. Overlapping targets are worse than narrow ones:
       the tap still lands, just on the neighbour. */
    inset-block: -0.6rem;
    inset-inline: -0.35rem;
  }
}

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


/* ---------------------------------------------------------------------------
   The basket badge, and what happens after Add

   Both of these are per-visitor, and so is the cacheability of any page
   carrying them. Read the cacheability note in src/app.tsx before putting
   anything else per-visitor into the chrome.
   --------------------------------------------------------------------------- */
/* The word and its number need visible air between them — glued together the
   badge reads as part of the word rather than a count beside it. The gap is
   .masthead__util's, up in the header block, which is where the mark, the word
   and the count are spaced as one row; centred rather than on the baseline,
   because a mark aligned to the baseline of the word beside it sits high by
   most of its own descender. Nothing in this file may contain a backtick — the
   whole stylesheet is one template literal. */

/* Deliberately unstyled: the count is part of the words, "Cart (2)", not a
   disc stuck to a link. It keeps its own element because the script has to
   find it and put a new number in it after an add. */

/* The add-to-cart confirmation.

   It used to be a line of grey text on a grey strip, which said the right
   thing so quietly that the client's note about it was "not noticeable". It is
   the loudest thing on the page for as long as it takes to read: white against
   the paper, an accent rule down its edge, a drawn tick, and the two onward
   moves as buttons. The wording — what is in the basket, and how far off free
   delivery it is — comes from addedSummary() in site/data.ts.

   It was a band across the top of main, on the reasoning that a strip which
   scrolls away with the page has better manners than one sitting over the
   content, and that nothing here could dismiss itself with no script. The
   client asked for the standard thing instead: a card in the corner. The
   reasoning was answered rather than dropped — an Add pressed on the fourth
   row of the shelf was being confirmed a screenful above the button, which is
   a confirmation nobody sees. The script closes it and takes it away after a
   few seconds; with no script it lasts until the next navigation, which is as
   long as the band lasted anyway.

   It slides in where motion is welcome and simply appears where it is not. */
.added {
  position: fixed;
  /* Over everything, including the sticky masthead it may briefly cover: at
     the top of a page the card lands on it, and it lets go of its own accord
     seven seconds later. The corner is
     the top one at the client's word — an Add pressed anywhere on the shelf
     is answered where the eye goes first. */
  z-index: 120;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  width: min(23rem, calc(100vw - 2.5rem));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  box-shadow: 0 0.75rem 2rem rgba(28, 25, 23, 0.22);
}
.added__inner {
  position: relative;
  display: grid;
  gap: 0.75rem;
  /* Room on the right for the close button, which is positioned into it. */
  padding: 1rem 2.4rem 1.05rem 1.1rem;
}
.added__body { display: grid; gap: 0.15rem; }
/* A hairline square rather than a button: it is the smallest control on the
   page and it must not compete with the two that matter underneath it. */
.added__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.added__close:hover { color: var(--ink); }
/* The refusal wears the same card. No tick — it is the one thing that did not
   happen — and no onward buttons, because there is nowhere to go on to. The
   left edge keeps the house accent rather than borrowing one of the semantic
   inks, which are drawn on type and nowhere else; the sentence is what says
   this is bad news. */
.added--refused .added__head::before { display: none; }
.added__reason { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }

/* A drawn tick rather than a character: ✓ renders in whatever the fallback
   font decides, and at this size the difference is visible. */
.added__head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-display);
  /* A step down from the band's size: this is a card in the corner now, not
     a heading across the page. */
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.added__head::before {
  content: "";
  width: 0.5rem;
  height: 0.85rem;
  flex: none;
  border-right: 2.5px solid var(--accent-2);
  border-bottom: 2.5px solid var(--accent-2);
  transform: rotate(38deg) translateY(-0.15rem);
}
.added__tally {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* The one line that changes somebody's mind about adding another game, so it
   gets the informational accent rather than the muted grey. */
.added__nudge { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ok-ink); }
/* How many copies actually exist, when that is not what was asked for. The
   informational blue, not the warning amber: a pre-order is what the customer
   chose, and the shelf being down to its last copy is news rather than a
   mistake. Never colour alone — the sentence itself says which it is. */
.added__stock { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--info-ink); }
.added__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }

/* Down from over the corner it is anchored to. */
@keyframes added-in {
  from { opacity: 0; transform: translateY(-0.6rem); }
  to { opacity: 1; transform: none; }
}
.added { animation: added-in 220ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .added { animation: none; }
}

/* Corner to corner on a phone: 23rem of card against a 375px window would
   leave a 10px margin down one side and look like a mistake. */
@media (max-width: 30rem) {
  .added {
    inset-inline: 0.65rem;
    inset-block-start: 0.65rem;
    width: auto;
  }
}


/* ---------------------------------------------------------------------------
   How to send it

   Two radios wearing cards, the same trick the denominations below use: the
   input stays in the tab order off-screen, the label is the target, and the
   chosen one is marked by a filled edge rather than a tick.

   Each card carries its own total. A split shipment is a second courier and
   therefore a second fee, and a choice that shows one price while charging
   another is a choice nobody made — so the price is inside the thing you
   press, not in a footnote under it.
   --------------------------------------------------------------------------- */
.ship-choice__intro { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.ship-choice__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.ship-choice__input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ship-choice__card {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule-strong);
  border-left-width: 3px;
  border-left-color: var(--rule);
  background: var(--surface);
  cursor: pointer;
}
.ship-choice__card:hover { border-left-color: var(--accent); }
.ship-choice__input:checked + .ship-choice__card { border-left-color: var(--ink); }
/* The focus ring belongs to the label, since the input it belongs to is the
   one thing on this control nobody can see. */
.ship-choice__input:focus-visible + .ship-choice__card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ship-choice__head { font-weight: 700; font-size: 0.9375rem; }
.ship-choice__note { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.45; }
.ship-choice__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: var(--track-1);
  margin-top: 0.15rem;
}

/* The what-if line under the summary total: a figure that is not being charged
   yet, so it is quieter than the one that is. */
.checkout__aside-line dt,
.checkout__aside-line dd { font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   Gift card denominations

   Three radio buttons wearing cards. The input is the real control and stays
   in the tab order off-screen; the label is the target, and the selected one
   is marked by a filled edge rather than a tick, because at this size a tick
   is smaller than the thing it is describing.
   --------------------------------------------------------------------------- */
.denoms {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
}
.denoms__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; }
.denoms__card {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  cursor: pointer;
}
.denoms__card:hover { border-color: var(--rule-strong); }
.denoms__input:checked + .denoms__card {
  border-color: var(--rule-strong);
  border-left-color: var(--accent);
}
.denoms__input:focus-visible + .denoms__card { outline: 2px solid var(--accent); outline-offset: 2px; }
.denoms__amount {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: var(--track-1);
}
.denoms__note { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.4; }

/* A gift card coming off a receipt total. Green, because from the customer's
   side it is the good news on the page. */
.receipt__card { color: var(--ok-ink); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Request a game

   The form on the left, and on the right the answers to the questions that
   stop somebody sending it. That half of the page used to be empty, which on
   the one page asking a visitor to trust a promise rather than buy a thing off
   a shelf was the worst place on the site to have nothing to say.
   --------------------------------------------------------------------------- */
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.request-layout__main { min-width: 0; }

.request-aside {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.request-aside__title {
  font-size: var(--step-1);
  letter-spacing: var(--track-1);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.request-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.9rem; }
.request-steps li { display: flex; gap: 0.75rem; align-items: start; }
/* A numeral in the display face, because these are steps in order and the
   order is the point. Olive rather than orange: it describes rather than
   invites, which is what the informational accent is for. */
.request-steps__num {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.875rem;
  color: #fff;
  background: var(--accent-2);
}
.request-steps__head { font-weight: 700; font-size: 0.9375rem; }
.request-steps__note { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 0.1rem; line-height: 1.45; }

.request-aside__box {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.request-aside__head {
  font-family: var(--font-eyebrow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.request-aside__note { font-size: 0.875rem; margin-top: 0.35rem; }
.request-aside__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.request-aside__ring { margin-top: 1.1rem; font-size: 0.875rem; color: var(--ink-muted); }

@media (max-width: 60rem) {
  /* Stacked, the panel goes under the form: it is reassurance for somebody
     hesitating over the button, and above the form it would be a wall of
     reading before the thing they came to do. */
  .request-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------------
   Rate this game

   Five radio buttons wearing stars. The inputs are the real control — a screen
   reader gets a proper radio group with a legend — and the labels are what you
   see and press.

   The markup lists 5 down to 1 so that hovering a star can light the ones
   before it: a sibling selector only reaches forwards, so the row is reversed
   in the DOM and reversed back with row-reverse. That is the whole trick.
   --------------------------------------------------------------------------- */
.rate {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 44ch;
}
.rate__set { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.rate__legend {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
/* Reversed, per the note above. */
.rate__stars { display: flex; flex-direction: row-reverse; gap: 0.1rem; }
/* Off-screen rather than display:none, so it keeps its place in the tab order
   and the label stays its visible proxy. */
.rate__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; }
.rate__star {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rule);
  cursor: pointer;
  /* A thumb target. The glyph is 24px; the padding takes the hit area to 44. */
  padding: 0.35rem 0.15rem;
  transition: color 90ms ease;
}
/* The star being pointed at, and — because the row is reversed — every star
   below it, which is the direction a rating fills. */
.rate__star:hover,
.rate__star:hover ~ .rate__star,
.rate__input:checked ~ .rate__star,
.rate__input:focus-visible + .rate__star {
  color: var(--accent-2);
}
.rate__input:focus-visible + .rate__star { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .rate__star { transition: none; }
}
.rate__note { margin-top: 0.6rem; font-size: 0.875rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   The receipt

   What somebody sees after placing an order, and — because it is cash on
   delivery — the thing they may well want on paper before a courier arrives
   asking for a specific number. So it is built as a document: a reference and
   an amount due at the top, the lines in the middle, the address and the phone
   number at the bottom, and a print rule that strips the site around it.
   --------------------------------------------------------------------------- */
.receipt {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: clamp(1.1rem, 2.5vw, 2rem);
  max-width: 46rem;
}

.receipt__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 1rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}
.receipt__label {
  font-family: var(--font-eyebrow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.receipt__reference {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: var(--track-2);
  font-variant-numeric: tabular-nums;
}
/* The figure the courier will ask for. It is the one number on the page that
   matters at the door, so it gets the accent and the size to match. */
.receipt__stamp { text-align: right; }
.receipt__due {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: var(--track-2);
  color: var(--accent);
}
.receipt__note { font-size: 0.75rem; color: var(--ink-muted); }

.receipt__lines { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.receipt__lines th, .receipt__lines td { text-align: left; padding: 0.6rem 0.5rem 0.6rem 0; }
.receipt__lines thead th {
  font-family: var(--font-eyebrow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
}
.receipt__lines tbody th { font-weight: 600; }
.receipt__lines tbody tr { border-bottom: 1px solid var(--rule); }
/* Numbers right, and tabular so the column of them lines up. */
.receipt__lines td { text-align: right; font-variant-numeric: tabular-nums; }
.receipt__lines th:first-child { width: 55%; }
.receipt__lines tfoot th { text-align: right; font-weight: 400; color: var(--ink-muted); }
.receipt__lines tfoot td { padding-block: 0.3rem; }
.receipt__free { color: var(--ok-ink); font-weight: 700; }
.receipt__total th, .receipt__total td {
  border-top: 2px solid var(--ink);
  padding-top: 0.7rem;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.0625rem;
}

.receipt__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.receipt__fact { font-size: 0.9375rem; line-height: 1.5; margin-top: 0.2rem; }
.receipt__aside { color: var(--ink-muted); font-size: 0.875rem; }

.receipt__message {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border-left: 3px solid var(--accent-2);
  font-size: 0.9375rem;
}
.receipt__message .receipt__label { display: block; margin-bottom: 0.25rem; }

.receipt__keep {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* The receipt on a phone.

   All three of them — an order, a game request, a gift card — share this
   head, and at the display face's --step-2 the reference and the amount due
   are around 350px of type between them. On a 375px screen that is a second
   line for the amount and, on the gift card, a code that runs out of the box
   it is printed in.

   The lines table is the order's alone, and it was the worse half: four
   columns of figures across 330px broke Rs 9,200 over two lines. Qty and Each
   fold into the game cell as one line under the title, which leaves the
   figure the courier will actually ask for a column of its own. Nothing is
   hidden that is not said somewhere else on the same row. */
@media (max-width: 46rem) {
  .receipt__head { gap: 0.75rem 1rem; padding-bottom: 0.9rem; }
  .receipt__reference,
  .receipt__due { font-size: var(--step-1); }
  /* A gift card code is four groups and a pair of hyphens, and it is the one
     string here that has no business breaking a layout. */
  .receipt__reference { overflow-wrap: anywhere; }

  /* Four columns that still read as four columns.

     What broke them was the 55% on the game column: it took 181px of a 330px
     card and left three money columns to share 149, so every figure wrapped
     between its rupees and its number — Rs above 9,200, in a column of
     figures nobody could then read down. The width goes back to auto, the
     figures are told never to break, and the type comes down a step so the
     four of them fit. The game is the only thing in the row allowed to wrap,
     because it is the only thing that is words. */
  .receipt__lines { font-size: 0.875rem; }
  .receipt__lines th:first-child { width: auto; }
  .receipt__lines th,
  .receipt__lines td { padding: 0.5rem 0 0.5rem 0.5rem; }
  .receipt__lines th:first-child { padding-left: 0; }
  .receipt__lines td,
  .receipt__lines tfoot th { white-space: nowrap; }
  .receipt__lines thead th { font-size: 0.5625rem; letter-spacing: 0.08em; }
  .receipt__total th,
  .receipt__total td { font-size: 0.9375rem; }

  .receipt__facts { gap: 0.9rem; margin-top: 1.1rem; padding-top: 1rem; }
}

/* ---------------------------------------------------------------------------
   Halloween (31 October 2026)

   The costume contest banner on /events and its strip on the home page. See
   components/halloween.tsx, and BANNER_UNTIL in src/halloween.ts, after which
   neither is rendered and this whole block can go.

   A deliberate exception to the palette, at the client's word: it wears the
   contest app's own design (its DESIGN.md), not the shop's. The poster is
   the one bold element and the words sit quietly beside it, on the night
   ground with no box round them. Every colour is a custom property on
   .hallow and nowhere else, so nothing outside the banner can reach them,
   and the rule that the shop's accents are never type is still whole.
   Measured against the night, #140f1c:

     parchment  #efe4cc  14.9:1    parchment-dim  #b9aec4   8.9:1
     gilt       #d9b65d   9.7:1    gilt-ink on gilt (the button)  9.4:1

   Gilt is kept for the button, the prize line and the focus ring. The 10px
   radius on the button is the contest's control radius, and is the only
   rounded corner on a page that otherwise has none.

   Type: Pirata One for the headline only, EB Garamond for everything else in
   the banner, button included. Garamond sets small for its size, so the
   steps here run a little larger than the shop's Archivo would.
   --------------------------------------------------------------------------- */
.hallow {
  --hw-night: #140f1c;
  --hw-rule: #3a2e49;
  --hw-parchment: #efe4cc;
  --hw-parchment-dim: #b9aec4;
  --hw-gilt: #d9b65d;
  --hw-gilt-ink: #1c1405;
  --hw-shadow: 0 16px 48px rgb(0 0 0 / 0.55);
  --font-blackletter: "Pirata One", Georgia, serif;
  --font-garamond: "EB Garamond", Georgia, "Times New Roman", serif;

  background: var(--hw-night);
  color: var(--hw-parchment);
  font-family: var(--font-garamond);
  border-bottom: 1px solid var(--hw-rule);
}

.hallow__by { font-size: 1.125rem; font-style: italic; line-height: 1.4; color: var(--hw-parchment-dim); }
/* The blackletter has one weight, and the whole headline is one colour. */
.hallow__head {
  font-family: var(--font-blackletter);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  color: var(--hw-parchment);
  text-wrap: balance;
}
.hallow__when { font-size: 1.25rem; line-height: 1.45; color: var(--hw-parchment-dim); }
.hallow__prize { font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--hw-gilt); }

.hallow__cta { display: flex; }
.hallow__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  background: var(--hw-gilt);
  color: var(--hw-gilt-ink);
  font-family: var(--font-garamond);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.hallow__btn:hover { background: var(--hw-parchment); }
/* The shop's orange ring is 3.3:1 on this ground; the contest's gilt is 9.7. */
.hallow__btn:focus-visible { outline: 3px solid var(--hw-gilt); outline-offset: 3px; border-radius: 10px; }

/* ---- the banner on /events ---- */
.hallow--feature { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hallow--feature .hallow__grid {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 34rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  justify-content: center;
}
/* The words come first in the source, for anybody reading it aloud, and the
   poster takes the left-hand column on a wide screen. */
.hallow--feature .hallow__body { grid-column: 2; grid-row: 1; }
.hallow--feature .hallow__head { font-size: clamp(3.25rem, 5.6vw, 6rem); margin-top: 0.6rem; }
.hallow--feature .hallow__when { margin-top: 1.5rem; }
.hallow--feature .hallow__prize { margin-top: 0.5rem; }
.hallow--feature .hallow__cta { margin-top: 2rem; }
.hallow__poster { grid-column: 1; grid-row: 1; margin: 0; }
.hallow__poster img { width: 100%; height: auto; box-shadow: var(--hw-shadow); }

@media (max-width: 46rem) {
  .hallow--feature .hallow__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hallow--feature .hallow__body,
  .hallow__poster { grid-column: 1; grid-row: auto; }
  .hallow__poster { max-width: 26rem; }
  .hallow--feature .hallow__btn { width: 100%; }
}

/* ---- the strip on the home page ---- */
.hallow--strip { padding-block: 1.25rem; }
.hallow__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.hallow--strip .hallow__by { font-size: 1rem; }
.hallow--strip .hallow__head { font-size: clamp(1.875rem, 2.4vw, 2.5rem); margin-top: 0.15rem; }
.hallow--strip .hallow__when { font-size: 1.125rem; }
.hallow--strip .hallow__prize { font-size: 1.125rem; margin-top: 0.1rem; }
.hallow--strip .hallow__btn { min-height: 3.25rem; padding: 0.4rem 1.5rem; font-size: 1.25rem; }

@media (max-width: 60rem) {
  .hallow__row { grid-template-columns: minmax(0, 1fr) auto; }
  .hallow--strip .hallow__facts { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 46rem) {
  .hallow--strip { padding-block: 1.4rem; }
  .hallow__row { grid-template-columns: minmax(0, 1fr); }
  .hallow--strip .hallow__facts,
  .hallow--strip .hallow__cta { grid-column: 1; grid-row: auto; }
  .hallow--strip .hallow__cta { margin-top: 0.4rem; }
  .hallow--strip .hallow__btn { width: 100%; min-height: 3.5rem; }
  /* Keep the strip short on phones: the headline and the button carry it. */
  .hallow--strip .hallow__facts { display: none; }
}

@media print {
  .hallow { display: none; }
}


/* ---------------------------------------------------------------------------
   Header

   Logo, the five sections with a red rule under the one you are in, then
   Search and the cart. Below 62rem the row is a menu button, the logo and the
   cart, and the five sections move into the menu.

   The menu is a details element, not a script: it opens and shuts with no
   JavaScript at all, the browser reports it as expanded and collapsed by
   itself, and its panel is absolutely placed under the header so opening it
   does not shove the page down under a thumb.

   It is sticky, at the client's word (2026-11-25), and the public script
   tucks it away while the page scrolls down and brings it back on the way up,
   so a phone gets the screen back while reading and the header the moment it
   is wanted. With no script it simply stays put. The script sets
   data-tucked; it never tucks it near the top of the page, while the menu is
   open, or while focus is inside it.

   The rule under it is the header controls' own border colour, about 1.5:1
   on the page. It was the raised tone, 1.13:1, and hard to see.
   --------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--navy-line-2);
  transition: transform 0.25s ease;
}
.masthead[data-tucked] { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .masthead { transition: none; }
}
/* A link to a heading lands below the header rather than under it. */
html { scroll-padding-top: 6rem; }
@media (max-width: 62rem) {
  html { scroll-padding-top: 5rem; }
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.wordmark { display: flex; align-items: center; flex-shrink: 0; }
.wordmark__logo { height: 50px; width: auto; }

.masthead__list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0;
  list-style: none;
}
.masthead__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 7px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
/* The rule under the current section is a 3px bar drawn under the word, and
   it is the rule rather than a colour that says "you are here", so it reads
   the same to somebody who cannot see red. */
.masthead__link::after {
  content: "";
  height: 3px;
  border-radius: 2px;
  background: transparent;
}
.masthead__link[aria-current="page"]::after { background: var(--red); }
.masthead__link:hover { color: var(--fg); }
.masthead__link:hover::after { background: var(--navy-line-3); }
.masthead__link[aria-current="page"]:hover::after { background: var(--red); }

.masthead__utils { display: flex; gap: 8px; align-items: center; }
.masthead__util {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--navy-line-2);
  border-radius: 12px;
  background: var(--navy-raised);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.masthead__util:hover { border-color: var(--navy-line-3); color: var(--fg); }
.masthead__util-mark { display: block; flex-shrink: 0; }
.masthead__search { padding: 0; width: 44px; }
.masthead__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 0.75rem/1 var(--font-body);
}

/* The phone menu. */
.menu { display: none; }
.menu__toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-line-2);
  border-radius: 12px;
  background: var(--navy-raised);
  color: var(--fg);
  cursor: pointer;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle::marker { content: ""; }
.menu__shut { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__shut { display: block; }

.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 16px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.4);
}
.menu__list { list-style: none; padding: 0; }
.menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font: 700 1.125rem/1.2 var(--font-display);
  text-decoration: none;
}
.menu__link[aria-current="page"] { color: var(--red-soft); }
.menu__extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  font-size: 0.9375rem;
}
.menu__extra a { display: flex; align-items: center; min-height: 44px; }
.menu__note { color: var(--fg-faint); font-size: 0.8125rem; }

@media (max-width: 62rem) {
  .masthead__inner { padding-block: 12px; }
  .menu { display: block; }
  .masthead__nav,
  .masthead__search { display: none; }
  .wordmark__logo { height: 36px; }
  /* The cart becomes a square with the count riding on its corner. */
  .masthead__cart { position: relative; width: 44px; padding: 0; }
  .masthead__cart-word { display: none; }
  .masthead__cart .masthead__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    font-size: 0.6875rem;
  }
}

/* ---------------------------------------------------------------------------
   The trail, on the navy top of an interior page
   --------------------------------------------------------------------------- */
.crumb-bar { background: var(--bg); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 24px 0 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--fg-faint);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--fg-faint); }
.breadcrumbs a { color: var(--link); display: inline-block; padding-block: 4px; }
.breadcrumbs [aria-current="page"] { color: var(--fg); }

/* ---------------------------------------------------------------------------
   Page head: the navy top of an interior page
   --------------------------------------------------------------------------- */
.page-head {
  background: var(--bg);
  color: var(--fg);
  padding-block: 48px 48px;
}
.page-head .eyebrow { display: block; margin-bottom: 12px; }
.page-head__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-head .lede { margin-top: 16px; color: var(--fg-muted); }
.page-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-head__heading { flex: 1 1 32rem; }
.page-head__side { flex: 0 1 380px; }
.page-head--compact { padding-block: 40px 40px; }
.page-head--bare { padding: 0; }
.page-head__split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 64rem) {
  .page-head__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
}
.page-head__aside { min-width: 0; }
@media (max-width: 46rem) {
  .page-head { padding-block: 28px 28px; }
  .page-head__title { font-size: 2.25rem; line-height: 1.05; }
  .page-head .lede { font-size: 1rem; }
}

/* ---------------------------------------------------------------------------
   Sections: the cream band
   --------------------------------------------------------------------------- */
.section {
  background: var(--bg);
  color: var(--fg);
  padding-block: 64px;
}
/* Two cream sections in a row are one band with room between its parts,
   not two bands. */
.section + .section { padding-top: 0; }
.section--tight { padding-top: 40px; }
.section--first { padding-top: 48px; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 28px;
}
.section__head-text { display: flex; flex-direction: column; gap: 8px; }
/* The guidelines' section title: Montserrat 800 at 40px, 1.1, -2.5%. */
.section__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.section__title--sm { font-size: clamp(1.5rem, 2vw, 1.875rem); }
.section__sub { color: var(--fg-soft); font-size: 1.0625rem; }
.section__more { font-weight: 600; display: inline-block; padding-block: 6px; }
@media (max-width: 46rem) {
  .section { padding-block: 40px; }
  .section__head { margin-bottom: 16px; }
  .section__sub { font-size: 0.9375rem; }
}

/* ---------------------------------------------------------------------------
   Photo frame + placeholder

   A rounded box at the ratio it is given, the picture cropped to it with the
   shop's focal point. With no photograph it is the ground's image colour, as
   the handoff draws every [BOX ART] slot, and says what it stands in for.
   --------------------------------------------------------------------------- */
.photo {
  position: relative;
  aspect-ratio: var(--photo-ratio, 4 / 3);
  overflow: hidden;
  border-radius: var(--radius-image);
  background: var(--image);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.photo[role="img"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%);
}
.photo__credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgb(2 5 12 / 0.78);
  color: var(--cream);
  font-size: 0.6875rem;
  line-height: 1.35;
}

/* ---------------------------------------------------------------------------
   Badges and chips
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.badge--stock { background: var(--badge-last-bg); color: var(--badge-last-fg); }
.badge--pre { background: var(--badge-pre-bg); color: var(--badge-pre-fg); }
.badge--sale { background: var(--red); color: #fff; }
.badge--solid { background: var(--red); color: #fff; font-weight: 700; border-radius: 8px; padding: 6px 12px; font-size: 0.8125rem; }
/* Inline rather than a flex box: it holds several links with spaced dots
   between them, and a flex container drops the spaces. */
.badge--outline { display: inline-block; border: 1px solid var(--line-strong); color: var(--fg-soft); border-radius: 8px; padding: 5px 12px; font-size: 0.8125rem; }
.badge--outline a { color: inherit; text-decoration: none; }
.badge--outline a:hover { text-decoration: underline; }
/* The upper-case tag on a feature card: Next up, Game night. */
.badge--tag {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: 800 0.8125rem/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge--night { background: var(--navy); color: var(--cream); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chip {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--card-line);
  font-size: 0.8125rem;
  color: var(--fg-soft);
  white-space: nowrap;
}
.chip--lg { padding: 8px 14px; border-radius: 18px; border-color: var(--line-strong); font-size: 0.875rem; }
.chip a { color: inherit; }

/* ---------------------------------------------------------------------------
   Price
   --------------------------------------------------------------------------- */
.price-now { color: var(--sale-ink); }
.price-was { color: var(--fg-muted); font-weight: 400; font-size: 0.85em; }

/* The shop's own stars. */
.stars { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--fg-muted); }
.stars__cell { color: var(--card-line); }
.stars__cell--on { color: var(--red); }

/* ---------------------------------------------------------------------------
   Game card and the grid of them

   Box art, the name with its stock badge, three chips (players, length, age),
   then the price and the one button. The title's link stretches over the
   whole card, so the picture and the empty space are the same target; the
   Add form floats back above it. On a phone the grid is two-up, the chips
   become one line of meta, and the button takes the card's width.
   --------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

/* On the light ground a card is the page's own ivory, so it needs an edge to
   be a card at all. These are the ones that drew none, because they used to be
   a lighter fill than the page; the rest already carry the same hairline. On
   navy they keep their raised fill and no edge. */
:is(.section, .on-cream) :is(.game-card, .mini-card, .ratings, .cart-line,
  .event-card, .value-card, .faq-topics a, .qa, .form-card, .post-card,
  .link-card, .event, .panel-set, .tile) {
  border: 1px solid var(--card-line);
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--fg);
}
.game-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.game-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.game-card__title {
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-width: 0;
}
.game-card__title a { color: var(--fg); text-decoration: none; }
.game-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}
.game-card__title a:hover { text-decoration: underline; color: var(--fg); }
.game-card__title a:focus-visible { outline: none; }
.game-card__title a:focus-visible::after { outline: 2px solid var(--link); outline-offset: 2px; }
.game-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.game-card__price {
  font: 700 1.125rem/1.2 var(--font-display);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
.game-card__add,
.game-card__alt { position: relative; z-index: 1; }
.game-card__alt { font-size: 0.875rem; }

@media (max-width: 46rem) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { padding: 10px; gap: 8px; border-radius: 18px; }
  .game-card .photo { --photo-ratio: 1 / 1; border-radius: 12px; }
  .game-card .photo__credit { font-size: 0.5625rem; padding: 2px 5px; left: 4px; bottom: 4px; }
  .game-card__head { flex-direction: column-reverse; gap: 6px; }
  .game-card__badges { justify-content: flex-start; }
  .badge { font-size: 0.6875rem; padding: 3px 8px; border-radius: 10px; }
  .game-card__title { font-size: 0.9375rem; line-height: 1.25; }
  /* The chips become one line of meta, as the phone design draws it. */
  .game-card__chips { gap: 0; font-size: 0.75rem; }
  .game-card__chips .chip { border: 0; padding: 0; font-size: 0.75rem; color: var(--fg-muted); white-space: normal; }
  .game-card__chips .chip + .chip::before { content: "\00a0· "; }
  .game-card__price { font-size: 0.9375rem; }
  .game-card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .game-card__add .btn,
  .game-card__alt { width: 100%; border-radius: 12px; font-size: 0.875rem; }
  .game-card__alt { display: flex; align-items: center; justify-content: center; min-height: 44px; }
}
@media (max-width: 22rem) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
}

/* A smaller card, for the related games and the games an event brings. */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: var(--card);
}
.mini-card__title { font-weight: 700; font-size: 1.0625rem; }
.mini-card__title a { color: var(--fg); text-decoration: none; }
.mini-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.mini-card__title a:hover { text-decoration: underline; }
.mini-card__meta { font-size: 0.875rem; color: var(--fg-muted); }
.mini-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.mini-card__price { font: 700 1rem/1.2 var(--font-display); }
.mini-card__stock { font-size: 0.8125rem; font-weight: 700; color: var(--badge-last-fg); }
@media (max-width: 46rem) {
  /* A swiped row rather than a grid. */
  .mini-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .mini-grid > li { flex: 0 0 150px; scroll-snap-align: start; }
  .mini-card { padding: 10px; border-radius: 16px; gap: 6px; height: 100%; }
  .mini-card .photo { --photo-ratio: 1 / 1; border-radius: 10px; }
  .mini-card__title { font-size: 0.875rem; }
  .mini-card__meta { display: none; }
  .mini-card__price { font-size: 0.8125rem; font-weight: 600; font-family: var(--font-body); }
}

/* ---------------------------------------------------------------------------
   Home: the hero, and the feature card it shares with /events
   --------------------------------------------------------------------------- */
.hero-band { background: var(--bg); }
.hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 24px 56px;
}
.hero__intro { display: flex; flex-direction: column; gap: 20px; }
/* The guidelines' hero headline: Montserrat 800, 1.0, -3%. They give 48 to
   100px; the top is 80px at the client's word (2026-11-25).
   Three lines at every width, at the client's word (2026-11-25). The cap is
   in em so it scales with the type: "Bringing the best" is 8.85em and every
   two-line split of the sentence needs at least 12em, so 9.5em always gives
   three. In the old 860px column the line was four at 100px. */
.hero__headline {
  max-width: 9.5em;
  font-size: clamp(3rem, 6.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__lede { font-size: 1.25rem; line-height: 1.6; color: var(--fg-muted); max-width: 600px; }
@media (max-width: 46rem) {
  .hero { gap: 16px; padding-block: 28px 32px; }
  /* 36px, under the guidelines' 48px floor, so the line is three on a 343px
     column: at 48px it was four. The client's call. */
  .hero__headline { font-size: 2.25rem; line-height: 1; }
  .hero__lede { font-size: 1.0625rem; }
}

/* The feature card: a photograph beside a block of words, Next up. */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  overflow: hidden;
  border-radius: var(--radius-hero);
  border: 1px solid var(--card-line);
  background: var(--card);
}
.feature__media { position: relative; min-height: 340px; background: var(--image); }
.feature__media .photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}
.feature__title { font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.08; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { text-decoration: underline; }
.feature__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
  color: var(--fg-soft);
}
.feature__facts li { display: flex; gap: 12px; align-items: center; }
.feature__facts svg { flex-shrink: 0; color: var(--link); }
.feature__text { font-size: 1.0625rem; color: var(--fg-soft); line-height: 1.55; }
@media (max-width: 46rem) {
  .feature { border-radius: var(--radius-card); }
  .feature__media { min-height: 180px; }
  .feature__body { padding: 20px; gap: 12px; }
  .feature__title { font-size: 1.625rem; }
  .feature__facts { font-size: 0.9375rem; gap: 6px; }
  .feature .actions .btn { flex: 1 1 100%; }
}

/* Coming back soon: a row per out-of-stock title the shop still takes
   pre-orders for. */
.pre-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.pre-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--card-line);
}
.pre-row__shot { width: 64px; flex-shrink: 0; }
.pre-row__shot .photo { --photo-ratio: 1 / 1; border-radius: 10px; }
.pre-row__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pre-row__name { font-weight: 600; color: var(--fg); text-decoration: none; }
.pre-row__name::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.pre-row__name:hover { text-decoration: underline; color: var(--fg); }
.pre-row__meta { font-size: 0.875rem; color: var(--fg-muted); }
.pre-row__act { font-weight: 600; font-size: 0.9375rem; padding: 12px 4px; color: var(--link); }

/* The red band, and its navy twin. */
.promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-hero);
  background: var(--bg);
  color: var(--fg);
}
.promo__mark {
  position: absolute;
  right: 24px;
  bottom: -60px;
  width: 260px;
  opacity: 0.12;
  pointer-events: none;
}
.promo__words { position: relative; display: flex; flex-direction: column; gap: 14px; }
.promo__title { font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.08; }
.promo__body { font-size: 1.0625rem; line-height: 1.55; color: var(--fg-muted); }
.promo .actions { position: relative; justify-content: flex-end; }
.promo--slim { padding: 32px; border-radius: var(--radius-panel); gap: 20px; }
.promo--slim .promo__title { font-size: 1.5rem; }
@media (max-width: 46rem) {
  .promo { padding: 24px; border-radius: var(--radius-card); gap: 16px; }
  .promo__title { font-size: 1.625rem; }
  .promo__body { font-size: 0.9375rem; }
  .promo .actions { justify-content: flex-start; }
  .promo .actions .btn { flex: 1 1 100%; }
  .promo__mark { width: 160px; bottom: -40px; }
}

/* Can't find your game? A heading beside a two-field form. */
.quick-request {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 48px;
}
.quick-request__words { display: flex; flex-direction: column; gap: 14px; }
.quick-request__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.quick-request__form .field { flex: 1 1 220px; }
.quick-request__form .field input { background: var(--card); }
@media (max-width: 46rem) {
  .quick-request__form .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   The shop
   --------------------------------------------------------------------------- */
.shop-search { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.shop-search label { font-size: 0.875rem; font-weight: 600; color: var(--fg-soft); }
.shop-search__row { position: relative; }
.shop-search input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--navy-line-3);
  background: var(--navy-raised);
  color: var(--cream);
  font: 400 1rem var(--font-body);
}
.shop-search input::placeholder { color: var(--fg-faint); }

.shop-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.shop-rail {
  flex: 1 1 240px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.shop-results {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1.5px solid var(--line-strong);
  color: var(--fg);
  font: 600 0.875rem var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.tab:hover { border-color: var(--fg); color: var(--fg); }
.tab[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.tab--filters { display: none; gap: 6px; background: var(--card); }

.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort__label { font-size: 0.875rem; font-weight: 600; }
.shop-sort select {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--card);
  padding-left: 12px;
  color: var(--fg);
  font: 400 0.9375rem var(--font-body);
}
.shop-sort__go { min-height: 44px; }
.shop-note { font-size: 0.9375rem; color: var(--fg-muted); }
.shop-empty { font-size: 1.0625rem; color: var(--fg-soft); }

/* The navy card under the filters. */
.ask-card {
  display: flex;
  background: var(--bg);
  color: var(--fg);
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
}
.ask-card__title { font: 700 1rem/1.3 var(--font-display); letter-spacing: 0; }
.ask-card__body { font-size: 0.875rem; line-height: 1.5; color: var(--fg-muted); }
.ask-card a { font-weight: 700; font-size: 0.875rem; }

/* The filter form, restyled from the carried-over block: no box, the
   handoff's group headings, rounded selects. */
.filters--rail {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}
/* The rail's own title says what the aside's label already says, and the
   design draws the groups straight under one another. */
.filters--rail .filters__title { display: none; }
.filters__label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.filters select,
.filters input[type="search"] {
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--card);
  color: var(--fg);
}
.filters .btn { border-radius: 22px; }
.filter-chip {
  border-radius: 999px;
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--fg);
}
.cat-nav__link { border-radius: 10px; color: var(--fg); }
.cat-nav__link[aria-current="page"] { background: var(--fg); color: var(--bg); }
.cat-nav__link[aria-current="page"] .cat-nav__count { color: inherit; }

@media (max-width: 60rem) {
  /* The shelf first and the filters after it, with the Filters tab as the
     way down: somebody who came to look at games should see games. */
  .shop-layout { flex-direction: column; gap: 32px; }
  .shop-rail { order: 2; max-width: none; width: 100%; }
  .shop-results { order: 1; flex-basis: auto; width: 100%; }
  .tab--filters { display: inline-flex; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
@media (max-width: 46rem) {
  .shop-bar { gap: 12px; }
  .shop-sort { width: 100%; }
  .shop-sort select { flex: 1; }
}

/* ---------------------------------------------------------------------------
   A game's page

   The navy top carries the decision: the photographs on the left, and on the
   right the badges, the name, the price, three facts, a line about the game,
   the quantity and Add. Below it, on the cream, why the shop likes it, what is
   in the box, a way to play it first, the shop's own write-up and the related
   games. On a phone a bar with the price and Add holds at the foot of the
   screen.
   --------------------------------------------------------------------------- */
.product-top { background: var(--bg); padding-block: 28px 72px; }
.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 48px;
  align-items: start;
}
.product__gallery { display: flex; flex-direction: column; gap: 12px; }
.product__stage { position: relative; }
.product__stage .photo { --photo-ratio: 1 / 1; border-radius: var(--radius-hero); }
/* The stage shows the picture whole rather than cropping it, at the client's
   word on 2026-09-03: a tall box or a wide board keeps its edges. */
.product__stage .photo img { object-fit: contain; object-position: 50% 50%; }
.product__stage .photo:has(img) { background: var(--navy-raised-2); }
.product__shot-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.product__shot-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgb(2 5 12 / 0.78);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
}
.product__stage .photo__credit { top: 14px; bottom: auto; left: 14px; }
.product__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow-x: auto;
  padding: 0;
  list-style: none;
  scrollbar-width: thin;
}
.product__thumb { display: block; border-radius: 14px; border: 2px solid transparent; opacity: 0.72; }
.product__thumb .photo { border-radius: 12px; }
.product__thumb:hover,
.product__thumb:focus-visible { opacity: 1; }
.product__thumb[aria-current="true"] { border-color: var(--red); opacity: 1; }

.product__info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.product__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.product__heading { display: flex; flex-direction: column; gap: 10px; }
.product__title { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.025em; }
.product__byline { color: var(--fg-faint); font-size: 0.9375rem; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.product__now { font: 700 1.875rem/1.1 var(--font-display); }
.product__now--sale { color: var(--sale-ink); }
.product__was { color: var(--fg-muted); font-size: 0.9375rem; }

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.spec > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--card-line);
  background: var(--card);
}
.spec dt { font-size: 0.8125rem; color: var(--fg-faint); }
.spec dd { margin: 0; font: 700 1.25rem/1.2 var(--font-display); }
.spec__complexity { display: flex; align-items: center; gap: 8px; }
.spec__meter { display: inline-flex; gap: 3px; }
.spec__cell { width: 8px; height: 14px; border-radius: 2px; background: var(--navy-line-3); }
.spec__cell--on { background: var(--red-soft); }
.spec__weight { font-size: 1rem; }

.product__blurb { font-size: 1.125rem; line-height: 1.6; color: var(--fg-muted); }

.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.buy__qty {
  width: 92px;
  height: 56px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--navy-line-3);
  background: var(--navy-raised);
  color: var(--cream);
  font: 700 1.125rem var(--font-body);
  text-align: center;
}
.buy__go { flex: 1 1 220px; }
.buy__note { font-size: 0.9375rem; line-height: 1.55; color: var(--fg-muted); }
.buy__after { margin-top: 12px; }
.buy__status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.buy__status--ok { color: var(--ok-ink); }
.buy__status--out { color: var(--sale-ink); }
.buy__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--card-line);
  list-style: none;
  font-size: 0.9375rem;
  color: var(--fg-soft);
}
.facts-list li { display: flex; gap: 12px; align-items: center; }
.facts-list svg { flex-shrink: 0; color: var(--link); }
.product__credits { display: grid; gap: 6px; font-size: 0.875rem; color: var(--fg-faint); }
.product__credits div { display: flex; gap: 8px; }
.product__credits dt { min-width: 5.5rem; }
.product__credits dd { margin: 0; color: var(--fg-soft); }

.product-story { display: flex; flex-direction: column; gap: 16px; }
.product-story__title { font-size: 1.5rem; }
.product-story__title + * { margin-top: -4px; }
/* Also the bullet list on /events/game-nights. */
.product-story__list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; font-size: 1rem; line-height: 1.5; color: var(--fg-soft); }

.prose-cols { display: grid; gap: 24px 48px; }
@media (min-width: 60rem) {
  .prose-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.prose-cols__head { display: flex; flex-direction: column; gap: 10px; }
.prose-cols__body { display: flex; flex-direction: column; gap: 16px; font-size: 1.0625rem; line-height: 1.7; color: var(--fg-soft); max-width: 62ch; }

/* The bar at the foot of a phone, with the price and Add. */
.buybar { display: none; }
@media (max-width: 46rem) {
  .product-top { padding-block: 12px 32px; }
  .product { gap: 16px; }
  .product__stage .photo { border-radius: var(--radius-card); }
  .product__thumbs { gap: 8px; grid-auto-columns: calc((100% - 24px) / 4); }
  .product__thumb .photo { border-radius: 10px; }
  .product__info { gap: 16px; }
  .product__title { font-size: 2rem; line-height: 1.08; }
  .spec { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec > div { padding: 12px; border-radius: 14px; }
  .spec > div:nth-child(4) { grid-column: 1 / -1; }
  .spec dd { font-size: 1.0625rem; }
  .product__blurb { font-size: 1rem; }
  .facts-list { padding: 16px; gap: 10px; font-size: 0.875rem; }

  .buybar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--navy);
    color: var(--cream);
    border-top: 1px solid var(--navy-line);
  }
  .buybar__price { display: flex; flex-direction: column; }
  .buybar__label { font-size: 0.75rem; color: var(--fg-faint); }
  .buybar__now { font: 800 1.25rem/1.1 var(--font-display); }
  .buybar form { flex: 1; }
  .buybar .btn { width: 100%; }
}

/* The rating band at the foot of a game's page. */
.ratings {
  display: grid;
  gap: 24px 48px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: var(--card);
}
@media (min-width: 60rem) {
  .ratings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.ratings__say { display: flex; flex-direction: column; gap: 8px; }
.ratings__title { font-size: 1.5rem; }
.ratings__note { color: var(--fg-muted); font-size: 0.9375rem; max-width: 42ch; }

/* ---------------------------------------------------------------------------
   Basket
   --------------------------------------------------------------------------- */
.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.page-title { font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.page-title-row a { font-weight: 600; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
}
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__side { flex: 1 1 320px; max-width: 420px; }
@media (max-width: 60rem) {
  .split__side { max-width: none; width: 100%; }
}

.meter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9375rem;
}
.meter__bar { height: 8px; border-radius: 4px; background: var(--navy-line); overflow: hidden; }
.meter__fill { height: 8px; border-radius: 4px; background: var(--red); }

.notice {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--card-line);
  background: var(--card);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.notice--warn { border-color: var(--red-deep); }

.cart-lines { display: flex; flex-direction: column; gap: 16px; padding: 0; list-style: none; }
.cart-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--card);
  scroll-margin-block-start: 24px;
}
.cart-line__shot { width: 120px; flex-shrink: 0; }
.cart-line__shot .photo { --photo-ratio: 1 / 1; }
.cart-line__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line__title { font-size: 1.1875rem; font-weight: 700; }
.cart-line__title a { color: var(--fg); text-decoration: none; }
.cart-line__title a:hover { text-decoration: underline; }
.cart-line__meta { font-size: 0.875rem; color: var(--fg-muted); }
.cart-line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line__price { font: 700 1.25rem/1.2 var(--font-display); }
.cart-line .badge { align-self: flex-start; }
.cart-line__remove .btn { min-height: 44px; border-radius: 12px; border-width: 1.5px; }

.cart-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.cart-qty input {
  width: 76px;
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  font-weight: 600;
}
.cart-qty__save { min-height: 44px; border-radius: 12px; border-width: 1.5px; }
/* With no script nothing can watch the number change, so while the field is
   being edited the form says what makes the change stick. visibility rather
   than display, so the row does not grow when it appears. */
.cart-qty__hint { flex-basis: 100%; font-size: 0.8125rem; color: var(--fg-muted); visibility: hidden; }
.cart-qty:focus-within .cart-qty__hint { visibility: visible; }
.cart-qty:focus-within .cart-qty__save { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1.5px dashed var(--line-strong);
  text-align: center;
}
.empty-box__title { font: 700 1.375rem/1.3 var(--font-display); }

/* The navy summary card beside the basket and the checkout form. */
.summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--fg);
}
.summary__title { font-size: 1.375rem; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; color: var(--fg-soft); }
.summary__row--minus { color: var(--ok-ink); }
.summary__row > :last-child,
.summary__total > :last-child { white-space: nowrap; }
.summary__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-line);
  font: 800 1.375rem/1.2 var(--font-display);
}
.summary__box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--card-line);
  background: var(--card);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
.summary__more { align-self: center; font-weight: 600; font-size: 0.9375rem; padding: 8px; }
.summary__small { font-size: 0.8125rem; line-height: 1.5; color: var(--fg-faint); text-align: center; }
.summary__lines { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.summary__line { display: flex; gap: 12px; align-items: center; }
.summary__line .photo { --photo-ratio: 1 / 1; width: 56px; flex-shrink: 0; border-radius: 10px; }
.summary__line-name { flex: 1; font-size: 0.9375rem; min-width: 0; }
.summary__line-qty { color: var(--fg-faint); }
.summary__line-price { font-weight: 600; }
.summary__sum { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--card-line); }

@media (max-width: 46rem) {
  .page-title-row { margin-bottom: 20px; }
  .cart-line { gap: 12px; padding: 10px; border-radius: 16px; }
  .cart-line__shot { width: 64px; }
  .cart-line__shot .photo { border-radius: 10px; }
  .cart-line__title { font-size: 0.9375rem; }
  .cart-line__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .summary { padding: 20px; border-radius: 18px; }
}

/* ---------------------------------------------------------------------------
   Checkout
   --------------------------------------------------------------------------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.steps li { display: flex; align-items: center; gap: 8px; }
.steps__rule { width: 40px; height: 2px; background: var(--line-strong); align-self: center; }
.steps__dot {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps__done .steps__dot { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.steps [aria-current="step"] { color: var(--fg); }
.steps [aria-current="step"] .steps__dot { background: var(--red); border-color: var(--red); color: #fff; }
.steps a { color: inherit; }

.form-stack { display: flex; flex-direction: column; gap: 28px; }
.form-intro { display: flex; flex-direction: column; gap: 8px; }
.form-intro p { font-size: 1.0625rem; color: var(--fg-soft); }
.panel-set {
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--card);
  min-width: 0;
}
/* Floated, so it is an ordinary block inside the panel's padding rather than
   the browser's own legend straddling the top edge. */
.panel-set > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 16px;
  font: 700 1.125rem/1.3 var(--font-display);
}
.panel-set__grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.panel-set__wide { grid-column: 1 / -1; }
.panel-set__note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--fg-muted); }
.option {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}
.option:has(input:checked) { border: 2px solid var(--navy); }
.option input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.option__words { display: flex; flex-direction: column; gap: 2px; }
.option__head { font-weight: 700; }
.option__note { font-size: 0.875rem; color: var(--fg-muted); }
@media (max-width: 46rem) {
  .panel-set { padding: 18px; gap: 14px; border-radius: 18px; }
  .steps { margin-bottom: 20px; }
  .steps__rule { width: 20px; }
}

/* ---------------------------------------------------------------------------
   Events
   --------------------------------------------------------------------------- */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.event-card {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--card);
}
.event-card__date {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  border-radius: 16px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
}
.event-card__month { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red-soft); text-transform: uppercase; }
.event-card__day { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.event-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.event-card__title { font-size: 1.25rem; font-weight: 700; }
.event-card__title a { color: var(--fg); text-decoration: none; }
.event-card__title a:hover { text-decoration: underline; }
.event-card__detail { font-size: 0.9375rem; color: var(--fg-muted); }
.event-card__act { align-self: flex-start; font-weight: 700; padding: 8px 0; }
.event-card__note { font-size: 0.875rem; font-weight: 600; color: var(--fg-soft); }
.event-card__note--accent { color: var(--sale-ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.gallery-grid .photo { border-radius: 16px; }
.gallery-grid__cap { margin-top: 6px; font-size: 0.875rem; color: var(--fg-muted); }
.section__foot { margin-top: 24px; font-weight: 700; }
.events-next { padding-bottom: 56px; }
@media (max-width: 46rem) {
  .event-card { gap: 14px; padding: 16px; }
  .event-card__date { width: 60px; padding: 10px 0; }
  .event-card__day { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* One event's page: the poster and the words, with the RSVP card beside them. */
.event-page { background: var(--bg); padding-block: 28px 64px; }
.event-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.event-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.event-layout__main > .photo { --photo-ratio: 16 / 9; border-radius: var(--radius-hero); }
.event-layout__side { flex: 1 1 340px; max-width: 420px; }
.event-head { display: flex; flex-direction: column; gap: 12px; }
.event-head__title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.event-head__text { font-size: 1.125rem; line-height: 1.6; color: var(--fg-muted); }
.tiles-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.tile-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--card-line);
  background: var(--card);
}
.tile-fact__label { font-size: 0.8125rem; color: var(--fg-faint); }
.tile-fact__value { font-weight: 700; line-height: 1.45; }
.box-outline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--card-line);
}
.box-outline__title { font-size: 1.375rem; }
.box-outline ul,
.box-outline ol { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; font-size: 1rem; line-height: 1.5; color: var(--fg-soft); }

.rsvp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--fg);
}
.rsvp__title { font-size: 1.625rem; }
.rsvp__seats { font-size: 0.9375rem; color: var(--fg-soft); }
.rsvp__steps { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; color: var(--fg-soft); }
.rsvp__small { font-size: 0.8125rem; color: var(--fg-muted); }
.rsvp .btn { width: 100%; }
@media (max-width: 60rem) {
  .event-layout__side { max-width: none; width: 100%; }
}
@media (max-width: 46rem) {
  .event-page { padding-block: 12px 32px; }
  .event-layout__main > .photo { border-radius: var(--radius-card); }
  .rsvp { padding: 20px; }
}

/* ---------------------------------------------------------------------------
   About, FAQ, Request
   --------------------------------------------------------------------------- */
.story-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px;
  align-items: center;
  padding-block: 56px 64px;
}
/* Words only since the placeholder photo went (2026-11-10), so they take the
   same centred 820px column as the story below them rather than a left half.
   The one page kept in a centred column, at the client's word (2026-11-25). */
.story-hero__words { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 820px; margin-inline: auto; }
.story-hero__title { font-size: clamp(2.625rem, 5.5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.story-hero__lede { font-size: 1.1875rem; line-height: 1.6; color: var(--fg-muted); }
@media (max-width: 46rem) {
  .story-hero { gap: 24px; padding-block: 28px 32px; }
}

.reading { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
/* The same block filling the shell, for a page other than /about. */
.reading--full { max-width: none; margin-inline: 0; }
.reading p { font-size: 1.125rem; line-height: 1.7; color: var(--fg-soft); }
/* The name under a story told in the first person, on /about. */
.reading .reading__sign { font-weight: 700; color: var(--fg); }

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.value-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--card);
}
.value-card svg { color: var(--red); }
.value-card__title { font-size: 1.25rem; font-weight: 700; }
.value-card__body { font-size: 1rem; line-height: 1.55; color: var(--fg-soft); }

/* The privacy policy (/privacy). It starts on the shell's left edge like every
   page, and keeps a reading measure rather than a 1280px line. */
.policy { display: flex; flex-direction: column; gap: 40px; max-width: 46rem; }
.policy__part { display: flex; flex-direction: column; gap: 14px; }
.policy__part h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
.policy__part p,
.policy__part li { font-size: 1.0625rem; line-height: 1.7; color: var(--fg-soft); }
.policy__part strong { color: var(--fg); }
.policy__part ul { display: flex; flex-direction: column; gap: 10px; padding-left: 1.25rem; }
.policy__part code { font-size: 0.95em; }
.policy__updated { font-size: 0.9375rem; color: var(--fg-muted) !important; }

.faq-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.faq-topics { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.faq-topics a {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.faq-topics a:hover { text-decoration: underline; }
.faq-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.faq-group { display: flex; flex-direction: column; gap: 12px; scroll-margin-block-start: 24px; }
.faq-group__title { font-size: 1.625rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.qa { border-radius: 18px; background: var(--card); overflow: hidden; }
.qa__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ""; }
.qa__sign { color: var(--red); font-size: 1.375rem; line-height: 1; flex-shrink: 0; }
.qa__sign::before { content: "+"; }
.qa[open] .qa__sign::before { content: "\2212"; }
.qa__a { padding: 0 20px 20px; font-size: 1rem; line-height: 1.6; color: var(--fg-soft); }
.qa__a p + p { margin-top: 10px; }
@media (max-width: 60rem) {
  .faq-topics { max-width: none; flex-direction: row; flex-wrap: wrap; }
}

.form-card { padding: 32px; border-radius: var(--radius-panel); background: var(--card); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.form-grid__wide { grid-column: 1 / -1; }
.how { display: flex; flex-direction: column; gap: 16px; }
.how__title { font-size: 1.375rem; }
.how__steps { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; }
.how__steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.5; color: var(--fg-soft); }
.how__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
@media (max-width: 46rem) {
  .form-card { padding: 20px; border-radius: 18px; }
}

/* ---------------------------------------------------------------------------
   The confirmation page after an order
   --------------------------------------------------------------------------- */
.done-head {
  padding-block: 72px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.done-head__mark { width: 120px; }
.done-head__title { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; }
.done-head__lede { font-size: 1.1875rem; line-height: 1.55; color: var(--fg-muted); max-width: 600px; }
.done-body { padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.done-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--card-line);
  background: var(--card);
}
.done-card__col { display: flex; flex-direction: column; gap: 6px; }
.done-card__label { font-size: 0.8125rem; color: var(--fg-faint); }
.done-card__value { font-weight: 600; line-height: 1.5; }
.done-card__due { font: 800 1.5rem/1.2 var(--font-display); }
.done-card__small { font-size: 0.875rem; color: var(--fg-faint); }
.done-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.done-back { text-align: center; font-weight: 600; }
.field__error { font-size: 0.875rem; font-weight: 600; color: var(--sale-ink); }
.field--invalid input,
.field--invalid textarea,
.field--invalid select { border-color: var(--red-deep); }
.done-next { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius-panel); border: 1px solid var(--card-line); }
.done-next__title { font-size: 1.25rem; }
.done-next ol { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; font-size: 1rem; line-height: 1.5; color: var(--fg-soft); }
.done-next__small { font-size: 0.9375rem; color: var(--fg-muted); }
@media (max-width: 46rem) {
  .done-head { padding-block: 48px 32px; gap: 16px; }
  .done-head__mark { width: 96px; }
  .done-head__title { font-size: 2.125rem; }
  .done-head__lede { font-size: 1rem; }
  .done-card, .done-next { padding: 20px; }
}

/* ---------------------------------------------------------------------------
   Footer

   The stacked logo, three groups and the shop's contacts, then the delivery
   terms and the copyright.

   Drawn on a phone again since 2026-11-25, at the client's word. The design
   left it off and the menu was meant to carry its links, but About, FAQ,
   Pre-orders, the two event pages and the email address had no other way in
   on a phone. There it is the logo across the top and the four groups two by
   two, so it is not a single column of links a screen long.
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: var(--fg-muted);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.site-footer__inner { padding-block: 48px 28px; display: flex; flex-direction: column; gap: 36px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}
.site-footer__intro { display: flex; flex-direction: column; gap: 12px; }
/* Where the shop is and how it delivers, one sentence under the logo. */
.site-footer__about { line-height: 1.6; }
/* From 75rem the logo column sits beside the groups and takes a double share,
   so the sentence is three rows rather than a narrow ribbon. Below that it is
   a row of its own above them: any extra share between 62 and 75rem leaves a
   group narrower than "boardgamenepal.com" (about 140px), which then splits
   mid-word in Talk to us. Measured at 1000px with 1.5fr and with 2fr. */
@media (min-width: 75rem) {
  /* The last column, Talk to us, is as wide as the email address, which
     never breaks; at an equal share it ran past the footer's edge. */
  .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) max-content; }
}
@media (max-width: 75rem) {
  .site-footer__intro { grid-column: 1 / -1; }
}
/* The masthead's own horizontal logo at the masthead's own size, since
   2026-11-25 at the client's word (it was the stacked lockup at 170px). */
.site-footer__logo { height: 50px; width: auto; }
.site-footer__heading {
  margin-bottom: 10px;
  color: var(--fg);
  font: 700 0.9375rem/1.3 var(--font-display);
  letter-spacing: 0;
}
.site-footer__list { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; overflow-wrap: anywhere; }
.site-footer__list a { color: var(--fg-muted); text-decoration: none; }
.site-footer__list a:hover { color: var(--fg); text-decoration: underline; }
/* The email address stays on one line at the client's word (2026-11-25): it
   used to break after its @. On a phone the column holding it sizes to it
   (see the phone rule), and from 75rem the groups' columns are wide enough. */
.site-footer__mail { white-space: nowrap; }
/* The bottom row: the copyright, "Made by Aurora Studios" and the privacy
   policy. Three columns of 1fr, auto and 1fr, so the credit sits at the true
   centre of the row however wide the two ends are. */
.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "copy credit privacy";
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-faint);
}
.site-footer__copy { grid-area: copy; }
.site-footer__privacy { grid-area: privacy; justify-self: end; }
.site-footer__credit { grid-area: credit; }
/* The links in the row take its own muted colour, so they read as small
   print rather than calls. */
.site-footer__legal a { color: var(--fg-muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--fg); text-decoration: underline; }
/* "Aurora Studios" is underlined at rest, at the client's word: it is the one
   link in a sentence, and the line is what says it can be pressed. */
.site-footer__legal .site-footer__credit a { text-decoration: underline; }
@media (max-width: 46rem) {
  .site-footer__inner { padding-block: 36px 24px; gap: 28px; }
  /* The right column is as wide as the email address, its one line that may
     not break, and the left takes the rest. min-content rather than
     max-content: at max-content "Instagram @boardgamenepal" set it to 205px
     and left the other column 66px on a 320px phone. */
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) min-content; gap: 28px 16px; }
  .site-footer__intro { grid-column: 1 / -1; }
  .site-footer__logo { height: 36px; }
  /* Three do not fit one 343px line: the copyright and the privacy policy
     share the first, and the credit is centred under them. */
  .site-footer__legal {
    grid-template-columns: 1fr auto;
    grid-template-areas: "copy privacy" "credit credit";
  }
  .site-footer__credit { justify-self: center; }
}

/* ---------------------------------------------------------------------------
   Carried-over blocks, adjusted for the new grounds
   --------------------------------------------------------------------------- */
/* The corner popup after an add: a navy card on any ground. */
.added__inner {
  border-radius: 18px;
  background: var(--navy-raised);
  color: var(--cream);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--red);
}
.added__inner .btn { border-color: var(--navy-line-3); color: var(--cream); }
.added__inner .btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.added__tally,
.added__nudge,
.added__stock,
.added__reason { color: #c4c5bd; }

/* The site's chip, which the blog and the receipts still render: the
   handoff's badge shape in the three fills the old sheet had. */
.card-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-flag--blog,
.card-flag--sale,
.card-flag--oos { background: var(--red); color: #fff; }

/* The blog, rounded to the new cards. */
.blog-lead { border-radius: var(--radius-hero); overflow: hidden; }
.blog-row__shot .photo { border-radius: 12px; }
.post-card { border-radius: var(--radius-card); overflow: hidden; border: 0; background: var(--card); }
.post-card .photo { border-radius: 0; }
.founders__arrow { border-color: var(--line-strong); }

/* The receipt card, on the cream. */
.receipt { border-radius: var(--radius-panel); background: var(--card); border-color: var(--card-line); }

/* Cards with a gap between them now, rather than hairlines drawn by the
   ground showing through the gaps. */
.link-grid { gap: 16px; background: transparent; border: 0; }
.link-card { border-radius: 18px; background: var(--card); }
.link-grid + .hero__actions,
.link-grid + .actions { margin-top: 24px; }
.tile a { border-radius: var(--radius-card); overflow: hidden; }
.note { color: var(--fg-muted); }

/* The event rows the game-nights and tournaments pages still render. */
.event { border-radius: var(--radius-card); background: var(--card); }
.event__date { border-radius: 14px; }

@media print {
  .masthead, .menu, .site-footer, .skip-link, .btn, .added, .buybar, .crumb-bar { display: none !important; }
  body, .section, .page-head { background: #fff; color: #000; }
  .photo { display: none; }
  .receipt { border: 0; padding: 0; max-width: none; }
}
