/* ==========================================================================
   Gently Regifted
   The White Elephant (direction C, David's pick, October 9, 2026): the office
   gift table. Spruce, cranberry, snow white tissue and receipt paper.

   Rules this file enforces:
   - The world is paper. Snow white tissue is the ground, receipt paper holds the type,
     spruce and cranberry are the full bleed blocks.
   - Price sticker pink means you can buy with it. Nothing else is ever that
     pink, and the type on it is always ink, never white.
   - Every sweatshirt graphic sits on the garment or as a cut out. Paper,
     tape and tags are props around the product, never a frame on the art.
   - Ballpoint blue is handwriting only: names, crossings out, the caret.
   - Every animation has a reduced motion answer, and hover payoffs have a
     touch end state.
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Reenie"; src: url(/fonts/reenie.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* David, Oct 10: "not crazy about the brown." The ground is now snow white
     tissue (was kraft #C8A47C). Token names kept so nothing downstream moves. */
  --kraft: #F2EDE4;
  --kraft-hi: #FAF7F1;
  --kraft-deep: #D9D0C1;
  --receipt: #F5F0E4;
  --tissue: #ECE6DA;
  --ink: #1E1A16;
  --ink-dim: rgba(30, 26, 22, .7);
  --ballpoint: #2B3A8C;
  --spruce: #17332A;
  --spruce-deep: #10251E;
  --cranberry: #8E1F2C;
  --tinsel: #D9A441;
  --tape: rgba(255, 246, 200, .55);
  --sticker: #FF4F8B;
  --sticker-hot: #FF6B9E;
  --line: rgba(30, 26, 22, .22);

  --display: "Bricolage", "Arial Narrow", ui-sans-serif, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Reenie", "Bradley Hand", "Segoe Print", cursive;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --header-h: 106px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .1  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .25' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .24  0 0 0 0 .12  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  /* wrapping paper, for the torn strips on the cards */
  --paper-0: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='56'><rect width='60' height='56' fill='%238E1F2C'/><path d='M15 8 l7 12 h-4 l6 10 h-18 l6 -10 h-4 z' fill='%2317332A'/><path d='M45 36 l6 10 h-3 l5 8 h-16 l5 -8 h-3 z' fill='%23D9A441'/><circle cx='42' cy='12' r='2' fill='%23F5F0E4'/><circle cx='12' cy='44' r='2' fill='%23F5F0E4'/></svg>");
  --paper-1: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><rect width='64' height='64' fill='%2317332A'/><g stroke='%23F5F0E4' stroke-width='2' stroke-linecap='round'><path d='M16 6v20M7 11l18 10M7 21l18-10'/><path d='M48 38v20M39 43l18 10M39 53l18-10'/></g><circle cx='48' cy='16' r='2.4' fill='%23D9A441'/><circle cx='16' cy='48' r='2.4' fill='%23D9A441'/></svg>");
  --paper-2: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect width='60' height='60' fill='%23F4C6D2'/><rect x='6' y='8' width='10' height='4' fill='%23FFD84D' transform='rotate(30 11 10)'/><rect x='34' y='20' width='10' height='4' fill='%235BC0EB' transform='rotate(-20 39 22)'/><rect x='14' y='40' width='10' height='4' fill='%237BD389' transform='rotate(60 19 42)'/><rect x='42' y='46' width='10' height='4' fill='%23ffffff' transform='rotate(10 47 48)'/></svg>");
  --paper-3: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40'><rect width='80' height='40' fill='%23E7E1D3'/><g fill='%23605a52'><rect x='4' y='5' width='34' height='3'/><rect x='4' y='12' width='34' height='3'/><rect x='4' y='19' width='26' height='3'/><rect x='4' y='28' width='34' height='3'/><rect x='44' y='5' width='32' height='6'/><rect x='44' y='16' width='32' height='3'/><rect x='44' y='23' width='32' height='3'/><rect x='44' y='30' width='22' height='3'/></g></svg>");
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--kraft); background-image: var(--grain), var(--fiber); color: var(--ink); font: 400 1rem/1.55 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ol, ul, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--sticker); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ballpoint); outline-offset: 3px; }
@view-transition { navigation: auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--receipt); color: var(--ink); padding: .7rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ----------------------------------------------------------- type kit */
.mono { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; line-height: 1.5; }
.display { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.hand { font-family: var(--hand); color: var(--ballpoint); }
.eyebrow { color: var(--ink-dim); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* The proof caret: "Re" written in by hand, a caret where it goes */
.ins { position: relative; display: inline-block; width: .62em; }
.ins i { position: absolute; left: -.16em; top: -.92em; font: 400 1.05em/1 var(--hand); color: var(--ballpoint); transform: rotate(-8deg); text-transform: none; letter-spacing: 0; white-space: nowrap; font-style: normal; }
.ins b { position: absolute; left: .12em; bottom: -.46em; font: 400 .8em/1 var(--hand); color: var(--ballpoint); }

/* old cellophane tape, always a little crooked */
.tape { position: absolute; width: 96px; height: 28px; background: var(--tape); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 9%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 91%, 6% 100%, 0 90%); pointer-events: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em; border: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn--line:hover { background: var(--ink); color: var(--receipt); }
.btn--sticker { border: 0; border-radius: 999px; background: var(--sticker); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 1px 0 rgba(0, 0, 0, .2); }
.btn--sticker:hover { background: var(--sticker-hot); transform: rotate(-1.5deg) scale(1.02); }
.btn--sticker:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.link-arrow { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat; padding-bottom: 4px; transition: background-size .3s var(--ease); }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { background-size: 0 2px; background-position: right bottom; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* -------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; }
.notice { display: block; min-height: 34px; padding: .5rem var(--gutter); background: var(--spruce); color: var(--receipt); text-align: center; }
.notice[hidden] { display: none; }
.notice b { color: var(--tinsel); font-weight: 500; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; padding-inline: var(--gutter); background-color: rgba(242, 237, 228, .94); background-image: var(--grain); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1.5px dashed rgba(30, 26, 22, .35); }
.brand { position: relative; display: inline-flex; align-items: baseline; flex: none; padding-top: .7rem; color: var(--ink); text-decoration: none; font: 800 1.6rem/1 var(--display); font-stretch: 75%; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.nav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bar__tools { display: flex; align-items: center; gap: .6rem; }
.bag-btn, .menu-btn { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 1rem; border: 2px solid var(--ink); background: var(--receipt); color: var(--ink); }
.bag-btn:hover, .menu-btn:hover { background: #fff; }
.bag-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; border-radius: 999px; background: var(--sticker); color: var(--ink); font-size: .7rem; }
.bag-count[data-empty] { background: rgba(30, 26, 22, .12); color: var(--ink-dim); }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- hero */
/* The office gift table after hours: spruce wall, cranberry tablecloth, a
   string of lights, and a pile of rewrapped gifts you can shove. */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: clamp(1rem, 4vw, 4rem); padding: calc(var(--header-h) + clamp(2rem, 7vh, 4.5rem)) var(--gutter) clamp(12rem, 30vh, 18rem); overflow: clip; isolation: isolate; color: var(--receipt); background: radial-gradient(90% 70% at 60% 30%, #22473A, var(--spruce) 60%, #0F241D); }
.hero__cloth { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 24%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 36px), linear-gradient(180deg, #9A2533, var(--cranberry) 30%, #6E1622); box-shadow: 0 -2px 0 #B83A49; }
.hero__lights { position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--header-h) - 6px); width: 100%; height: 70px; pointer-events: none; }
.hero__pile { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__copy { position: relative; z-index: 3; max-width: 40rem; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__copy .eyebrow { color: var(--tinsel); pointer-events: none; }
.hero__title { margin-top: .9rem; font-size: clamp(3.6rem, 8vw, 8.8rem); }
.hero__title em { font-style: normal; color: var(--tinsel); }
.hero__sub { margin-top: 1.3rem; max-width: 29rem; font-size: clamp(1.02rem, 1.2vw, 1.15rem); color: rgba(245, 240, 228, .86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.btn--paper { background: var(--receipt); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 1.2rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.btn--paper:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--light { border-color: var(--receipt); color: var(--receipt); }
.btn--light:hover { background: var(--receipt); color: var(--ink); }
.shake { display: block; margin-top: 1.1rem; padding: .4rem 0; border: 0; background: none; color: rgba(245, 240, 228, .7); text-decoration: underline; text-underline-offset: 4px; }
.shake[hidden] { display: none; }
.hero__reveal { position: relative; z-index: 3; justify-self: end; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: 0; width: min(100%, 600px); margin-top: -1.5rem; }
.hero__art { display: block; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease), opacity .3s; }
.hero__art { align-self: start; margin-right: -8px; }
.hero__art img { width: 100%; height: auto; max-height: 46vh; object-fit: contain; }
.hero__reveal.is-swap .hero__art { transform: translateY(40px) scale(.6) rotate(-8deg); opacity: 0; }
.hero__reveal .tag--hero { position: relative; z-index: 4; width: 250px; margin-top: 7rem; transform: rotate(4deg); transform-origin: 50% 0; }
.tag--hero .tag__name a { text-decoration: none; }
.tag--hero .tag__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tag__sizes { margin-top: .8rem; }
.tag--hero .quick__sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag--hero .chip span { min-height: 34px; background: rgba(255, 255, 255, .7); }
.tag--hero .btn--sticker { margin-top: .7rem; min-height: 46px; }
.tag--hero .quick__msg { color: var(--cranberry); font-size: .85rem; }

/* ----------------------------------------------------------------- tag */
.tag { position: relative; isolation: isolate; padding: 2.3rem 1.2rem 1.15rem; color: var(--ink); filter: drop-shadow(0 10px 14px rgba(40, 24, 8, .3)); }
.tag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--fiber), linear-gradient(180deg, #D8B990, #CDA97F 70%, #BF996F); clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); }
.tag::before { content: ""; position: absolute; left: 50%; top: 12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle, #6b5038 0 4px, transparent 4.5px), radial-gradient(circle, transparent 0 7px, #EADBC4 7.5px 9px, transparent 9.5px); }
.tape--tag { left: 50%; top: -12px; translate: -50% 0; rotate: 4deg; z-index: 2; }
.tag__no { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 1.5px dashed rgba(30, 26, 22, .35); font-size: .66rem; letter-spacing: .14em; }
.tag__to { display: flex; flex-wrap: wrap; gap: 0 .65rem; align-items: baseline; font-size: 1.55rem; line-height: 1.05; }
.tag__to s, .card__to s { text-decoration: none; position: relative; opacity: .85; }
.tag__to s::after, .card__to s::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: 2px; border-radius: 2px; background: var(--ballpoint); transform: rotate(-6deg); }
.tag__to b, .card__to b { font-weight: 400; }
.tag__name { margin: .85rem 0 .4rem; font: 800 1.5rem/.95 var(--display); font-stretch: 78%; text-transform: uppercase; }
.tag__dl { display: grid; grid-template-columns: auto 1fr; gap: .32rem .7rem; align-items: baseline; }
.tag__dl dt { font: 500 .6rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .72; white-space: nowrap; }
.tag__dl dd { font: 500 .76rem/1.35 var(--mono); }

/* ------------------------------------------------------------ the fine print */
.fine { position: relative; z-index: 2; padding: clamp(2.6rem, 6vh, 4rem) 0; background: var(--receipt); }
.fine::before, .fine::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--receipt) 8px) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--receipt) 8px) 0 0 / 16px 12px repeat-x; }
.fine::before { top: -11px; transform: scaleY(-1); }
.fine::after { bottom: -11px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.facts li { padding-top: 1rem; border-top: 1.5px dashed rgba(30, 26, 22, .4); }
.facts b { display: block; font-size: .8rem; }
.facts span { display: block; margin-top: .5rem; font-size: 1.02rem; line-height: 1.5; color: var(--ink-dim); max-width: 34ch; }

/* ------------------------------------------------- the knit table (the good gifts) */
/* Receipt paper ground, wrapped like a present: a cranberry band with a tinsel
   ribbon across the top. The cards are the same gift boxes as the gift table. */
.knits { position: relative; padding: clamp(5rem, 11vh, 7.5rem) 0 clamp(4rem, 9vh, 6rem); background: var(--receipt); background-image: var(--grain); }
.knits__ribbon { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--cranberry); }
.knits__ribbon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--tinsel); }
.knits__lede { margin-top: 1rem; max-width: 46ch; font-size: 1.08rem; line-height: 1.55; color: var(--ink-dim); }
.knits__receipt { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; min-width: min(100%, 300px); padding: 1.1rem 1.3rem 1.2rem; background: #FFFDF7; box-shadow: 0 14px 26px -18px rgba(60, 36, 12, .7); rotate: 1.2deg; font-size: .72rem; border-top: 1.5px dashed rgba(30, 26, 22, .35); border-bottom: 1.5px dashed rgba(30, 26, 22, .35); }
.knits__receipt dt { color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.knits__receipt dd { color: var(--ink); }
.knits .card__stage { background: var(--tissue); }
.knit-note { margin-top: 1rem; padding: .7rem .9rem; border: 1.5px dashed rgba(30, 26, 22, .45); font-size: .74rem; line-height: 1.55; }
.knit-note b { font-weight: 600; }
.sizes.sizes--knit { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------------------------------------------------------- the gift table */
.shop { padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(4rem, 9vh, 6rem); }
.shop__head > div { min-width: 0; }
.shop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 5vh, 3rem); }
.shop__title { margin-top: .6rem; max-width: 19ch; font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.shop__tools { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.chips, .toggle { display: inline-flex; flex-wrap: wrap; gap: .45rem; }
.chips button, .toggle button { min-height: 44px; padding: 0 1rem; border: 2px solid var(--ink); background: var(--receipt); color: var(--ink); }
.chips button span { margin-left: .35em; opacity: .6; }
.chips button[aria-pressed="true"], .toggle button[aria-pressed="true"] { background: var(--ink); color: var(--receipt); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem); }
.card { position: relative; display: flex; flex-direction: column; padding: 12px 12px 16px; background: var(--receipt); box-shadow: 0 18px 30px -18px rgba(60, 36, 12, .7), 0 2px 0 rgba(0, 0, 0, .06); transition: transform .3s var(--ease); }
.card:nth-child(4n + 1) { rotate: -.6deg; }
.card:nth-child(4n + 3) { rotate: .5deg; }
.card__stage { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tissue); }
.card__stage img { position: absolute; left: 7%; top: 15%; width: 86%; height: 82%; object-fit: contain; transition: transform .6s var(--ease); }
/* The lid: wrapping paper on top of the box, with a ribbon. It lifts on hover
   and is already off on touch screens, so nobody has to tap to see the gift. */
.card__stage { perspective: 900px; overflow: visible; }
.card__lid { position: absolute; z-index: 2; left: -3%; right: -3%; top: -3%; height: 17%; transform-origin: 50% 0; transform: rotateX(0deg); transition: transform .7s var(--ease); background: var(--paper-0); box-shadow: 0 10px 16px rgba(0, 0, 0, .3); }
.card__lid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: var(--tinsel); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); }
.card__stage[data-paper="1"] .card__lid { background: var(--paper-1); }
.card__stage[data-paper="2"] .card__lid { background: var(--paper-2); }
.card__stage[data-paper="3"] .card__lid { background: var(--paper-3); }
.card:hover .card__lid, .card:focus-within .card__lid { transform: rotateX(112deg); }
@media (hover: none), (pointer: coarse) { .card__lid { transform: rotateX(112deg); } }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); }
  .card:hover .card__ghost { transform: scale(1.03); }
}
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: .9rem; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.card__name { font: 800 1.42rem/.95 var(--display); font-stretch: 78%; text-transform: uppercase; text-decoration: none; }
.card__name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__price { font-weight: 600; white-space: nowrap; }
.card__to { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin-top: .45rem; font-size: 1.32rem; line-height: 1.05; }
.card__meta { margin-top: .4rem; color: var(--ink-dim); font-size: .64rem; }
.quick { margin-top: auto; padding-top: .9rem; }
.quick__sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: grid; place-items: center; min-height: 40px; border: 1.5px solid var(--ink); background: #fff; font: 500 .74rem/1 var(--mono); cursor: pointer; transition: background-color .15s, color .15s; }
.chip input:checked + span { background: var(--ink); color: var(--receipt); }
.chip input:focus-visible + span { outline: 3px solid var(--ballpoint); outline-offset: 2px; }
.quick__add { margin-top: .6rem; min-height: 46px; font-size: .95rem; }
.quick__msg { min-height: 1.3em; margin-top: .35rem; font-size: .9rem; font-weight: 600; }

.index { display: none; border-top: 2px solid var(--ink); }
.shop[data-view="index"] .cards { display: none; }
.shop[data-view="index"] .index { display: block; }
.index-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, .7fr) 4rem 1.5rem; align-items: baseline; gap: 1rem; padding: 1rem .4rem; border-bottom: 1.5px dashed rgba(30, 26, 22, .45); text-decoration: none; transition: background-color .2s, color .2s; }
.index-row:hover { background: var(--ink); color: var(--receipt); }
.index-row__name { font: 800 1.3rem/1.1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.index-row__seen { color: var(--ink-dim); font-size: .95rem; }
.index-row:hover .index-row__seen { color: rgba(245, 240, 228, .75); }
.index-row__go { text-align: right; }
.shop[data-occasion="office"] [data-occasion]:not([data-occasion="office"]),
.shop[data-occasion="exchange"] [data-occasion]:not([data-occasion="exchange"]),
.shop[data-occasion="family"] [data-occasion]:not([data-occasion="family"]),
.shop[data-occasion="home"] [data-occasion]:not([data-occasion="home"]) { display: none; }

/* JS-enhanced reveals. Without JS everything is simply visible. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate 1s var(--ease); }
.js .reveal.is-open { opacity: 1; translate: 0 0; }

/* -------------------------------------------------------- how it works */
.how { padding: clamp(4.5rem, 11vh, 8rem) 0; background: var(--spruce); color: var(--receipt); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how .eyebrow { color: var(--tinsel); }
.how__title { margin-top: .8rem; font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
.how__lede { margin: 1.3rem 0 1.6rem; max-width: 34ch; font-size: 1.1rem; color: rgba(245, 240, 228, .82); }
.steps li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0; border-top: 1.5px dashed rgba(245, 240, 228, .3); }
.steps__n { font: 800 2.6rem/1 var(--display); font-stretch: 75%; color: var(--tinsel); }
.steps h3 { font: 800 1.6rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.steps p { margin-top: .45rem; color: rgba(245, 240, 228, .78); max-width: 46ch; }

/* -------------------------------------------------------------- footer */
.site-footer { padding: clamp(3.5rem, 8vh, 5rem) 0 2rem; background: var(--spruce-deep); color: var(--receipt); }
.footer__wordmark { color: var(--receipt); font-size: clamp(3rem, 9vw, 8rem); padding-top: .25em; }
.footer__wordmark .ins i, .footer__wordmark .ins b { color: #9fb2ff; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-top: 2.6rem; }
.footer__cols h2 { margin-bottom: .8rem; color: var(--tinsel); }
.footer__cols li + li { margin-top: .4rem; }
.footer__cols a { text-decoration: none; opacity: .85; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }
.footer__motto { max-width: 32ch; color: rgba(245, 240, 228, .8); font-size: 1.05rem; }
.footer__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1.5px dashed rgba(245, 240, 228, .25); color: rgba(245, 240, 228, .6); }

/* ------------------------------------------------------- product page */
.pdp { padding: calc(var(--header-h) + 1.5rem) 0 4rem; }
.crumbs { display: flex; gap: .6rem; margin-bottom: 1.4rem; color: var(--ink-dim); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp__grid > * { min-width: 0; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--receipt); box-shadow: 0 24px 40px -22px rgba(60, 36, 12, .7); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main.is-art { background: var(--tissue); }
.gallery__main.is-art img { object-fit: contain; padding: 8%; }
.loupe { position: absolute; z-index: 3; top: 0; left: 0; width: 190px; height: 190px; border-radius: 50%; border: 3px solid var(--receipt); box-shadow: 0 0 0 2px var(--ink), 0 14px 34px rgba(0, 0, 0, .4); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .2s, transform .25s var(--ease); }
.loupe.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery__thumbs { display: flex; gap: .5rem; margin-top: .8rem; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.gallery__thumbs button { flex: none; width: 74px; height: 74px; padding: 0; border: 0; background: var(--receipt); opacity: .72; transition: opacity .2s; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { opacity: 1; outline: 3px solid var(--ink); outline-offset: 1px; }
.gallery__note { margin-top: .6rem; color: var(--ink-dim); }

.buy-tag { position: relative; isolation: isolate; padding: 2.6rem clamp(1.2rem, 3vw, 2.2rem) 1.8rem; filter: drop-shadow(0 18px 24px rgba(40, 24, 8, .28)); }
.buy-tag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), linear-gradient(180deg, #FBF7EE, var(--receipt)); clip-path: polygon(8% 0, 92% 0, 100% 4%, 100% 100%, 0 100%, 0 4%); }
.buy-tag::before { content: ""; position: absolute; left: 50%; top: 14px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle, var(--kraft-deep) 0 4px, transparent 4.5px), radial-gradient(circle, transparent 0 7px, #E7DCC8 7.5px 9px, transparent 9.5px); }
.buy-tag :focus-visible { outline-color: var(--ink); }
.pdp__title { margin-top: .8rem; font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
.pdp__price { margin-top: 1.1rem; display: flex; align-items: baseline; gap: 1rem; }
.pdp__price strong { font: 600 1.7rem/1 var(--sans); }
.pdp__price .mono { color: var(--ink-dim); }
.pdp__blurb { margin-top: 1.1rem; font-size: 1.06rem; max-width: 44ch; }
.buy { margin-top: 1.6rem; }
.buy__legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-bottom: .7rem; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: grid; place-items: center; align-content: center; min-height: 52px; border: 2px solid var(--ink); background: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s; }
.size span small { display: block; margin-top: .22rem; font: 500 .62rem/1 var(--mono); color: var(--ink-dim); }
.size input:checked + span { background: var(--ink); color: var(--receipt); }
.size input:checked + span small { color: rgba(245, 240, 228, .7); }
.size input:focus-visible + span { outline: 3px solid var(--ballpoint); outline-offset: 2px; }
.sizes__note { margin-top: .6rem; color: var(--ink-dim); }
.field-error { min-height: 1.4em; margin: .5rem 0 .2rem; color: var(--cranberry); font-weight: 600; }
.buy .btn--sticker { min-height: 58px; font-size: 1.05rem; }
.delivery { display: grid; gap: .3rem; margin-top: 1rem; color: var(--ink-dim); }
.delivery b { color: var(--ink); font-weight: 500; }
.deadline:empty { display: none; }
.deadline { color: var(--cranberry); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1.5px dashed rgba(30, 26, 22, .4); }
.specs dt { color: var(--ink-dim); white-space: nowrap; padding-top: .15rem; }
.specs dd { font-size: .98rem; }
.details { border-top: 1.5px solid var(--ink); }
.details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.pdp .details:first-of-type { margin-top: 1.4rem; }
.details summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font: 500 1.2rem var(--mono); }
.details[open] summary::after { content: "\2212"; }
.details div { padding-bottom: 1.1rem; color: var(--ink-dim); }
.details p + p { margin-top: .6rem; }
.related { margin-top: clamp(4rem, 10vh, 6rem); }
.related h2 { margin-bottom: 1.6rem; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }

.buybar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(23, 51, 42, .97); color: var(--receipt); transform: translateY(110%); transition: transform .35s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar strong { display: block; font: 800 1.1rem/1.1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.buybar .mono { color: rgba(245, 240, 228, .7); }

/* ------------------------------------------------------------ dialogs */
dialog { border: 0; padding: 0; max-width: min(620px, 92vw); background: var(--receipt); color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(16, 37, 30, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.close { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; }
.modal__inner { padding: 1.4rem 1.6rem 1.8rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal__head h2 { font: 800 2rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.size-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.size-table th, .size-table td { padding: .6rem .5rem; text-align: left; border-bottom: 1.5px dashed rgba(30, 26, 22, .3); }
.size-table th { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.size-table .dim { color: var(--ink-dim); }
.modal__note { margin-top: 1rem; color: var(--ink-dim); font-size: .95rem; }
.zoom { max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: var(--spruce-deep); color: var(--receipt); box-shadow: none; }
.zoom .close { position: fixed; z-index: 2; top: 1rem; right: 1rem; border-color: var(--receipt); }
.zoom__scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.zoom__scroll img { max-width: none; width: min(1600px, 160vw); touch-action: pinch-zoom; }

.cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; }
.cart[open] { animation: slide-in .32s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
.cart__inner { display: flex; flex-direction: column; height: 100%; padding: 1.2rem 1.3rem; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1.5px dashed rgba(30, 26, 22, .4); }
.cart__head h2 { font: 800 2.2rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cart__items { flex: 1; overflow-y: auto; padding: .6rem 0; }
.cart__empty { padding: 2rem 0; }
.cart__empty p + p { margin-top: .5rem; color: var(--ink-dim); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; padding: .9rem 0; border-bottom: 1.5px dashed rgba(30, 26, 22, .25); }
.line img { width: 76px; height: 95px; object-fit: cover; background: var(--tissue); }
.line__name { font: 800 1.15rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; text-decoration: none; }
.line__meta { margin-top: .35rem; color: var(--ink-dim); font-size: .64rem; }
.line__row { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.1rem; }
.qty output { min-width: 2ch; text-align: center; font-weight: 600; }
.line__remove { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.cart__foot { padding-top: 1rem; border-top: 1.5px dashed rgba(30, 26, 22, .4); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin-bottom: .9rem; }
.totals dd { text-align: right; }
.cart__hint { margin-bottom: .7rem; color: var(--cranberry); }
.cart__hint[hidden] { display: none; }
.cart__msg { min-height: 1.4em; margin-top: .6rem; color: var(--cranberry); font-weight: 600; }
.cart__trust { margin-top: .4rem; color: var(--ink-dim); text-align: center; }

.menu { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; background: var(--spruce); color: var(--receipt); }
.menu .close { position: absolute; top: 1rem; right: 1rem; border-color: var(--receipt); }
.menu nav { display: grid; gap: 1rem; padding: 6rem var(--gutter) 2rem; }
.menu nav a { font: 800 2.6rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; text-decoration: none; }

/* -------------------------------------------------------- plain pages */
.page { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.page__title { margin-top: .8rem; max-width: 15ch; font-size: clamp(3rem, 7vw, 6.6rem); }
.prose { max-width: 40rem; margin-top: 2.4rem; padding: 2rem clamp(1.2rem, 3vw, 2.4rem); background: var(--receipt); box-shadow: 0 24px 40px -24px rgba(60, 36, 12, .6); }
.prose h2 { margin: 2rem 0 .6rem; font: 800 1.7rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: .8rem; }
.prose table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.prose th, .prose td { padding: .55rem .4rem; text-align: left; border-bottom: 1.5px dashed rgba(30, 26, 22, .3); }
.prose th { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

.lost { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem; }
.lost__box { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 1; background: var(--paper-0); box-shadow: 0 30px 50px -18px rgba(60, 36, 12, .55); rotate: -4deg; }
.lost__box::after { content: "RETURN TO SENDER"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -14deg; padding: .5rem .8rem; border: 3px solid var(--cranberry); background: rgba(245, 240, 228, .92); color: var(--cranberry); font: 800 1.6rem/1 var(--display); font-stretch: 75%; white-space: nowrap; }
.lost__box--open { background: var(--tissue); }
.lost__box--open::after { content: "OPENED"; }
.lost__box .tape { left: 30%; top: -10px; rotate: -8deg; }
.lost__sub { margin-top: 1.2rem; max-width: 40ch; font-size: 1.08rem; }
.lost__cta { margin-top: 1.8rem; }
.status { margin-top: 1.4rem; max-width: 40ch; padding: 1rem 1.2rem; background: var(--receipt); }
.status p + p { margin-top: .4rem; }

/* -------------------------------------------------------------- phones */
.hide-sm { display: inline; }
@media (max-width: 1100px) {
}
@media (max-width: 900px) {
  :root { --header-h: 102px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 9rem; }
  .hero__title { font-size: clamp(3.1rem, 15vw, 5.4rem); }
  .hero__lights { display: none; }
  .hero__cloth { height: 12%; }
  .hero__reveal { justify-self: stretch; grid-template-columns: minmax(0, 1fr) 190px; width: 100%; margin-top: 1.6rem; }
  .hero__art { margin-right: -30px; }
  .hero__art img { max-height: 36vh; }
  .hero__reveal .tag--hero { width: 190px; margin-top: 4rem; padding: 2rem .8rem .85rem; }
  .hero__reveal .tag--hero .tag__name { font-size: 1.05rem; }
  .hero__reveal .tag--hero .tag__to { font-size: 1.2rem; }
  .hero__reveal .tag--hero .tag__dl { display: none; }
  .facts { grid-template-columns: 1fr; gap: 1.2rem; }
  .how__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .pdp__grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .buybar { display: flex; }
  .index-row { grid-template-columns: 4rem minmax(0, 1fr) auto; }
  .index-row__seen, .index-row__color, .index-row__go { display: none; }
  .lost { grid-template-columns: 1fr; }
  .lost__box { width: 220px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .hero { padding-top: calc(var(--header-h) + 1.6rem); }
  .hero__title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero__sub { margin-top: .9rem; }
  .hero__ctas { margin-top: 1.1rem; }
  .hero__ctas .btn { min-height: 46px; padding: 0 1rem; }
  .shake { display: none !important; }
  .hero__reveal { margin-top: .6rem; }
  .brand { font-size: 1.35rem; }
  .bag-word { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .card { padding: 8px 8px 12px; rotate: 0deg !important; }
  .card__name { font-size: 1.1rem; }
  .card__to { font-size: 1.1rem; }
  .card__meta { display: none; }
  .quick__sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  .chip span { min-height: 36px; font-size: .64rem; }
  .card__lid { height: 15%; }
  .shop__tools { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .chips button { flex: none; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn--sticker { border: 2px solid ButtonText; }
}
