/* ==========================================================================
   Tax Wealth Not Work — site.css (the only stylesheet; hand-written)
   Tokens: SOCIAL_BRAND_TOKENS-v1.0 — ink #141210, ground #B19E88, accent #7B0F10, paper #FFFFFF.
   System: editorial, left-aligned, ragged right. The only constructivist device is the
   accent rule + mono kicker. Everything else stays quiet.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-Italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand tokens */
  --ink: #141210;
  --paper: #ffffff;
  --ground: #b19e88;
  --accent: #7b0f10;

  /* roles (light) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5c544c;          /* ink softened; 7.4:1 on paper */
  --hair: rgba(20, 18, 16, 0.14);
  --hair-strong: rgba(20, 18, 16, 0.42);
  --tile: #ebe4dc;           /* ground at ~25% on paper: quiet surfaces */
  --img-tile: #ebe4dc;       /* garment photography always sits on a light tile */
  --band: var(--ground);     /* full-bleed ground sections and colophon */
  --band-fg: var(--ink);
  --rule: var(--accent);
  --kicker: var(--accent);
  --link-line: var(--accent);
  --button-bg: var(--ink);
  --button-fg: var(--paper);
  --button-hover: var(--accent);

  /* type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* scale (1.25 minor third-ish, fluid at the top) */
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --step-hero: clamp(3.4rem, 0.9rem + 10.5vw, 10.5rem);

  /* layout */
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --measure: 40rem;          /* ≈ 68 characters at body size */
  --rail: 0rem;              /* left rail for article bodies on wide screens */
  --space: clamp(3.5rem, 2rem + 6vw, 7.5rem);
}

@media (min-width: 64em) {
  :root { --rail: 13rem; }
}

/* Dark: the four tokens inverted (paper ↔ ink; ground darkens to #2A2520).
   The accent is lifted for rules/underlines only, so it stays visible on ink. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #b8afa5;
    --hair: rgba(255, 255, 255, 0.16);
    --hair-strong: rgba(255, 255, 255, 0.45);
    --tile: #2a2520;
    --img-tile: #d6ccc0;
    --band: #2a2520;
    --band-fg: var(--paper);
    --rule: #c2484a;
    --kicker: #d8c6b2;
    --link-line: #c2484a;
    --button-bg: var(--paper);
    --button-fg: var(--ink);
    --button-hover: #d8c6b2;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.mono { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip { position: absolute; left: var(--gutter); top: -3rem; z-index: 10; background: var(--fg); color: var(--bg); padding: 0.5rem 0.75rem; }
.skip:focus { top: 0.5rem; }

/* ---------- the kicker: accent rule + mono label ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--kicker);
}
.kicker__rule { flex: none; width: 2.5rem; height: 2px; background: var(--rule); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--hair); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-block: 0.75rem; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.3em;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; line-height: 1;
}
.wordmark__bar { align-self: center; width: 0.9rem; height: 0.9rem; background: var(--rule); margin-right: 0.35rem; }

.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--hair-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--rule); }
.nav__count { font-family: var(--mono); font-size: var(--step--1); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 8rem) var(--space); }
.hero__line {
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: initial;
  margin-left: -0.04em;
}
.hero__line span { display: block; }
.hero__rule {
  height: 6px; background: var(--rule); margin: clamp(1.75rem, 3vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  width: min(100%, 34rem);
  transform-origin: left center;
  animation: draw 900ms cubic-bezier(.2, .7, .2, 1) 150ms both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__deck { max-width: 34rem; font-size: var(--step-1); line-height: 1.5; }
.hero__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-block: 0 var(--space); }
.section--ground { background: var(--band); color: var(--band-fg); padding-block: var(--space); margin-bottom: var(--space); }
.section--ground .kicker { color: inherit; }
.section--ground .kicker__rule { background: var(--fg); }
@media (prefers-color-scheme: dark) { .section--ground .kicker__rule { background: var(--rule); } }

.section__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.75rem 2rem; margin-bottom: 2rem; }
.section__head .kicker { margin: 0; }
.section__title { font-size: var(--step-3); grid-column: 1 / -1; grid-row: 2; max-width: 22ch; }
.section__more { font-weight: 600; }

/* ---------- article index ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.index__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--hair);
}
.index__meta { display: flex; gap: 1.25rem; color: var(--muted); }
.index__title { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.15; max-width: 30ch; }
.index__title a { text-decoration: none; }
.index__title a:hover { text-decoration: underline; text-decoration-color: var(--link-line); }
.index__summary { margin-top: 0.6rem; max-width: var(--measure); color: var(--muted); }
.index__summary p { margin: 0; }
.index__tags { margin-top: 0.75rem; color: var(--muted); }
.index__thumb { display: none; }

@media (min-width: 48em) {
  .index__item { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .index__meta { flex-direction: column; gap: 0.25rem; padding-top: 0.35rem; }
}
@media (min-width: 64em) {
  .index__item { grid-template-columns: var(--rail) minmax(0, 1fr) 14rem; }
  .index__thumb { display: block; background: var(--tile); align-self: start; }
  .index__thumb img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
}

/* ---------- designs (home) ---------- */
.designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.design a { display: grid; gap: 0.35rem; text-decoration: none; }
.design__img { display: block; background: var(--img-tile); margin-bottom: 0.75rem; }
.design img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.design__code { font-weight: 500; }
.design__name { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.design a:hover .design__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* ---------- signup ---------- */
.signup { display: grid; gap: 2rem; border-top: 2px solid var(--fg); padding-top: 2rem; }
.signup .section__title { margin: 0 0 0.75rem; max-width: 20ch; }
@media (min-width: 56em) { .signup { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.form--inline { grid-template-columns: 1fr auto; gap: 0.5rem; align-items: stretch; }
.form--inline .form__note { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field label, legend { font-weight: 600; font-size: 0.9375rem; }
input[type="email"], input[type="text"], input:not([type]), input[type="number"], select, textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--hair-strong); border-radius: 0; padding: 0.7rem 0.8rem; width: 100%;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--rule); outline-offset: 0; border-color: var(--fg); }

button, .button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--button-bg); color: var(--button-fg);
  border: 0; border-radius: 0; padding: 0.8rem 1.4rem; text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .button:hover { background: var(--button-hover); }
button:disabled { opacity: 0.6; cursor: progress; }
.link-button { background: none; color: var(--muted); padding: 0; font-weight: 500; text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 0.18em; }
.link-button:hover { background: none; color: var(--fg); }

.form__note { font-size: 0.9375rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--fg); background: var(--tile); }
.form__note--error { border-left-color: var(--rule); }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-title { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.02; max-width: 20ch; }
.page-deck { margin-top: 1.25rem; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.page-head--error { min-height: 50vh; }

.pager { display: flex; justify-content: space-between; align-items: center; padding-block: 2rem var(--space); }

.preview-bar { background: var(--accent); color: #fff; padding: 0.6rem var(--gutter); text-align: left; }

/* ---------- article ---------- */
.article__head { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) 2.5rem; }
.article__title { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.02; max-width: 22ch; }
.article__deck { margin-top: 1.5rem; max-width: 38rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hair); }
.article__meta dt { color: var(--muted); }
.article__meta dd { margin: 0; color: var(--fg); }
.article__figure { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.article__figure picture { background: var(--paper); }
.article__figure img { width: 100%; max-height: 80vh; object-fit: contain; }
@media (prefers-color-scheme: dark) { .article__figure img { border-radius: 0; } }
.article__tags { margin: 3.5rem 0 var(--space) var(--rail); max-width: var(--measure); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { display: inline-block; padding: 0.35rem 0.6rem; border: 1px solid var(--hair-strong); text-decoration: none; }
.tag:hover { border-color: var(--fg); }

/* ---------- prose (journal bodies and CMS pages) ---------- */
.prose { max-width: var(--measure); margin-left: var(--rail); font-size: 1.125rem; line-height: 1.68; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin-top: 2.4em; line-height: 1.2; }
.prose h3 { font-size: var(--step-1); letter-spacing: -0.01em; margin-top: 2em; line-height: 1.25; }
.prose h4 { font-size: 1rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose ol { list-style: decimal; }
.prose ol li::marker { font-family: var(--mono); font-size: 0.875em; color: var(--muted); }
.prose blockquote { margin: 1.6em 0; padding-left: 1.25rem; border-left: 3px solid var(--rule); font-size: var(--step-1); line-height: 1.5; }
.prose hr { border: 0; height: 2px; width: 2.5rem; background: var(--rule); margin: 2.75em 0; }
.prose pre { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; overflow-x: auto; white-space: pre; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--hair); }
.prose th { font-weight: 600; border-bottom-color: var(--fg); }
.prose img { margin-block: 1.5em; }
.prose--page { padding-bottom: var(--space); }
.prose--product { margin-left: 0; font-size: 1rem; margin-top: 2.5rem; color: var(--fg); }
.prose--product > p:first-child strong { font: inherit; font-weight: 650; display: inline; margin: 0; color: inherit; letter-spacing: normal; }
.prose--product p:not(:first-child) strong:only-child { font-family: var(--mono); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em; display: block; margin-top: 2em; color: var(--kicker); }

.draft-note { border: 2px solid var(--rule); padding: 1rem 1.25rem; font-family: var(--mono); font-size: var(--step--1); }

.contact-form { margin: 0 0 var(--space) var(--rail); max-width: var(--measure); border-top: 2px solid var(--fg); padding-top: 2rem; }
.contact-form .section__title { margin-bottom: 1.5rem; }
.contact-form .form__note { margin-bottom: 1.5rem; }

/* ---------- shop ---------- */
.shop-group { padding-bottom: clamp(3rem, 6vw, 5rem); }
.shop-group__head { display: flex; align-items: baseline; gap: 1.25rem; border-top: 2px solid var(--fg); padding-top: 1rem; margin-bottom: 1.5rem; }
.shop-group__code { color: var(--kicker); font-weight: 500; }
.shop-group__title { font-size: var(--step-3); letter-spacing: -0.03em; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem; }
.product-card a { display: grid; gap: 0.5rem; text-decoration: none; }
.product-card__img { background: var(--img-tile); display: block; }
.product-card__img img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.product-card__name { font-weight: 650; font-size: var(--step-1); letter-spacing: -0.015em; margin-top: 0.4rem; }
.product-card__meta { display: flex; gap: 1.25rem; color: var(--muted); }
.product-card a:hover .product-card__name { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 0.15em; }

.product { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 4rem) var(--space); }
@media (min-width: 56em) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .product__media { position: sticky; top: 1.5rem; }
}
.product__main { margin: 0; background: var(--img-tile); }
.product__main img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.product__gallery { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product__gallery img { aspect-ratio: 480 / 505; object-fit: cover; width: 100%; background: var(--tile); }
.product__title { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1; }
.product__garment { font-size: var(--step-1); margin-top: 0.5rem; color: var(--muted); }
.product__price { font-size: 1.125rem; margin-top: 1.25rem; }
.product__facts { margin-top: 1.25rem; color: var(--muted); }

.picker { display: grid; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.picker__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker__set legend { display: flex; gap: 1rem; align-items: baseline; padding: 0; margin-bottom: 0.75rem; }
.picker__value { color: var(--muted); font-weight: 400; }
.picker__guide { font-weight: 500; font-size: 0.875rem; }
.picker__status { min-height: 1.5em; font-size: 0.9375rem; }

.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch, .size { position: relative; cursor: pointer; }
.swatch input, .size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch__chip { display: block; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.swatch input:checked + .swatch__chip { outline: 2px solid var(--fg); outline-offset: 3px; }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--rule); outline-offset: 3px; }
.size span { display: grid; place-items: center; min-width: 3.25rem; height: 2.75rem; padding-inline: 0.6rem; border: 1px solid var(--hair-strong); }
.size input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.size input:focus-visible + span { outline: 2px solid var(--rule); outline-offset: 2px; }
.size.is-unavailable span { opacity: 0.35; text-decoration: line-through; }
.size.is-unavailable { cursor: not-allowed; }

/* ---------- garment facts and size guides ---------- */
.product-card__blank { font-size: 0.875rem; color: var(--muted); margin-top: -0.25rem; }
.product__blank { margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); }
.garment { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.garment__h { font-size: 1rem; font-weight: 650; }
.garment__spec { margin: 0.75rem 0 0; display: grid; gap: 0.35rem; }
.garment__spec div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.garment__spec dt { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 0.15em; }
.garment__spec dd { margin: 0; }
.garment__note { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.size-guide { margin-top: 1.5rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.size-guide > summary { cursor: pointer; padding-block: 0.9rem; font-weight: 650; list-style-position: inside; }
.size-guide > summary::marker { color: var(--kicker); }
.size-guide[open] > summary { border-bottom: 1px solid var(--hair); }
.size-guide .size-guide__body { padding-block: 1rem 0.5rem; }
.size-guide__more { font-size: 0.9375rem; padding-bottom: 1rem; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll:focus-visible { outline: 2px solid var(--rule); outline-offset: 2px; }
.size-table { border-collapse: collapse; font-size: 0.9375rem; min-width: 100%; }
.size-table caption { text-align: left; font-size: 0.875rem; color: var(--muted); padding-bottom: 0.6rem; }
.size-table th, .size-table td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--hair); white-space: nowrap; text-align: left; }
.size-table thead th { border-bottom-color: var(--fg); font-weight: 600; }
.size-table tbody th { font-weight: 500; padding-right: 1.25rem; }
.size-table .num { text-align: right; }
.size-guide__how { margin: 1rem 0 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.size-guide__how dt { font-weight: 600; }
.size-guide__how dd { margin: 0; color: var(--muted); }
.size-guide__fit { margin-top: 1rem; font-size: 0.9375rem; }
.size-guide__fit strong { font-weight: 650; }
.size-charts { margin: 0 0 var(--space) var(--rail); max-width: 52rem; border-top: 2px solid var(--fg); padding-top: 2rem; }
.size-charts .section__title { max-width: none; }
.size-charts__intro { margin-top: 0.75rem; max-width: var(--measure); color: var(--muted); }
.size-chart { margin-top: 2.5rem; }
.size-chart h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.size-chart__spec { margin: 0.4rem 0 1rem; color: var(--muted); max-width: var(--measure); }
.cart__delivery { font-size: 0.9375rem; }

/* ---------- cart ---------- */
.cart { display: grid; gap: 2.5rem; padding-bottom: var(--space); }
@media (min-width: 56em) { .cart { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.line { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--hair); align-items: start; }
.line__img { background: var(--img-tile); }
.line__img img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.line__name { font-weight: 650; text-decoration: none; }
.line__opts { color: var(--muted); margin-top: 0.25rem; }
.line__qty { display: flex; gap: 1rem; align-items: center; margin-top: 0.75rem; }
.line__qty input { width: 4.5rem; padding: 0.4rem 0.5rem; }
.cart__summary { border-top: 2px solid var(--fg); padding-top: 1.25rem; display: grid; gap: 1.25rem; }
.cart__heading { font-size: var(--step-1); }
.cart__empty { font-size: var(--step-1); padding-top: 1rem; border-top: 2px solid var(--fg); }
.cart__note { font-size: 0.875rem; }
.totals { margin: 0; display: grid; gap: 0.4rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; }
.totals__total { border-top: 1px solid var(--hair); padding-top: 0.6rem; margin-top: 0.3rem; font-weight: 500; font-size: 1rem; }

/* ---------- receipt ---------- */
.receipt { display: grid; gap: 2.5rem; padding-bottom: var(--space); max-width: 52rem; }
@media (min-width: 56em) { .receipt { grid-template-columns: 1fr 16rem; } }
.receipt__table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--fg); }
.receipt__table th, .receipt__table td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--hair); }
.receipt__table thead th { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.receipt__table .num { text-align: right; padding-right: 0; }
.receipt__table tfoot th, .receipt__table tfoot td { font-weight: 650; border-bottom: 0; }
.receipt address { font-style: normal; }

/* ---------- colophon ---------- */
.colophon { background: var(--band); color: var(--band-fg); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.colophon__inner { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .colophon__inner { grid-template-columns: 1fr 1.4fr; } }
.colophon__name { font-weight: 800; font-size: var(--step-2); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.colophon__lead p:last-child { max-width: 28rem; }
.colophon__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.colophon__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; align-content: start; }
.colophon a { text-decoration-color: currentColor; }
.colophon__legal { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--step--1); border-top: 1px solid currentColor; padding-top: 1.25rem; opacity: 0.9; }
@media (max-width: 30em) { .colophon__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead, .colophon, .article__tags, .section, .skip { display: none; }
  .prose { margin-left: 0; max-width: none; }
}

/* standfirst carried over from the Shopify page subtitles */
.prose .page-standfirst { font-size: var(--step-1); line-height: 1.45; }
.prose .page-standfirst strong { font-weight: 650; }

/* Add-to-cart feedback (07/10/2026) */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem; background: var(--ink, #141210); color: var(--paper, #fff); border-left: 4px solid var(--accent, #7B0F10);
  box-shadow: 0 8px 28px rgba(0,0,0,.25); transition: transform .25s ease, opacity .25s ease; z-index: 50; font-size: 0.9375rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast strong { font-family: var(--font-mono, monospace); letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; }
.toast .button--small { padding: .35rem .7rem; font-size: .875rem; }
button.is-added, .button.is-added { background: var(--accent, #7B0F10); color: #fff; }
.nav__count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .nav__count.bump { animation: none; } }

/* ---- Shop by design and by item (DOCUMENT 17 §E, 08/10/2026) ---- */
.crumbs { padding-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: inherit; }
.design__tagline { color: var(--muted); line-height: 1.4; }
.design__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--hair); padding-top: 0.5rem; margin-top: 0.25rem; }
.type-filter { margin-top: 1.75rem; }
.type-filter .tag[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.design-head__price { margin-top: 0.75rem; color: var(--muted); }
.design-body { display: grid; gap: 2rem 4rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 56em) { .design-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.design-story { max-width: 40rem; }
.argument { border-top: 2px solid var(--fg); padding-top: 1rem; align-self: start; }
.argument__list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.argument__title { font-weight: 650; font-size: var(--step-1); line-height: 1.25; display: block; }
.argument__date { font-size: var(--step--1); }
.shop-group__fits { margin-left: auto; font-size: var(--step--1); }
.shop-group__title a { text-decoration: none; }
.shop-group__title a:hover { text-decoration: underline; }
.siblings { margin-top: 2rem; border-top: 1px solid var(--hair); padding-top: 1rem; }
.siblings__list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.wear { border-top: 2px solid var(--fg); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-head--tight { padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
.design-story .garment__h { margin-bottom: 0.75rem; }
.design-head__argument { margin-top: 0.75rem; max-width: 40rem; }
