/** Shopify CDN: Minification failed

Line 1858:1 Unexpected "}"

**/
/* ==========================================================================
   WEBFONTS

   Self-hosted from assets/. Relative urls: Shopify flattens every asset into
   one directory, and asset_url does not work inside a static stylesheet.

   Latin and latin-ext only. Other ranges fall through to Helvetica per glyph.
   Adding a locale means adding its subsets here.
   ========================================================================== */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('bungee-400-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: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('bungee-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('niramit-400-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: 'Niramit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('niramit-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Real 500 cut, needed because --fw-medium carries current/selected
   everywhere. Without it the browser synthesizes one. */
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('niramit-500-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: 'Niramit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('niramit-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   DESIGN TOKENS
   Color, type, motion, spacing, hairlines, surfaces, glass, opacity,
   stacking.
   ========================================================================== */

:root {
  /* ---- Palette -----------------------------------------------------------
     The two rgb triplets are the source; the hex tokens derive from them.
     rgb()'s slash syntax is the only way to vary alpha and cannot take a hex. */
  /* Also written as hex in the theme-color meta tag of both layouts, which
     cannot read a custom property. Move one, move both. */
  --ground-rgb: 155 46 42;
  --ground-deep-rgb: 127 36 34;
  --deepest-rgb: 42 15 14;

  --color-ground: rgb(var(--ground-rgb));
  --color-ground-deep: rgb(var(--ground-deep-rgb));
  /* Also written as hex in the select-chevron data URI, which cannot read a
     custom property: --color-ink in .input-select. Move one, move both. */
  --color-ink: #fbf6ef;
  --color-ink-dim: #f4d9d5;
  --color-ink-faint: #e0a49d;

  --color-on-ink: #8e2723;
  --color-pink: #f4c4bd;
  --color-selection: #e8a39c;
  --color-error: #ffd9d4;
  --color-error-bg: #b8433c;
  --color-overlay: rgb(var(--deepest-rgb) / 0.62);

  /* The feColorMatrix flattens the turbulence to black and keeps only the alpha
     the transfer function cut. It is what lets the page grain composite
     normally instead of through mix-blend-mode: multiply, which on a fixed
     full-viewport layer forces the browser to re-blend the whole viewport on
     every scroll.

     --grain-over carries the darkening the blend mode used to do, and 0.086 is
     not a taste value: multiply laid a speckle of measured brightness 0.73 over
     the backdrop at 0.32, which comes to backdrop x (1 - 0.32 x 0.27), and a
     black speckle reaches the same result at 1 - 0.086. Change the speckle
     color in either filter and this number has to be derived again.

     --grain-glass below keeps its turbulence color: it is drawn with
     background-blend-mode inside a single element's own background, which is a
     local composite and costs nothing per frame. */
  --grain-coarse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --grain-over: 0.086;

  /* Each tile's size, which background-size has to restate because the width
     and height inside the data URIs above are part of the URI and cannot read a
     variable. Change a baseFrequency tile and both halves move: this token, and
     the number written into its own URI. --grain-glass is the only one drawn
     twice, on the page frame and on the stage arrow. */
  --grain-tile-coarse: 180px;
  --grain-tile-fine: 120px;
  --grain-tile-glass: 90px;

  --grain-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0.35 0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* --font-display reaches one role, .t-display. Bungee has only a 400 weight,
     so it cannot carry --fw-medium: pointing .t-title or .t-heading at it gets
     a synthesized bold, which smears a face this heavy. */
  --font-display: 'Bungee', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: 'Niramit', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Fluid only where the size is large enough for viewport width to matter;
     fixed below that so UI stays predictable. */
  --fs-display: clamp(28px, 1.6vw + 20px, 40px);
  --fs-title: clamp(20px, 0.5vw + 18px, 24px);
  --fs-heading: 18px;
  --fs-body: 15px;
  --fs-meta: 13px;

  /* The header wordmark only. Bungee sets wider and heavier than Niramit at
     the same size, so it needs its own step to sit level with the nav. */
  --fs-brand: 16px;

  /* The landing wordmark only, the one piece of type on the site set past the
     display step: with no header bar above it, it is the top of the page.

     Steeper than --fs-display and floored higher, because that clamp bottoms out
     at 28px under 768px, which left the name smaller than the 44px buttons under
     it. 72px is the ceiling --measure-wide allows before the three words take a
     second line. */
  --fs-poster: clamp(34px, 9vw, 72px);

  /* Not a scale step. iOS zooms the viewport on a focused input under 16px, so
     every text input floors here on small screens. */
  --fs-input-min: 16px;

  /* Niramit is a Thai family: 1.13em ascent against 0.2em descent, headroom for
     vowel marks. Centering a line box centers that lopsided em box, leaving a
     Latin cap 0.117em below the geometric middle, where
     0.117 = (ascent - descent) / 2 - cap-height / 2.

     Half a pixel at meta size, ~1.75px at body size. Only visible where one
     short line sits alone in a tall box, currently the password field. Spend it
     as padding-bottom of twice the value: shrinking the content box from below
     raises centerd content by half the padding.

     Re-derive if the body face changes. Canvas measureText gives
     fontBoundingBoxAscent/Descent, and actualBoundingBoxAscent for 'H'. */
  --type-optical-lift: 0.117em;

  /* The same lopsided em box seen from below. Niramit's ink runs to 0.233em
     under the baseline, past its own 0.2em declared descent, so the glyph box
     is 1.3em against a --lh-tight line box of 1.2em and the tails of g, y, p
     and j fall 0.083em outside it. Harmless until something clips: an element
     that is both tight-leaded and `overflow: hidden` slices them off.

     Spend it as padding-bottom against an equal negative margin-bottom, so the
     clip box grows without moving anything. Safe above --lh-tight; --lh-body
     and --lh-meta both clear the glyph box on their own.

     Re-derive if the body face changes: canvas measureText gives
     fontBoundingBoxAscent/Descent and actualBoundingBoxDescent for 'gypjq'. */
  --type-descender-room: 0.09em;

  --fw-regular: 400;
  --fw-medium: 500;

  /* Leading is a function of size, not of component. */
  --lh-display: 1.05;
  --lh-tight: 1.2;
  --lh-body: 1.55;
  --lh-meta: 1.45;
  --lh-flat: 1;

  /* Large tightens, small opens up. --ls-display is the exception at 0: Bungee
     is a signage face drawn at its own fit, and the -0.025em that suited
     Helvetica at 40px closes its counters up. */
  --ls-display: 0;
  --ls-title: -0.015em;
  --ls-heading: -0.01em;
  --ls-body: 0;
  --ls-meta: 0.005em;
  --ls-caps: 0.06em;

  /* ---- Motion ------------------------------------------------------------
     --ease is deliberately the plain keyword: it exists so the curve can be
     changed in one place, not to change it today. */
  --dur-fast: 0.15s;
  --dur-slow: 0.3s;
  --ease: ease;


  /* ---- Spacing -----------------------------------------------------------
     One scale. --gap-region is the only semantic name, because it is the only
     responsive one (48 -> 32). */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;

  --gap-region: var(--space-48);

  /* The step under a display title, which is two jobs and not one. A one-line
     subtitle belongs to its title and sits close enough to read as one block; a
     body block is the next thing, and takes the wider step. Both were being
     decided per section, which is how About came to set a paragraph at the
     subtitle step while FAQ set its list at the body step and each comment
     claimed to be "the step under the heading". */
  --step-subtitle: var(--space-8);
  --step-body: var(--space-24);

  /* ---- Hairlines ---------------------------------------------------------
     Whole border shorthands, so 60-odd keylines are one edit. --rule is
     furniture; --rule-edge is the page mat's own edge. Photographs are ruled
     with --rule like everything else. They had a darker keyline of their own
     once, which read as a black border against a pale panel shot on a white
     ground; the fix was the color, not the line. */
  /* The width is a token because three <a> buttons derive their leading from a
     height token less both hairlines, and hairlines are stated as whole
     shorthands here, which leaves no width to read. Written out, those three
     carried a 2px that meant "the rule, doubled" and said neither. */
  --rule-width: 1px;
  --rule: var(--rule-width) solid var(--color-ink-faint);
  /* The brighter hairline, and the one the landing page rules with. Same weight
     as --rule and a different ink: --color-ink-faint is a dusty pink, so a page
     carrying both reads as two line weights when both are 1px. This is the ink
     .page-frame draws its keyline in and the ink the mosaic's lead is left in,
     so a page ruled with it is ruled with one line throughout.

     Not --rule itself. That is 24 sites across the site, most of them
     typographic rules inside text bands where the faint ink is doing its job.
     Swapping this into --rule is the one edit if the whole site should follow. */
  --rule-lead: var(--rule-width) solid var(--color-ink);
  --rule-edge: 1px solid var(--color-ink);

  /* Not hairlines, and must not track one. The ring is 2px because it has to
     out-shout 60 of them. */
  --focus-ring: 2px solid var(--color-ink);
  --focus-offset: 2px;
  --underline-offset: 2px;

  /* ---- Surfaces ----------------------------------------------------------
     Named depths. page is the ground and every control sitting flush on it;
     raised is cards and bands; well is a recess holding a photo or a field;
     inset is the configurator's field wells. raised and well share a value
     today, kept apart so the next palette change can separate them. */
  --surface-page: var(--color-ground);
  --surface-raised: var(--color-ground-deep);
  --surface-well: var(--color-ground-deep);
  --surface-inset: rgb(var(--deepest-rgb) / 0.28);
  /* The scrim behind the slide counter, which sits on a photograph and cannot
     borrow a fill from it. Deep enough to hold --color-ink at any exposure the
     panels are shot at. Named for the same reason the two alphas above it are:
     an unnamed one reads as a number someone picked. */
  --surface-scrim: rgb(var(--deepest-rgb) / 0.55);

  /* ---- Glass tints -------------------------------------------------------
     Named per surface, not a scale: --tint-glass is a frosted control at rest
     and --tint-glass-hi the same control hovered. Unlike the spacing, blur and
     opacity scales below, an unused tint is dead rather than a gap, so it goes
     when its surface does. --tint-panel and --tint-scrim left with the frosted
     configurator; --tint-solid left with it too, and its -hi partner now
     carries the arrow hover on its own. */
  --tint-frame: 0.18;
  /* The mat when the colour on it was chosen rather than dealt. 0.18 is right
     for a draw nobody asked for and wrong for an answer.

     Set against terracotta, which is the hardest of the ten: it is the ground's
     own hue, so raising the tint moves it very little. Measured as distance
     from the ground, terracotta reaches 7.3 at 0.34 and 9.5 at 0.42, where
     light blue is already at 97, and no value closes that spread because at
     full opacity terracotta is still only 23 from the ground. It is the ground.

     0.42 because the number understates it: the mat also lies over the page
     surface rather than only over the ground, and carries grain and a blur, and
     at the frame's own edge terracotta reads as warmer and lighter while the
     lighter glasses read plainly. Checked by eye at the edge, which is the only
     place this is ever seen. */
  --tint-frame-chosen: 0.42;
  --tint-glass: 0.42;
  --tint-glass-hi: 0.68;
  --tint-solid-hi: 0.86;

  --blur-sm: 2px;
  --blur-md: 7px;
  --blur-lg: 18px;
  --saturate-glass: 1.05;

  /* ---- Opacity ---------------------------------------------------------- */
  --opacity-disabled: 0.4;
  --opacity-faint: 0.3;
  --opacity-recede: 0.5;
  --opacity-soft: 0.75;

  /* ---- Stacking ----------------------------------------------------------
     Overlays come in backdrop/panel pairs, each with its own token, so
     nothing depends on a remembered +1. */
  --z-base: 1;
  --z-raised: 2;
  --z-lifted: 3;
  --z-sticky: 50;
  /* Above the sticky header, below the drawers. The grain is the paper the
     page is printed on; the drawers sit on top of the paper. */
  --z-grain: 60;
  --z-backdrop: 100;
  --z-drawer: 101;
  --z-backdrop-cart: 110;
  --z-drawer-cart: 111;
  /* The frame is inert (pointer-events: none), so the skip link above it stays
     clickable. */
  --z-frame: 9998;
  --z-top: 9999;

  /* ---- Radii ------------------------------------------------------------ */
  /* ONE RADIUS. Every box that is not a badge takes this, at every size, and
     the reset at the top of the sheet is what applies it. The eye reads the
     corner arc rather than the keyline, so any box carrying a different one
     reads as out of line with its neighbors even when they start on the same
     pixel. A --radius-lg of 16px existed for the product stage and the
     configurator; it was retired because those two sit beside a grid of photo
     wells at 8px and the page has to be one object.

     Two exceptions, both downward. The opt-out list further down squares
     full-bleed bands and abutting grid cells off at 0. And --radius-sm is the
     badge corner, for the four boxes small enough that 8px on a 20px swatch is
     a lozenge rather than a rounded square: the color swatch, the card's type
     tag, the media count, and the password field row inside the card's own
     --radius. Nothing between the two, and nothing above --radius. */
  --radius: 8px;
  --radius-sm: 4px;

  /* ---- Page frame --------------------------------------------------------
     The background glasses are channel triplets so snippets/frame-color.liquid
     can roll one into --frame-color with an alpha at load. The storefront's
     copy is snippets/glass-palette.liquid; CSS cannot read Liquid, so that one
     is by hand. Change both.

     --glass-count is what the roll draws against, so the script is not a third
     copy. Adding a glass means adding it here, incrementing the count beside
     it, and adding it to the palette snippet. A count left behind makes the new
     color unreachable rather than breaking anything, which is the quiet way for
     this to go wrong.

     Each glass also has a scan of it, in assets/ as glass-N-800.webp and
     glass-N-1600.webp, and the hero mosaic shows those in place of the flat
     color. scripts/build-glass-scans.py cuts them, and the index in the file
     name is the index here. A new glass needs its two files as well as its
     triplet and the count.

     Nothing sets type on a glass today, so no glass carries a paired ink. The
     measurements are in the README if one ever needs to again: six of the ten
     hold --color-ink and the four pale ones need the deepest instead, and
     periwinkle and lilac read as mid tones while failing against both. */
  --frame-outer: 12px;
  --frame-radius: 12px;
  --frame-bleed: 120px;
  --glass-count: 10;
  --glass-1: 26 26 26;
  --glass-2: 74 50 42;
  --glass-3: 29 61 168;
  --glass-4: 170 196 216;
  --glass-5: 143 154 212;
  --glass-6: 176 23 31;
  --glass-7: 158 201 168;
  --glass-8: 79 101 51;
  --glass-9: 159 147 161;
  --glass-10: 156 68 35;
  --frame-color: var(--glass-8);

  /* ---- Control heights -------------------------------------------------- */
  --control-height: 36px;
  --control-height-sm: 30px;
  --control-height-lg: 40px;
  --control-height-touch: 44px;

  /* A checkbox is drawn by the platform, so it is sized to the --fs-body line it
     labels rather than to a control height. */
  --control-check: 16px;

  /* The quantity field, wide enough for three digits plus the stepper's own
     inset at --fs-meta. */
  --field-qty: 56px;

  /* The play badge on a video thumbnail. Both are glyph sizes and neither is a
     step of any scale: the box is a disc small enough to sit in the corner of an
     88px thumbnail, and the size fills it with U+25BA. */
  --glyph-play: 18px;
  --fs-glyph-play: 9px;

  /* PICTURE / TITLE / PRICE ROWS. The cart and an order history line are the
     same row at two weights: the cart is a page the customer works in, the order
     line a record they read. The cart's thumbnail is bigger for that reason, not
     by accident, and both drop a step where the row loses its third column. */
  --thumb-row: 100px;
  --thumb-row-sm: 80px;
  --thumb-order: 60px;

  /* ---- Swatches ----------------------------------------------------------
     One swatch at two sizes: the product page chip, and the smaller one in the
     dense filter list. */
  --swatch: 20px;
  --swatch-sm: 14px;

  /* ---- Bars and panels -------------------------------------------------- */
  --header-h: 52px;

  /* The hamburger's glyph: the tallest thing that ever stands in a ruled bar,
     and taller than the --lh-meta line every title and link in one sets. It is
     a term of --bar-h, so the SVG in sections/header.liquid is sized from this
     in CSS and its width/height attributes are only the pre-stylesheet
     fallback. */
  --icon-bar: 20px;

  /* THE RULED BARS. The header row and the two drawer heads all end in a
     hairline, and a drawer opens against the header, so all three are held to
     this one height and their rules land on one line. */
  --bar-h: calc(var(--space-32) + var(--icon-bar) + var(--space-16));

  /* One inset on all four sides of the configurator panel. Splitting them left
     the first and last lines nearer the panel edge than the side gutter, so it
     is one token: two names holding one value is the split waiting to reopen. */
  --cfg-pad: var(--space-24);

  /* ---- Measures ----------------------------------------------------------
     Reading widths. --measure is the body column. --measure-narrow feeds both
     the newsletter grid track and its max-width, so they cannot drift. */
  --page-gutter: var(--space-48);
  /* The shop page's filter column. Narrow enough that the grid beside it keeps
     three cards at the widths this theme is read at. */
  --sidebar-w: 200px;

  /* The two sliding panels and the search field's floor. Sizes rather than
     spacing, so they sit with --sidebar-w and --card-min rather than on the
     space scale, and they are named here because a bare 260 in the middle of a
     panel's rule says nothing about which panel it belongs to. */
  --drawer-w: 260px;
  --cart-drawer-w: 360px;
  --search-min-w: 240px;

  /* The floor of every photo-tile track, shop and gallery alike. Both hold the
     same --photo-ratio tile at the same --space-24 gap, so two floors only ever
     put the two pages on different column counts. */
  --card-min: 280px;

  --measure: 560px;
  --measure-wide: 720px;
  --measure-narrow: 380px;

  /* The password card, the theme's one centered column. Its own token rather
     than --measure-narrow: that one is held jointly by the newsletter's grid
     track and its max-width so the pair cannot drift, and a third consumer
     would move this card whenever the newsletter moves.

     The width is what the wordmark needs to hold one line at the top of its
     range. --fs-display is fluid to 40px, reached at a 1250px viewport, where
     the shop's name sets 376px. The box has to carry two --space-32 insets and
     two hairlines on top of that, so 442 is the floor and the rest is headroom,
     because a name that lands within a pixel of the floor wraps on a font
     substitution or a rounding difference.

     Measure again if the name changes. Too narrow does not cost a tidy second
     line, it costs a card that changes shape halfway up the viewport, since the
     name wraps only once the type stops growing. */
  --measure-card: 456px;

  /* ---- Photographs -------------------------------------------------------
     Every panel is shot portrait at 3:4, so every surface that frames one takes
     that ratio: the product stage, its thumbnails, the shop cards, the gallery
     tiles and the cart lines. At 4:5 the cards letterboxed the same way the
     stage used to. The photo library decides this, not the layout; re-measure
     before changing it. */
  --photo-ratio: 3 / 4;

  /* Loose photos. Width only; height comes from each image's own ratio. The
     pile is 1.95 of this, the two prints less their 0.05 overlap, and the
     About page's breakpoint is derived from that width. */
  --photo-w: 220px;
}

@media (max-width: 768px) {
  :root {
    --page-gutter: var(--space-32);
    --gap-region: var(--space-32);
    --frame-outer: 10px;

    /* 40vw, not a fixed width: the pile is 1.95 prints wide, so 0.78vw, and
       it clears the two 32px gutters on anything down to a 291px window. */
    --photo-w: min(180px, 40vw);
  }
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
/* The left rail, applied in one place. .header-row, .cart-page and
   .customer-page are section roots that cannot nest a .container without
   changing their box, so they join the list instead of restating the gutter.

   THE MAT. .page-frame draws its keyline --frame-outer inside the window, and
   that keyline is what the eye reads as the page's edge, so every horizontal
   inset is really --page-gutter - --frame-outer: 36px here, 22px under 768.
   Both tokens move together at the breakpoint, which is what keeps the mat even
   at either width.

   Vertical space falls into three cases, and only the first two need thinking
   about. Anything new should be checked against them.

   1. MEASURED FROM THE WINDOW, at an edge the frame covers. The frame eats
      --frame-outer of it, so the element either adds that back or balances
      inside itself. Three places do this already, each with its reason beside
      it: --bar-h's asymmetric --space-32 over --space-16 in the header, the
      footer's --space-16 over --space-32, and padding-inline-end on .drawer and
      .cart-drawer, which lists the four contents that were a frame short of the
      edge that shows.

   2. MEASURED FROM AN INTERIOR RULE, and set beside the side inset where the
      eye compares the two. The frame eats nothing here, so nothing is added
      back: the gap simply has to equal what the side reads, which is
      calc(var(--page-gutter) - var(--frame-outer)). .gallery-grid's block start
      is the one of these. It sat at --gap-region and read 12px looser than its
      own left side.

   3. NEITHER compared with an inset nor at an edge the frame covers, which is
      most of the site. --gap-region and the spacing scale, untouched.

   The mat itself applies where the ground is exposed, which is the left and
   right only. */
.container,
.header-row,
.cart-page,
.customer-page {
  padding-inline: var(--page-gutter);
}

.container {
  width: 100%;
}

.container--measure > *,
.customer-page > * {
  max-width: var(--measure);
}

/* SECTION RHYTHM. The gap between sections is --gap-region. Which property
   carries it depends on whether the section has a ground of its own:

   - No ground: margin-block. Margins collapse, so neighbors share one gap.
   - Its own ground or keyline: padding-block, because that space is what gives
     the band its height. The next section's margin then clears the band's edge,
     so the visible distance after a filled band is two regions, not one.
   - Page roots (.cart-page, .customer-page) and .pagination use padding,
     having nothing above them to collapse against.

   Check which case applies before converting one to the other. */

/* SHADED BANDS. Every strip of the site that reads as its own surface is filled
   with the page's deep red, cut to a depth theme.js rolls per band on load, so
   no two loads stack the same. One material at varying thickness, never a set
   of colors: the fill is always --ground-deep-rgb and only the brightness
   moves, which is what keeps a randomised page coherent.

   The fill is a pseudo-element and not a background, because brightness has to
   apply to the surface alone. Set on the band itself, the filter would take the
   type with it, and a band cut deep would take its text down with the ground.

   The class is added by the script rather than written into the markup, so a
   page without JS keeps the flat ground it had before this existed instead of
   painting every band at one depth. */
/* flow-root, or the band's box does not cover its own contents: a first child's
   margin-block-start collapses straight out through a wrapper with no padding
   or border, taking the top of the box down with it and leaving the fill short
   of the rule above. Containing those margins is the same rule the section
   rhythm already states: a band with a ground of its own carries its space
   inside itself rather than as a margin between neighbors.

   Stated on the bands and not on .is-shaded, which the script adds only once
   the page has been parsed. Carried by the class, flow-root changed every
   band's height at the moment the roll landed and moved the page under the
   reader. A band's box has to be the same box whether or not the roll has run,
   so only the fill is allowed to arrive late.

   The list is the one snippets/band-shades.liquid rolls. data-band-none is
   absent on purpose: it decides whether a band is filled, not how it is laid
   out, and a box that changed shape with the opt-out would be the same problem
   in a quieter place.

   Position in the file is load-bearing. .controls-row--collection carries
   data-band and is a flex row, and it wins by being stated below this. */
main > .shopify-section,
[data-band],
.tier-row,
.newsletter {
  position: relative;
  display: flow-root;
}

/* Square, and left square. The reset at the top of the sheet rounds every
   element, so inheriting the radius here would round the fill of a full-bleed
   section and of every cell in the ruled grid, which abut with no gap. A band
   that is a shape rather than a strip states its own corners below. */
.is-shaded::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--ground-deep-rgb));
  filter: brightness(var(--band-shade, 1));
  /* So a re-deal ripples rather than snapping. --band-shade is an unregistered
     custom property and cannot be transitioned itself, which is why the two
     hover states animate filter instead; this is the same trick at the page's
     own scale. It costs nothing at load, transitions not running on the first
     style application, and the two hover rules state a faster filter transition
     below this one and keep winning. */
  transition: filter var(--dur-slow) var(--ease);
}

/* The page surface's top corners, which every other template takes from the
   header. The landing page has none, so its first band is what meets the frame,
   and the square fill above would run into the corners outside the frame's
   rounded keyline, under a mat only --tint-frame opaque.

   :first-child, not the hero by name: a section placed above it takes the
   corners with it. Inert with JS off, which is when the band is unshaded and the
   ground already carries the corners itself. */
body.template-index main > .shopify-section:first-child.is-shaded::before {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ==========================================================================
   RESET AND BASE ELEMENTS
   Element defaults only. Anything with a class belongs further down.
   ========================================================================== */
* {
  box-sizing: border-box;
  border-radius: var(--radius);
}

/* Any author `display` beats the UA sheet's [hidden] rule, and plenty of rules
   here set one (.cfg-row is display:block). Restated so the attribute wins. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-kerning: normal;
  font-feature-settings: 'kern' 1, 'liga' 1;
  hyphens: none;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Descendant selectors, so each of these outranks the .t-meta group below and
   the ink sticks. A bare class here does not: it ties with the role and loses
   on order. .reference-link and .cart-drawer-view were in this list and are
   stated on their own blocks instead, below the roles. */
.drawer-footer a,
.add-to-cart-fineprint a,
.customer-meta a,
.about-page-content a,
.faq-contact a {
  color: var(--color-ink);
}

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

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

*:focus {
  outline: none;
}

*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.visually-hidden,
.password-form > *:not(.password-form-inner) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: var(--space-16);
  left: var(--space-16);
  width: auto;
  height: auto;
  padding: var(--space-12) var(--space-16);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: var(--fs-meta);
  clip: auto;
  z-index: var(--z-top);
}

/* All six, so a merchant heading at any level stays inside the two-weight
   scale instead of falling through to the UA sheet's bold 700. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-regular);
  margin: 0;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
}

/* Rich-text bold would otherwise land on UA 700, outside the two-weight scale. */
strong,
b {
  font-weight: var(--fw-medium);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   TYPE ROLES

   One role per job, each bundling size, weight, leading, tracking and color.
   Pick a role before writing a new type rule. Component classes are attached
   to their role by selector group, so the roles cost no markup changes; `.t-*`
   is the name to use in new markup.

   Statements in --color-ink, secondary text in --color-ink-dim, hairlines in
   --color-ink-faint, sizes inherited rather than restated.

   This block sits early so components below can override color, margin or a
   single-line optical leading and win.
   ========================================================================== */

/* The only role in the display face. */
.t-display,
.page-hero-title,
.customer-title,
.password-wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--color-ink);
}

/* .product-info h1 sits here rather than with .t-display: at display size in
   Bungee, a full-sentence product title runs to three lines in the 420px
   panel. On that page the photograph is the hero, not the title. */
.t-title,
.tier-row-name,
.product-info h1,
.about-page-content h2,
.product-info-description h2,
.faq-answer h2 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-title);
  color: var(--color-ink);
}

.t-heading,
.product-card-title,
.faq-question,
.about-page-content h3,
.product-info-description h3,
.faq-answer h3 {
  font-size: var(--fs-heading);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--color-ink);
}

.t-body,
.drawer-nav a,
.newsletter-copy,
.newsletter-form input,
.newsletter-submit,
.product-info-description,
.field-static,
.stepper-btn,
.stepper-value,
.cart-item-title,
.cart-item-price,
.cart-totals-row,
.cart-empty p,
.empty-state p,
.password-blurb,
.password-input,
.password-submit,
.customer-page,
.customer-order-name,
.customer-order-total,
.about-page-content,
.faq-answer {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-ink);
}

/* One size for all secondary text. Emphasis comes from .t-label, not from a
   size bump. */
.t-meta,
.header-nav,
.drawer-cart-count,
.header-cart-count,
.drawer-footer,
.cart-drawer-view,
.page-hero-subtitle,
.search-box input,
.pagination,
.cat-nav-link,
.filter-option-link,
.product-card-spec,
.product-card-price,
.product-card-sold-out,
.product-card-add,
.tier-row-num,
.tier-row-meta,
.tier-row-note,
.newsletter-eyebrow,
.newsletter-message,
.footer,
.reference-link,
.product-info .input-select,
.field-helper,
.field-warning,
.chip,
.chip-swatch,
.input-text,
.input-select,
.input-textarea,
.field-upload,
.field-upload-placeholder,
.field-upload-action,
.field-checkbox-label,
.add-to-cart-fineprint,
.product-details-body,
.cart-item-spec,
.cart-item-properties,
.cart-item-remove,
.process-steps,
.cart-update-btn,
.cart-item-qty-input,
.cart-continue,
.password-notice,
.password-entry-summary,
.customer-eyebrow,
.customer-meta,
.customer-errors,
.customer-footer-links,
.customer-order-meta,
.faq-contact,
.cart-error,
.cart-drawer-error {
  font-size: var(--fs-meta);
  font-weight: var(--fw-regular);
  line-height: var(--lh-meta);
  letter-spacing: var(--ls-meta);
  color: var(--color-ink-dim);
}

/* .t-meta's size, lifted by weight and full ink. Form labels, panel titles,
   button faces. */
.t-label,
.tier-row-cta,
.drawer-title,
.cart-drawer-title,
.filter-panel-title,
.filter-group-title,
.field-label,
.customer-block h3,
.product-details-item summary,
.cfg-back,
.product-card-type,
.product-card--full .product-card-price,
.btn-primary,
.add-to-cart,
.cart-checkout-btn {
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  line-height: var(--lh-meta);
  letter-spacing: var(--ls-meta);
  color: var(--color-ink);
}

/* The theme's only caps treatment. Tracking must open up or capitals set solid. */
.t-caps,
.product-info .field-label,
.cfg-back {
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

/* The wordmark, in the display face like the homepage heading, at a size that
   holds a bar. Not part of .t-heading: that role is --fw-medium, and Bungee
   ships one 400 weight, so sharing it would get a synthesized bold. Tracking
   comes from --ls-display (zero) for the same reason .t-display uses it. */
.t-brand,
.header-brand-title {
  font-family: var(--font-display);
  font-size: var(--fs-brand);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-display);
  color: var(--color-ink);
}

/* A wordmark and controls that center their own content by being flex or a
   <button>. Not the .btn-primary family: those are <a> elements that center
   their label with leading derived from --control-height. */
.header-brand-title,
.header-cart-count,
.search-box input,
.newsletter-submit,
.stepper-btn,
.password-submit {
  line-height: var(--lh-flat);
}

/* Numerals that sit in a column must not wander. */
.product-card-price,
.cart-item-price,
.cart-totals-row,
.stepper-value,
.customer-order-total {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   SHARED CONSTRUCTIONS, RADIUS, FRAME AND GROUND
   The disclosure the filter groups, product details and FAQ share; the radius
   opt-out list; the page mat; and the ground and grain the body paints.

   None of it decides type. It sat under TYPE ROLES, which put the radius
   opt-out, the most-referenced construct in the file, under a banner promising
   size, weight, leading, tracking and color. Nothing moved to fix that, only
   the line the banner is drawn on, so the cascade is untouched.
   ========================================================================== */
.separator {
  opacity: var(--opacity-recede);
}

.drawer-footer .separator {
  opacity: 1;
  color: var(--color-ink-dim);
}

.filter-group-title,
.product-details-item summary,
.faq-question,
.password-entry-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.filter-group-title::-webkit-details-marker,
.product-details-item summary::-webkit-details-marker,
.faq-question::-webkit-details-marker,
.password-entry-summary::-webkit-details-marker {
  display: none;
}

.filter-group-title::after,
.product-details-item summary::after,
.faq-question::after,
.password-entry-summary::after {
  content: '+';
  line-height: var(--lh-flat);
  flex: none;
}

.filter-group[open] .filter-group-title::after,
.product-details-item[open] summary::after,
.faq-item[open] .faq-question::after,
.password-entry[open] .password-entry-summary::after {
  content: '\2212';
}

/* No margin either side: the hero band's own padding is the space above the
   grid, and the grid's top rule is the edge between them. A bottom margin left
   a shaded strip between the grid's last rule and the footer's first, which
   read as an empty fourth band rather than as space. */
.home-band {
  margin-block: 0;
}

.footer,
.newsletter,
.ornament-divider,
.product-details,
.faq-list,
.controls-row,
.product-details-item,
.faq-item,
.cart-item,
.tier-list,
.tier-row,
.page-rule,
.product-grid--collection,
.product-grid--collection .product-card,
.cfg-head,
.cfg-body,
.cfg-foot,
.cfg-row,
.product-info .field,
.cart-totals-row--total,
.cart-process,
.drawer,
.cart-drawer,
.cat-nav,
.filter-panel,
.filter-group,
.drawer-header,
.drawer-footer,
.cart-drawer-header,
.cart-drawer-footer,
.customer-block,
.customer-order-row,
.customer-recover,
.order-line-item,
.newsletter-form,
.drawer-nav a,
body::before,
body::after {
  border-radius: 0;
}

.page-frame {
  position: fixed;
  inset: 0;
  z-index: var(--z-frame);
  pointer-events: none;
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .page-frame::before,
  .page-frame::after {
    content: '';
    position: absolute;
    pointer-events: none;
  }

  .page-frame::before {
    inset: calc(-1 * var(--frame-bleed));
    border: calc(var(--frame-outer) + var(--frame-bleed)) solid transparent;
    border-radius: calc(var(--frame-radius) + var(--frame-outer) + var(--frame-bleed));

    background-color: rgb(var(--frame-color) / var(--tint-frame));
    transition: background-color var(--dur-slow) var(--ease);
    background-image: var(--grain-glass);
    background-size: var(--grain-tile-glass) var(--grain-tile-glass);
    background-blend-mode: soft-light;
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(var(--saturate-glass));
    backdrop-filter: blur(var(--blur-sm)) saturate(var(--saturate-glass));
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-clip: border-box, padding-box;
    mask-clip: border-box, padding-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .page-frame::after {
    inset: var(--frame-outer);
    border: var(--rule-edge);
    border-radius: var(--frame-radius);
  }
}

@media print {
  .page-frame {
    display: none;
  }
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
}

/* The ground beneath everything, which shows only below the footer on a page
   shorter than the window. Never rolled: it is the color the header and the
   footer sit on, so the page opens, closes and ends on one surface whatever the
   bands between them drew. */
body::before {
  inset: 0;
  /* Outside the scale: this is the ground the scale is measured from, and
     --z-base is the first tier above it. */
  z-index: 0;
  background-color: var(--surface-page);
}

/* No mix-blend-mode. This layer is fixed and covers the viewport, so a blend
   mode here made every scroll re-blend the whole page against it, on every page
   and worst on the ones carrying a grid of photographs. The grain is black
   speckle at --grain-over, which is where the darkening the multiply used to do
   now comes from. */
body::after {
  inset: 0;
  z-index: var(--z-grain);
  opacity: var(--grain-over);
  background-image: var(--grain-fine), var(--grain-coarse);
  background-size: var(--grain-tile-fine) var(--grain-tile-fine), var(--grain-tile-coarse) var(--grain-tile-coarse);
}

body > * {
  position: relative;
  z-index: var(--z-base);
}

@media print {
  body::before,
  body::after {
    display: none;
  }
}

/* ==========================================================================
   CHROME: HEADER, DRAWERS, SEARCH
   ========================================================================== */
.header {
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-page);
  color: var(--color-ink);
}

/* The stick is on the wrapper Shopify prints around the section, not on .header.
   That wrapper is exactly the header's height, so a sticky child has no room to
   travel inside it and never leaves the top of the page.

   top: 0, not the mat's 12px: the header already runs under the fixed frame at
   rest, and --bar-h's asymmetric top padding is what clears it. Anything else
   parks the bar in a different place than it loads in. */
.shopify-section-group-header-group {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

/* THE LANDING PAGE HAS NO BAR. Its nav is .mosaic-routes, the four pieces of
   the hero mosaic that carry destinations, so a bar above them would state the
   same ones twice. layout/theme.liquid writes the template onto the body.

   Hidden here rather than skipped in sections/header.liquid. theme.js reads
   .header and #MenuToggle at top level with no guard, and #MenuToggle again from
   closeMenu, which openCart calls, so an absent element takes the cart drawer
   down with the menu drawer. display: none leaves both to be found, measures the
   header at 0, and drops the nav and the hamburger out of the tab order.
   --header-h at 0 reaches only the drawer heads, which read it as
   max(--bar-h, --header-h); the rules that read it raw are the collection's and
   the product's.

   The group and not .header, so the empty sticky box goes with it. */
body.template-index .shopify-section-group-header-group {
  display: none;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-24);
}

/* The three ruled bars, held to --bar-h so their rules line up. Nothing in them
   may stand taller than that height less the padding, or its own bar opens past
   the other two; that is why the close buttons are flexed to their glyph.

   Asymmetric because a bar is an object, not a margin. The top clears the fixed
   .page-frame mat and then balances against the bar's own closing rule; the
   bottom answers only to that rule. Measured to the frame's keyline the two are
   32 - --frame-outer above and 16 below, which is what reads level. Do not
   raise the top to --page-gutter to "match" the side gutter: the even inset
   belongs to the left and right, where the ground is exposed, and at 48/16 the
   wordmark visibly sinks to the bottom of its own bar. */
.header-row,
.drawer-header,
.cart-drawer-header {
  min-height: var(--bar-h);
  padding-block: var(--space-32) var(--space-16);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-ink);
}

.header-nav {
  display: flex;
  gap: var(--space-24);
}

.header-nav a {
  color: var(--color-ink-dim);
  transition: color var(--dur-fast) var(--ease);
}

/* The two controls on the right rail, one construction. The padding is the hit
   area and the equal negative margin hands it back, so each glyph is a 44 target
   without opening --bar-h past the other two bars.

   Those two negative margins eat --space-24, which is exactly .header-row's gap,
   so the boxes meet flush and neither steals the other's edge. Narrow that gap
   and they overlap, and the later sibling wins: taps on the cart's right edge
   would open the menu. The same arithmetic .newsletter-submit is held to. */
.header-hamburger,
.header-cart {
  display: none;
  padding: var(--space-12);
  margin: calc(-1 * var(--space-12));
  color: var(--color-ink);
}

/* Shown only where .header-nav is display: none and the cart link inside it goes
   too. The auto inline-start margin is what groups this against the hamburger:
   an auto margin takes the row's free space before justify-content distributes
   it, so the pair closes on the right rail and the wordmark keeps the left. */
.header-cart {
  align-items: center;
  gap: var(--space-4);
}

/* --bar-h is calculated from these glyphs, so the size lives on the token and
   not on the SVG's width/height attributes, which stay as the pre-stylesheet
   fallback. */
.header-hamburger svg,
.header-cart svg {
  width: var(--icon-bar);
  height: var(--icon-bar);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-hamburger,
  .header-cart {
    display: flex;
  }

  .header-cart {
    margin-inline-start: auto;
  }
}

.drawer-backdrop,
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: none;
}

.drawer-backdrop {
  z-index: var(--z-backdrop);
}

.cart-drawer-backdrop {
  z-index: var(--z-backdrop-cart);
}

.drawer-backdrop.is-open,
.cart-drawer-backdrop.is-open {
  display: block;
}

.drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100dvh;
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  /* visibility steps, it does not animate, and the step is delayed only on the
     way out. Animated, the panel is still hidden at progress 0, so the focus()
     that openMenu runs in the same task as .is-open finds an unfocusable element
     and silently does nothing. The close delay is what holds the panel on screen
     for the length of the slide-out.

     Longhands, so the open state overrides the one value that differs and
     nothing else. Written as a shorthand it had to restate the slide as well,
     and a change to --dur-slow in one of the two places gives a panel that
     animates in one direction and jumps in the other, which only shows on the
     half of the interaction nobody re-tests. */
  transition-property: right, visibility;
  transition-duration: var(--dur-slow), 0s;
  transition-timing-function: var(--ease), linear;
  transition-delay: 0s, var(--dur-slow);
}

/* The frame is painted over an open drawer, --z-frame against --z-drawer-cart,
   and the drawer runs to the window on its inline end and block end. A frame's
   width on each of those two sides is frame, not drawer, so everything inside
   pays it here: the close button, the footer, the body's scrollbar and the empty
   line were all a frame short of the edge that shows.

   The shell and not each child, and padding and not inset: the fill and the
   border-left still reach the window, which is what a full-height panel should
   do. Only the contents come off the covered strip.

   Nothing at the block start. The page header behind this one is also under the
   frame's top strip, and insetting one and not the other puts the two headers on
   different lines. */
.drawer,
.cart-drawer {
  padding-inline-end: var(--frame-outer);
  padding-block-end: var(--frame-outer);
}

/* The menu drawer draws its own edge; the cart drawer is in the border: 0 list
   below and draws the same edge on ::after instead. Stated once here rather than
   on the pair above, where the cart's half was written and then zeroed 3,000
   lines later, so the pair read as sharing an edge it did not share. */
.drawer {
  width: var(--drawer-w);
  max-width: 80vw;
  z-index: var(--z-drawer);
  border-left: var(--rule);
}

.cart-drawer {
  width: var(--cart-drawer-w);
  max-width: 92vw;
  z-index: var(--z-drawer-cart);
}

.drawer.is-open,
.cart-drawer.is-open {
  right: 0;
  visibility: visible;
  /* The only value that differs. No delay on the way in, because the panel has
     to be focusable in the same task that opens it. */
  transition-delay: 0s;
}

/* --header-h is the header's real measured height, published by theme.js and
   republished on resize. It only exceeds --bar-h when a logo is set taller than
   the glyph, and the bars follow it there so the rules stay on one line. */
.drawer-header,
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: max(var(--bar-h), var(--header-h));
  padding-inline: var(--space-24);
  border-bottom: var(--rule);
  flex-shrink: 0;
}

.drawer-title {
  color: var(--color-ink-dim);
}

/* .header-hamburger's construction, for the same reason: the padding is hit
   area, cancelled by the margin so the glyph still sits on the bar's rail.
   Flexed as well, because a button's inherited line box is taller than the
   title beside it and would set the bar's height. */
.drawer-close,
.cart-drawer-close {
  display: flex;
  padding: var(--space-8);
  margin: calc(-1 * var(--space-8));
  color: var(--color-ink);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-16) 0;
}

.drawer-nav a {
  padding: var(--space-12) var(--space-24);
  border-bottom: var(--rule);
}

.drawer-nav .drawer-cart-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.drawer-footer {
  margin-top: auto;
  padding: var(--space-24);
  border-top: var(--rule);
}

/* Three nested columns, because the height has to reach the bottom of the
   drawer for the empty line to have anything to center in: the body takes what
   the head leaves, the panel fills the body, and the lines fill the panel with
   the footer under them. min-height: 0 so the panel can be shorter than its
   contents and let the body scroll rather than growing past it. */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* refreshCartDrawer fetches the drawer as a section, and the Section Rendering
   API wraps what it returns in a #shopify-section div. That box arrives with no
   height of its own, so left in the layout it breaks the column between the
   body and the panel and the drawer stops centering the moment the cart changes.
   The first paint renders the snippet inline and has no such wrapper, which is
   why this only ever shows up after a line change. */
.cart-drawer-body > .shopify-section {
  display: contents;
}

.cart-drawer-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-drawer-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Every line in the drawer runs its full width, the head's rule included, so
   the 24px rail is padding inside each row rather than a margin around it. As a
   margin it drags the row's own keyline in with it and leaves the lines short
   of the two edges the drawer is bounded by. The totals take the rail on their
   rows and not on the block, for the same reason: --total draws its own rule. */
.cart-drawer-body .cart-item {
  /* One inset all round, so the first row clears the head's rule by the same
     24px that separates every row from the one under it. */
  margin: 0;
  padding: var(--space-24);
}

.cart-drawer-body .cart-totals {
  margin: 0 0 var(--space-16);
}

.cart-drawer-body .cart-totals-row {
  padding-inline: var(--space-24);
}

.cart-drawer-footer {
  flex-shrink: 0;
  padding: var(--space-16) var(--space-24) var(--space-24);
  border-top: var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* Ink, and stated here rather than with the other full-ink links above the type
   roles, where a bare class ties with .t-meta and loses on order. The hover
   group treats this as a link already at full ink; resting dim, the pink hover
   it gets there drops contrast instead of raising it. */
.cart-drawer-view {
  text-align: center;
  color: var(--color-ink);
}

/* .cart-checkout-btn already centers its own label and fills its column. */
.cart-drawer-checkout {
  width: 100%;
}

/* ==========================================================================
   PAGE FURNITURE
   Hero blocks, the card grid primitive, and pagination. The ornament divider is
   not here; it closes a band, so it sits with the newsletter and footer.
   ========================================================================== */
.page-hero {
  margin-block: var(--gap-region);
}

/* A colour the shopper chose, rather than one the page dealt itself. The mat
   carries it at a weight a draw is not given, for the reason beside the token. */
:root.has-chosen-glass {
  --tint-frame: var(--tint-frame-chosen);
}

/* The pieces answer a pointer and show no sign of it. Nothing here sets a
   cursor: an affordance would advertise a flourish, and this one is meant to be
   found rather than offered. The same goes for the copyright in the footer. */

/* The first band of the landing page. Its own top corners, which every other
   template takes from the header: this page has none, so this band is what
   meets the frame. No padding: the mosaic inside it is the band. */
.home-mosaic-band {
  padding: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

/* THE MOSAIC. The landing page opens on a panel of glass cut into the same
   ruled grid the rest of the page is drawn on, and that is the whole of what
   makes it belong here. Every piece is a band: it takes its depth from the same
   roll that deals the three order columns below, so the two read as one ruled
   composition rather than as a panel sitting on a band.

     1  r r r r r r r r r r a a     r  the four routes
     2  n n n n n n n n b b c c     n  the shop's name
     3  n n n n n n n n b b c c
     4  n n n n n n n n b b c c
     5  d e e e e f f f f f c c

   No two of the six decorative pieces are the same size: d 1x1, a 2x1, b 2x3,
   c 2x4, e 4x1, f 5x1. The map does not enforce that, so it is checked by hand.

   The name's piece starts at the first track, not the third, so the gutter it
   pays back is the page's own and the shop's name begins on the same rail as
   "Made to order" in the band below. Set inside a piece that starts anywhere
   else, that padding measures from the piece and the name lands on no rail at
   all.

   The order of the pieces in the markup is a path where each touches the one
   before it, because the roll avoids only the band it rolled last. Change this
   map and that path has to be redrawn with it; sections/home-hero.liquid says
   so where the pieces are written.

   minmax(0, 1fr) on the rows, not 1fr: the name is one nowrap line, and a bare
   1fr floors at the content, which let that line push every row taller than the
   band instead of shrinking with it.

   62svh, and svh because vh is the large viewport: on a phone showing its URL
   bar the band came out taller than the screen it had to sit inside. */
.home-mosaic {
  display: grid;
  min-height: 62svh;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr);
  grid-template-areas:
    "r r r r r r r r r r a a"
    "n n n n n n n n b b c c"
    "n n n n n n n n b b c c"
    "n n n n n n n n b b c c"
    "d e e e e f f f f f c c";

  /* The lead between the pieces, drawn as a hairline of ground left between
     them rather than as a border on each: pieces abut, and two borders meeting
     would double the weight on every interior edge while leaving it single at
     the panel's own.

     --color-ink, not the --color-ink-faint that .tier-list rules with. The
     faint rule is a dusty pink, and at a dozen seams over dark glass it read as
     pink rather than as a hairline. This is the colour .page-frame draws its own
     keyline in, so the lead in the panel and the line around the page are the
     same line instead.

     Nothing around the outside. The panel is full bleed, so a rule there runs a
     second hairline a frame's width inside that keyline and the two read as one
     doubled edge; and at the foot the order routes open on .tier-list's
     border-top, which would stack with it for the whole width. */
  gap: var(--rule-width);
  padding: 0;
  background: var(--color-ink);

  /* What the labels are sized against, so the menu shrinks with the name rather
     than staying put while the name gets small. It restates the name's own
     measurement against the whole panel instead of against the name's piece:
     66.7cqw is that piece's eight of twelve tracks, and the two insets are the
     padding it pays. The name itself keeps measuring its own piece, because it
     is nowrap and an approximation there is an overflow. Here it is only type
     size, so the approximation costs nothing. */
  container-type: inline-size;
  --name-size: min(
    var(--fs-poster),
    calc((66.7cqw - var(--page-gutter) - var(--space-24)) / 13.5)
  );
}

.mosaic-piece--a { grid-area: a; }
.mosaic-piece--b { grid-area: b; }
.mosaic-piece--c { grid-area: c; }
.mosaic-piece--d { grid-area: d; }
.mosaic-piece--e { grid-area: e; }
.mosaic-piece--f { grid-area: f; }

/* Square, and for the reason .is-shaded::before is square: the pieces abut
   across a hairline, so any radius opens a lozenge of ground at every corner
   where four meet and the rule stops reading as a straight line.

   isolation, and it is load bearing. The roll paints a band's fill on
   .is-shaded::before at z-index -1, which lands behind the nearest stacking
   context: without one of its own, every piece's fill went behind the grid's
   own background and the whole panel came up one flat --color-ink-faint. The
   piece has to be the context its fill is measured against. */
.mosaic-piece {
  position: relative;
  isolation: isolate;
  display: flex;
  border-radius: 0;
}

/* A piece dealt a glass rather than a shade. Set on the fill, not the piece, so
   it lands in the same place the roll's brightness does and the hover below
   works on either. The two are picked per load by snippets/hero-glass.liquid;
   without JS no piece is dealt one and the panel is all rolled red, which is a
   complete arrangement rather than a fallback. */
.mosaic-piece.has-glass::before {
  background: rgb(var(--piece-glass));
  filter: none;
}

/* ---- The routes -------------------------------------------------------- */

/* One piece of the map that divides itself. Shop all takes two units to the
   other three's one: it is the route to everything the shop sells, where the
   other three each ask the shopper to have decided something first, so it
   should not be one of four equal doors. Ten tracks divided two to one gives it
   four whole tracks and the others two each, so every division falls on a line
   of the map above. */
.mosaic-routes {
  grid-area: r;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--rule-width);
}

/* The label sits at the foot of its piece, so the four read as one row of
   prompts however tall the pieces are cut. */
.mosaic-piece--route {
  align-items: flex-end;
  padding: var(--space-24);
  text-decoration: none;
}

/* The first route is the only piece whose label meets the window, the panel
   being full bleed, so it pays the page gutter back the way .tier-row:first-child
   does below it. Without this the shop's main route reads a rail to the left of
   every other line of type on the page. */
.mosaic-routes > :first-child {
  padding-inline-start: var(--page-gutter);
}

/* A third of the name, bounded at both ends. 0.34 is the ratio the two sat at
   where both were at their ceiling, --fs-title over --fs-poster, so this holds
   that relationship down the range instead of only at the top.

   The floor is what makes it work rather than an afterthought: a third of the
   name is 9px on a phone, where the name is 23, and a menu is not decoration
   that can be allowed to become unreadable to stay in proportion. --fs-meta is
   the smallest step the theme sets anything at. Below the floor the ratio is
   given up on purpose. */
.mosaic-label {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  font-size: clamp(var(--fs-meta), calc(var(--name-size) * 0.34), var(--fs-title));
}

.mosaic-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}

/* ---- The name ---------------------------------------------------------- */

/* On the rail, so the name and "Made to order" in the band below start on the
   same line. Centering it in its piece put the one piece of type a shopper
   reads first out of step with every other line on the page. */
.mosaic-piece--name {
  grid-area: n;
  flex-direction: column;
  justify-content: center;
  gap: var(--step-subtitle);
  padding: var(--space-24) var(--space-24) var(--space-24) var(--page-gutter);
  container-type: inline-size;
}

/* One line at every width, sized off the piece rather than off the window: the
   piece is a grid track and does not track the viewport in any fixed ratio, so
   cqw is the only unit that can promise it. Bungee sets the three words in
   13.07em, measured off the rendered element; 13.5 spends the difference as
   headroom. A change to the shop name or to the display face has to be measured
   again, since nowrap turns an overrun into an overflow rather than a second
   line, and --fs-poster only caps the top of the range. */
.mosaic-name {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: min(var(--fs-poster), calc((100cqw - var(--page-gutter) - var(--space-24)) / 13.5));
}

.mosaic-line {
  margin: 0;
}/* Two tracks, the name across the top of them and the four routes two up
   underneath. The decorative glass goes rather than shrinking: at this width a
   piece is a speck of color, and seven specks around the name read as damage.
   Losing them costs nothing, since they carry no content and no destination.

   The name's row is auto and the routes take what is left, so a name that has
   shrunk as far as the floor allows still gets the height it asks for rather
   than being clipped by an even split. */
/* The pieces go two up rather than three, and the third goes with them: a third
   of a phone's width is a stamp, and two pieces still say what the shop makes.
   The row is the only thing that changes; the head above it wraps on its own. */
/* A map of its own rather than the wide one folded down. Six tracks, not
   twelve, so a piece is a panel and not a speck, and five decorative pieces
   rather than none: hiding them left the phone with a nav over a heading, which
   is the one page on the site that stops being a mosaic.

     1  r r r r r r     r  the four routes, two up inside their own piece
     2  a b b b b b     n  the shop's name
     3  n n n n n n
     4  n n n n n n
     5  n n n n n n
     6  c c d d d d

   The name takes the whole width, which is the only lever that makes it a
   readable size here: measured against five of six tracks it came out at 23px
   on a phone, and against six it is 33. It is one nowrap line either way, the
   size being derived from the width it has.

   Four sizes, no two alike: a 1x1, c 2x1, d 4x1, b 5x1. Two strips of six
   cannot yield five distinct widths, so the fifth piece goes with the name's
   gain. e and f have no cell here and are hidden rather than left unmentioned:
   a piece without an area is auto placed and pushes a row on.

   The first row is auto and the rest share what is left, because the routes are
   sized by their own padding at this width rather than by a share of the band. */
@media (max-width: 768px) {
  .home-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto repeat(5, minmax(0, 1fr));
    grid-template-areas:
      "r r r r r r"
      "a b b b b b"
      "n n n n n n"
      "n n n n n n"
      "n n n n n n"
      "c c d d d d";
  }

  /* The name is the whole width here rather than eight of twelve, so the share
     the labels are measured against changes with the map. */
  .home-mosaic {
    --name-size: min(
      var(--fs-poster),
      calc((100cqw - var(--page-gutter) - var(--space-24)) / 13.5)
    );
  }

  .mosaic-piece--e,
  .mosaic-piece--f {
    display: none;
  }

  .mosaic-routes {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Only the top two. The page frame is drawn over the head of the panel, so
     the first row of routes reads its clearance from the frame's line rather
     than from the window and at the shared inset the gap looked closed up. The
     second row has the first above it and needs none of that, so it keeps the
     shared inset and the two rows come out at different heights on purpose. */
  .mosaic-routes > :nth-child(-n + 2) {
    padding-block-start: var(--space-40);
  }

  /* Two tracks, so the left column is every odd child rather than the first one
     alone: at this width About begins the second row and meets the window
     exactly as Shop all meets it above. Only here. On the wide grid the four
     routes are one row and only the first reaches the edge. */
  .mosaic-piece--name,
  .mosaic-routes > :nth-child(odd) {
    padding-inline-start: var(--page-gutter);
  }
}}

/* Size, weight and leading come from .t-display. */
.page-hero-title {
  margin: 0 0 var(--step-subtitle);
  max-width: var(--measure-wide);
}

.page-hero-subtitle {
  margin: 0;
}

/* The gallery link sits inside the subtitle, at the same meta size, so full ink
   is what separates it from the sentence it follows. */
.page-hero-link {
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease);
}

.page-hero-link:hover {
  color: var(--color-pink);
}

.controls-row {
  margin-block: var(--space-24);
  padding-bottom: var(--space-24);
  border-bottom: var(--rule);
}

/* The one keyline that ignores the rail and runs to both edges of the window.
   It sits outside .container so it needs no negative margin to get there, and
   carries no margin of its own: the hero above and the layout below already
   bring --gap-region, and a margin here would add to theirs rather than
   collapse through a 1px box. */
.page-rule {
  margin: 0;
  border: 0;
  border-top: var(--rule);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0 var(--space-16);
  border: var(--rule);
  background: var(--surface-well);
  min-width: var(--search-min-w);
  height: var(--control-height);
}

.search-box--full {
  width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .search-box {
    width: 100%;
    min-width: 0;
  }
}

.search-box svg {
  flex-shrink: 0;
}

.search-box form {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.search-box input {
  width: 100%;
  height: 100%;
}

/* CARD GRID. Gains columns rather than stretching, since the theme has no page
   max-width. Search and the collection list use it as it stands;
   .product-grid--collection replaces the track list to rule its columns.

   min() on the floor: the container is the window less two gutters, so under a
   window narrower than --card-min plus those gutters the floor is wider than
   the track it sits in and the page scrolls sideways. Capping at 100% costs
   nothing at every other width and needs no breakpoint. */
/* .gallery-grid is in the group, not a copy of it. It had a 260px floor of its
   own once, which put the gallery on a different column count from the shop at
   a band of widths neither page could state a reason for. Sharing the track
   list is what stops that recurring; its own block below carries only the
   margin, which is the one thing the gallery decides for itself. */
.product-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min), 100%), 1fr));
  gap: var(--space-24);
}

/* A card grid that is the whole of a band has to carry the band's interior
   space itself, or the fill hugs the cards. The collection grid is exempt: it
   takes its space from .shop-layout's margin, which the band already contains.
   Two depths of selector because search wraps its grid in a .container and the
   collection list does not. */
[data-band] > .product-grid,
[data-band] > .container > .product-grid {
  margin-block: var(--gap-region);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  padding-block: var(--gap-region);
}

.pagination-link {
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease);
}

.pagination-count {
  color: var(--color-ink-dim);
}

/* The numbered process list, shared by the cart note and the product page's
   How it works. The marker sits outside so a step that wraps stays aligned
   under its own first line rather than under the number. */
.process-steps {
  margin: 0;
  padding-left: var(--space-24);
}

.process-steps li {
  padding-left: var(--space-4);
}

.process-steps li::marker {
  color: var(--color-ink);
}

.process-steps li + li {
  margin-top: var(--space-8);
}

/* ==========================================================================
   COLLECTION: SIDEBAR, FILTERS, SORT
   ========================================================================== */
/* --shop-top is the space between .page-rule and the first line of either
   column. The grid below reads as a table, so it takes the inset its own cells
   take from their rules rather than the section rhythm, which set the first
   line twice as far below the rule as it sits right of one. The column rule
   reaches back through the same distance to meet .page-rule.

   Nothing at the block end: the grid's last horizontal is .ornament-divider's
   rule, which is also the top of the newsletter. Space here is a strip of band
   between the cards and the rule that closes them. */
.shop-layout {
  --shop-top: var(--space-24);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--gap-region);
  margin-block: var(--shop-top) 0;
  align-items: start;
}

/* Past 48 pieces the pagination row sits below the grid inside the same column,
   so the divider is no longer the grid's own last horizontal and the grid needs
   one back. The band's block end returns with it, or the row sits on the rule
   that closes the newsletter. */
.shop-main:has(.pagination) .product-grid--collection {
  border-bottom: var(--rule);
}

.shop-layout:has(.pagination) {
  margin-block-end: var(--gap-region);
}

/* The ground either side of this column is the same width. On the left it is
   the strip between the page mat and the rail; on the right it is the strip
   between the last character and the column rule, which sits half a gap out.
   The padding is whatever that half-gap leaves short, derived so a change to
   the gutter, the mat or the gap keeps the two sides equal.

   Padding rather than a narrower track: the track width also sets where the
   rule falls and where the grid beside it starts, and neither should move. */
.shop-sidebar {
  padding-inline-end: calc(var(--page-gutter) - var(--frame-outer) - var(--space-24));
  position: sticky;
  top: calc(var(--header-h) + var(--space-24));
  max-height: calc(100svh - var(--header-h) - var(--space-24) - var(--space-24));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-ink-faint) transparent;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

/* Stretched against the layout's start alignment, which the sidebar needs to
   stay sticky: the column rule below is drawn on this box, so a short main
   column would leave the rule hanging above the horizontal that closes the
   band. Empty results are the case, the sidebar's filters outrunning them. */
.shop-main {
  position: relative;
  align-self: stretch;
  min-width: 0;
}

/* The rule between the two columns, drawn on the main column rather than as a
   border on the sidebar: the sidebar is sticky, scrolls its own overflow and is
   shorter than the grid, so a border there would stop partway down the page.

   The left offset is half the column gap, so the rule lands between the two
   without moving either. The block start clears .shop-layout's own top margin,
   which puts the top of the rule on .page-rule rather than under it. */
.shop-main::before {
  content: '';
  position: absolute;
  inset-block: calc(-1 * var(--shop-top)) 0;
  left: calc(-1 * var(--space-24));
  border-left: var(--rule);
}

/* Both columns of the shop open on the same line: All in the sidebar, the sort
   control in the toolbar beside it. The toolbar's height is the control's, so its
   contents sit centerd in --control-height while a link at the top of the sidebar
   does not. Spending the half-difference here puts the two on one line, and
   derives it rather than measuring it, so changing the control height or the meta
   leading keeps them together. */
.cat-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-top: calc((var(--control-height) - var(--fs-meta) * var(--lh-meta)) / 2);
}

.cat-nav-link {
  transition: color var(--dur-fast) var(--ease);
}

/* THE RULED GRID. Composed as `product-grid product-grid--collection`, but it
   replaces the base track list rather than composing onto it: both the column
   rules and the row rules are placed by dividing the width, so the count of
   columns cannot be the one the window happens to fit.

   Three is the desktop count only. It drops to two at 1120 and stays there, so
   every number below that divides the width by three is restated twice further
   down the file. Changing one means changing all three.

   No gap, because two rules cannot meet across one. The space moves into the
   cards, which pay it as padding, so every rule runs edge to edge.

   The pullout is uneven because the two sides end in different places: the left
   stops at the sidebar's rule, half a column gap out, and the right runs to the
   window. Each side pads back whatever the card's own padding does not, so all
   three tracks stay equal and all three photographs stay on the rail.
   --grid-bleed is that padded-back strip, named because the rules, the tracks
   and the cell fills all have to measure from the same edge.

   No border at the block end, and none needed: the pullout only reaches one
   window edge, and .ornament-divider's rule reaches both and crosses the
   sidebar column too. A border here would stack on it for two thirds of the
   width. The verticals below are placed against the padding box, so dropping
   it is what brings them down onto that rule. */
.product-grid--collection {
  --grid-bleed: calc(var(--page-gutter) - var(--space-24));
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-inline: calc(-1 * var(--space-24)) calc(-1 * var(--page-gutter));
  padding-inline: 0 var(--grid-bleed);
}

/* An even inset reads bottom-tight, not even: the photo closes on a hard edge
   while the type block below it ends on a baseline with its own space under it.
   The extra --space-4 at the block end is what makes the two look equal. The
   card is the same object at either width, so the correction is too; only the
   base inset changes at the breakpoint. */
.product-grid--collection .product-card {
  position: relative;
  padding: var(--space-24);
  padding-bottom: calc(var(--space-24) + var(--space-4));
}

/* The cells carry the shade, and every rule runs to the window, so the fill has
   to as well: the tracks stop at the content box and the strip the pullout pads
   back is outside it. The row's last cell spends its own fill across that strip
   rather than the grid painting one behind them all, which would put a fourth
   depth under a row already cut to three. */
.product-grid--collection .product-card:nth-child(3n)::before {
  right: calc(-1 * var(--grid-bleed));
}

/* The verticals, drawn on the grid rather than on the cards: a rule per card
   would stop at the last card in its column, and eight pieces in three columns
   end on a row of two, leaving that column's rule short of the grid's own. Two
   pseudo-elements for the two boundaries between three tracks; below 1120 there
   are two tracks and one boundary, and the ::after is dropped rather than
   moved.

   The tracks divide the content box, so the right pullout's padding comes off
   the width before the thirds do.

   They stop dead on the grid's own horizontals, the way
   .tier-row + .tier-row::after does: the bottom is the grid's border, and the
   top is the toolbar's rule, which is the grid's first horizontal and which the
   grid now opens against. Running past either end read as loose ends hanging
   off the section rather than as a crossing. */
.product-grid--collection::before,
.product-grid--collection::after {
  content: '';
  position: absolute;
  inset-block: 0;
  border-left: var(--rule);
}

.product-grid--collection::before {
  left: calc((100% - var(--grid-bleed)) / 3);
}

.product-grid--collection::after {
  left: calc((100% - var(--grid-bleed)) / 3 * 2);
}

/* One piece has no columns to divide. It still has a row to fill: with no
   verticals drawn, a cell cut to a third of the width is a block of color
   hanging off the toolbar's rule rather than the row that rule opens. The track
   stays a third so the photograph keeps the size it has in a full grid. */
.product-grid--collection.product-grid--single::before,
.product-grid--collection.product-grid--single::after {
  content: none;
}

.product-grid--collection.product-grid--single .product-card::before {
  right: calc(-200% - var(--grid-bleed));
}

/* One horizontal per row, drawn by the row's first card across all three
   tracks, rather than a border-top on each card. A short last row would
   otherwise cut its own rule short of the window: eight pieces in three columns
   leaves a row of two, and the rule above it would stop a third early.

   The card fills exactly one track and there is no gap, so 300% is the three
   tracks; the remainder is the run out to the window edge.

   Every card carries the geometry and only the row openers are given a
   content, so that the narrow width can restate the span once and switch which
   cards draw without repeating how. */
.product-grid--collection .product-card::after {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(300% + var(--grid-bleed));
  border-top: var(--rule);
}

/* From the fourth card on, the first row's horizontal being the toolbar's. */
.product-grid--collection .product-card:nth-child(3n + 1):nth-child(n + 4)::after {
  content: '';
}

/* Two columns from here down, the sidebar still beside them. Three tracks at
   this width are about 235px once the gutters and the sidebar are off, under the
   280px --card-min the gapped grids keep as the narrowest a card should be. The
   number is the product page's, so the theme breaks where it already breaks.

   The pullout above still holds: the left edge is the sidebar's rule and the
   right is the window, so only the count and the rules dividing it move here.

   Every rule below is restated by the narrow block after it at equal
   specificity, which is what keeps this from reaching under 768. Source order
   is what decides that, so this block stays above that one. */
@media (max-width: 1120px) {
  .product-grid--collection {
    grid-template-columns: repeat(2, 1fr);
  }

  /* One boundary between two tracks, so the second vertical has nothing left to
     divide. */
  .product-grid--collection::before {
    left: calc((100% - var(--grid-bleed)) / 2);
  }

  .product-grid--collection::after {
    content: none;
  }

  /* Row-end moves from every third card to every second. The old selector has to
     be unset with it, or the third card, which opens a row here, spends its fill
     out over a strip on the far side of the grid. */
  .product-grid--collection .product-card:nth-child(3n)::before {
    right: 0;
  }

  .product-grid--collection .product-card:nth-child(2n)::before {
    right: calc(-1 * var(--grid-bleed));
  }

  /* Two tracks to span, and the run out to the window. */
  .product-grid--collection .product-card::after {
    width: calc(200% + var(--grid-bleed));
  }

  /* First-in-row moves from 3n + 1 to 2n + 1. The first row's horizontal is
     still the toolbar's, so the openers start at the third card rather than the
     fourth. */
  .product-grid--collection .product-card:nth-child(3n + 1):nth-child(n + 4)::after {
    content: none;
  }

  .product-grid--collection .product-card:nth-child(2n + 1):nth-child(n + 3)::after {
    content: '';
  }

  /* One piece has one empty track beside it now rather than two, and the track
     it keeps is half the grid, so the photograph is still the size it is in a
     full row. */
  .product-grid--collection.product-grid--single .product-card::before {
    right: calc(-100% - var(--grid-bleed));
  }
}

@media (max-width: 768px) {
  /* No gap: the sidebar's closing rule is the top of the toolbar's band, so a
     gap here is a strip of the layout's own fill between two full-width rules,
     which reads as a band of its own rather than as space. The toolbar carries
     the distance as padding instead, inside the fill. */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* No rule to hold off at this width, so the column runs to the rail like
     everything else stacked above and below it. */
  .shop-sidebar {
    padding-inline-end: 0;
    position: static;
    max-height: none;
    overflow: visible;
    gap: var(--space-16);
  }

  /* One column here: the sidebar sits above the grid rather than beside it, so
     there are no two columns for a rule to divide. */
  .shop-main::before {
    content: none;
  }

  /* padding-top goes back to nothing: one column here, so there is no toolbar
     beside the nav for its first link to line up with. */
  .cat-nav {
    flex-direction: row;
    flex-wrap: wrap;
    /* No row gap: the links carry that distance as their own padding, which is
       what makes each one a finger-sized target. Left on the gap the grown boxes
       of two wrapped rows overlap by exactly that padding, and a tap near the
       boundary lands on the row above. The block is taller for it. */
    gap: 0 var(--space-16);
    padding-top: 0;
    padding-bottom: var(--space-16);
    border-bottom: var(--rule);
  }

  /* The box grows, the type does not. These read at the meta role, which draws
     about 19px of text: inside the 24 a target has to clear, and well inside the
     44 a finger asks for. The construction is the one .cat-nav's desktop
     padding-top already uses, so both derive from the same two tokens. */
  .cat-nav-link {
    padding-block: calc((var(--control-height-touch) - var(--fs-meta) * var(--lh-meta)) / 2);
  }

  .filter-option-link,
  .filter-group-title {
    min-height: var(--control-height-touch);
  }

  /* The panel's rule closes the stacked sidebar, so it reaches the window the
     way the toolbar's rule below it does. Padding does not move a border: the
     labels stay on the rail while the rule runs past them. The .cat-nav rule
     above stays on the rail, dividing two rows inside the block rather than
     ending it. */
  .filter-panel {
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    padding-bottom: var(--space-16);
    border-bottom: var(--rule);
  }

  /* Nothing to the left of the grid at this width, the sidebar having stacked
     above it, so the horizontals run to both window edges instead of one.

     Both classes in the selector, and the only rule here that needs them: the
     base grid restates its gap for this width further down the file, which
     would otherwise win on source order and put a gap back between the rules
     and the cards they divide.

     The count is already two by the time this width is reached, restated here
     for the bleed and the margins that come with it. The rest of this block is
     what takes the 1120 geometry, which measures against one bled edge, and
     restates it against two. */
  .product-grid.product-grid--collection {
    --grid-bleed: calc(var(--page-gutter) - var(--space-16));
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--grid-bleed);
  }

  /* The base inset steps down; the block-end correction above still applies.
     --space-16 is also what --grid-bleed is derived against at this width, to
     land the outer cards' contents on the page rail. */
  .product-grid--collection .product-card {
    padding: var(--space-16);
    padding-bottom: calc(var(--space-16) + var(--space-4));
  }

  /* A strip to bleed on both sides now, and the cells that carry the fill out
     over them are the two ends of a row of two. A last piece alone in its row
     opens one but does not close it: the track beside it is empty, so its fill
     stops where the rule between the tracks does. */
  .product-grid--collection .product-card:nth-child(3n)::before {
    right: 0;
  }

  .product-grid--collection .product-card:nth-child(2n + 1)::before {
    left: calc(-1 * var(--grid-bleed));
  }

  .product-grid--collection .product-card:nth-child(2n)::before {
    right: calc(-1 * var(--grid-bleed));
  }

  /* Two columns, so one boundary, and the grid bleeds evenly on both sides:
     the middle of the padding box is the middle of the tracks. */
  .product-grid--collection::before {
    left: 50%;
  }

  .product-grid--collection::after {
    content: none;
  }

  /* Two tracks to span, and a run out to a window edge on either side. */
  .product-grid--collection .product-card::after {
    left: calc(-1 * var(--grid-bleed));
    width: calc(200% + 2 * var(--grid-bleed));
  }

  /* First-in-row moves from 3n + 1 to 2n + 1. */
  .product-grid--collection .product-card:nth-child(3n + 1):nth-child(n + 4)::after {
    content: none;
  }

  .product-grid--collection .product-card:nth-child(2n + 1):nth-child(n + 3)::after {
    content: '';
  }

  /* One track here rather than one of two, so the lone cell's fill has only the
     bleed to cover, not the tracks it does not have. */
  .product-grid--collection.product-grid--single {
    grid-template-columns: 1fr;
  }

  .product-grid--collection.product-grid--single .product-card::before {
    right: calc(-1 * var(--grid-bleed));
  }
}

.shop-layout .controls-row {
  margin-top: 0;
}

/* Less padding under this one than the base row. The row's height is the sort
   control's, and measuring the gap from that control's box left the rule sitting
   further below the type than the grid sits below the rule. */
.controls-row--collection {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-16);
  flex-wrap: wrap;
  padding-bottom: var(--space-16);
}

/* This row's rule is the top of the grid below it, the way the hero band's
   border is the first rule of the homepage's, so it takes the same pullout as
   the grid and reaches the same two ends. Padding does not move a border: the
   sort control stays on the rail while the rule runs past it.

   Nothing below it, for the reason .shop-layout states at its block end: the
   cells carry a ground of their own, so a margin here is a strip of band
   between the rule and the row it opens rather than space. The first row's
   fills start on the rule, and the grid's verticals with them. */
.shop-layout .controls-row--collection {
  margin-inline: calc(-1 * var(--space-24)) calc(-1 * var(--page-gutter));
  padding-inline: var(--space-24) var(--page-gutter);
  margin-bottom: 0;
}

/* The strip is a band of its own, so its four boundaries all have to be rules or
   the window: its own border at the block end, the divider rule and the window
   inline, and .page-rule at the block start. That last one is the reason for the
   pullup. The row starts --shop-top below the rule, and a depth that changed
   partway up an empty gap would put a horizontal edge where the design has no
   line. The divider rule reaches back through the same distance for the same
   reason.

   Not display: flow-root, which is what the band list gives a band: this one is
   a flex row and wins on source order. Keep the band list above it in the
   file. */
.controls-row--collection.is-shaded::before {
  top: calc(-1 * var(--shop-top));
}

/* The chips stand between that rule and the grid when a filter is on, so they
   take the space the row no longer carries. */
.shop-main .active-filters {
  margin-top: var(--space-24);
}

@media (max-width: 768px) {
  /* padding-top for what the pullup below no longer carries: the strip opens the
     same --shop-top above the control at both widths, held as padding here
     because there is no rule above to reach back to. */
  .shop-layout .controls-row--collection {
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    padding-top: var(--shop-top);
  }

  /* One column here, so the strip is no longer at the top of the layout and
     --shop-top is no longer the distance to .page-rule: the sidebar is stacked
     above it and the pullup would cross the gap between the two. */
  .controls-row--collection.is-shaded::before {
    top: 0;
  }
}

/* "Sort by" beside the menu rather than behind it, the label reading into the
   control the way the price filter's fields are labeled. */
.sort-form {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* No min-width. A select sizes itself to its widest option, which is already
   wider than the order most shoppers are looking at, and a floor under that
   only opens more empty box to the left of the chevron.

   Two classes, or .input-select's own padding wins on source order and the label
   inside is clipped by the height set here. */
.controls-row .sort-select {
  width: auto;
  height: var(--control-height);
  padding-block: 0;
}

.active-filters {
  margin-bottom: var(--space-24);
}

/* A variant of .chip, composed as `chip is-selected chip--removable`. */
.chip--removable {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

/* Composed as `chip filter-clear` in active-filters.liquid, so width and
   color come from .chip's --rule. Written out in full rather than as a lone
   border-style. The theme's only dashed border. */
.filter-clear {
  display: inline-flex;
  align-items: center;
  border: 1px dashed var(--color-ink-faint);
  color: var(--color-ink-dim);
}

.filter-panel {
  display: flex;
  flex-direction: column;
}

.filter-panel-title {
  margin-bottom: var(--space-12);
}

.filter-group {
  border-top: var(--rule);
  padding-block: var(--space-12);
}

.filter-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Size and weight from .t-label; the color is state, not role. A collapsed
   group sits back and lifts to full ink when opened (below). */
.filter-group-title {
  gap: var(--space-8);
  color: var(--color-ink-dim);
}

.filter-group[open] .filter-group-title {
  color: var(--color-ink);
  margin-bottom: var(--space-12);
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.filter-option-link {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transition: color var(--dur-fast) var(--ease);
}

.filter-option-text {
  flex: 1;
}

/* Dim and not faint, the call .tier-row-num already made for the same reason:
   --color-ink-faint is a hairline weight and falls under the 4.5 that 13px text
   needs on the paler half of the glass pool, where dim still holds 4.9. Faint
   keeps the non-text work it clears the 3.0 for, --rule and the dashed edge. */
.filter-option-count {
  color: var(--color-ink-dim);
  flex: none;
}

.filter-option .swatch-color {
  width: var(--swatch-sm);
  height: var(--swatch-sm);
  flex: none;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24) var(--space-12);
  }
}

/* Owns the crop; the grid track sets the width. */
.gallery-tile {
  position: relative;
  aspect-ratio: var(--photo-ratio);
  background: var(--surface-well);
  overflow: hidden;
  /* A page of the Gallery is two dozen tiles and most of them are below the
     fold, laid out and painted without this. No contain-intrinsic-size to go
     with it: the height comes from aspect-ratio against a grid track that is
     already definite, so a skipped tile keeps its box and the scrollbar does
     not move. */
  content-visibility: auto;
}

/* PHOTOGRAPH FILL. Every surface that frames a photograph crops it to the box
   the surface already has. Six components wrote this same three-line recipe.

   Two rules that look like members are not. .tier-row-thumb img takes its
   height from aspect-ratio rather than the parent, and .product-media img is
   object-fit: contain, because a crop there would cut the piece being sold.
   Neither is in this group and neither should be added to it.

   Every selector here appears once in the file, so the group's position cannot
   change which declaration wins. */
.gallery-tile-img,
.gallery-tile-video,
.product-card-image img,
.product-thumb img,
.product-media-video,
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No fade-in on these, and it is not an oversight. A photograph that starts at
   opacity 0 and transitions to 1 on load never finishes inside a
   content-visibility: auto box: the class comes off while the tile is still
   skipped, the transition has nothing to run in, and the image is left at 0 and
   stays there once scrolled to. Measured on the shop grid, where it left 25 of
   28 photographs permanently invisible. The well behind each box is the loading
   state instead. */

/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */
/* The track list and the gap come from the .product-grid group; see the note
   there. This is the gallery's own space around it.

   The block start is not --gap-region. Every horizontal inset on the site is
   really --page-gutter less --frame-outer, because .page-frame's keyline is what
   the eye reads as the page edge, and THE MAT above .container spells that out.
   A margin against a rule gets no such discount, so --gap-region here put the
   first tile 48px below the divider where its own left side reads 36px in, and
   the grid sat lower than it sat inward. Both tokens move together at the
   breakpoint, so this stays matched: 36px wide, 22px under 768.

   The block end keeps --gap-region, and is given back entirely on the pages
   that carry a nav under the grid; see .gallery-grid:has(+ .pagination) below.
   Either way it is content meeting content rather than content meeting a rule,
   which is why it takes none of the discount above. */
.gallery-grid {
  margin-block-start: calc(var(--page-gutter) - var(--frame-outer));
  margin-block-end: var(--gap-region);
}

/* The nav carries --gap-region of its own above it in padding, and the grid
   carries the same below in margin. Stacked they read as one gap of twice the
   size, so the grid gives its back on the pages that have a nav under them. */
.gallery-grid:has(+ .pagination) {
  margin-block-end: 0;
}

/* A video tile crops to the same box a photograph does, so a mixed grid keeps
   one rhythm. */
.gallery-tile--video {
  display: block;
}

/* The fill comes from the group above; a video is inline by default and the
   line box under it is the only thing this adds. */
.gallery-tile-video {
  display: block;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-card {
  display: block;
  color: inherit;
  min-width: 0;
}

.product-card--full {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  aspect-ratio: var(--photo-ratio);
  background: var(--surface-well);
  margin-bottom: var(--space-12);
  overflow: hidden;
  position: relative;
  /* Same reason as .gallery-tile: a search or collection page paginates by 48,
     which is 48 photographs laid out and painted whether or not they are on
     screen. The box is definite from aspect-ratio, so nothing shifts. */
  content-visibility: auto;
}

/* Which of the three routes this piece is, over its photograph. In a grid this
   is what tells them apart at a glance; the text block below already carries a
   title, a size and a price. */
.product-card-type {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  z-index: var(--z-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  /* Inverted: the pale chip was a second pale shape on an already pale panel
     shot, and needed a hairline to find its own edge. The deep ground reads at
     a glance against every photo in the shop, and the cream keyline holds it
     apart from the darker glasses. */
  background: var(--surface-raised);
  border: var(--rule-edge);
}

@media (max-width: 768px) {
  .product-card-image {
    margin-bottom: var(--space-8);
  }

  /* The card title drops a step, from .t-heading to .t-body's size and
     tracking. Two columns of about 155px is a thumbnail, and 18px against the
     13px size and price under it made the title the loudest type on the page
     inside the smallest box on it.

     A size set on a component is the one thing the role system exists to stop,
     so this is deliberate and scoped: the card changes which role it reads at
     this width, rather than inventing a size of its own. The leading stays
     --lh-tight, which the two-line clamp above is built on; taking .t-body's
     --lh-body with it would change the height the clamp cuts at. */
  .product-card-title {
    font-size: var(--fs-body);
    letter-spacing: var(--ls-body);
  }
}

/* The piece's other photographs, shown in turn while the pointer is on the card.
   One element with its src swapped rather than a stack of them: theme.js has
   preloaded every frame by the time the first swap lands, so nothing flashes,
   and the card carries one extra node instead of four.

   No z-index. It is a positioned later sibling, so it paints over the still
   below it and under .product-card-type, which has one. */
.product-card-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.product-card-frame.is-shown {
  opacity: 1;
}

/* Two lines, not one truncated one. A single nowrap line fits on a desktop
   card and runs out on a phone, where the grid is two columns of about 155px
   and most titles lost their last word or two: "Witching hour ir…" does not
   tell a shopper what they are looking at.

   The overflow that draws the ellipsis also clips downwards, and this is the
   one place in the theme where --lh-tight meets it, so descenders lost their
   tails. The padding gives them room inside the clip box; the margin takes the
   same amount back out of the layout. */
.product-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  padding-bottom: var(--type-descender-room);
  margin-bottom: calc(-1 * var(--type-descender-room));
}

.product-card--full .product-card-title {
  margin-top: var(--space-12);
}

.product-card-title-link {
  color: inherit;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  /* Not baseline: .product-card-spec's overflow: hidden makes it a scroll
     container, so it synthesizes a baseline from its bottom edge and lands ~4px
     above the price. Both children are --fs-meta at --lh-body, so flex-end on
     equal-height boxes gives the same result baseline would. */
  align-items: flex-end;
  gap: var(--space-8);
  margin-top: var(--space-4);
}

.product-card-spec {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.product-card-price {
  color: var(--color-ink);
  white-space: nowrap;
}

.product-card-price--soldout {
  color: var(--color-ink-dim);
}

/* Size and color come from .t-label. The full card sets its price apart from
   the spec line beside it by weight, not by a size of its own. */
.product-card--full .product-card-price {
  margin-top: var(--space-4);
  margin-bottom: var(--space-24);
}

.product-card-sold-out {
  white-space: nowrap;
}

/* ==========================================================================
   BUTTONS, CARD SURFACE, ORDER ROUTES
   The theme's whole button system, the card fill three components share, and
   the homepage's order columns.

   None of it belongs to the product card, which is where all of it sat: the
   button family in particular is what every button in the theme is built from
   and was filed under one component's banner. Only the banner line moved, so
   the cascade is untouched. The rest of the family's boxes stay with their
   pages, which the family's own comment lists.
   ========================================================================== */
/* SECONDARY BUTTON. A hairline box on the page ground, filling pink on hover.
   .cart-update-btn is the same control at control-height instead of full
   width. */
.product-card-add,
.cart-update-btn {
  border: var(--rule);
  background: var(--surface-page);
  color: var(--color-ink);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

/* An <a>, and one that has to stay a flex item of the card so margin-top: auto
   still pins it to the bottom. Flexed rather than given a leading, because the
   label wraps on a narrow card and a derived line-height would only center the
   first line. */
.product-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  min-height: var(--control-height-touch);
  padding: 0 var(--space-16);
}

/* A state, not a variant, hence .is-. pointer-events handles the hover. */
.product-card-add.is-disabled {
  background: transparent;
  color: var(--color-ink-dim);
}

/* CARD SURFACE. One step off the page ground, plus a hairline. */
.empty-state,
.password-card,
.customer-errors {
  background: var(--surface-raised);
  border: var(--rule);
}

/* ORDER ROUTES. A stacked list of hairline rows, not a row of cards; the
   reason is in sections/home-order-options.liquid. The hairlines run the full
   width of the page like the footer's, so the list is pulled back out of the
   gutter and each row pads the same gutter back on: the rules reach the page
   edge while the type stays on the container's rail.

   Flex, not grid: the cover photo is optional, and a collapsed grid track
   still contributes its gap, which would indent the name of every row that
   has no photo. */
/* The negative margin puts the horizontals on the window edges; the padding
   puts the three tracks back on the rail. Padding does not move a border, so
   the rules stay full width while the type stays aligned with everything else
   on the page.

   Nothing at the block end. The band's last horizontal is .ornament-divider's
   rule, which reaches the same two edges and is also the top of the newsletter;
   a border here would stack on it for the whole width. The verticals are placed
   against the padding box, so dropping it brings them down onto that rule. */
.tier-list {
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
  /* --rule-lead, not --rule: this line sits directly under the mosaic's last
     row of pieces, and the two have to be one line. */
  border-top: var(--rule-lead);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tier-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-32) var(--space-24);
}

/* The outer two columns give their outside padding back, so the first name
   starts on the same rail as the heading above it and the last one ends on it.
   Only the interior edges need clearance, and only because a rule runs there. */
.tier-row:first-child {
  padding-inline-start: 0;
}

.tier-row:last-child {
  padding-inline-end: 0;
}

/* The rules between the columns. They stop dead on the band's own horizontals
   rather than running past them: overshooting read as loose ends hanging off
   the section, not as a crossing.

   Same construction as .cfg-row--split's divider, on ::after rather than
   ::before because the hover wash already holds ::before. */
.tier-row + .tier-row::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  border-left: var(--rule-lead);
}

/* Bungee, so the count reads as a mark rather than as more copy. Color stays
   .t-meta's dim: --color-ink-faint is a hairline weight and falls to 3:1 on the
   paler half of the glass pool, which the column may be rolled any of. */
.tier-row-num {
  font-family: var(--font-display);
}

/* Behind the row, so the rules around the column stay on top of the fill.
   Hover goes deeper from wherever the column was rolled, so ink type gains
   contrast as the fill drops, which is the direction a hover has to move. */
.tier-row::before {
  transition: filter var(--dur-fast) var(--ease);
}

.tier-row:hover::before,
.tier-row:focus-visible::before {
  filter: brightness(calc(var(--band-shade, 1) * 0.78));
}

/* The outer two columns take their gutter back for the wash only. The rules
   around a column reach the window edge, so a fill that stopped at the rail
   left a strip of bare ground outside a lit cell. */
.tier-row:first-child::before {
  left: calc(-1 * var(--page-gutter));
}

.tier-row:last-child::before {
  right: calc(-1 * var(--page-gutter));
}

/* min-width lets a long name wrap rather than pushing the row past the rail. */
.tier-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Square, so covers shot at different ratios still give every row one height. */
.tier-row-thumb {
  --tier-thumb: 96px;
  flex: none;
  width: var(--tier-thumb);
  overflow: hidden;
}

.tier-row-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* No color shift on hover here. The type rests at --color-ink and the fill
   under it darkens, so contrast rises without it; --color-pink would lower it,
   and reads as a wrong note on a column that came up green or blue. The arrow
   carries the movement instead. */

/* The call to action sits at the foot of the column whatever the copy above it
   runs to, so the three read as one row of prompts rather than three ragged
   ones. */
.tier-row-cta {
  margin-top: auto;
  padding-top: var(--space-24);
}

.tier-row-arrow {
  display: inline-block;
  margin-left: var(--space-4);
  transition: transform var(--dur-fast) var(--ease);
}

.tier-row:hover .tier-row-arrow {
  transform: translateX(var(--space-4));
}

/* One column, so the rules that divided the tracks go back to dividing rows and
   the columns pay the page gutter themselves. Nothing crosses at this width:
   there is only one axis left to draw on. */
@media (max-width: 768px) {
  /* The list gives its padding back, so the gutter is paid once, by the rows.
     Held here and not on the rows, it stacked with theirs: the type sat two
     gutters in, off the rail every other section is on, and every fill stopped
     a gutter short of the edges the rules reach. */
  .tier-list {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .tier-row,
  .tier-row:first-child,
  .tier-row:last-child {
    padding: var(--space-24) var(--page-gutter);
  }

  /* The row's own box now reaches both window edges, so the outer columns have
     no gutter left to take back. */
  .tier-row:first-child::before {
    left: 0;
  }

  .tier-row:last-child::before {
    right: 0;
  }

  .tier-row + .tier-row {
    border-top: var(--rule);
  }

  .tier-row + .tier-row::after {
    content: none;
  }

  .tier-row-cta {
    padding-top: var(--space-8);
  }
}

/* PRIMARY BUTTON. An ink slab with on-ink type. The border matches the fill,
   so it reads as a pixel of self-colored padding and gives the pink hover an
   edge to move.

   .add-to-cart is the generic form submit across four customer templates as
   well as the product page. The name is historical. */
.btn-primary,
.add-to-cart,
.cart-checkout-btn,
.password-submit {
  border: var(--rule-edge);
  background: var(--color-ink);
  color: var(--color-on-ink);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

/* One hover for every button, primary and secondary: fill pink, match the
   border, flip the type to on-ink. */
.btn-primary:hover,
.add-to-cart:hover,
.cart-checkout-btn:hover,
.password-submit:hover,
.product-card-add:hover,
.cart-update-btn:hover {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-on-ink);
}

/* THE BUTTON FAMILY. One construction in three sizes, and every button in the
   theme is one of them:

     sm     --control-height-sm     30    --space-12   --fs-meta
     base   --control-height        36    --space-16   --fs-meta
     touch  --control-height-touch  44    --space-24   --fs-body

   The height always comes from a token and never from padding: a button sized
   by its inset lands near a step without being on one, which is how
   .product-card-add and .add-to-cart both arrived at 45px. Inline padding
   tracks the height, so the face never carries a size the box does not.

   How the label is centered depends on the element, and that is the only thing
   that varies. An <a> has no internal centering, so it either derives a leading
   from the height token (the .btn-primary family below) or flexes; a <button>
   centers its own content and takes the height directly. */

/* An <a>, so leading centers the label. Derived from the height token less
   the 1px border top and bottom. */
.btn-primary {
  display: inline-block;
  padding: 0 var(--space-16);
  height: var(--control-height);
  line-height: calc(var(--control-height) - 2 * var(--rule-width));
}

.btn-primary--sm {
  height: var(--control-height-sm);
  line-height: calc(var(--control-height-sm) - 2 * var(--rule-width));
  padding: 0 var(--space-12);
}

/* The touch step. --control-height-touch because the landing page's buttons are
   its nav as well as its main tap targets.

   The face is set here rather than by adding .t-body in the markup:
   .btn-primary belongs to the .t-meta group, which is declared after .t-body at
   equal specificity, so the role class would lose. Any rule sizing this must
   also sit after .btn-primary for the same reason. */
.btn-primary--lg {
  height: var(--control-height-touch);
  line-height: calc(var(--control-height-touch) - 2 * var(--rule-width));
  padding: 0 var(--space-24);
  font-size: var(--fs-body);
}

/* ==========================================================================
   NEWSLETTER AND FOOTER
   ========================================================================== */
/* Full width already: a block-level child of a section wrapper, which is a body
   child with no gutter. Measuring against 100vw instead would count the
   scrollbar, and nothing sets overflow-x on html or body. */
/* No margin either side. The bands it sits between now carry their own space
   inside their fills, so a margin here is a strip of bare ground between a
   filled band and the rule that closes it, which reads as the fill failing to
   reach its own edge. A shaded band runs rule to rule. */
.ornament-divider {
  border-top: var(--rule);
  margin-block: 0;
}

/* The landing page rules with one line, so the divider above its newsletter
   takes the lead like the bands above it. Scoped to the template rather than
   changed outright: the same divider closes About and the Gallery, where there
   is no mosaic to be consistent with and the faint ink is right. */
body.template-index .ornament-divider {
  border-top: var(--rule-lead);
}

.newsletter {
  /* Symmetrical, and inside the fill. Not calc(--gap-region / 2), which is 24px
     on desktop but 16px under 768px and stops being a block there. */
  padding-block: var(--space-24);
}

.newsletter-eyebrow {
  margin-bottom: var(--space-12);
}

.newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, var(--measure-narrow)) minmax(0, var(--measure));
  justify-content: start;
  gap: var(--space-32);
  align-items: baseline;
}

@media (max-width: 768px) {
  .newsletter-row {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

.newsletter-copy {
  max-width: var(--measure-narrow);
  color: var(--color-ink-dim);
}

.newsletter-form {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  max-width: var(--measure);
  border-bottom: var(--rule);
  padding-bottom: var(--space-4);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
}

/* Flex, so the arrow is centerd as a box. An inline glyph would be placed by
   its baseline instead, which puts an arrow low. */
.newsletter-submit {
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* .header-hamburger's construction: the padding is the hit area and the equal
     negative margin hands it back to the layout, so the rule under the field
     does not move. The arrow is 15px, under the 24px a target has to clear on
     its own. align-self keeps the taller box off the row's baseline, which
     would otherwise carry the rule down with it.

     The inline half is --space-8 because that is .newsletter-form's gap, and a
     negative margin wider than the gap it reaches into puts this box over the
     email field. As the later sibling it would win the overlap, so a tap on the
     last 8px of the field would submit the form instead of focusing it. Keep the
     two in step: the block half is free to grow, the inline half is not. */
  align-self: center;
  padding: var(--space-16) var(--space-8);
  margin: calc(-1 * var(--space-16)) calc(-1 * var(--space-8));
  transition: color var(--dur-fast) var(--ease);
}

/* Color, not opacity. Opacity is the disabled channel here, so fading on
   hover reads as switching off rather than lighting up. */
.newsletter-message {
  flex-basis: 100%;
  margin-top: var(--space-8);
}

.newsletter-message--success {
  color: var(--color-error);
}

.newsletter-message--error {
  color: var(--color-error);
  opacity: var(--opacity-soft);
}

/* Stated, not inherited, and never rolled: the footer row closes every page on
   the page's own color the way the header opens it, whatever the bands between
   them came up as. */
.footer {
  position: relative;
  background: var(--surface-page);
  padding-block: var(--space-16) var(--space-32);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: var(--rule);
  pointer-events: none;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-24);
}

@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
  }
}

/* THE RE-DEAL, and it looks like nothing. The copyright is the control: a
   button element reset to the type around it, with no underline, no cursor and
   no hover, so the only way to find it is to click it.

   A button rather than a span carrying a listener, so it stays reachable by
   keyboard. That matters more here than it looks: the hero pieces answer a
   pointer only, and this is the one route to the same effect that does not need
   one. The focus ring is left alone, being the one indication that only appears
   for the reader who needs it.

   No press nudge either. Every other control on the site takes one, and that is
   exactly why this one does not: a 1px drop is the tell. */
.footer-copyright {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: inherit;
  cursor: inherit;
  opacity: var(--opacity-soft);
}

.footer-links a {
  color: var(--color-ink-dim);
  transition: color var(--dur-fast) var(--ease);
}

/* ==========================================================================
   PRODUCT PAGE: GALLERY
   A thumbnail rail, one big picture, and the form beside it. Every slide is
   in the document at full size; .is-current is the only thing that moves, so
   the page works with JS off and the color picker can jump to any photo
   without a layout pass.
   ========================================================================== */
.product-layout {
  display: grid;
  /* The gallery sizes to its content, which it can do because the stage takes
     its width from --stage-h, and the form column takes whatever is left. The
     panel fills that column rather than capping inside it: a ceiling on the
     panel cannot stop the window growing, it only decides where the leftover
     goes, and with the panel pinned to the right rail every extra pixel landed
     in the one gap between the photograph and the form. That gap is the most
     prominent boundary on the page and it was reading at 116px against the
     48px every other boundary keeps. */
  grid-template-columns: auto minmax(var(--info-width), 1fr);
  gap: var(--gap-region);
  align-items: start;
  margin-block: var(--gap-region);

  --info-width: 380px;
  --thumb-w: 88px;

  /* The width the gallery can afford at this viewport: the page's two gutters,
     the rail, the two gaps either side of the stage, and the form column's
     floor. 17px is the classic scrollbar 100vw counts and the initial
     containing block does not. */
  --stage-w-max: calc(100vw
    - 2 * var(--page-gutter)
    - var(--thumb-w)
    - 2 * var(--gap-region)
    - var(--info-width)
    - 17px);

  /* Declared here, not on .product-stage, because the thumbnail rail caps its
     own height against the picture beside it. */
  /* Two constraints, and the stage takes the smaller. Height, because the
     sticky gallery has to clear the header it sits under and leave the same
     distance below, or the photograph runs past the bottom of the screen and
     sticky stops holding all of it. Width, because the stage derives its width
     from this value through --photo-ratio, and a height the column cannot
     afford in width put the picture underneath the panel: .product-stage is a
     scroll container, so its minimum contribution to the track is 0 and
     nothing stops it overflowing its own grid area.

     The 4/3 is --photo-ratio inverted and has to move with it. The 460px floor
     is applied after the width cap and so overrides it, which is safe only
     because the stack breakpoint is 1120: there the width term is 443px
     against the floor's 345px. Re-derive floor and breakpoint together. */
  --stage-h: clamp(460px,
                   min(calc(95svh - var(--header-h) - var(--gap-region)),
                       calc(var(--stage-w-max) * 4 / 3)),
                   820px);
}

/* Placed explicitly rather than by source order, so the markup can run stage
   then thumbs. That is the reading order on mobile, and it puts the photograph
   before its own navigation for a screen reader.

   Both tracks size to their content and sit at the column's leading edge, so
   the thumbnail rail lands on the page's own rail. The slack the stage cannot
   use is handed to the form column rather than centering the gallery, which
   pulled it off the rail and left a hole in the middle.

   --gap-region between the rail and the picture, which is the distance every
   other boundary on this page keeps: the two gutters, the top, the bottom, and
   the picture to the panel. --stage-w-max pays for both of the gaps it sits
   between. */
.product-gallery {
  display: grid;
  grid-template-columns: var(--thumb-w) auto;
  justify-content: start;
  gap: var(--gap-region);
  align-items: start;

  /* The photograph stays while the options scroll past it. This is the short
     column, so it genuinely sticks; the form beside it is longer than the
     window and never could. .product-layout's align-items: start is what lets a
     grid item be shorter than its row and stick at all.

     The offset is the distance this column already sits below the header in
     flow, so pinning moves nothing: at any other value the picture jumps
     against the panel the moment the page scrolls. --stage-h clears the same
     distance below. */
  position: sticky;
  top: calc(var(--header-h) + var(--gap-region));
}

.product-stage  { grid-area: 1 / 2 / 2 / 3; }
.product-thumbs { grid-area: 1 / 1 / 2 / 2; }

/* ---- The rail ------------------------------------------------------------
   Scrolls on its own once there are more thumbnails than fit, rather than
   stretching the page. A standard listing carries forty. */
.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-height: var(--stage-h);
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--photo-ratio);
  padding: 0;
  border: var(--rule);
  overflow: hidden;
  background: var(--surface-well);
  opacity: var(--opacity-soft);
  transition: opacity var(--dur-fast) var(--ease), outline-color var(--dur-fast) var(--ease);
}

.product-thumb:hover {
  opacity: 1;
}

/* A ring inside the thumbnail's own box, not its keyline recolored: the rail
   is a row of pictures that all carry the hairline, so the chosen one has to be
   marked by something the others do not have rather than by a shade of the
   thing they share. outline, not border: it costs no layout, so the rail does
   not shift as the selection moves. */
.product-thumb.is-current {
  opacity: 1;
  outline: var(--focus-ring);
  outline-offset: calc(-1 * var(--focus-offset));
}

/* A video in the rail reads as a still otherwise. */
/* --fs-glyph-play is a glyph size, not a step of the type scale: the span holds
   U+25BA, an icon that happens to be a character, and it is sized to fill the
   badge rather than to sit beside any text. The half-em padding-left offsets
   the triangle's own left bearing, which otherwise parks it right of center in
   a circle. */
.product-thumb-play {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  width: var(--glyph-play);
  height: var(--glyph-play);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: var(--fs-glyph-play);
  line-height: var(--lh-flat);
  padding-left: 1px;
}

/* ---- The stage -----------------------------------------------------------
   One box, with every slide stacked in it. The box keeps its height from
   --stage-h so switching pictures never reflows the page. */
.product-stage {
  position: relative;
  height: var(--stage-h);
  aspect-ratio: var(--photo-ratio);
  /* The net under --stage-w-max, not a second way of sizing the box. The height
     is definite, so the ratio is only preferred and this clamps the width
     instead: a stage the column cannot fit letterboxes its picture rather than
     escaping the track and painting under the panel. */
  max-width: 100%;
  background: var(--surface-well);
  border: var(--rule);
  /* --radius comes from the reset. overflow: hidden is what clips the picture
     to it. */
  overflow: hidden;
}

/* A standard listing carries forty photographs and one of them is wanted.
   content-visibility is what keeps the other thirty-nine off the wire: a
   skipped subtree is not laid out, so its lazy image never comes into view and
   never starts. visibility: hidden left every slide in view at inset 0, which
   is why loading="lazy" on them deferred nothing and the whole set fetched at
   up to 1800w on arrival.

   The rule the old comment was written against still holds: a slide with no
   layout has not decoded its image, and switching to it flashes white. What
   changed is that the flash is now somebody's job. theme.js widens the window
   to the incoming slide and waits for its decode before it paints the switch,
   so nothing is shown before it can be. Where content-visibility is not
   supported the declaration drops and the stage behaves as it did: slower,
   never broken. */
.product-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  content-visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease);
}

/* is-current is named here beside is-near rather than left to imply it: the
   first slide carries is-current from Liquid, before any script has run, and
   without this line the page would open on a skipped subtree. */
.product-media.is-near,
.product-media.is-current {
  content-visibility: visible;
}

.product-media.is-current {
  opacity: 1;
  visibility: visible;
}

.product-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The video fills the stage and is cut to it, the way the rail's thumbnails are.
   Contained, it sat in a box of --surface-well inside a frame every photograph
   fills to the border. The stage's own overflow does the cutting, and the poster
   frame is covered by the same rule. Photographs stay contained: they are shot
   to --photo-ratio and fill the stage already, and a crop would cut the piece
   being sold. The fill itself comes from the photograph-fill group. */

.product-media-count {
  position: absolute;
  right: var(--space-12);
  bottom: var(--space-12);
  margin: 0;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  background: var(--surface-scrim);
  color: var(--color-ink);
}

/* Arrows sit inside the stage, vertically centerd, one gutter in from its
   edge. The stage cannot reach the panel, so they need no flank arithmetic. */
.stage-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: var(--control-height-touch);
  height: var(--control-height-touch);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-ink);
  transition: background-color var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease);
}

.stage-arrow--prev { left: var(--space-12); }
.stage-arrow--next { right: var(--space-12); }

/* Same material as the panel: tinted deep ground, grain at soft-light, a
   little blur. The ring lives on ::before so it draws around the frosted
   circle instead of over the backdrop it samples. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage-arrow {
    background-color: rgb(var(--ground-deep-rgb) / var(--tint-glass));
    background-image: var(--grain-glass);
    background-size: var(--grain-tile-glass) var(--grain-tile-glass);
    background-blend-mode: soft-light;
    -webkit-backdrop-filter: blur(var(--blur-md)) saturate(var(--saturate-glass));
    backdrop-filter: blur(var(--blur-md)) saturate(var(--saturate-glass));
  }

  .stage-arrow:hover {
    background-color: rgb(var(--ground-deep-rgb) / var(--tint-glass-hi));
  }
}

/* The hover tint follows the base into each fallback. Stated unconditionally it
   won everywhere, @supports carrying no specificity of its own, so the frosted
   arrow hovered at the solid tint and --tint-glass-hi was never reached on any
   engine. The reduced-transparency block is last, so it also takes the arrow
   that has backdrop-filter and a reader who does not want it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage-arrow {
    background: var(--surface-raised);
  }

  .stage-arrow:hover {
    background-color: rgb(var(--ground-deep-rgb) / var(--tint-solid-hi));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .stage-arrow {
    background: var(--surface-raised);
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .stage-arrow:hover {
    background-color: rgb(var(--ground-deep-rgb) / var(--tint-solid-hi));
  }
}

.stage-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  border: var(--rule);
  border-radius: 50%;
  pointer-events: none;
}

.stage-arrow:hover::before {
  border-color: var(--color-pink);
}

/* 1px optical nudge toward where the chevron points. icon-chevron centers its
   own path in the viewBox, so this is the only correction. */
.stage-arrow svg {
  translate: var(--stage-arrow-nudge) 0;
}

.stage-arrow--prev { --stage-arrow-nudge: -1px; }
.stage-arrow--next { --stage-arrow-nudge: 1px; }

/* Leans the way it takes you. */
.stage-arrow--prev:hover { translate: -2px -50%; }
.stage-arrow--next:hover { translate: 2px -50%; }

@media (prefers-reduced-motion: reduce) {
  .stage-arrow,
  .stage-arrow--prev:hover,
  .stage-arrow--next:hover {
    transition: background-color var(--dur-fast) var(--ease);
    translate: 0 -50%;
  }

  .product-media {
    transition: none;
  }
}

/* ==========================================================================
   PRODUCT PAGE: THE INFO COLUMN
   The form beside the gallery. In normal flow now, so it is as long as it
   needs to be and the page scrolls it. The gallery is what sticks, not this: a
   sticky box taller than the viewport barely moves, and the buy button sits at
   the bottom of this one. Nothing covers reachability under 768: the button is
   roughly four screens down a phone, which is the accepted cost of letting the
   photograph lead. Anything that changes --stage-h or the order of this column
   moves that distance.
   ========================================================================== */
/* Fills its column, so its right edge lands on the page's right rail and the
   gap to the photograph stays --gap-region at every width. */
.product-info {
  background: var(--surface-raised);
  border: var(--rule);
}

/* --surface-raised is rgb(--ground-deep-rgb), which is what the band paints at
   brightness 1, so the flat fill would sit on top of the rolled one and hide
   it. The roll supplies the panel's ground once it is a band. */
.product-info.is-shaded {
  background: none;
}

/* The panel is a rounded box, so its fill takes the same corners. Without this
   the square fill sits under the curve and fills the corner back in, leaving
   the border tracing a radius the surface does not have. */
.product-info.is-shaded::before {
  border-radius: inherit;
}

.cfg-shell {
  display: flex;
  flex-direction: column;
}

.cfg-head,
.cfg-foot {
  flex-shrink: 0;
}

/* The body opens against the head's closing rule, which is a row boundary like
   any other inside the form, so its first row adds no inset of its own. The
   head's does: it is the top of the panel, and the back link needs the same
   space above it that the rule below it sits at. */
.cfg-body > .cfg-row:first-child {
  padding-top: 0;
}

/* No inset at the block start: the panel's top edge has to sit level with the
   top of the photograph and the top of the thumbnail rail beside it, and those
   two are the edges of their boxes. The back row's own --cfg-row-pad is what
   stands its text off the keyline, the same distance the rule below it sits at,
   so the row reads as a strip rather than as type pinned to a corner. */
.cfg-head,
.cfg-body {
  padding-inline: var(--cfg-pad);
}

.product-info [data-photo-field],
.product-info [data-reference-field],
.product-info [data-rush-date] {
  margin-bottom: 0;
}

.cfg-foot {
  padding: var(--cfg-pad);
  border-top: var(--rule);
}

/* display is set because the back link is an <a>: padding-block on an inline
   box paints over its neighbors instead of spacing the row. */
.cfg-row {
  --cfg-row-pad: var(--space-16);
  display: block;
  position: relative;
  padding-block: var(--cfg-row-pad);
}

/* The row rule runs to the panel's edge rather than stopping at the text, so
   it has to bleed back out through the panel's inline padding. That puts it on
   a pseudo-element: a border on the row itself is inset by that padding.

   `~`, not `+`: hidden inputs and the upload-strings <script> sit between rows
   in the form, and an adjacent match drops the rule wherever one lands. Every
   row but the first needs one, which is what the general sibling gives. */
.cfg-row ~ .cfg-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-1 * var(--cfg-pad));
  right: calc(-1 * var(--cfg-pad));
  border-top: var(--rule);
  pointer-events: none;
}

.cfg-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

/* The vertical rule between a split row's two halves. */
.cfg-row--split > * + * {
  position: relative;
  padding-left: var(--space-16);
}

.cfg-row--split > * + *::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--cfg-row-pad));
  bottom: calc(-1 * var(--cfg-row-pad));
  left: 0;
  border-left: var(--rule);
}

/* The bleed above meets the row rule. The first row has no rule to meet, so it
   would run up into the panel's own padding instead. */
.cfg-body > .cfg-row:first-child.cfg-row--split > * + *::before {
  top: 0;
}

.product-info .field {
  margin-bottom: 0;
}

/* The lead-in on each Anatomy line, in full ink against the body's dim text. */
.anatomy-term {
  color: var(--color-ink);
}

/* An <a> in a body of running text, so it needs its own block spacing. Ink is
   here and not with the full-ink links above the type roles, where a bare class
   ties with .t-meta and loses on order. */
.reference-link {
  display: inline-block;
  margin-top: var(--space-16);
  color: var(--color-ink);
}

.cfg-back-chevron {
  margin-right: var(--space-8);
}

.product-info h1 {
  margin: 0;
}

.product-info-description {
  color: var(--color-ink-dim);
}

.product-info-description p {
  margin: 0 0 var(--space-12);
}

.product-info-description p:last-child {
  margin-bottom: 0;
}

/* Inside the panel the accordion is more rows of the same table: no space of
   its own, and its rules land on the same edge as the row rules above, which
   means bleeding out through the panel's inline padding and paying it back. */
.product-info .product-details {
  margin-block: 0;
  margin-inline: calc(-1 * var(--cfg-pad));
  padding-inline: var(--cfg-pad);
  border-inline: 0;
  border-bottom: 0;
}

.product-info .product-details-item summary {
  padding-block: var(--space-12);
}

.product-info .product-details-item:last-child {
  border-bottom: 0;
}

.product-info .add-to-cart {
  margin-bottom: 0;
}

/* ---- The stack -----------------------------------------------------------
   Below 1120 everything is one column, in source order: stage, rail, then the
   form. The breakpoint is where the two columns stop fitting rather than a round
   number: the two gutters take 96, the rail 88, the two gaps either side of the
   stage 96, the form's floor 380, which leaves 460 for the picture, or 443 once
   a classic scrollbar is paid, against --stage-h's 460px floor asking 345.

   That last pair is the load-bearing one: the floor overrides --stage-w-max, so
   this breakpoint is what keeps the floor affordable. Re-derive it if
   --info-width, --thumb-w, --gap-region or the floor moves. */
@media (max-width: 1120px) {
  .product-layout {
    grid-template-columns: 1fr;
    /* The same distance as the gutters either side of it, which is what every
       boundary on this page keeps. */
    gap: var(--gap-region);
  }

  /* One column, in source order. */
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-stage,
  .product-thumbs {
    grid-area: auto;
  }

  .product-gallery {
    position: static;
  }

  /* One column here, so a ceiling would only leave dead space to its right:
     700px of panel in a 1024px column at 1120. */
  .product-info {
    max-width: none;
    justify-self: stretch;
  }


  /* Sized by width here, not height: the column is the constraint once the
     layout stacks, and the 3:4 ratio gives the height. Driving it from
     --stage-h left the picture about half the column wide.

     The ceiling is on the height, not the width. Capping the width instead kept
     the ratio but stopped the stage short of its column, so the photograph's
     right edge agreed with nothing while the panel under it ran to the rail. A
     max-height lets the box keep the full column and spend the ceiling on
     letterboxing: --surface-well is the ground it letterboxes against, and
     .product-media img is already width:auto/height:auto inside it. */
  .product-stage {
    width: 100%;
    max-height: 76svh;
    height: auto;
  }

  /* The rail goes horizontal: a vertical one beside a full-width picture
     leaves the picture too narrow to read. */
  .product-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--space-4);
  }

  .product-thumb {
    width: var(--thumb-w);
  }
}

@media (max-width: 768px) {
  /* The panel stays the inset rounded box it is at every other width. It used
     to square off and drop its side borders here, on the stated grounds of
     being full-bleed, but it never was: .product-layout keeps the container's
     gutter at this width and nothing bleeds the panel back out, so the rule
     left two hairlines stopping --page-gutter short of each edge with no
     verticals to close them. The inner inset went with it, since --page-gutter
     on a box already inset by the gutter put the panel's contents twice as far
     in as everything else on the page. */

  /* One field per row. Two tracks in a panel this wide leave the second select
     about 81px of text for a 16px label: the gutter above is the page's, the
     divider takes another 16px off, and --fs-input-min floors every control at
     this width. A select does not wrap, so the option clipped.

     The gap is already --space-16 and carries over to the row axis unchanged.
     Nothing replaces the divider: these are two fields of one row, and the row
     draws its own rule, so a line between them would read as two rows. */
  .cfg-row--split {
    grid-template-columns: 1fr;
  }

  .cfg-row--split > * + * {
    padding-left: 0;
  }

  .cfg-row--split > * + *::before {
    content: none;
  }
}

@media print {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* A viewport height means nothing on paper, and --stage-h would print the
     460px floor in a full-width column. The ratio takes the height from the
     width the sheet gives. */
  .product-stage {
    width: 100%;
    height: auto;
  }

  .product-thumbs,
  .stage-arrow {
    display: none;
  }
}
/* ==========================================================================
   FORM CONTROLS
   Labels, fields, chips, the stepper, the upload.

   A control's own states are here, beside the control: invalid fields, and the
   chips' hover, selected and disabled. INTERACTIVE STATES below holds the
   states that are one rule across every control in the theme, hover, press,
   focus and disabled, which is why chip rules appear in both.
   ========================================================================== */
.field {
  margin-bottom: var(--space-24);
}

.field-label {
  margin-bottom: var(--space-8);
  display: block;
}

/* THE ONE SANCTIONED WEIGHT OVERRIDE: a child dropping back inside a .t-label
   parent. The role lifts a whole label to --fw-medium, and these are asides
   within it, so they return to .t-meta's weight rather than a new size.
   .address-default-tag is the same aside inside .customer-block h3, so it is in
   this group rather than a copy of it 850 lines further down. Any other
   font-weight on a component is a role that was not applied. */
.field-label-optional,
.address-default-tag {
  color: var(--color-ink-dim);
  font-weight: var(--fw-regular);
}

.field-label-required {
  color: var(--color-ink);
  font-weight: var(--fw-regular);
}

.field-helper {
  margin-top: var(--space-8);
}

.field-warning {
  color: var(--color-error);
  margin-top: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
}

.field-warning[hidden] {
  display: none;
}

.field-static {
  padding-block: var(--space-4);
}

.field.is-invalid .field-upload {
  border-color: var(--color-ink);
  background: var(--color-error-bg);
}

.field.is-invalid .field-helper {
  color: var(--color-error);
}

/* The photo field stacks two helpers: the count it needs, and the formats it
   takes. Only the count can be wrong. */
.field.is-invalid .field-helper[data-photo-formats] {
  color: var(--color-ink-dim);
}

.chip-group {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* CONTROL BASE. A hairline box flush with the page ground, visible only by
   its keyline. The ring goes pink on hover; the fill goes ink when chosen.
   Shared by the chip, the swatch chip and the stepper button. */
.chip,
.chip-swatch,
.stepper-btn {
  border: var(--rule);
  background: var(--surface-page);
  color: var(--color-ink);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.chip {
  padding: var(--space-8) var(--space-16);
  text-align: center;
}

/* The ring, not the fill. A chosen chip already fills ink and its
   .is-selected border wins the tie, so it stays put. */
.chip:hover,
.chip-swatch:hover,
.stepper-btn:hover {
  border-color: var(--color-pink);
}

/* Chosen: the fill goes ink, which is why hover only moves the ring. */
.chip.is-selected,
.chip-swatch.is-selected {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-on-ink);
  font-weight: var(--fw-medium);
}

/* ---- Stepper -------------------------------------------------------------
   A stepper, not four chips: in a 420px panel those wrap onto two lines and
   read as four unrelated options rather than one number going up. */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

.stepper-btn {
  width: var(--control-height);
  height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 1px;              /* the minus and plus glyphs sit high */
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.stepper-value {
  min-width: 1.5ch;
  text-align: center;
}

.product-info .stepper-btn {
  background: var(--surface-inset);
}

.chip-swatch {
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  text-align: left;
}

/* ::after, not the element. .swatch-color's own border is zeroed below and
   the pseudo-element draws the ring. */
.chip-swatch.is-selected .swatch-color::after {
  border-color: var(--color-on-ink);
}

.swatch-color {
  border-radius: var(--radius-sm);
  width: var(--swatch);
  height: var(--swatch);
  display: block;
}

.input-text,
.input-select,
.input-textarea {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  color: var(--color-ink);
}

.input-textarea {
  resize: vertical;
}

/* No font-size. A placeholder smaller than the text replacing it makes the
   field jump the moment you type. Inherits the input's size, differs by
   color. */
input::placeholder,
textarea::placeholder,
.input-text::placeholder,
.input-textarea::placeholder {
  color: var(--color-ink-dim);
  opacity: 1;
}

/* iOS zooms the viewport on a focused input under 16px, so every text input
   in the theme floors at --fs-input-min. Add new ones to this list. */
@media (max-width: 768px) {
  .input-text,
  .input-select,
  .input-textarea,
  .search-box input,
  .cart-item-qty-input,
  .newsletter-form input,
  .password-input {
    font-size: var(--fs-input-min);
  }
}

/* --color-ink spelled out, since a data URI cannot read the variable.
   Restate it alongside --color-ink if the palette moves. */
.input-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fbf6ef' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-16) center;
  padding-right: var(--space-32);
}

/* FIELD SURFACE. A hairline box flush with the page ground, the same
   relationship the control base above has. .search-box is not here: it sits on
   --surface-well, the one field that is a recess rather than a flush box.

   background-color, not the shorthand: .input-select's chevron is a
   background-image set above, and a shorthand here would erase it and leave
   every select in the theme looking like a plain box. */
.input-text,
.input-select,
.input-textarea,
.field-upload,
.cart-item-qty-input,
.password-field-row {
  border: var(--rule);
  background-color: var(--surface-page);
}

.field-upload {
  padding: var(--space-12) var(--space-16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.field-upload-placeholder.has-file {
  color: var(--color-ink);
}

.field-upload-action {
  color: var(--color-ink);
}

.field-checkbox-label {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  cursor: pointer;
}

/* The row is align-items: flex-start, so the box aligns to the top of the
   label's line box rather than to its first baseline and reads high. 3px is the
   optical correction, tuned rather than derived: the amount depends on the UA's
   own font-size for a checkbox, which no token here can see. */
.field-checkbox input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  margin-top: 3px;
  accent-color: var(--color-ink);
  width: var(--control-check);
  height: var(--control-check);
  flex-shrink: 0;
}

/* A <button>, so it centers its own label and takes the height token directly.
   The touch step: this is the panel's one commitment. */
.add-to-cart {
  display: block;
  width: 100%;
  min-height: var(--control-height-touch);
  padding: 0 var(--space-24);
  margin-bottom: var(--space-16);
}

.add-to-cart-fineprint {
  margin: 0;
}

/* Cart errors, on the two surfaces that can produce one: under the buy button
   and under the drawer's header. Every failure in the cart used to reach the
   shopper only through a 1px clipped live region, so none of them reached a
   sighted one at all.

   --color-error-bg is a lighter red than the page's own ground, which on its own
   left the panel barely separated from what it sits on. Paired with the ink rule
   instead, which is exactly how .field.is-invalid marks the upload field, so a
   refused add and a refused photo read as the same kind of event. Full ink for
   the text rather than --color-error: this is the one message in the cart that
   has to be read, and it is being read off the error ground, not off the page.
   [hidden] does the hiding; nothing here fights it. */
.cart-error,
.cart-drawer-error {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-error-bg);
  border: var(--rule-edge);
  padding: var(--space-8) var(--space-12);
}

.add-to-cart + .cart-error {
  margin-top: var(--space-12);
}

/* Matches the inset every row in the drawer body carries, so the message lines
   up with the lines it is about. */
.cart-drawer-error {
  margin-inline: var(--space-24);
}

/* The button's own bottom margin is zeroed inside the panel, so the gap under
   it lives here. Wider than the gap between the two notes, which keeps them
   reading as a pair hanging off the button. */
.add-to-cart + .add-to-cart-fineprint {
  margin-top: var(--space-12);
}

/* Two unrelated notes, not one paragraph that wrapped. */
.add-to-cart-fineprint + .add-to-cart-fineprint {
  margin-top: var(--space-8);
}

.product-details {
  margin-top: var(--gap-region);
  border-top: var(--rule);
}

.product-details-item {
  border-bottom: var(--rule);
}

.product-details-item summary {
  padding: var(--space-16) 0;
}

.product-details-item summary::after {
  color: var(--color-ink-dim);
}

/* The two bodies of the theme's one disclosure construction, which the filter
   groups, the product details and the FAQ share. Same inset, stated once.
   .faq-answer is styled further down with the rest of its rich text. */
.product-details-body,
.faq-answer {
  padding: 0 0 var(--space-24);
}

.product-details-body p {
  margin: 0 0 var(--space-8);
}

.product-details-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-page {
  /* .page-content supplies no vertical space, so without this the first item
     butts the header hairline. Bottom stays 0: .cart-continue and the ornament
     divider already give it 80px. */
  padding-block: var(--gap-region) 0;
}

.cart-item {
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-24);
}

.cart-item-row {
  display: grid;
  grid-template-columns: var(--thumb-row) 1fr auto;
  gap: var(--space-16);
  align-items: flex-start;
}

@media (max-width: 768px) {
  .cart-item-row {
    grid-template-columns: var(--thumb-row-sm) 1fr;
    gap: var(--space-12);
  }

  .cart-item-price-mobile {
    display: block;
    margin-top: var(--space-8);
  }

  .cart-item-price-desktop {
    display: none;
  }
}

@media (min-width: 768.01px) {
  .cart-item-price-mobile {
    display: none;
  }
}

.cart-item-image {
  aspect-ratio: var(--photo-ratio);
  background: var(--surface-well);
  overflow: hidden;
}

.cart-item-title {
  margin-bottom: var(--space-8);
  display: block;
}

.cart-item-spec {
  margin-bottom: var(--space-12);
}

.cart-item-properties {
  margin-bottom: var(--space-16);
}

.cart-item-properties .property-value {
  color: var(--color-ink);
}

.cart-item-remove {
  display: inline-block;
  margin-top: var(--space-16);
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  cursor: pointer;
}

.cart-item-price {
  white-space: nowrap;
}

.cart-totals {
  margin-bottom: var(--space-24);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-8) 0;
}

.cart-totals-row--total {
  padding: var(--space-12) 0 0;
  border-top: var(--rule);
  margin-top: var(--space-8);
}

.cart-totals-row .total-value {
  color: var(--color-ink);
}

.cart-totals-row .label {
  color: var(--color-ink-dim);
}

.cart-totals-row .placeholder {
  color: var(--color-ink-dim);
}

.cart-process {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: var(--rule);
}

.cart-checkout {
  margin-block: var(--space-32) var(--space-24);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-24);
  align-items: end;
}

/* A textarea collapsed to one control-height row. The leading is whatever is
   left after padding and borders, not a rhythm choice. Any larger and the
   single line scrolls inside its own box. */
.cart-checkout .input-textarea {
  resize: none;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: var(--space-8) var(--space-16);
  line-height: calc(var(--control-height) - var(--space-16) - 2px);
  display: block;
}

/* Centerd by flex and not by leading like .btn-primary, because this one takes
   --control-height-touch on a phone: a leading derived from the box would have
   to be restated at every height the button takes, and the label sat at the top
   of a 36px box for as long as it was not. */
/* Base height, so base inset. It carried the touch step's --space-24 against a
   36px box, which read wider than the update button beside it at the same
   height. */
.cart-checkout-btn {
  padding: 0 var(--space-16);
  height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-checkout-actions {
  display: flex;
  gap: var(--space-12);
  align-items: end;
}

.cart-update-btn {
  height: var(--control-height);
  padding: 0 var(--space-16);
  white-space: nowrap;
}

.cart-item-qty {
  margin: var(--space-8) 0;
}

.cart-item-qty-input {
  width: var(--field-qty);
  height: var(--control-height-sm);
  padding: 0 var(--space-8);
  color: var(--color-ink);
  text-align: center;
}

@media (max-width: 768px) {
  .cart-checkout {
    grid-template-columns: 1fr;
    margin-block: var(--space-24);
    gap: var(--space-16);
  }

  .cart-checkout .input-textarea {
    height: calc(var(--control-height) + var(--space-24));
  }

  .cart-checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-checkout-btn {
    width: 100%;
    height: var(--control-height-touch);
  }

  .cart-update-btn {
    width: 100%;
    height: var(--control-height-touch);
  }
}

.cart-continue {
  padding-bottom: var(--space-32);
}

/* The drawer's empty line. The cart page uses .empty-state. Auto margins center
   it in .cart-drawer-lines, which is the drawer's full height less the head; the
   padding is the 24px rail only, so a long line wraps inside it. The frame the
   drawer runs under is paid by the drawer itself, so the centering here is
   against a box whose edges all show. */
.cart-empty {
  margin: auto;
  padding-inline: var(--space-24);
  text-align: center;
}

.cart-empty p {
  color: var(--color-ink-dim);
  margin: 0;
}

.empty-state {
  margin-block: var(--gap-region);
  padding: var(--space-24);
  text-align: center;
}

.empty-state p {
  color: var(--color-ink-dim);
  margin: 0 0 var(--space-24);
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PASSWORD PAGE
   ========================================================================== */
/* dvh, not vh: on a phone 100vh is the tallest the window ever gets, so a card
   centered in it sits low behind the browser's own bars and moves as they
   retract. This page is one card in the middle of the screen and nothing else,
   which is where that shows most. */
.password-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-24);
  background: var(--surface-page);
}

/* --space-32, not --gap-region: section rhythm is too much air for a card
   holding one sentence and one field. The 16 gap keeps the field from reading
   as part of the sentence above it.

   The inset is one custom property because three things are measured from it:
   the padding itself, the logo's offset from the left edge, and the entry's
   bleed back out to the card's edges. They only stay aligned at the breakpoint
   if one declaration moves all three.

   Contents sit on a rail, the way every other page in the theme does. Centered,
   the card carries none of the shop's alignment and reads as a login box. */
.password-card {
  position: relative;
  --password-card-pad: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: var(--measure-card);
  width: 100%;
  padding: var(--password-card-pad);
}

/* The logo straddles the top edge, so the card needs a region's worth of room
   above the blurb for it to sit in. */
.password-card:has(.password-logo-wrap) {
  margin-top: var(--space-24);
  padding-top: var(--gap-region);
}

/* On the card's rail, so the logo starts where the type below it starts.

   A literal zero for the leading, not a token. It collapses the line box the
   inline <img> generates, so the wrap hugs the logo. */
.password-logo-wrap {
  position: absolute;
  top: 0;
  left: var(--password-card-pad);
  z-index: var(--z-base);
  line-height: 0;
  transform: translateY(-50%);
}

.password-logo {
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  max-height: 56px;
}

.password-blurb {
  margin: 0;
}

.password-template-content:not(:has(*)) {
  display: none;
}

.password-form {
  position: relative;
  width: 100%;
  margin: 0;
}

.password-form-inner > * + * {
  margin-top: var(--space-8);
}

/* Only the row states a height. Its children stretch into what is left
   inside the hairline, 2px less than the token. Restating the full height on a
   child overflows the border box and the row's overflow slices its corners. */
.password-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--control-height-lg);
  height: var(--control-height-lg);
  overflow: hidden;
  /* --radius-sm, not the reset's --radius: the card already carries that, and a
     box repeating its container's corner at the same size inside it reads soft
     rather than nested. */
  border-radius: var(--radius-sm);
}

/* THE DOOR IS A RECESS. The waitlist field sits flush on --surface-page like
   every other field in the theme; this one is set back, which is what says the
   two rows are different errands rather than one two-field form.

   Not --surface-well, the recess the search box uses: it resolves to
   --color-ground-deep, the fill the card itself paints, so the field would
   disappear into it. --surface-inset is alpha over whatever it sits on and
   stays a step darker than the card. */
.password-entry .password-field-row {
  background-color: var(--surface-inset);
}

/* The row draws the only rounded corners; the two halves inside are welded, so
   neither takes the global radius. */
.password-input,
.password-submit {
  border-radius: 0;
}

/* No line-height: an input centers its own single line, and pinning the
   leading to a height token breaks that as soon as the box and the token
   disagree.

   The padding-bottom is the one place Niramit's lopsided em box shows, one
   short line alone in a 38px box. See --type-optical-lift; twice the lift
   raises centerd content by the lift. */
.password-input {
  min-width: 0;
  margin: 0;
  padding-inline: var(--space-12);
  padding-bottom: calc(2 * var(--type-optical-lift));
}

.password-input::placeholder {
  color: var(--color-ink-dim);
  opacity: 1;
}

/* Width comes from the grid column, height from the stretch. */
.password-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  /* Welded to the field, so only the shared edge is drawn. Overrides the
     primary button's full border. */
  border: 0;
  border-left: var(--rule);
}

.password-page #shop-hcaptcha-badge-container {
  transform: scale(0.7);
  transform-origin: bottom right;
}

.password-notice {
  margin: 0;
  text-align: left;
  color: var(--color-ink);
}

.password-notice--success {
  color: var(--color-error);
}

.password-notice--error {
  color: var(--color-error);
}

/* The wordmark stands in for the logo, so it takes the logo's job of naming the
   shop and none of its box: the logo straddles the card's top edge, this sits
   inside it as the first line.

   The bottom margin carries the card's 16 gap up to --step-body, the step this
   theme puts between a title and the body under it. A role may be overridden
   for margin, which is what this is. */
.password-wordmark {
  margin: 0 0 var(--space-8);
}

/* THE WAY IN. A disclosure rather than a second form beside the waitlist. Nearly
   every visitor is here for the list and only the shop is here for the door, so
   the door is named, closed, and one hairline away from the rest.

   The card's own gap already separates this from the form above it; the rule is
   what says the two are different errands.

   The negative margins put that rule on the card's own edges and the padding
   puts the type back on the rail, the way .tier-list places its horizontals.
   Padding does not move a border, so the rule spans the card while nothing
   inside it leaves the column. Inset by the card's padding instead, it floats
   as a short line under the text and divides nothing.

   The block margin runs the strip to the card's bottom edge, so closed, the
   summary's touch height is the whole strip and the label sits centered in it.
   Left inside the padding the label carries the card's inset underneath it as
   well as its own, and closes the card lopsided. Nothing paints here, only the
   border-top, so square corners against the card's rounded ones cost nothing. */
.password-entry {
  margin-inline: calc(-1 * var(--password-card-pad));
  margin-bottom: calc(-1 * var(--password-card-pad));
  padding-inline: var(--password-card-pad);
  border-top: var(--rule);
  /* The reset gives everything --radius, which bends a lone top border into the
     lip of a rounded box. A rule is a straight line or it is not a rule. */
  border-radius: 0;
}

/* The flex row, the hidden WebKit marker and the +/- are the theme's disclosure
   construction, shared with the filter groups, the product details and the FAQ.
   The min-height is the finger, not the type. */
.password-entry-summary {
  min-height: var(--control-height-touch);
  transition: color var(--dur-fast) var(--ease);
}

/* The strip closes the card, so open, this is what puts the card's own inset
   back under the field. */
.password-entry-body {
  padding-bottom: var(--password-card-pad);
}

.password-entry-body > * + * {
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .password-page {
    padding: var(--space-16);
  }

  /* The property, not the padding: the logo's offset and the entry's bleed are
     both measured from it, so moving the inset in one place keeps all three on
     the same edge. */
  .password-card {
    --password-card-pad: var(--space-24);
  }
}

/* ==========================================================================
   CUSTOMER ACCOUNT PAGES
   All seven templates are hand written in templates/customers/.
   ========================================================================== */
.customer-page {
  padding-block: var(--gap-region);
}

.customer-eyebrow {
  margin-bottom: var(--space-8);
}

.customer-title {
  margin: 0 0 var(--space-24);
}

.customer-meta {
  margin-bottom: var(--space-32);
}

.customer-errors {
  padding: var(--space-12) var(--space-16);
  color: var(--color-error);
  margin-bottom: var(--space-24);
}

.customer-footer-links {
  margin-top: var(--space-16);
  display: flex;
  gap: var(--space-16);
}

.customer-footer-links a,
.customer-footer-links button {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
}

.customer-footer-links button {
  cursor: pointer;
}

.customer-orders {
  display: flex;
  flex-direction: column;
}

.customer-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: var(--rule);
  color: var(--color-ink);
}

.customer-order-row:last-child {
  border-bottom: 0;
}

.customer-order-name {
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
}

.customer-order-meta {
  margin-top: var(--space-4);
}

.customer-recover {
  margin-top: var(--space-32);
  padding-top: var(--space-32);
  border-top: var(--rule);
}

.address-edit-form {
  margin-top: var(--space-16);
}

.order-line-item {
  display: grid;
  grid-template-columns: var(--thumb-order) 1fr auto;
  gap: var(--space-12);
  padding: var(--space-12) 0;
  border-bottom: var(--rule);
  align-items: center;
}

.order-line-item:last-child {
  border-bottom: 0;
}

/* The same collapse .cart-item-row takes at this width, the two being the same
   picture / title / price row. The price is placed in the second column rather
   than left to wrap, which would drop it under the thumbnail instead of under
   the title it belongs to.

   No mobile twin of the price element, which is what the cart needs only because
   its desktop layout keeps a third column this one can drop. */
@media (max-width: 768px) {
  .order-line-item {
    grid-template-columns: var(--thumb-order) 1fr;
  }

  .order-line-item .cart-item-price {
    grid-column: 2;
    margin-top: var(--space-4);
  }
}

/* ==========================================================================
   ABOUT AND FAQ
   Also the three containers that render merchant rich text.
   ========================================================================== */
.about-page-content {
  margin-block: var(--gap-region);
}

/* The bio is the heading's own subtitle, not a body block: it describes the
   maker the way the shop page's line describes the shop, so it takes the same
   --step-subtitle that line does. Both sides of the collapse have to give way or
   the hero's region wins. Only the top: the bio's bottom margin is still the gap
   to the FAQ. */
.about-bio .page-hero {
  margin-bottom: 0;
}

.about-bio .about-page-content {
  margin-top: var(--step-subtitle);
}

.about-page-content p {
  margin: 0 0 var(--space-16);
}

/* The three containers that render merchant rich text. Headings typed into the
   page editor need pinning to real scale steps, or they fall through to the UA
   sheet's em sizing, close to the scale but not on it. */
/* Size, weight, leading and tracking come from .t-title and .t-heading above;
   only the block spacing is these blocks' own. Stated here they set a size and
   no weight, so a merchant's h2 and h3 inherited --fw-regular from the base
   heading rule while h4 through h6 below set --fw-medium, and the smallest
   headings in a body of rich text came out the boldest. */
.about-page-content h2,
.product-info-description h2,
.faq-answer h2 {
  margin: var(--space-32) 0 var(--space-12);
}

.about-page-content h3,
.product-info-description h3,
.faq-answer h3 {
  margin: var(--space-32) 0 var(--space-12);
}

.about-page-content h4,
.about-page-content h5,
.about-page-content h6,
.product-info-description h4,
.product-info-description h5,
.product-info-description h6,
.faq-answer h4,
.faq-answer h5,
.faq-answer h6 {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  margin: var(--space-32) 0 var(--space-12);
}

/* The container's own margin is the gap to what follows, so the last block
   inside it does not add a line of its own on top. Without this the bio ends a
   line further from the divider than the FAQ heading starts below it. */
.about-page-content > :first-child,
.product-info-description > :first-child,
.faq-answer > :first-child {
  margin-top: 0;
}

.about-page-content > :last-child,
.product-info-description > :last-child,
.faq-answer > :last-child {
  margin-bottom: 0;
}

/* Shopify rich text also emits lists. */
.about-page-content ul,
.about-page-content ol,
.product-info-description ul,
.product-info-description ol,
.faq-answer ul,
.faq-answer ol {
  margin: 0 0 var(--space-16);
  padding-left: var(--space-24);
}

.about-page-content li,
.product-info-description li,
.faq-answer li {
  margin-bottom: var(--space-4);
}

/* Same move as .about-bio: the list is the section's body, so it takes
   --step-body rather than a region. The hero's top margin still carries the
   space between the divider and the heading. */
.faq-accordion .page-hero {
  margin-bottom: 0;
}

/* No bottom margin. .faq-contact below already brings a region, and a second
   value here only ever collapsed into it. */
.faq-list {
  margin-block: var(--step-body) 0;
  border-top: var(--rule);
}

.faq-item {
  border-bottom: var(--rule);
}

.faq-question {
  padding: var(--space-16) 0;
  align-items: baseline;
  gap: var(--space-16);
}

.faq-question::after {
  color: var(--color-ink-dim);
}

.faq-answer p {
  margin: 0 0 var(--space-16);
}

.faq-contact {
  margin-block: var(--gap-region);
}

/* ==========================================================================
   INTERACTIVE STATES

   Hover always moves text toward more contrast against the red ground. Which
   color does that depends on where the text starts:

     rest --color-ink-dim  ->  hover --color-ink    (luminance 0.74 -> 0.93)
     rest --color-ink      ->  hover --color-pink   (warm shift; ink is already
                                                     the brightest ink)

   --color-pink is darker than --color-ink-dim (0.62 vs 0.74), so pinking a
   secondary link dims it and drops contrast from 5.6 to 4.8. Pink only reads as
   a change on text that is already full ink, and on fills.

   Current/selected is --color-ink plus --fw-medium. The weight carries it,
   because ink is also where a hovering dim link lands and color alone cannot
   say both. Set hover and current in separate rules, or pointing at a nav item
   makes it identical to the one you are on.

   Pressing is a 1px nudge, the theme's only press state.

   This block sits after the components so a state wins the specificity tie
   against the rest state it replaces.
   ========================================================================== */

/* Rest is ink-dim: brighten. */
.header-nav a:hover,
.cat-nav-link:hover,
.filter-option-link:hover,
.filter-clear:hover,
.pagination-link:hover,
.footer a:hover,
.footer-links a:hover,
.cart-item-remove:hover,
.password-entry-summary:hover {
  color: var(--color-ink);
}

/* Rest is already full ink: shift warm. .drawer-nav a is the mobile half of
   .header-nav. */
.drawer-nav a:hover,
.cart-drawer-view:hover,
.drawer-close:hover,
.cart-drawer-close:hover,
.customer-order-name:hover,
.filter-group-title:hover,
.product-details-item summary:hover,
.faq-question:hover,
.cfg-back:hover,
.newsletter-submit:hover {
  color: var(--color-pink);
}

/* CURRENT/SELECTED, for text. Ink plus weight: ink is also where a hovering dim
   link lands, so the weight is what carries the difference.

   A selector group and not a bare .is-current, for the same reason the type
   roles are: .is-current and .is-selected also mark pictures (.product-thumb,
   .product-media), and an unqualified rule would set a color and a weight on a
   slide and inherit them into the play glyph inside it. New text that marks a
   location or a choice joins this list.

   Controls that fill instead of coloring their text (.chip, .chip-swatch)
   state the whole treatment themselves at their own higher specificity. */
.cat-nav-link.is-current,
.filter-option-link.is-selected {
  color: var(--color-ink);
  font-weight: var(--fw-medium);
}

/* Bordered and filled controls. */
/* THE PRESS STATE. Scoped to the control families rather than global:
   .stage-arrow already uses translate for its vertical centering. */
.btn-primary:active,
.add-to-cart:active,
.cart-checkout-btn:active,
.cart-update-btn:active,
.product-card-add:active,
.password-submit:active,
.newsletter-submit:active,
.chip:active,
.chip-swatch:active,
.stepper-btn:active {
  translate: 0 1px;
}

/* One disabled treatment for the whole theme.

   pointer-events is what disables the control. CSS :hover and :active still
   match a disabled <button> in every engine, so guarding each interactive rule
   by hand never stays complete. */
.chip:disabled,
.chip[aria-disabled="true"],
.chip.is-disabled,
.stepper-btn:disabled,
.stage-arrow:disabled,
.add-to-cart:disabled,
.add-to-cart[disabled],
.product-card-add.is-disabled,
.filter-option.is-empty .filter-option-link {
  pointer-events: none;
}

/* An option that exists but cannot be chosen. */
.chip.is-disabled,
.filter-option.is-empty .filter-option-link {
  opacity: var(--opacity-disabled);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* A control that is simply off, with nothing struck through. .stage-arrow is
   here because the carousel is finite and the end arrows disable. */
.stepper-btn:disabled,
.stage-arrow:disabled,
.add-to-cart:disabled,
.add-to-cart[disabled],
.product-card-add.is-disabled {
  opacity: var(--opacity-disabled);
  cursor: default;
}

/* The hamburger reports its state to assistive tech. */
.header-hamburger[aria-expanded="true"] {
  color: var(--color-pink);
}

/* FOCUS INSIDE A CLIPPING BOX. The global ring sits 2px outside the element,
   which an ancestor with overflow: auto/hidden cuts off. Drawing it inside the
   element's own box costs no layout and cannot be clipped. Add any new
   scrolling container that holds controls to this list. */
.cfg-body :focus-visible,
.shop-sidebar :focus-visible,
.cart-drawer-body :focus-visible,
.product-thumbs :focus-visible,
.password-field-row :focus-visible {
  outline-offset: calc(-1 * var(--focus-offset));
}


/* A route in the hero mosaic. The same hover .tier-row takes, and deliberately
   the same: the fill goes deeper from wherever the piece was rolled, so ink
   type gains contrast as the ground drops, which is the direction a hover has
   to move. No color shift on the type for the reason given there, and the arrow
   carries the movement.

   Not folded into .tier-row's own selector group, which sits with the order
   routes and reads --band-shade off a column. The declaration is the same
   because the mechanism is; the two are not one rule because the two are not
   one component. */
.mosaic-piece--route::before {
  transition: filter var(--dur-fast) var(--ease);
}

.mosaic-piece--route:hover::before,
.mosaic-piece--route:focus-visible::before {
  filter: brightness(calc(var(--band-shade, 1) * 0.78));
}

.mosaic-piece--route:hover .mosaic-arrow,
.mosaic-piece--route:focus-visible .mosaic-arrow {
  transform: translateX(var(--space-4));
}

/* A piece dealt a glass has no --band-shade to go deeper from, so the hover is
   stated against 1 instead. Same figure, same direction. */
.mosaic-piece--route.has-glass:hover::before,
.mosaic-piece--route.has-glass:focus-visible::before {
  filter: brightness(0.78);
}

/* REDUCED MOTION. Movement goes, color and opacity stay. Opacity is not a
   vestibular trigger, and keeping color transitions stops every hover in the
   theme becoming a hard snap. */
@media (prefers-reduced-motion: reduce) {
  .drawer,
  .cart-drawer,
  .product-media img {
    transition: none;
  }

  .mosaic-arrow {
    transition: none;
  }

  /* The re-deal keeps working and only stops easing into place. Colour is not a
     vestibular trigger, and a page that refused to re-deal would be answering a
     motion preference by removing a function. */
  .is-shaded::before,
  .page-frame::before {
    transition: none;
  }

  /* A panel that never stops moving is the clearest case for dropping motion
     outright, so the drift goes rather than slowing. Each piece holds whichever
     of its two glasses it starts on, which is a complete arrangement, so the
     mosaic loses nothing but the change. The hover is a scale, which is
     movement too. */
}

/* ==========================================================================
   KEYLINES ON PSEUDO-ELEMENTS
   Hairlines that cannot sit on their own element's border, for one of three
   reasons. The element clips its content with overflow, which eats a border
   drawn inside (.gallery-tile, .product-card-image, .cart-item-image). Its
   border box is not where the rule goes, because the element is positioned by
   something other than itself (.header, whose stick sits on the section wrapper
   around it) or the rule has to reach past the element's own inset
   (.cart-drawer, .cart-item). Or a border would draw over a backdrop the
   element samples, which is why .stage-arrow's ring is on ::before, in the
   PRODUCT PAGE section beside the rest of that control.

   .product-info is not here and is not frosted; it draws a real border.
   ========================================================================== */
/* .header is here for its rule alone. The stick sits on the section wrapper
   around it, so the header itself is static and its ::after would otherwise
   measure against that wrapper. */
.header,
.cart-item,
.cart-item-image,
.swatch-color {
  position: relative;
}

.header,
.cart-drawer,
.cart-item,
.product-card-image,
.gallery-tile,
.cart-item-image,
.swatch-color {
  border: 0;
}

.header::after,
.cart-drawer::after,
.cart-item::after,
.product-card-image::after,
.gallery-tile::after,
.cart-item-image::after,
.swatch-color::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.header::after,
.cart-item::after {
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: var(--rule);
}

.cart-drawer::after {
  top: 0;
  bottom: 0;
  left: 0;
  border-left: var(--rule);
}

/* Photographs take the theme's own hairline, the same one the grid, the toolbar
   and the sidebar are ruled with, so a picture is bounded the way everything
   around it is. Not the dark keyline they used to carry: that read as a black
   border against a pale panel shot on a white ground, which is what took it
   off them. --color-ink-faint holds its edge on a pale photograph and joins the
   rules it meets on a dark one. */
.product-card-image::after,
.gallery-tile::after,
.cart-item-image::after,
.swatch-color::after {
  inset: 0;
  border: var(--rule);
  border-radius: inherit;
}

/* ==========================================================================
   LOOSE PHOTOS
   ========================================================================== */

/* A pile of prints stepped down and across so every top edge shows. The step
   is a negative margin rather than absolute positioning, so the taller print
   still sets the pile's height.

   One column, the pile is a band under the heading and above the bio, on the
   page's left rail with them, and both margins are its gaps to them. The top
   one carries the region on its own: the heading above it has no bottom margin
   left to collapse with. */
.photo-scatter {
  display: flex;
  align-items: flex-start;
  margin-block: var(--gap-region);
}

/* Wide, the pile leaves the flow and hangs in the empty half beside the copy.
   Absolute and not fixed, so it scrolls away with the page, and out of flow so
   the bio keeps its own rhythm and the section keeps its own height.

   Placed off .about-bio, which is full width, so the percentages here are the
   window's. Horizontally it centers on the midline of the right half, which is
   three quarters across the page less half a gutter. Vertically it sits a
   region below the middle of the FAQ, which is a section of its own and so out
   of reach from in here: theme.js measures it and publishes --faq-mid, an
   offset from the top of this section. The fallback is a fixed drop, near
   enough to the same place, for a page that runs without the script.

   1161px is derived: that midline is 0.75w - 24 and the pile is 429 wide, so
   its left edge clears the 560 measure and the 24 gap only from 1161 up. Below
   that the page goes back to one column, the pile in flow under the heading. A
   media query cannot read the tokens, hence the literal.

   --z-raised is for a print dragged over the FAQ section below, and it scopes
   the prints' own z-indexes, which is all they need: they order against each
   other. */
@media (min-width: 1161px) {
  .about-bio {
    position: relative;
  }

  .about-bio .photo-scatter {
    position: absolute;
    top: calc(var(--faq-mid, calc(100% + var(--gap-region) * 3)) + var(--gap-region));
    left: calc(75% - var(--page-gutter) / 2);
    translate: -50% -50%;
    z-index: var(--z-raised);
    margin: 0;
  }
}

/* The cascade. Each print steps most of a width right and under half of one
   down, meeting the one before it at a corner: at a shallower step the second
   print covers the first one's image and its caption.

   Both steps are in units of --photo-w, the drop included. Nothing crops the
   uploads, so their heights differ and only the width is a number to divide.

   These two set the pile's box, which the phone --photo-w and the breakpoint
   above are both derived from. Change one and re-derive all three. */
.photo-scatter .loose-photo + .loose-photo {
  margin-left: calc(var(--photo-w) * -0.05);
  margin-top: calc(var(--photo-w) * 0.43);
}

/* No mount, keyline or shadow: each upload is already a photograph of a
   polaroid, and the border in the photograph is the border. rotate and
   translate are separate properties, so the tilt survives a drag. --z-base is
   the floor that --z-lifted and the JS counter build on, and theme.js
   hard-codes that starting number. Change both together. */
.loose-photo {
  position: relative;
  z-index: var(--z-base);
  flex: 0 0 auto;
  width: var(--photo-w);
  border-radius: 0;
  rotate: var(--photo-tilt, 0deg);
}

.loose-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}

/* Pointing at one brings it to the front; theme.js raises it further on grab
   so the print you moved last stays there. Fine pointers only: a touch drag
   would need touch-action: none and would eat page scroll.

   Keyed to [data-loose-photo], the same hook theme.js collects, so a print
   rendered with interactive: false does not offer a grab it cannot honour. */
@media (pointer: fine) {
  .loose-photo[data-loose-photo] {
    cursor: grab;
  }

  .loose-photo[data-loose-photo]:hover {
    z-index: var(--z-lifted);
  }

  /* will-change has to name the property actually being written. The drag sets
     the independent `translate`, not `transform`, and only the exact name earns
     the print its own compositor layer. */
  .loose-photo.is-dragging {
    cursor: grabbing;
    will-change: translate;
  }
}


/* ==========================================================================
   PHOTO COVERAGE
   The editor-only panel under the product gallery. It takes the well and the
   same hairline as everything else rather than a look of its own: no customer
   ever sees it, so any styling past legibility would be spent on no one.
   ========================================================================== */
.media-coverage {
  margin-top: var(--space-24);
  padding: var(--space-16);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface-well);
}

.media-coverage-note {
  margin-top: var(--space-4);
  color: var(--color-ink-dim);
}

/* Long file names, and a column too narrow to break them cleanly. */
.media-coverage-list {
  margin-top: var(--space-8);
  padding-left: var(--space-16);
  list-style: disc;
  color: var(--color-ink-dim);
  overflow-wrap: anywhere;
}

.media-coverage-list li + li {
  margin-top: var(--space-4);
}

.media-coverage-photos {
  margin-top: var(--space-12);
}

.media-coverage-photos summary {
  cursor: pointer;
}
