/* The World Light — storefront styles.
   Tokens taken from the design file: hard 2px ink rules, no radii,
   Archivo throughout, blue accent on a warm off-white ground. */

:root {
  --bg:        #f3f2f2;
  --surface:   #eae9e9;
  --ink:       #201e1d;
  --accent:    #1a3e72;
  --accent-dk: #122c52;
  --accent-dp: #102a4c;
  --muted-1:   #444141;
  --muted-2:   #605d5d;
  --muted-3:   #7d7979;
  --muted-4:   #9b9797;
  --line:      #d7d3d3;
  --rule:      2px solid var(--ink);
  --hairline:  1px solid rgba(32, 30, 29, .25);
  --shadow-lg: 0 12px 32px rgba(45, 43, 43, .22);
  --pad:       56px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Shared bits ─────────────────────────────────────────────────────────── */

.kicker {
  font-size: 10px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
}

.eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 56px var(--pad) 24px;
}
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }

.link-caps {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}

.muted { color: var(--muted-2); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px; font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 26px; border: var(--rule); background: transparent;
  color: var(--ink); cursor: pointer; text-align: left;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }

.btn-primary {
  border-color: var(--accent); background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }

.btn-lg { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; padding: 20px 26px; }
.btn-sm { font-size: 11px; padding: 12px 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); }
.btn-primary:disabled:hover { background: var(--accent); color: #fff; }

/* Light button used over the dark hero image. */
.btn-on-dark { border-color: #fff; color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--ink); }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 88px; height: 88px; z-index: 40;
  position: sticky; top: 0;
  background: var(--bg); border-bottom: var(--rule);
}
/* On the home page the header floats transparently over the hero until scroll. */
.site-header.is-home {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 0; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.site-header.is-home.scrolled {
  position: fixed; background: var(--bg); border-bottom: var(--rule);
  color: var(--ink); text-shadow: none;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; min-width: 0; flex: 0 1 auto; overflow: hidden;
}
.brand img { width: 74px; height: 50px; object-fit: contain; filter: invert(1); }
.site-header.is-home:not(.scrolled) .brand img { filter: none; }
.brand-name {
  font-size: 17px; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.1;
}
.brand-sub {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; line-height: 1.1; color: var(--muted-3);
}
.site-header.is-home:not(.scrolled) .brand-sub { color: rgba(255, 255, 255, .8); }

.site-nav {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  justify-content: space-evenly; gap: 8px; padding: 0 10px;
}
.site-nav a {
  font-size: clamp(11px, 1.05vw, 18px); font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 10px 2px; white-space: nowrap;
  color: inherit;
}
.site-nav a[aria-current="page"] { font-weight: 900; }
.site-nav a:hover { color: inherit; opacity: .65; }

.header-actions { display: flex; align-items: stretch; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 88px; border: 0; background: transparent;
  color: inherit; cursor: pointer; position: relative;
}
.icon-btn:hover { opacity: .6; }
.cart-count {
  position: absolute; top: 12px; right: 10px;
  min-width: 16px; height: 16px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  background: #0c5dff; color: #fff; font-size: 9.5px; font-weight: 800;
  text-shadow: none;
}

.nav-toggle { display: none; }

/* ── Home ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  border-bottom: var(--rule);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-inner {
  position: relative; padding: 64px var(--pad);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; max-width: 900px; color: #fff;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 140px); line-height: 0.92; font-weight: 900;
  letter-spacing: -0.03em; margin: 40px 0 0; max-width: 13ch;
  text-wrap: balance;
}
.hero p {
  font-size: clamp(22px, 3.4vw, 50px); line-height: 1.3;
  max-width: 30ch; margin: 24px 0 0;
}
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero .btn { background: #fff; border-color: var(--accent); color: var(--accent); }
.hero .btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }

.grid-4, .grid-3 {
  display: grid; gap: 28px;
  padding: 8px var(--pad) 56px; border-bottom: var(--rule);
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Product cards ───────────────────────────────────────────────────────── */

.card {
  display: flex; flex-direction: column; background: var(--bg);
  border: var(--rule);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-media {
  aspect-ratio: 1 / 1; background: #fff; overflow: hidden;
  position: relative; border-bottom: var(--rule);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--surface);
  color: var(--muted-4); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-badge {
  position: absolute; top: 0; left: 0;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 6px 10px;
  background: var(--accent); color: #fff;
}
.card-badge.sold-out { background: var(--ink); }

.card-add {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border: var(--rule); background: var(--bg);
  color: var(--ink); cursor: pointer; padding: 0;
}
.card-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.card-body {
  padding: 16px 18px 18px; display: flex; flex-direction: column;
  gap: 12px; flex: 1;
}
.card-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.card-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 6px; font-size: 12px; color: var(--muted-2);
}
.card .btn { margin-top: auto; width: 100%; font-size: 10.5px; padding: 11px 12px; }

/* Category tiles on the home page. */
.cat-tile {
  border: var(--rule); position: relative; background: var(--bg);
  transition: transform .18s ease, box-shadow .18s ease; display: block;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile .media { aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.cat-tile .media img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile .body {
  padding: 22px 24px 26px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px;
}
.cat-tile h3 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.cat-tile .meta { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--rule); }
.split-text { padding: 64px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.split-text h2 { font-size: 44px; line-height: 1.02; margin: 22px 0 0; max-width: 16ch; }
.split-text .body { font-size: 16px; line-height: 1.6; color: var(--muted-1); margin: 22px 0 0; max-width: 50ch; }
.split-text .body p { margin: 0 0 16px; }
.split-media { overflow: hidden; background: var(--bg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.ig-tile {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: var(--surface); overflow: hidden; border: var(--rule);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ig-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ── Collection ──────────────────────────────────────────────────────────── */

.collection { display: grid; grid-template-columns: 230px 1fr; }

.facets {
  border-right: var(--rule); padding: 32px 24px;
  display: flex; flex-direction: column; gap: 32px; min-height: 80vh;
}
.facet-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; padding-bottom: 10px; border-bottom: var(--rule);
}
.facet-list { display: flex; flex-direction: column; margin-top: 4px; }
.facet-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; font-size: 13px; border-bottom: 1px solid rgba(32, 30, 29, .2);
}
.facet-list a.active { font-weight: 800; color: var(--accent); }
.facet-list .count { font-size: 11px; color: var(--muted-4); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.swatch {
  width: 26px; height: 26px; border: 1px solid rgba(32, 30, 29, .5);
  cursor: pointer; display: block;
}
.swatch.active { outline: 2px solid var(--accent); outline-offset: 2px; }

.size-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.size-chip {
  border: 1px solid var(--ink); padding: 6px 10px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.size-chip:hover, .size-chip.active { background: var(--ink); color: var(--bg); }

.collection-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 32px 40px; border-bottom: var(--rule);
}
.collection-head h1 { font-size: 34px; }
.collection-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; padding: 32px 40px 48px;
}

.empty-state { padding: 80px 40px; text-align: center; color: var(--muted-2); }

/* ── Product page ────────────────────────────────────────────────────────── */

.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-bottom: var(--rule); }

.product-media {
  min-width: 0; display: flex; flex-direction: column; align-items: center;
  border-right: var(--rule); padding: 32px 32px 24px;
}
.product-main {
  width: 100%; max-width: 460px; height: 62vh; max-height: 600px;
  background: var(--surface); overflow: hidden; border: var(--rule);
}
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs {
  width: 100%; max-width: 460px; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px;
}
.thumb {
  width: 80px; flex: 0 0 auto; aspect-ratio: 4 / 5; background: var(--surface);
  overflow: hidden; cursor: pointer; margin: 18px 0 0;
  border: 2px solid rgba(32, 30, 29, .3); padding: 0;
}
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {
  min-width: 0; padding: 48px 44px; display: flex;
  flex-direction: column; gap: 26px;
}
.product-info h1 { font-size: 44px; margin: 14px 0 0; letter-spacing: -0.025em; }
.product-price { font-size: 22px; font-weight: 600; margin-top: 14px; }
.product-meaning { font-size: 14.5px; line-height: 1.6; color: var(--muted-1); margin: 0; max-width: 48ch; }
.product-fabric { font-size: 13.5px; line-height: 1.6; color: var(--muted-2); margin: -12px 0 0; max-width: 48ch; }

/* Variant choosers. Both start unselected; the legend doubles as the prompt
   ("Select a size") so the requirement is stated, not just implied. */
.variant-group {
  border: 0; margin: 0 0 26px; padding: 0; position: relative;
}
.variant-group legend { padding: 0; margin-bottom: 10px; float: left; }
.variant-group .size-grid,
.variant-group .color-row { clear: both; }
.variant-chosen { color: var(--muted-2); font-weight: 600; }
.size-guide-link { float: right; color: var(--accent); text-decoration: underline; }

/* Errors carry text and an icon, never colour alone. */
.variant-error {
  clear: both; margin: 10px 0 0; font-size: 12px; font-weight: 700;
  line-height: 1.5; color: #8a2f22;
}
.variant-error::before { content: "\26A0\FE0E"; margin-right: 6px; }
.variant-error[hidden] { display: none; }

.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  border: 2px solid rgba(32, 30, 29, .25);
}
.color-dot.active { border-color: var(--ink); outline: 2px solid var(--bg); outline-offset: -4px; }
/* Unavailable colours are struck through as well as dimmed. */
.color-dot:disabled, .color-dot.unavailable {
  opacity: .3; cursor: not-allowed; position: relative;
}
.color-dot:disabled::after, .color-dot.unavailable::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top left, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
  color: #8a2f22;
}

.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-btn {
  font-family: inherit; font-size: 12px; font-weight: 700; padding: 0;
  min-height: 44px; /* comfortable tap target on phones */
  border: var(--rule); background: transparent; color: var(--ink); cursor: pointer;
}
.size-btn.active { background: var(--ink); color: var(--bg); }
.size-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.stock-note { font-size: 11.5px; color: var(--accent-dp); margin-top: 10px; font-weight: 600; }
.stock-note.out { color: #8a2f22; }
.stock-note.out::before { content: "\26A0\FE0E"; margin-right: 6px; }

.accordion { border-top: var(--rule); padding-top: 18px; }
.accordion details { border-bottom: var(--hairline); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--muted-4); }
.accordion details[open] summary::after { content: "\2013"; }
.accordion .panel { padding: 2px 0 18px; }
.accordion .panel p { font-size: 13px; line-height: 1.6; color: var(--muted-1); margin: 0 0 10px; }
.accordion .panel ul { margin: 0 0 14px; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; }
.accordion .panel li { font-size: 13px; line-height: 1.5; color: var(--muted-1); }
.accordion .panel .note { font-size: 12.5px; line-height: 1.6; color: var(--muted-2); font-style: italic; }
.accordion .panel .group-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-3); margin-bottom: 8px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.input {
  width: 100%; min-height: 46px; padding: 12px 14px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid rgba(32, 30, 29, .4);
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: none; }

.field-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-bottom: 6px;
  color: var(--muted-3);
}
.form-error { font-size: 12px; color: #8a2f22; margin-top: 6px; }

/* ── Checkout ────────────────────────────────────────────────────────────── */

.checkout { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 86vh; }
.checkout-main { border-right: var(--rule); padding: 44px 48px; }
.checkout-main h1 { font-size: 34px; margin-bottom: 6px; }
.secured {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-3);
}
.checkout-steps { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; max-width: 560px; }
.step-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; border-bottom: var(--rule);
  padding-bottom: 8px; margin-bottom: 16px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid .span-2 { grid-column: span 2; }

.ship-options { display: flex; flex-direction: column; border: var(--rule); }
.ship-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; cursor: pointer; border-bottom: var(--hairline);
  background: transparent;
}
.ship-option:last-child { border-bottom: 0; }
.ship-option.selected { background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.ship-option .name { font-size: 13px; font-weight: 700; }
.ship-option .eta { font-size: 11.5px; color: var(--muted-2); }
.ship-option .price { font-size: 13px; font-weight: 600; }
.ship-placeholder { padding: 18px; font-size: 13px; color: var(--muted-2); }

.pay-box { border: var(--rule); padding: 18px; background: var(--surface); }
#payment-element { min-height: 44px; }

.checkout-aside { padding: 44px 40px; background: var(--surface); }
.bag-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; border-bottom: var(--rule); padding-bottom: 10px;
}
.bag-line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px;
  padding: 18px 0; border-bottom: var(--hairline); align-items: start;
}
.bag-line .media { aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.bag-line .media img { width: 100%; height: 100%; object-fit: cover; }
.bag-line .name { font-size: 13.5px; font-weight: 700; }
.bag-line .variant, .bag-line .qty { font-size: 11.5px; color: var(--muted-2); }
.bag-line .price { font-size: 13px; font-weight: 600; }
.qty-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-form input {
  width: 52px; padding: 4px 6px; font: inherit; font-size: 12px;
  border: 1px solid rgba(32, 30, 29, .4); background: var(--bg);
}
.link-remove {
  font-size: 11px; color: var(--muted-3); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline;
}

.discount-row { display: flex; gap: 8px; margin: 20px 0; }
.discount-row .input { flex: 1; background: var(--bg); }

.totals {
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
  border-top: var(--rule); padding-top: 16px;
}
.totals .row { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand {
  font-size: 19px; font-weight: 800; border-top: var(--rule);
  padding-top: 12px; margin-top: 6px;
}

.notice {
  padding: 12px 14px; font-size: 13px; border: 1px solid var(--accent);
  background: rgba(26, 62, 114, .06); margin-top: 12px;
}
.notice.error { border-color: #8a2f22; background: rgba(138, 47, 34, .07); color: #8a2f22; }

/* Checkout: fieldsets carry no browser chrome, only the step rule. */
.checkout-steps fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-steps legend.step-head { display: block; width: 100%; padding: 0; }

.field { min-width: 0; }

/* Errors sit under their own input and never rely on colour alone. */
.field-error {
  font-size: 12px; font-weight: 700; line-height: 1.4;
  color: #8a2f22; margin: 6px 0 0;
}
.field-error::before { content: "\26A0\FE0E"; margin-right: 6px; }
.field-error[hidden] { display: none; }
.input.has-error { border-color: #8a2f22; box-shadow: inset 0 0 0 1px #8a2f22; }

/* Optional marketing opt-in. Unticked, and buying never depends on it. */
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 0; border-top: var(--hairline);
}
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.consent-row label { font-size: 13px; line-height: 1.5; color: var(--muted-1); cursor: pointer; }

.pay-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-4);
}
.pay-divider::before, .pay-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.paypal-button { min-height: 46px; }
.paypal-button:empty { display: none; }

/* Mobile order-summary bar. Hidden on desktop, where the aside is always shown. */
.summary-toggle { display: none; }
.summary-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}

/* ── Order tracking ──────────────────────────────────────────────────────── */

.account { padding: 44px var(--pad); max-width: 1100px; }
.account h1 { font-size: 34px; }

.order-card { border: var(--rule); margin-top: 30px; }
.order-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: var(--rule); background: var(--surface);
}
.order-card-body { padding: 26px 22px; }

.tag {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px;
}
.tag-accent  { background: var(--accent); color: #fff; }
.tag-ink     { background: var(--ink); color: var(--bg); }
.tag-neutral { background: var(--line); color: var(--muted-1); }
.tag-quiet   { background: #f8f4f4; color: var(--muted-4); }

.track-steps { display: flex; align-items: flex-start; margin-bottom: 26px; }
.track-step {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  border-top: 3px solid rgba(32, 30, 29, .25); padding: 12px 16px 0 0;
}
.track-step.done, .track-step.current { border-top-color: var(--ink); }
.track-step .dot { width: 12px; height: 12px; background: var(--line); margin-top: -19px; }
.track-step.done .dot { background: var(--ink); }
.track-step.current .dot { background: var(--accent); }
.track-step .label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 10px;
}
.track-step .date { font-size: 11px; color: var(--muted-3); margin-top: 3px; }

.order-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: var(--hairline); padding-top: 20px;
}
.order-lines {
  display: flex; flex-direction: column; gap: 16px;
  border-right: var(--hairline); padding-right: 24px;
}
.order-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; }
.order-line .media { aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.order-line .media img { width: 100%; height: 100%; object-fit: cover; }
.order-side { padding-left: 24px; display: flex; flex-direction: column; gap: 14px; }
.order-side .label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-3);
}
.order-side .value { font-size: 13.5px; font-weight: 600; margin-top: 4px; }

.scan-list { margin-top: 20px; border-top: var(--hairline); padding-top: 16px; }
.scan-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid rgba(32, 30, 29, .12);
}
.scan-row .when { color: var(--muted-3); white-space: nowrap; }

.lookup-form {
  border: var(--rule); padding: 32px; margin-top: 30px; max-width: 520px;
  display: flex; flex-direction: column; gap: 14px;
}

/* ── About / contact ─────────────────────────────────────────────────────── */

.prose { font-size: 16.5px; line-height: 1.6; color: var(--muted-1); max-width: 52ch; }
.prose p { margin: 0 0 20px; }
.prose em { color: var(--ink); font-style: italic; }

.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 86vh; }
.contact-left { padding: 56px 48px; border-right: var(--rule); }
.contact-left h1 { font-size: 52px; line-height: 0.98; margin: 24px 0 0; max-width: 12ch; }
.contact-rows { border-top: var(--rule); margin-top: 40px; }
.contact-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(32, 30, 29, .3);
}
.contact-row .label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-3); padding-top: 3px;
}
.contact-row .value { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.contact-right { padding: 56px 48px; background: var(--surface); }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; max-width: 520px; }
.contact-form .input { background: var(--bg); }

/* ── Verse band + footer ─────────────────────────────────────────────────── */

.verse-band {
  color: var(--bg); background: #000; padding: 80px var(--pad);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.verse-band p {
  font-size: clamp(28px, 4vw, 46px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em; margin: 0; max-width: 30ch;
}
.verse-band .ref {
  font-size: 20px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; margin-top: 16px;
}
.verse-band img { width: 304px; height: 160px; object-fit: contain; }

.site-footer { border-top: var(--rule); background: #000; color: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1px solid rgba(243, 242, 242, .25); }
.footer-signup { padding: 76px var(--pad); border-right: 1px solid rgba(243, 242, 242, .25); }
.footer-signup .kicker { color: #8ab0e0; }
.footer-signup h3 { font-size: 30px; margin: 14px 0 0; max-width: 20ch; }
.footer-form { display: flex; margin-top: 22px; max-width: 460px; }
.footer-form .input { flex: 1; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.footer-form .btn { white-space: nowrap; }
.footer-note { font-size: 11.5px; color: rgba(243, 242, 242, .6); margin-top: 10px; }
.footer-done { font-size: 15px; font-weight: 700; margin-top: 22px; color: #8ab0e0; }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; }
.footer-col { padding: 48px 32px; }
.footer-col:first-child { border-right: 1px solid rgba(243, 242, 242, .25); }
.footer-col .head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(243, 242, 242, .55);
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer-col nav a { font-size: 14px; font-weight: 600; color: var(--bg); }
.footer-col nav a:hover { color: #8ab0e0; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 34px var(--pad); flex-wrap: wrap; background: #000;
}
.footer-bottom span {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243, 242, 242, .6);
}

/* ── Popup ───────────────────────────────────────────────────────────────── */

.popup-backdrop {
  position: fixed; inset: 0; background: rgba(32, 30, 29, .62);
  z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.popup {
  display: grid; grid-template-columns: 300px 1fr; max-width: 820px; width: 100%;
  background: var(--bg); border: var(--rule); box-shadow: 0 12px 32px rgba(45, 43, 43, .34);
}
.popup-media { background: var(--surface); overflow: hidden; border-right: var(--rule); }
.popup-media img { width: 100%; height: 100%; object-fit: cover; }
.popup-body {
  padding: 44px 40px; position: relative; display: flex;
  flex-direction: column; justify-content: center;
}
.popup-body h2 { font-size: 40px; line-height: 0.98; margin: 16px 0 0; max-width: 12ch; letter-spacing: -0.03em; }
.popup-body p { font-size: 15px; line-height: 1.6; color: var(--muted-1); margin: 16px 0 0; max-width: 40ch; }
.popup-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: var(--rule); background: transparent; color: var(--ink); cursor: pointer;
}
.popup-close:hover { background: var(--ink); color: var(--bg); }
.popup-form { display: flex; margin-top: 26px; max-width: 420px; }
.popup-form .input { flex: 1; }
.popup-decline {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-3); background: none; border: 0; padding: 14px 0 0;
  cursor: pointer; text-align: left;
}
.popup-decline:hover { color: var(--ink); }

/* ── Flash messages ──────────────────────────────────────────────────────── */

.flashes { position: sticky; top: 88px; z-index: 50; }
.flash {
  padding: 14px var(--pad); font-size: 13px; font-weight: 600;
  border-bottom: var(--rule); background: var(--surface);
}
.flash.success { background: var(--accent); color: #fff; border-color: var(--accent); }
.flash.error { background: #8a2f22; color: #fff; border-color: #8a2f22; }
.flash.info { background: var(--surface); }

/* ── Confirmation ────────────────────────────────────────────────────────── */

.confirm { padding: 64px var(--pad); max-width: 900px; }
.confirm h1 { font-size: 48px; margin: 18px 0 0; }
.confirm .lede { font-size: 17px; line-height: 1.6; color: var(--muted-1); margin: 18px 0 0; max-width: 52ch; }
.confirm-box { border: var(--rule); margin-top: 36px; }
.confirm-box .head { padding: 18px 22px; border-bottom: var(--rule); background: var(--surface); }
.confirm-box .body { padding: 22px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .checkout-main { border-right: 0; border-bottom: var(--rule); }

  /* The bag moves above the form as a collapsed bar, so the first thing a
     phone shows is the checkout itself, not a long product list. */
  .summary-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; order: -1; min-height: 56px; padding: 14px var(--pad);
    background: var(--surface); border: 0; border-bottom: var(--rule);
    font: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
    cursor: pointer; text-align: left;
  }
  .summary-toggle > span:first-child { display: flex; align-items: center; gap: 8px; }
  .summary-toggle .summary-total { font-size: 15px; font-weight: 800; }
  .checkout-aside { order: -1; display: none; border-bottom: var(--rule); }
  .checkout-aside.open { display: block; }
  .product { grid-template-columns: 1fr; }
  .product-media { border-right: 0; border-bottom: var(--rule); }
  .split, .contact, .footer-top, .verse-band { grid-template-columns: 1fr; }
  .split-media img { min-height: 320px; }
  .contact-left { border-right: 0; border-bottom: var(--rule); }
  .footer-signup { border-right: 0; }
  .verse-band img { width: 220px; height: auto; }
}

@media (max-width: 860px) {
  .collection { grid-template-columns: 1fr; }
  .facets {
    border-right: 0; border-bottom: var(--rule); min-height: 0;
    flex-direction: row; flex-wrap: wrap; gap: 20px;
  }
  .facets > div { flex: 1 1 220px; }
  .popup { grid-template-columns: 1fr; }
  .popup-media { display: none; }
  .order-detail { grid-template-columns: 1fr; }
  .order-lines { border-right: 0; padding-right: 0; border-bottom: var(--hairline); padding-bottom: 20px; }
  .order-side { padding-left: 0; padding-top: 20px; }
}

@media (max-width: 720px) {
  /* Collapse the header nav into a toggled drawer. */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 88px; border: 0; background: transparent;
    color: inherit; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: var(--rule); padding: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 18px var(--pad); border-bottom: var(--hairline);
    color: var(--ink); text-shadow: none; font-size: 14px;
  }

  .grid-4, .grid-3, .collection-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: span 1; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner, .checkout-main, .checkout-aside, .contact-left, .contact-right,
  .product-info, .account, .confirm { padding-left: 24px; padding-right: 24px; }
  .collection-head, .collection-grid { padding-left: 24px; padding-right: 24px; }
  .track-steps { flex-wrap: wrap; gap: 20px; }
  .track-step { flex: 1 1 45%; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-col:first-child { border-right: 0; border-bottom: 1px solid rgba(243, 242, 242, .25); }
  .footer-form { flex-direction: column; gap: 10px; }
}

@media print {
  .site-header, .site-footer, .verse-band, .popup-backdrop, .flashes { display: none; }
}

/* ══ Upgrade additions ═══════════════════════════════════════════════════════
   Accessibility utilities, help pages, breadcrumbs, and mobile overflow fixes.
   Appended so the original cascade above is untouched. */

/* Keyboard users get a way past the header without tabbing the whole nav. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 12px 18px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ── Popup ─────────────────────────────────────────────────────────────── */
.popup-backdrop[hidden] { display: none; }
.popup-consent {
  font-size: 11px; line-height: 1.5; color: var(--muted-3); margin: 12px 0 0;
}
.popup-consent a { text-decoration: underline; }

/* ── Help / policy pages ───────────────────────────────────────────────── */
.policy-page h1 { font-size: 38px; letter-spacing: -0.02em; margin: 10px 0 0; }
.policy-page h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin: 42px 0 12px; padding-top: 18px; border-top: var(--rule);
}
.policy-page h3 { font-size: 16px; margin: 24px 0 6px; }
.policy-page p, .policy-page li { font-size: 14.5px; line-height: 1.65; color: var(--muted-1); }
.policy-page .lede { font-size: 17px; color: var(--muted-1); max-width: 58ch; }
.policy-page ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.policy-page .note { font-size: 13px; font-style: italic; color: var(--muted-2); }
.policy-page a { text-decoration: underline; }

/* Wide tables scroll inside themselves rather than pushing the page sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 20px; }
.size-table { border-collapse: collapse; width: 100%; min-width: 320px; font-size: 14px; }
.size-table th, .size-table td {
  text-align: left; padding: 10px 14px; border-bottom: var(--hairline);
}
.size-table thead th {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-3); border-bottom: var(--rule);
}
.size-table tbody th { font-weight: 800; width: 90px; }

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumbs {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-3); margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); margin-left: 0; }

.pay-methods { font-size: 11px; color: inherit; opacity: .85; }

/* ── Mobile ────────────────────────────────────────────────────────────── */

/* Nothing may scroll the page sideways, at any width.
   `clip` rather than `hidden`: `hidden` makes the root a scroll container,
   which silently breaks the sticky header. Older browsers fall back below. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
img, video, svg, table, pre { max-width: 100%; }

@media (max-width: 720px) {
  .policy-page { padding-left: 24px !important; padding-right: 24px !important; }
  .policy-page h1 { font-size: 30px; }

  /* Comfortable tap targets and no iOS zoom-on-focus (needs >= 16px). */
  .input, select.input { font-size: 16px; min-height: 48px; }
  .btn { min-height: 46px; }
  .qty-form input { width: 64px; min-height: 40px; font-size: 16px; }
  .link-remove { min-height: 32px; padding: 6px 0; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .color-dot { width: 46px; height: 46px; }
  .thumb { min-width: 56px; }

  /* The bag summary must not sit under the sticky header when opened. */
  .checkout-aside { padding-top: 20px; padding-bottom: 28px; }
  .bag-line { grid-template-columns: 60px 1fr auto; gap: 10px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  /* 320–400px: the tightest phones. Two columns of sizes, not three. */
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .product-info h1 { font-size: 30px; }
  .checkout-main h1 { font-size: 27px; }
  .summary-toggle { padding-left: 20px; padding-right: 20px; }
  .hero-inner, .checkout-main, .checkout-aside, .product-info { padding-left: 20px; padding-right: 20px; }
}

/* Landscape phones: the header must not eat the viewport. */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .popup { max-height: 92vh; overflow-y: auto; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
