/* Dither Press shop. Cream paper, dark ink, a faint moving dither underneath.
   Order: tokens, base, type helpers, layout, header and footer, components, pages, reduced motion.
   Each component keeps its own media queries next to it. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #efe9dc;
  --paper-2: #e7dfce;   /* product tiles */
  --dot: #d3c6ab;       /* background dither */
  --ink: #1c1a16;
  --muted: #3f3b34;     /* secondary text: dark warm off-black, so it never blends into the beige dither */
  --line: #d4c9b3;
  --accent: #d23c2a;
  --ok: #2f5a3b;        /* added-to-bag green: deep forest, sits with the cream */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --logo: "Saira Stencil One", "Archivo", sans-serif; /* runner-up: "Big Shoulders Display" (weight 900) */
  /* Type scale: every font size on the site comes from here.
     Mono (Space Mono, uppercase) is for labels and small print; Archivo for reading text and headings;
     the logo face (Saira Stencil One) for the wordmark and numbers. */
  --fs-micro: 11px;    /* smallest mono labels: card eyebrow, countdown labels, form notes */
  --fs-ui: 12px;       /* mono labels and captions */
  --fs-ui-lg: 13px;    /* mono product info: details, size chart, delivery line */
  --fs-nav: 14px;      /* navigation, buttons */
  --fs-body-sm: 15px;  /* default body text, card names */
  --fs-body: 16px;     /* reading text: page copy, blurbs */
  --fs-price-sm: 17px; /* card prices */
  --fs-h4: 18px;       /* small headings */
  --fs-h3: 20px;
  --fs-price: 22px;    /* product page price */
  --fs-brand: 30px;    /* header wordmark */
  --fs-h2: clamp(22px, 2.6vw, 34px);       /* section headings */
  --fs-h1: clamp(36px, 4.4vw, 68px);       /* page titles */
  --fs-h1-product: clamp(34px, 4vw, 58px); /* product name */
  --fs-feature: clamp(34px, 4.6vw, 72px);  /* collection and coming-soon titles */
  --fs-hero: clamp(48px, 7.6vw, 136px);    /* home hero */
  --fs-logo-page: clamp(44px, 7vw, 104px); /* About page wordmark */
  --fs-count: clamp(30px, 3.6vw, 48px);    /* countdown digits */
  --fs-count-out: clamp(28px, 3.2vw, 44px);
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --banner-h: 30px; /* height of the black top banner; 0 when it's switched off */
  /* stepped "pixel" corners: a rounded rectangle drawn on the pixel grid */
  --step: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px));
}
.no-banner { --banner-h: 0px; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* overlays set their own display, so make hidden win */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100svh; display: flex; flex-direction: column; margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body-sm)/1.5 var(--display); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
canvas.wordmark { display: block; image-rendering: pixelated; }
/* background dither: drawn small, scaled up with hard pixels */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; image-rendering: pixelated; pointer-events: none; }

/* ---------- type helpers (components below override their size) ---------- */
.mono { font-family: var(--mono); font-size: var(--fs-ui); letter-spacing: .08em; text-transform: uppercase; }
.wide { font-variation-settings: "wdth" 125; }
.muted { color: var(--muted); }

/* ---------- layout ---------- */
/* page transitions; main grows, so the footer always sits at the bottom */
main { flex: 1 0 auto; outline: none; }
main.leaving { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
main.entering { animation: enter .55s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.section { padding: clamp(28px, 5vw, 64px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font: 800 var(--fs-h2)/1 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- announcement ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); height: 30px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; font: 400 var(--fs-micro) var(--mono); letter-spacing: .12em; text-transform: uppercase; animation: tick 40s linear infinite; padding-left: 48px; }
.ticker-track span::after { content: "◼"; margin-left: 48px; font-size: 7px; vertical-align: 2px; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--pad);
  background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, padding .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 15px; justify-self: start; }
.brand-mark { width: 24px; height: 24px; image-rendering: pixelated; }
.brand-word { font: 400 var(--fs-brand)/1 var(--logo); letter-spacing: .3em; text-transform: uppercase; }
.nav { display: flex; gap: 34px; }
.nav a, .bag-btn { font: 400 var(--fs-nav) var(--mono); letter-spacing: .1em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 0; }
.bag-btn { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.bag-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--ink); color: var(--paper); font-size: var(--fs-ui); letter-spacing: 0; clip-path: var(--step); }
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); background: var(--ok); } }
/* phones: the nav folds into a Menu button that opens a panel under the header */
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 22px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--pad) 14px;
    background: var(--paper); border-bottom: 1px solid var(--ink); }
  .menu-open .nav { display: flex; animation: enter .35s var(--ease) both; }
  .nav a { font-size: var(--fs-body); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}
@media (max-width: 480px) {
  .site-header { gap: 16px; }
  .brand { gap: 11px; }
  .brand-word { font-size: var(--fs-price); letter-spacing: .24em; }
  .brand-mark { width: 18px; height: 18px; }
  .nav a, .bag-btn { font-size: var(--fs-ui); }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 28px var(--pad) 22px; border-top: 1px solid var(--ink); display: grid; gap: 26px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-word { font-size: var(--fs-body); }
.foot-brand img { image-rendering: pixelated; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 720px; }
.foot-cols div { display: grid; gap: 6px; align-content: start; color: var(--muted); }
.foot-cols b { font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-cols a:hover { color: var(--ink); }
.foot-signup { max-width: 440px; }
.foot-signup:empty { display: none; }
.foot-signup b { display: block; font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-small { display: flex; justify-content: space-between; font: 400 var(--fs-ui) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; background: var(--ink); color: var(--paper); font: 700 var(--fs-ui) var(--mono); letter-spacing: .12em; text-transform: uppercase; position: relative; overflow: hidden; clip-path: var(--step); transition: transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--dither-tile-light) 0 0 / 8px 8px; opacity: 0; transition: opacity .25s; mix-blend-mode: soft-light; }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); clip-path: none; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.linkbtn { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.inline { border-bottom: 1px solid currentColor; }
.inline:hover { border-bottom-width: 2px; }
.icon-btn { font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

/* ---------- image swap: two images stacked, the top one revealed through an animated dither mask ---------- */
.swap { position: relative; overflow: hidden; background: var(--paper-2); }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.swap img.mock { padding: 4%; transition: transform .8s var(--ease); }
.swap img.art { object-fit: cover; }

/* ---------- product cards ---------- */
.card { display: block; }
.card .swap { aspect-ratio: 4 / 5; }
.card:hover .swap img.mock, .card:focus-visible .swap img.mock { transform: scale(1.015); }
.card-media { position: relative; }
/* hover overlay: one bar along the bottom, name and colour on the left, price on the right */
.card-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  padding: 9px 12px; background: var(--ink); color: var(--paper); clip-path: var(--step); pointer-events: none; }
/* on a dark shirt's print the bar flips to cream so it still reads */
.card.on-dark .card-info { background: var(--paper); color: var(--ink); }
.ci-left { display: grid; gap: 3px; }
.card-name { font: 700 var(--fs-nav)/1 var(--display); font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: .04em; }
.card-col { font: 400 var(--fs-micro)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .6; white-space: nowrap; }
.card-line { display: flex; align-items: baseline; gap: 7px; }
.card-sep { font: 400 var(--fs-micro)/1 var(--mono); opacity: .45; }
.card-meta { font: 400 var(--fs-micro)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.card-price { font: 600 var(--fs-price-sm)/1 var(--mono); }
/* sold out or drop ended: a label on the image, the shirt faded */
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 8px; background: var(--ink); color: var(--paper); clip-path: var(--step); font-size: var(--fs-micro); }
.card:has(.card-badge) .swap img.mock { opacity: .55; }
@media (hover: hover) {
  .card-info { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .45s var(--ease); }
  .card:hover .card-info, .card:focus-visible .card-info { opacity: 1; transform: none; }
}
/* touch: the info sits under the image instead, with name, colour and price each on their own line,
   so a long name never runs into the price or the next card and every card lines up */
@media (hover: none) {
  .card-info, .card.on-dark .card-info { position: static; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 2px 0; background: none; color: var(--ink); clip-path: none; }
  .card-line { display: grid; gap: 3px; }
  .card-sep { display: none; }
  .card-col { white-space: normal; }
  .card-price { font-size: var(--fs-body-sm); }
}

/* ---------- shop filters ---------- */
.shop-head { flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter select { appearance: none; font: 400 var(--fs-ui)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%231c1a16'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--ink); border-radius: 0; padding: 9px 30px 9px 11px; cursor: pointer; }
.filter select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.empty-filter { padding: 30px 0; }
.empty { padding: 80px var(--pad); text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--pad); align-items: center; padding: clamp(28px, 6vw, 80px) var(--pad) clamp(28px, 5vw, 64px); }
/* the collection number in a light weight, the name heavy */
.hero h1 { margin: 0 0 22px; font: 850 var(--fs-hero)/.9 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line:first-child { font-weight: 300; }
.hero h1 .line span { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .08s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero p { max-width: 34ch; margin: 0 0 14px; font-size: var(--fs-body); color: var(--muted); }
.hero .hero-facts { margin-bottom: 26px; font-size: var(--fs-ui); color: var(--ink); } /* one line of facts under the blurb */
.hero-meta { display: flex; gap: 20px; margin-bottom: 26px; }
.hero-media { position: relative; aspect-ratio: 4 / 5; justify-self: end; width: 100%; }
.hero-link { display: block; height: 100%; }
.hero-media .swap { height: 100%; }
/* the mockups have wide margins: zoom in so the garment fills most of the tile. Tees have the widest margins,
   the hoodie's hood and sleeves need the most room */
.hero-link .swap { --zoom: 1.0; --zoom-hover: 1.02; }
.hero-link .swap[data-g="sweatshirt"] { --zoom: 0.95; --zoom-hover: 0.97; }
.hero-link .swap[data-g="hoodie"] { --zoom: 0.9; --zoom-hover: 0.92; }
.hero-link .swap img.mock { transform: scale(var(--zoom)); }
.hero-link:hover .swap img.mock { transform: scale(var(--zoom-hover)); }
.hero-dots { position: absolute; right: 14px; top: 14px; /* top corner: clear of the shirt's hem */ display: flex; gap: 2px; padding: 0 6px; background: var(--paper); clip-path: var(--step); }
.hero-dots button { position: relative; width: 26px; height: 28px; transition: width .3s var(--ease); }
.hero-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: color-mix(in srgb, var(--ink) 45%, transparent); transition: background .3s; }
.hero-dots button.on { width: 38px; }
.hero-dots button.on::after { background: var(--ink); }
/* desktop: the opening fills the screen below the header (about 76px down: header plus its gap) */
@media (min-width: 861px) {
  .hero { height: calc(100svh - 76px - var(--banner-h)); min-height: 520px; padding-top: 24px; padding-bottom: 32px; }
  .hero-media { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .hero-link .swap[data-g] { --zoom: 1.06; --zoom-hover: 1.06; } }
/* phones: a short opening so the shirt shows on the first screen. Title on one line, no blurb, facts and button only */
@media (max-width: 860px) {
  .hero { gap: 20px; padding-top: 18px; padding-bottom: 24px; }
  .hero-meta { margin-bottom: 10px; }
  .hero h1 { display: flex; flex-wrap: wrap; gap: 0 .28em; margin-bottom: 12px; font-size: clamp(40px, 11vw, 72px); }
  .hero p:not(.hero-facts) { display: none; }
  .hero .hero-facts { margin-bottom: 16px; }
  .hero-media { aspect-ratio: 1 / 1; }
}

/* ---------- coming soon: image beside a short block of copy ---------- */
.soon { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.soon .swap { aspect-ratio: 5 / 4; }
.soon .swap img { padding: 3%; transition: transform .9s var(--ease); }
.soon:hover .swap img { transform: scale(1.02); }
/* teaser: a close crop of the print, edge to edge */
.soon .swap.teaser img { object-fit: cover; padding: 0; image-rendering: pixelated; }
.soon-copy { display: grid; gap: 8px; align-content: start; }
.soon-copy h3 { margin: 0; font: 850 var(--fs-feature)/.9 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.soon-copy p { margin: 0; color: var(--muted); max-width: 40ch; }
.soon .btn.notify { justify-self: start; margin-top: 10px; }
.notify-note { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) { .soon { grid-template-columns: 1fr; } }

/* sign-up form */
.signup { display: grid; gap: 8px; margin-top: 10px; max-width: 440px; }
.signup-row { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; font: inherit; padding: 11px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.signup input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup .btn { flex: none; }
.signup-note { font-size: var(--fs-micro); line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* launch countdown: the logo face, big, in four boxes */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; max-width: 440px; }
.cd-part { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; background: var(--paper-2); clip-path: var(--step); }
.cd-num { font: 400 var(--fs-count)/1 var(--logo); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cd-label { font-size: var(--fs-micro); letter-spacing: .12em; color: var(--muted); }
.cd-out { grid-column: 1 / -1; font: 400 var(--fs-count-out)/1 var(--logo); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- collections page: one block per collection, copy beside a swipeable strip of its prints ---------- */
.col-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding: 8px 0 clamp(28px, 4vw, 48px); }
.col-block + .col-block { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.col-copy { display: grid; gap: 10px; align-content: start; }
.col-copy h3 { margin: 0; font: 850 var(--fs-feature)/.9 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.col-copy p { margin: 0; color: var(--muted); max-width: 40ch; }
.col-copy .btn { justify-self: start; margin-top: 6px; }
.col-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 10.5vw, 240px); justify-content: start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.col-tile { position: relative; display: block; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.col-tile img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .6s var(--ease); }
.col-tile:hover img { transform: scale(1.03); }
.col-tile span { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; background: var(--paper); clip-path: var(--step); font-size: var(--fs-micro); }
@media (max-width: 860px) { .col-block { grid-template-columns: 1fr; } .col-strip { grid-auto-columns: 62%; } }

/* ---------- product page: the image carousel fills the screen height beside the info ---------- */
.pdp { --pdp-h: calc(100svh - var(--banner-h) - 58px - 36px - 30px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(20px, 4vw, 60px); padding: 18px var(--pad) clamp(32px, 5vw, 64px); }
.pdp-media { display: grid; gap: 10px; align-content: start; }
@media (max-width: 860px) { .pdp { --pdp-h: 55svh; grid-template-columns: 1fr; } }

/* carousel */
.carousel { position: relative; height: var(--pdp-h); min-height: 420px; overflow: hidden; outline: none; }
.car-track { display: flex; height: 100%; transition: transform .55s var(--ease); touch-action: pan-y; cursor: zoom-in; user-select: none; }
.car-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.car-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .45s var(--ease); will-change: transform; }
.car-slide img.mock { padding: 3%; }
.car-slide img.art { image-rendering: pixelated; }
.car-slide img.detail { object-fit: cover; image-rendering: pixelated; }
/* gallery off: the watermarked print over the shirt photo, dissolved in on hover (wireOverlay in app.js) */
.car-slide img.car-over { object-fit: cover; }
/* arrows always visible, so the flat print and close-up are easy to find */
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); font: 400 var(--fs-body-sm) var(--mono); clip-path: var(--step); transition: opacity .25s, background .2s, color .2s; }
.car-arrow.prev { left: 14px; }
.car-arrow.next { right: 14px; }
.car-arrow:hover { background: var(--ink); color: var(--paper); }
.car-dots { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 8px; padding: 6px 9px; background: var(--paper); clip-path: var(--step); }
.car-dots button { width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--paper); clip-path: var(--step); transition: background .2s, transform .3s var(--ease); }
.car-dots button.on { background: var(--ink); transform: scale(1.15); }
.carousel.zoomed .car-track { cursor: zoom-out; touch-action: none; }
.carousel.zoomed .car-arrow, .carousel.zoomed .car-dots { opacity: 0; pointer-events: none; }
/* the photo's caption sits inside the image box, bottom left, on a paper chip so it reads on any slide */
.shot { position: absolute; left: 14px; bottom: 16px; z-index: 3; margin: 0; width: max-content; max-width: calc(100% - 110px); padding: 6px 9px; background: var(--paper); clip-path: var(--step);
  color: var(--muted); font-size: var(--fs-micro); line-height: 1.35; pointer-events: none; transition: opacity .3s; }
.carousel.zoomed .shot { opacity: 0; }
/* narrow screens: the dots move to the middle and the caption sits above them */
@media (max-width: 700px) {
  .car-dots { left: 50%; right: auto; transform: translateX(-50%); }
  .shot { bottom: 52px; max-width: calc(100% - 28px); }
}

/* info column */
.info { position: sticky; top: 84px; align-self: start; display: grid; gap: 18px; }
@media (max-width: 860px) { .info { position: static; } }
/* product to product: in the info column's top line, apart from the image arrows (which only flip this product's pictures) */
.crumbs { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; row-gap: 6px; }
.crumbs a:hover { text-decoration: underline; }
.crumb-path { display: flex; gap: 8px; }
.prodnav { display: flex; gap: 16px; }
.prodnav a { color: var(--ink); }
.prodnav a:hover { text-decoration: underline; }
.title { display: grid; gap: 8px; }
.info h1 { margin: 0; font: 850 var(--fs-h1-product)/.92 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; overflow-wrap: anywhere; }
.title .price { font: 400 var(--fs-price) var(--mono); }
/* drops: edition line */
.edition { font-size: var(--fs-ui); letter-spacing: .1em; color: var(--muted); }
.edition .low { color: var(--ink); }
.pcolour { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pcolour i { width: 12px; height: 12px; border: 1px solid var(--ink); display: inline-block; }
.blurb { margin: 0; max-width: 44ch; color: var(--muted); font-size: var(--fs-body); }

/* options: colour and size */
.opt-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.colour { display: inline-flex; align-items: center; gap: 10px; font: 400 var(--fs-ui) var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.colour i { width: 18px; height: 18px; border: 1px solid var(--ink); display: inline-block; }
.colours { display: flex; gap: 14px; }
.colours .colour { flex-direction: column; gap: 6px; font-size: var(--fs-micro); color: var(--muted); }
.colours .colour i { width: 28px; height: 28px; }
.colours .colour[aria-pressed="true"], .colours .colour[aria-current="true"] { color: var(--ink); }
.colours .colour[aria-pressed="true"] i, .colours .colour[aria-current="true"] i { outline: 1px solid var(--ink); outline-offset: 2px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sizes.nudge { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.size { height: 44px; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); font: 400 var(--fs-ui-lg) var(--mono); transition: border-color .2s, background .2s, color .2s; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); clip-path: var(--step); }

/* add to bag */
.add.done { background: var(--ok); }
.add.done::before { opacity: 1; background-size: 4px 4px; } /* fine dither over the green while it says Added */
.btn.add[disabled] { background: transparent; color: var(--muted); border: 1px solid var(--line); cursor: not-allowed; } /* sold out or drop ended */
.ship-note { margin: -4px 0 0; font-size: var(--fs-ui-lg); line-height: 1.55; letter-spacing: .02em; color: var(--muted); }
/* phones: Add to bag sticks to the bottom of the screen while the product info is in view */
@media (max-width: 860px) { .add { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 6px 18px rgba(28, 26, 22, .18); } }

/* accordions: plus to open, minus to close */
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; display: flex; justify-content: space-between; padding: 12px 0; cursor: pointer; font: 400 var(--fs-ui-lg) var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; }
.details details[open] summary::after { content: "\2212"; }
.details .body { padding: 0 0 12px; color: var(--muted); display: grid; gap: 8px; font-size: var(--fs-body-sm); }
.details .body p { margin: 0; }
.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; }
.details dt { font: 400 var(--fs-ui)/1.8 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.details dd { margin: 0; }
/* size chart: fixed layout, so the columns are even whatever the numbers */
.chart { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 var(--fs-ui-lg) var(--mono); }
.chart th, .chart td { padding: 5px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.chart thead th { color: var(--ink); }
.chart th:first-child { width: 30%; text-align: left; font-weight: 400; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-ui); }

/* ---------- text pages (about, terms, privacy) ---------- */
.page { padding: clamp(28px, 6vw, 80px) var(--pad); display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 1.4fr); gap: var(--pad); }
.page h1 { margin: 0; font: 850 var(--fs-h1)/.9 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.page h1.logo-word { font: 400 var(--fs-logo-page)/1 var(--logo); letter-spacing: .14em; margin-right: -.14em; }
.page h2 { margin: 18px 0 0; font: 800 var(--fs-h4) var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; scroll-margin-top: 90px; }
.page .copy { max-width: 60ch; display: grid; gap: 14px; font-size: var(--fs-body); }
.page .copy p { margin: 0; }
.page .copy .small { font-size: var(--fs-ui-lg); }
.archive-tag { font-size: var(--fs-ui); vertical-align: middle; margin-left: 10px; }
.ship { border-collapse: collapse; width: 100%; max-width: 420px; font: 400 var(--fs-ui-lg) var(--mono); }
.ship th, .ship td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.ship th { letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-ui); }
.ship td { text-align: right; }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .page h1 { overflow-wrap: anywhere; } }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(28, 26, 22, .28); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 100vw); background: var(--paper); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform .45s var(--ease); }
.bag.on { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bag-head h2 { margin: 0; font: 800 var(--fs-h4) var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.bag-body { overflow: auto; padding: 8px 20px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: enter .4s var(--ease) both; }
.line-item .thumb { aspect-ratio: 4 / 5; background: var(--paper-2); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-item b { font: 700 var(--fs-ui-lg) var(--display); font-variation-settings: "wdth" 112; text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 28px; height: 28px; font: 400 var(--fs-nav) var(--mono); }
.qty span { min-width: 22px; text-align: center; font: 400 var(--fs-ui) var(--mono); }
.remove { font: 400 var(--fs-micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; align-self: start; }
.bag-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag-total { display: flex; justify-content: space-between; font: 400 var(--fs-ui-lg) var(--mono); }
.bag-note { margin: 0; color: var(--muted); font-size: var(--fs-ui-lg); }
.linkish { font: 400 var(--fs-micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; padding: 0; }
.linkish:hover, .linkish:focus-visible { color: var(--ink); }
.bag-code-link { justify-self: start; }
.bag-code { display: flex; gap: 8px; }
.bag-code input { flex: 1; min-width: 0; font: 400 var(--fs-ui) var(--mono); text-transform: uppercase; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.bag-code input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bag-code-on { margin: 0; font-size: var(--fs-ui); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

/* ---------- toast ---------- */
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); font: 400 var(--fs-ui) var(--mono); letter-spacing: .06em; padding: 12px 18px; clip-path: var(--step); transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { visibility: visible; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* collections: the coming-soon series fills the screen on arrival, with a smaller image */
.soon-full { display: grid; align-content: start; }
/* on landscape screens it fills the first screen; on tall, narrow ones it sits at the top so there's no gap above it */
@media (min-aspect-ratio: 1/1) { .soon-full { min-height: calc(100svh - var(--header-h, 64px)); align-content: center; } }
.soon-full .soon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.soon-full .soon .swap { max-height: 70svh; aspect-ratio: 5 / 4; width: 100%; justify-self: start; }
/* a strip with more prints than fit loops past slowly */
.col-strip.conveyor { display: block; overflow: hidden; padding-bottom: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.col-track { display: flex; gap: 10px; width: max-content; animation: conveyor var(--conv-dur, 40s) linear infinite; }
.col-track .col-tile { flex: none; width: clamp(170px, 10.5vw, 240px); }
.col-strip.conveyor:hover .col-track, .col-strip.conveyor:focus-within .col-track { animation-play-state: paused; }
@keyframes conveyor { to { transform: translateX(calc(-50% - 5px)); } }
@media (max-width: 860px) { .col-track .col-tile { width: 62vw; } }

/* home: one clear way on to the rest of the shop, under the grid */
.view-more { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 48px); }
.view-more .btn { min-width: min(320px, 100%); justify-content: center; }

/* product images can't be dragged out or long-press saved on iOS */
.car-slide img, .card img, .col-tile img, .swap img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* printing or saving as PDF leaves the product images out */
@media print {
  .car-slide img, .card img, .col-tile img, .swap img, .hero img, .soon img { visibility: hidden !important; }
  .car-slide, .card-media, .col-tile, .swap { background: none !important; }
}

/* order confirmation (#/order) */
.order { padding: clamp(28px, 6vw, 72px) var(--pad); display: grid; gap: clamp(24px, 4vw, 44px); max-width: 1100px; }
.order-head { display: grid; gap: 10px; justify-items: start; }
.order-head h1 { margin: 0; font: 850 var(--fs-h1)/.9 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.order-head p { margin: 0; font-size: var(--fs-body); }
.order-tick { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; margin-bottom: 6px; }
.order-tick circle { stroke-dasharray: 139; stroke-dashoffset: 139; animation: tick-draw .6s var(--ease) .1s forwards; }
.order-tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick-draw .35s var(--ease) .6s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .order-tick circle, .order-tick path { animation: none; stroke-dashoffset: 0; } }
.order-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.order-items { border-top: 1px solid var(--ink); }
.order-sum { margin: 0; padding-top: 10px; display: grid; gap: 6px; font: 400 var(--fs-ui-lg) var(--mono); }
.order-sum div { display: flex; justify-content: space-between; gap: 16px; }
.order-sum dd { margin: 0; }
.order-sum .total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.order-info { display: grid; gap: 18px; border-top: 1px solid var(--ink); padding-top: 14px; }
.order-info h2 { margin: 0 0 4px; font: 400 var(--fs-ui) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.order-info p { margin: 0; font-size: var(--fs-body-sm); }
.order-info .btn { justify-self: start; }
@media (max-width: 760px) { .order-body { grid-template-columns: 1fr; } }

/* mailing list sign-up under the hero's Shop button */
.hero-signup { margin-top: 28px; padding-top: 18px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); max-width: 460px; font-size: 13px; line-height: 1.5; }
.hero .hero-signup p.signup-note { display: block; max-width: none; margin: 0; color: inherit; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.hero-signup .signup { margin-top: 10px; }
.hero-signup-lead { margin-top: 18px; padding-top: 0; border-top: 0; }
.view-more span.btn[aria-disabled="true"] { cursor: default; opacity: .6; }
#all-items { scroll-margin-top: 80px; }
/* the hero heading never runs past its own column ("COMING" is wide): size it to the column too */
.hero > div:first-child { container-type: inline-size; }
.hero h1 { font-size: min(var(--fs-hero), 16.5cqw); }
/* keep the footer below the fold while the page draws in, so it doesn't jump down (layout shift) */
main#main { min-height: calc(100svh - var(--banner-h, 0px)); }
.btn.closed { opacity: .45; cursor: not-allowed; }

/* no pop-in while the page loads: the search-engine copy of a page and the plain-text wordmark stay invisible
   (still in the page for crawlers and screen readers) until the shop and the dithered wordmark replace them */
.seo-home, .seo-product, .seo-page { visibility: hidden; }
[data-wordmark]:not(:has(canvas)) { visibility: hidden; }

/* an info page's picture (What is dithering?): fills the left column under the title, pixels kept sharp */
.info-aside { margin: 28px 0 0; }
.info-aside img { display: block; width: 100%; max-width: 520px; height: auto; image-rendering: pixelated; }
@media (min-width: 861px) { .page.has-aside > div:first-child { position: sticky; top: 90px; align-self: start; } }

/* product page: the short note about the piece inside Details, and the "Pairs well with" row */
.piece-note { margin: 0 0 12px; }
.pairs { padding-top: 0; }

/* footer: social links as small icons in the footer text colour */
.foot-social { display: inline-flex; gap: 14px; align-items: center; }
.foot-social a { color: var(--muted); display: inline-flex; padding: 4px; margin: -4px; transition: color .2s; }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--ink); }
