/* UNDERRATED — storefront styles. Tokens follow the brand guide: strictly
   monochrome, one typeface (Archivo), wordmark always set with the mirrored R. */

:root {
  --black: #111110;
  --off-white: #efece6;
  --charcoal: #4f4c47;
  --stone: #b3afa6;
  --panel: #f7f5f1;
  --tile: #e3dfd7;
  --rule: #cfcbc2;
  --error: #9b2c22;

  --font: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Type ---------- */

.wm {
  display: inline-flex;
  gap: 0.32em;
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  white-space: nowrap;
}
.wm > span { display: inline-block; }
.wm > span:nth-child(6) { transform: scaleX(-1); }

.label {
  font-weight: 600;
  font-stretch: 110%;
  font-size: 13px;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--charcoal);
}

.tagline {
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.48em;
  margin-right: -0.48em;
  line-height: 1;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; line-height: 1.04; }
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 20px; font-weight: 700; font-stretch: 108%; line-height: 1.2; }
p { margin: 0; }

.lede { font-size: 19px; color: var(--charcoal); max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1.5px solid var(--black); border-radius: 0;
  background: var(--black); color: var(--off-white);
  font-weight: 600; font-stretch: 110%; font-size: 13px; letter-spacing: 0.24em;
  text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--black); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--light { background: var(--off-white); color: var(--black); border-color: var(--off-white); }
.btn--light:hover { background: transparent; color: var(--off-white); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--off-white); }
.btn--ghost-light { background: transparent; color: var(--off-white); border-color: var(--off-white); }
.btn--ghost-light:hover { background: var(--off-white); color: var(--black); }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 6px;
  background: none; border: 0;
}
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--black); color: var(--stone);
  text-align: center; padding: 10px var(--gutter);
  font-size: 11px;
}
.announce .label { color: var(--stone); font-size: 11px; }
@media (max-width: 420px) { .announce .label { letter-spacing: 0.14em; } }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--off-white);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; align-items: center;
  height: var(--header-h);
}
.site-header__logo { text-decoration: none; justify-self: center; font-size: 22.5px; }
.site-header__right { justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-header__left { display: flex; align-items: center; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav-item { position: relative; height: var(--header-h); display: flex; align-items: center; }
.nav-item__top {
  text-decoration: none;
  font-weight: 600; font-stretch: 110%; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 12px 0; border-bottom: 1.5px solid transparent;
}
.nav-item:hover .nav-item__top, .nav-item:focus-within .nav-item__top, .nav-item__top[aria-current] { border-bottom-color: var(--black); }

.nav-panel {
  position: absolute; top: 100%; left: -24px; z-index: 45;
  min-width: 280px; padding: 22px 24px 24px;
  background: var(--off-white); border: 1px solid var(--rule); border-top: 0;
  display: grid; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .15s, transform .15s;
}
.nav-item.is-closed .nav-panel { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.nav-panel ul { display: grid; }
.nav-panel ul a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-weight: 800; font-stretch: 112%; font-size: 22px; line-height: 1.1;
}
.nav-panel ul a:hover span:first-child, .nav-panel ul a[aria-current] span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-panel__price { font-weight: 500; font-stretch: 100%; font-size: 14px; color: var(--charcoal); }
.nav-panel__all {
  justify-self: start; padding: 8px 0;
  font-weight: 600; font-stretch: 110%; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  text-underline-offset: 5px;
}

.menu-toggle { display: none; }

.bag-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--black); color: var(--off-white);
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.bag-count[data-empty="true"] { background: transparent; color: var(--black); border: 1.5px solid var(--black); line-height: 19px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__logo { font-size: 15px; }
}

/* ---------- Drawers (menu + bag) ---------- */

.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 16, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%);
  background: var(--off-white);
  display: flex; flex-direction: column;
  transition: transform .25s ease;
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); min-height: var(--header-h);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.drawer__foot { padding: 20px var(--gutter) 24px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }

.mobile-nav { display: grid; padding-top: 12px; }
.mobile-nav a {
  text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-weight: 800; font-stretch: 112%; font-size: 26px;
}
.mobile-nav .label { margin-top: 28px; margin-bottom: 4px; }

.bag-line {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.bag-line__img { background: var(--tile); aspect-ratio: 4 / 5; display: block; }
.bag-line__info { display: grid; gap: 4px; align-content: start; }
.bag-line__name { font-weight: 700; font-stretch: 108%; text-decoration: none; line-height: 1.3; }
.bag-line__meta { font-size: 14px; color: var(--charcoal); }
.bag-line__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.bag-line__remove {
  background: none; border: 0; padding: 0; min-height: 44px;
  font-size: 13px; color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px;
}
.bag-empty { padding: 48px 0; display: grid; gap: 20px; justify-items: start; }
.bag-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.bag-note { font-size: 13px; color: var(--charcoal); }
.bag-error { font-size: 14px; color: var(--error); }
.bag-error:empty { display: none; }

.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--black);
}
.qty button {
  width: 40px; height: 40px; background: none; border: 0;
  font-size: 18px; line-height: 1;
}
.qty output, .qty input {
  width: 36px; text-align: center; font-weight: 700; border: 0; background: none; font: inherit; font-weight: 700;
}
.qty--lg button { width: 48px; height: 52px; }
.qty--lg output { width: 44px; }

/* ---------- Garment illustration ---------- */

.garment {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 400 / 460;
}
.garment svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgba(17, 17, 16, .14)); }
.garment__print {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.garment__print .wm { font-size: var(--wm-size); }
.garment__print .tagline { font-size: var(--tag-size); margin-top: calc(var(--tag-size) * 1.4); }

.media {
  position: relative; background: var(--tile); overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
}
.media .garment { width: 74%; }
.media img.photo { width: 100%; height: 100%; object-fit: cover; }
.bag-line__img img.photo, .order__thumb img.photo { object-position: center 25%; }

/* ---------- Product card ---------- */

.grid {
  display: grid; gap: 32px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

.card { display: grid; gap: 12px; text-decoration: none; }
.card__media .garment--back { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity .25s; }
.card__media .garment--front { transition: opacity .25s; }
@media (hover: hover) {
  .card:hover .card__media .garment--back { opacity: 1; }
  .card:hover .card__media .garment--front { opacity: 0; }
}
.card__body { display: grid; gap: 2px; }
.card__name { font-weight: 700; font-stretch: 108%; font-size: 16px; line-height: 1.3; }
.card__colour { font-size: 14px; color: var(--charcoal); }
.card__price { font-weight: 600; font-size: 15px; margin-top: 4px; }
.card__dots { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.card__dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(17, 17, 16, .25); }
.card__dots span[data-active="true"] { box-shadow: 0 0 0 2px var(--off-white), 0 0 0 3px var(--black); }

/* ---------- Home ---------- */

/* The wordmark spans most of the hero, running across both models;
   a soft shadow keeps it readable where it crosses the white tee. */
.hero {
  background: var(--black) url('/assets/img/hero.webp') center top / cover no-repeat;
  color: var(--off-white);
  min-height: min(56.25vw, 88vh);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 36px);
  padding: 84px var(--gutter) 44px; text-align: center; /* content sits 20px below centre */
}
.hero__h1 { margin: 0; line-height: 1; font-size: inherit; }
.hero .wm { font-size: clamp(30px, 7.2vw, 150px); text-shadow: 0 2px 28px rgba(17, 17, 16, .45); }
.hero .tagline { font-size: clamp(13px, 1.7vw, 34px); color: var(--stone); text-shadow: 0 1px 16px rgba(17, 17, 16, .6); }

/* Portrait screens get portrait crops of the shoot: the models stand in the
   lower half, so the wordmark sits in the dark space above them and the
   buttons sit over their dark clothing at the bottom. The hero is the photo's
   shape, capped at the screen height left under the header. */
@media (max-width: 1100px) and (orientation: portrait), (max-width: 600px) {
  .hero {
    background: var(--black) url('/assets/img/hero-tablet.webp') center bottom / cover no-repeat;
    height: min(133.33vw, calc(100svh - 110px));
    min-height: 560px;
    justify-content: flex-start;
    gap: 20px;
    padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(32px, 6vw, 56px);
  }
  .hero .wm { font-size: 7.6vw; }
  .hero .tagline { font-size: clamp(12px, 2.4vw, 20px); }
  .hero .hero__ctas { margin-top: auto; }
}
@media (max-width: 600px) {
  .hero {
    background-image: url('/assets/img/hero-mobile.webp');
    height: min(177.78vw, calc(100svh - 110px));
  }
  .hero .wm { font-size: 7.4vw; }
  .hero .hero__ctas { flex-wrap: nowrap; width: 100%; gap: 10px; }
  .hero .hero__ctas .btn { flex: 1; padding: 0 12px; }
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section__head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.section__head > div { display: grid; gap: 12px; }
.section__link {
  font-weight: 600; font-stretch: 110%; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  text-underline-offset: 6px; padding: 12px 0;
}

.gender-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .gender-tiles { grid-template-columns: 1fr; } }
.gender-tile {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  aspect-ratio: 4 / 5; background: var(--charcoal); color: var(--off-white);
}
.gender-tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.02); transition: transform .5s ease;
}
.gender-tile:hover img { transform: scale(1.05); }
.gender-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 16, .62), rgba(17, 17, 16, 0) 45%);
}
.gender-tile__label {
  position: absolute; left: clamp(20px, 3vw, 40px); right: 20px; bottom: clamp(20px, 3vw, 40px); z-index: 1;
  display: grid; gap: 14px;
}
.gender-tile__label strong { font-weight: 800; font-stretch: 115%; font-size: clamp(44px, 7vw, 96px); line-height: .9; letter-spacing: 0.04em; }
.gender-tile__label .label { color: var(--off-white); }

.type-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .type-tiles { grid-template-columns: 1fr; } }
.type-tile {
  position: relative; display: grid; grid-template-rows: 1fr auto; text-decoration: none;
  background: var(--tile); padding: 28px; min-height: 420px; overflow: hidden;
}
.type-tile .garment { width: 70%; margin: 0 auto; align-self: center; transition: transform .35s ease; }
.type-tile:hover .garment { transform: translateY(-6px); }
.type-tile__label { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.type-tile__label strong { font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.5vw, 36px); line-height: 1; text-transform: uppercase; }
.type-tile__label span { font-size: 15px; color: var(--charcoal); white-space: nowrap; }

.statement {
  background: var(--black); color: var(--off-white);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; justify-items: center; gap: 28px; text-align: center;
}
.statement p { font-weight: 600; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.25; max-width: 36ch; text-wrap: balance; }
.statement .rule { width: 64px; height: 2px; background: var(--stone); }
.statement .label { color: var(--stone); }

.category-copy { margin-top: 28px; max-width: 70ch; color: var(--charcoal); }

/* ---------- Shop / listing ---------- */

.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; display: grid; gap: 14px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
  padding: 16px 0; margin-bottom: 32px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border: 0; padding: 0; margin: 0; }
.filter-group legend { float: left; margin-right: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1.5px solid var(--rule); background: transparent;
  font-weight: 600; font-stretch: 108%; font-size: 13px; letter-spacing: 0.06em;
}
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--off-white); border-color: var(--black); }
.filters__count { margin-left: auto; font-size: 14px; color: var(--charcoal); }
@media (max-width: 760px) { .filters__count { margin-left: 0; width: 100%; } }

.swatch {
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(17, 17, 16, .3); background: var(--sw);
  box-shadow: 0 0 0 0 transparent;
}
.swatch-hit[aria-pressed="true"] .swatch, .swatch-hit[aria-checked="true"] .swatch { box-shadow: 0 0 0 3px var(--off-white), 0 0 0 4.5px var(--black); }
.swatch-hit { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; }

.empty-state { padding: 64px 0; display: grid; gap: 16px; justify-items: start; }

/* ---------- Product page ---------- */

.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 32px 0 clamp(56px, 8vw, 104px); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.gallery { display: grid; gap: 12px; align-content: start; }
.gallery__main { aspect-ratio: 1 / 1; }
.gallery__main .garment { width: 62%; }
.gallery__main.media--photo { aspect-ratio: 637 / 720; }
.gallery__thumbs img { object-position: center 20%; }
.gallery__thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 88px; aspect-ratio: 1 / 1; padding: 0; border: 1.5px solid transparent; background: var(--tile);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--black); }
.gallery__thumbs .garment { width: 70%; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy { display: grid; gap: 28px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .buy { position: static; } }
.buy__title { display: grid; gap: 12px; }
.buy__price { font-size: 22px; font-weight: 600; }
.option { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; }
.option legend { padding: 0; margin-bottom: 12px; }
.option legend strong { color: var(--black); }
.option__legend { display: flex; justify-content: space-between; width: 100%; }
.option__legend a { letter-spacing: 0.08em; text-transform: none; font-size: 13px; color: var(--black); text-underline-offset: 3px; }
.option__row { display: flex; gap: 4px; flex-wrap: wrap; }

.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 420px) { .sizes { grid-template-columns: repeat(3, 1fr); } }
.size {
  min-height: 52px; border: 1.5px solid var(--rule); background: transparent;
  font-weight: 700; font-stretch: 108%;
}
.size:hover { border-color: var(--black); }
.size[aria-checked="true"] { background: var(--black); color: var(--off-white); border-color: var(--black); }

.buy__actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.buy__msg { font-size: 14px; color: var(--charcoal); min-height: 1.5em; }
.buy__msg[data-tone="error"] { color: var(--error); }

.details { border-top: 1px solid var(--rule); }
.details details { border-bottom: 1px solid var(--rule); }
.details summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-stretch: 108%;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; font-size: 22px; font-weight: 400; }
.details details[open] summary::after { content: '–'; }
.details .details__body { padding: 0 0 20px; color: var(--charcoal); display: grid; gap: 10px; }
.details ul { margin: 0; padding-left: 20px; }

/* ---------- Success ---------- */

.receipt { max-width: 640px; padding: clamp(56px, 8vw, 104px) 0; display: grid; gap: 24px; }
.receipt__lines { border-top: 1px solid var(--rule); }
.receipt__line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.receipt__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.legal__head { display: grid; gap: 14px; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.legal__updated { font-size: 14px; color: var(--charcoal); }
.legal__note { font-size: 14px; color: var(--charcoal); background: var(--panel); border: 1px solid var(--rule); padding: 14px 16px; }
.legal__toc { padding: 24px 0 8px; margin: 0; list-style: none; columns: 2; column-gap: 32px; }
.legal__toc li { break-inside: avoid; }
.legal__toc a { display: inline-block; padding: 4px 0; color: var(--charcoal); text-underline-offset: 3px; }
@media (max-width: 600px) { .legal__toc { columns: 1; } }
.legal section { padding-top: 32px; display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 { font-size: 24px; }
.legal h3 { font-size: 17px; margin-top: 4px; }
.legal p, .legal li { color: #2b2a27; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Forms + account ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field .label { font-size: 11px; }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--rule); border-radius: 0; background: #fff;
  font: inherit; color: var(--black);
}
.field input:focus { outline: none; border-color: var(--black); }
.field__hint { font-size: 14px; color: var(--charcoal); margin-top: -8px; }
.form-error { color: var(--error); font-size: 15px; }
.form-error:empty { display: none; }
.text-link { justify-self: start; background: none; border: 0; padding: 10px 0; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: var(--black); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 11px; }
.muted { color: var(--charcoal); }

.account { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.auth { max-width: 460px; display: grid; gap: 24px; }
.auth__head { display: grid; gap: 12px; }
.auth__notice { background: var(--panel); border: 1px solid var(--rule); padding: 14px 16px; font-size: 15px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.auth-tabs button {
  background: none; border: 0; padding: 14px 0; margin-right: 28px; min-height: 48px;
  font-weight: 600; font-stretch: 110%; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--black); }

.account-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.account-head > div { display: grid; gap: 10px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-sub { font-size: 13px; font-weight: 600; font-stretch: 110%; letter-spacing: 0.28em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 16px; }

.order { background: #fff; border: 1px solid var(--rule); margin-bottom: 16px; }
.order--empty { padding: 28px; display: grid; gap: 18px; justify-items: start; }
.order__head, .order__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.order__head { border-bottom: 1px solid var(--rule); }
.order__head h3 { font-size: 18px; }
.order__head .muted { font-size: 14px; }
.order__foot { border-top: 1px solid var(--rule); font-size: 15px; }
.order__items { list-style: none; margin: 0; padding: 4px 20px; }
.order__items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ece9e3; font-size: 15px; line-height: 1.4; }
.order__items li:last-child { border-bottom: 0; }
.order__thumb { width: 64px; aspect-ratio: 4 / 5; }
.order__thumb .garment { width: 80%; }
.status { padding: 5px 10px; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border: 1.5px solid currentColor; }
.status--unfulfilled { color: #8a4b00; background: #fff4e5; }
.status--fulfilled { color: #1f5f3a; background: #e9f5ee; }
.status--cancelled { color: var(--charcoal); background: #f0eeea; }

.pw-panel { background: #fff; border: 1px solid var(--rule); }
.pw-panel summary { cursor: pointer; padding: 16px 20px; font-weight: 700; min-height: 44px; }
.pw-panel .form { padding: 4px 20px 20px; }

/* ---------- Content pages: info tables, FAQ, About, Contact, 404 ---------- */

.legal--wide { max-width: 920px; }
.legal .lede { margin-top: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: #fff; }
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table caption { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--charcoal); border-bottom: 1px solid var(--rule); }
.info-table th, .info-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #ece9e3; white-space: nowrap; }
.info-table thead th { font-weight: 600; font-stretch: 110%; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal); border-bottom: 1px solid var(--rule); }
.info-table tbody tr:last-child > * { border-bottom: 0; }
.info-table--sizes td { text-align: center; }
.info-table--sizes thead th:not(:first-child) { text-align: center; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.faq-group { gap: 0; }
.faq-group h2 { margin-bottom: 8px; }
.faq-group details { border-bottom: 1px solid var(--rule); }
.faq-group details:first-of-type { border-top: 1px solid var(--rule); }
.faq-group summary {
  list-style: none; cursor: pointer; padding: 16px 0; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-stretch: 108%;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: '+'; font-size: 22px; font-weight: 400; flex: none; }
.faq-group details[open] summary::after { content: '–'; }
.faq-a { padding: 0 0 18px; color: #2b2a27; max-width: 65ch; }

.about-hero { background: var(--black); color: var(--off-white); }
.about-hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .about-hero__inner { grid-template-columns: 1fr; } }
.about-hero__text { display: grid; gap: 24px; }
.about-hero__text .label { color: var(--stone); }
.about-hero__text h1 { font-size: clamp(36px, 5vw, 64px); }
.about-hero__text .tagline { font-size: 14px; color: var(--stone); }
.about-hero__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center bottom; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid section { display: grid; gap: 12px; align-content: start; }
.about-grid h2 { font-size: 28px; }
.about-grid p { color: var(--charcoal); font-size: 17px; }
.about-story { max-width: 720px; padding: clamp(48px, 7vw, 88px) 0; display: grid; gap: 18px; }
.about-story p { font-size: 18px; color: #2b2a27; }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding-top: 48px; padding-bottom: 72px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__intro { display: grid; gap: 18px; }
.contact__details { margin: 8px 0; display: grid; gap: 16px; }
.contact__details div { display: grid; gap: 4px; }
.contact__details dd { margin: 0; }
.contact__form, .contact__done { background: #fff; border: 1px solid var(--rule); padding: clamp(20px, 4vw, 36px); }
.contact__done { display: grid; gap: 14px; justify-items: start; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items: end; }
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 0;
  background: #fff; font: inherit; color: var(--black);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notfound { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font-size: clamp(36px, 6vw, 72px); }
.notfound__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--off-white); padding: 72px 0 32px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid #2c2b29; }
@media (max-width: 1100px) { .site-footer__top { grid-template-columns: repeat(4, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
.site-footer__brand { display: grid; gap: 20px; align-content: start; }
.site-footer__brand .wm { font-size: 22px; }
.site-footer__brand .tagline { font-size: 12px; color: var(--stone); }
.site-footer__brand p { color: var(--stone); max-width: 36ch; }
.site-footer h2 { font-size: 13px; font-weight: 600; font-stretch: 110%; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom a { text-underline-offset: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; color: var(--stone); font-size: 13px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--black); color: var(--off-white); padding: 12px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
