@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Anybody";
  src: url("../assets/fonts/anybody-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../assets/fonts/martian-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

@property --tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #e7e4de;
}

:root {
  --black: #000000;
  --shadow: #1d1c1a;
  --concrete: #8e8a83;
  --concrete-light: #cfcac2;
  --paper: #e7e4de;
  --white: #ffffff;
  --lit: #ffc53d;
  --lit-press: #f0b21f;
  --muted-on-paper: #4b4844;
  --muted-on-black: #a9a49c;

  /* semantic roles: the site is black-first; light-designed parts read these */
  --bg: #000000;
  --fg: #f2efe9;
  --muted: #a39e96;
  --line: rgba(255, 255, 255, .18);
  --surface: #171615;
  --frame: #f2f2f2; /* product mockups' own studio colour */
  --radius-img: 12px;

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Anybody", "Arial Black", sans-serif;
  --font-keep: "Archivo", "Helvetica Neue", Arial, sans-serif; /* manifesto + GSM chart, unchanged */
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif; /* editorial headlines only, always italic */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t-ui: 300ms;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --bar-h: 30px;    /* the shipping line along the top */
  --section-y: clamp(48px, 6vw, 88px); /* the gap above and below every section's content */
  --header-h: 94px; /* bar + 64px of header */
  --radius: 2px;

  /* type scale, ~1.333 */
  --fs-0: .8125rem;
  --fs-1: 1rem;
  --fs-2: 1.25rem;
  --fs-3: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  --fs-4: clamp(2.4rem, 1.4rem + 4.5vw, 5.6rem);
  --fs-5: clamp(3rem, 1.2rem + 8vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: .95; font-family: var(--display); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--lit); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lit); color: #000; padding: 12px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* faint concrete grain on large surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  font-weight: 800; font-stretch: 112%; font-size: var(--fs-1); letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), color var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn--lit { background: var(--lit); color: #000; border-color: var(--lit); }
.btn--lit:hover { background: var(--lit-press); }
.btn--line { background: transparent; color: currentColor; border-color: currentColor; }
.btn--line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--block { width: 100%; }
.btn--big { min-height: 64px; padding: 0 44px; font-size: var(--fs-2); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* garment tag label */
.tag {
  display: inline-block; margin: 0 0 14px;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
  padding: 6px 9px; border: 1px solid currentColor; border-radius: var(--radius);
}

.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: var(--fs-2); margin-bottom: 20px; }
.price s { font-weight: 400; font-size: var(--fs-1); color: var(--muted); }
.price .save { font-family: var(--mono); font-size: .6875rem; font-weight: 500; }

/* pickers: real radio groups */
.picker { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-0); }
.picker legend span { font-weight: 400; margin-left: 6px; }
.link-btn.picker__chart { display: block; margin: 8px 0 0; padding: 6px 0; }
.link-btn.picker__chart[hidden] { display: none; }
/* anything marked hidden stays hidden, whatever display a class gives it */
[hidden] { display: none !important; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt input:disabled { cursor: not-allowed; }
.swatch {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sw); border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform var(--t-fast) var(--ease-out);
}
.swatch--split { background: linear-gradient(135deg, var(--sw) 50%, var(--sw2) 50%); }
.opt input:checked + .swatch { border-color: var(--fg); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(255, 255, 255, .25); }
.opt input:hover + .swatch { transform: scale(1.06); }
.opt input:focus-visible + .swatch, .opt input:focus-visible + .size { outline: 3px solid var(--fg); outline-offset: 3px; }
.size {
  display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 10px;
  font-weight: 700; font-size: var(--fs-0); border: 1.5px solid var(--fg); border-radius: var(--radius);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.opt input:checked + .size { background: var(--fg); color: var(--bg); }
.opt input:disabled + .size { opacity: .35; text-decoration: line-through; }

.chip {
  min-height: 44px; padding: 0 18px; border: 1.5px solid var(--fg); border-radius: 999px;
  background: transparent; font-weight: 700; font-size: var(--fs-0); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.final-sale { font-size: var(--fs-0); color: var(--muted); max-width: 46ch; }
.form-msg { min-height: 1.4em; margin: 8px 0 0; font-size: var(--fs-0); font-weight: 700; }

/* reveal starting states: only when JS runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { clip-path: inset(100% 0 0 0); }
  .js [data-reveal] img { transform: scale(1.12); }
}

/* every image gets soft corners; product photos get a little extra colour */
img, video { border-radius: var(--radius-img); }
.xray img, .thumb img, .spotlight__face img, .pdp__gallery img, .line img, .card__media img, .look__media img, .quick__gallery img, .chapter__big img, .chapter__small img {
  filter: saturate(1.2) contrast(1.05);
}

/* a button that looks like a link (lives here because the quick-buy sheet is on every page) */
.link-btn {
  margin-left: 10px; padding: 10px 0; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-0); font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
}

/* custom cursor (mouse/trackpad only; see scripts/cursor.js) */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor select, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input[type="text"], .has-cursor input[type="email"], .has-cursor textarea { cursor: text; }
.has-cursor .opt input { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; inset: 0 auto auto 0; padding: 0; border: 0; overflow: visible; pointer-events: none; will-change: transform; }
/* white with a dark edge, so it shows on any background (a blend mode vanished on mid-grey) */
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7); }
.cursor-ring {
  width: 0; height: 0; margin: 0; background: none;
}
.cursor-ring::before {
  content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  border: 1.5px solid #fff; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .5);
  transition: width 220ms var(--ease-out), height 220ms var(--ease-out), background-color 180ms, border-color 180ms;
}
.cursor-ring__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; white-space: nowrap; opacity: 0; transition: opacity 200ms;
}
.cursor-ring[data-state="hover"]::before { width: 56px; height: 56px; }
.cursor-ring[data-state="view"]::before { width: 84px; height: 84px; background: rgba(0, 0, 0, .45); }
/* over the x-ray tee the ring stays hollow so it never covers what you're reading */
.cursor-ring[data-state="xray"]::before { width: 112px; height: 112px; border-width: 1.5px; }
.cursor-ring[data-state="xray"] .cursor-ring__label { color: #fff; transform: translate(-50%, 66px); }
.cursor-ring[data-state="view"] .cursor-ring__label, .cursor-ring[data-state="xray"] .cursor-ring__label { opacity: 1; }
.cursor-ring.is-down::before { width: 24px; height: 24px; }
.cursor-away .cursor-dot, .cursor-away .cursor-ring { opacity: 0; }

/* ?preview=1: products waiting for the owner's approval are showing (only for whoever opened the link) */
.preview-bar {
  position: fixed; z-index: 2147483000; left: 50%; bottom: 16px; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px;
  font-size: var(--fs-0); font-weight: 600; color: #000; background: var(--lit); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.preview-bar a { color: inherit; }

/* ---------- Paper pieces (13 Nov 2026), recoloured black + yellow at the owner's request (14 Nov) ----------
   The coffee/beige palette was rejected; the class names stay, the colours are the site's own. Pieces:
   homepage "Tee first. Then the hoodie." (woodblock), Fabric & fit's feel guide (swatch book),
   Minimalist's side-by-side (ledger), the size chart (tailor's card), track order (parcel label).
   Both themes only re-point the semantic tokens, so buttons, pickers and tables follow by themselves. */
:root {
  --cb-coffee: #000000; --cb-espresso: #0e0d0c; --cb-mocha: #a39e96; --cb-latte: #ffc53d;
  --cb-beige: #f2efe9; --cb-oat: #171615; --cb-ink: #f2efe9; --cb-seal: #ffc53d;
}
.t-coffee {
  --bg: var(--cb-coffee); --fg: var(--cb-beige); --muted: var(--cb-latte);
  --line: rgba(255, 255, 255, .18); --surface: #171615;
  --lit: #ffc53d; --lit-press: #f0b21f;
  background: var(--bg);
  color: var(--fg);
}
.t-oat {
  --bg: var(--cb-oat); --fg: var(--cb-ink); --muted: var(--cb-mocha);
  --line: rgba(255, 255, 255, .14); --surface: #1f1e1c;
  --lit: #ffc53d; --lit-press: #f0b21f;
  background: radial-gradient(120% 90% at 30% 15%, #22211f, var(--bg) 55%, #121110);
  color: var(--fg);
}
.t-coffee .btn--lit, .t-oat .btn--lit { color: #000; }
.t-oat .swatch { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.t-oat .size-table tbody tr { border-top-color: var(--line); }
.t-oat .size-table tbody tr:hover, .t-coffee .size-table tbody tr:hover { color: #000; background: var(--lit); }
/* full-bleed band: paints the colour edge to edge without widening the page */
.band-bleed { box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.band-bleed.t-coffee { background: var(--bg); }

/* ---------- Final polish pass (14 Nov 2026): looks and motion only, no behaviour ---------- */
/* Type: crisper light-on-black text, headings that break evenly, prices whose digits line up. */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scrollbar-color: #3a3835 #000; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, blockquote { text-wrap: pretty; }
.price, .card__price, .line__price, .site-header__count, [data-bag-subtotal], .size-table { font-variant-numeric: tabular-nums; }
::selection { background: var(--lit); color: #000; }

/* Photos: a hairline edge, so a dark photo never melts into the black page. */
.card__media img, .look__media img, .pdp__gallery img, .quick__gallery img, .chapter__big img, .chapter__small img,
.review__photo img, .pair__worn img, .mini-panel__media img {
  outline: 1px solid rgba(255, 255, 255, .09); outline-offset: -1px;
}

/* Press: every control gives a little under the finger. */
.chip, .size, .heart, .sheet__close, .site-header__bag, .site-header__menu, .link-btn { -webkit-tap-highlight-color: transparent; }
.chip { transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.size { transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.chip:active, .heart:active, .sheet__close:active, .site-header__bag:active, .site-header__menu:active { transform: scale(.95); }
.opt input:active:not(:disabled) + .size { transform: scale(.94); }
.opt input:active + .swatch { transform: scale(.92); }

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: a short cross-fade instead of a white flash; the header holds still.
     Browsers without view transitions simply load the page as before. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 160ms ease-in both; }
  ::view-transition-new(root) { animation: vt-in 320ms var(--ease-out) both; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
  ::view-transition-old(site-header) { display: none; }
  ::view-transition-new(site-header) { animation: none; }

  /* Section headlines rise out of their own baseline, once, as they arrive (scripts/polish.js adds the classes). */
  .rise > .rise__in { display: block; transform: translateY(108%); opacity: 0; }
  .rise.is-in { clip-path: inset(-.3em -.6em -.04em -.6em); }
  .rise.is-in > .rise__in { transform: none; opacity: 1; transition: transform 950ms var(--ease-out); }
  /* the footer wordmark is drawn in from the left */
  .wipe { clip-path: inset(0 100% 0 0); }
  .wipe.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1200ms var(--ease-out); }

  /* Drawers leave as well as arrive (browsers that can keep a closing dialog on top). */
  @supports (overlay: auto) {
    .sheet { transition: transform 220ms ease-in, overlay 220ms allow-discrete, display 220ms allow-discrete; }
    .sheet:not([open]) { transform: translateX(100%); }
    .sheet::backdrop { transition: opacity 220ms ease-in, overlay 220ms allow-discrete, display 220ms allow-discrete; }
    .sheet:not([open])::backdrop { opacity: 0; }
    @media (max-width: 699px) { .sheet:not([open]) { transform: translateY(100%); } }
  }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
