/* ============================================================
   fashion bag + checkout — money surfaces only
   SaturnDesign compose 2026-08-07 (izzydesign.dev):
     Direction: Luma × Founder Voice × anti-homogenized-premium
     × Drop mechanics · recipe: irreverent DTC (calm pay moment)
   Tokens: same void book as fashion/style.css (drops page).
   Accent is LIGHT (#FFF), never pigment. Inter/Syne banned.
   Signature (logo test): iced seal + DROP 001 · TWO PER STYLE
   hairline rail under sticky header — not a cream DTC cart card.
   Voice: "Bag" not "Cart". Marketing mutes at money moment.
   ============================================================ */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/oswald-600.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000000;
  --surface: #000000;
  --ink: #F3F5F9;
  --ink-muted: rgba(243, 245, 249, 0.62);
  --accent: #FFFFFF;
  --accent-ink: #000000;

  --void: var(--bg);
  --ice: var(--ink);
  --light: var(--accent);
  --mute: var(--ink-muted);
  --soft: rgba(243, 245, 249, 0.78);
  --hair: rgba(243, 245, 249, 0.16);
  --danger: #f2b8b5;

  --space-050: 4px;
  --space-100: 8px;
  --space-150: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-600: 48px;
  --pad: clamp(var(--space-200), 4vw, 40px);
  --shell: min(960px, calc(100% - 2 * var(--pad)));

  --t-xs: 9px;
  --t-sm: 12px;
  --t-base: 16px;
  --t-lg: 21.3px;
  --t-xl: 28.4px;

  --display: "Oswald", "Archivo", sans-serif;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--void); }

body {
  min-height: 100svh;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ice); color: #000; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: var(--pad); top: 0; z-index: 500;
  min-height: 44px; box-sizing: border-box;
  display: inline-flex; align-items: center;
  padding: 12px 18px; background: var(--ice); color: #000;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transform: translateY(-120%);
}
.skip:focus, .skip:focus-visible {
  transform: translateY(12px);
  outline: 2px solid var(--light); outline-offset: 3px;
}
.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;
}
main:focus, main:focus-visible { outline: none; }


.grain {
  position: fixed; inset: -40%; width: 180%; height: 180%;
  pointer-events: none; z-index: 90; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Light-only iced seal (no pigment fringe) */
.iced {
  filter:
    contrast(1.18) brightness(1.1) saturate(0)
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 8px rgba(243, 245, 249, 0.42));
}

/* ---- Header + drop rule rail (signature) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-200) var(--pad);
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--hair);
}
.wm {
  display: flex; align-items: center; gap: var(--space-150);
  text-decoration: none; color: inherit;
  transition: opacity 0.35s var(--ease);
}
.wm:hover { opacity: 0.72; }
.wm img { height: 26px; width: auto; display: block; }
.wm .name {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav {
  display: flex; align-items: center; gap: var(--space-300);
}
.nav a {
  color: var(--mute); text-decoration: none;
  font-family: var(--font);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ice); }
.bag-link {
  border: 1px solid var(--hair);
  padding: 0 var(--space-200); min-height: 44px;
  display: inline-flex; align-items: center;
  color: var(--ice) !important;
}

.drop-rail {
  border-bottom: 1px solid var(--hair);
  padding: var(--space-100) var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100) var(--space-300);
  justify-content: space-between;
  align-items: center;
  background: #000;
}
.drop-rail span {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  min-width: 0;
}
.drop-rail .rule {
  font-family: var(--font);
  letter-spacing: 0.14em;
  color: var(--soft);
  text-wrap: balance;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  padding: var(--space-400) 0 96px;
}

.page-title {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-100);
  line-height: 1.15;
}
.page-sub {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: var(--space-400);
  max-width: 36rem;
}

/* ---- Bag lines ---- */
.lines { display: flex; flex-direction: column; gap: 0; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-150) var(--space-300);
  padding: var(--space-300) 0;
  border-top: 1px solid var(--hair);
}
.line:last-child { border-bottom: 1px solid var(--hair); }
.line-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.line-meta {
  margin-top: var(--space-050);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.line-controls {
  display: flex;
  align-items: center;
  gap: var(--space-150);
  margin-top: var(--space-200);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair);
}
.qty button {
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ice);
  font-size: 18px; cursor: pointer;
  font-family: inherit;
  transition: background 0.25s var(--ease);
}
.qty button:hover { background: rgba(243, 245, 249, 0.06); }
.qty span {
  min-width: 28px; text-align: center; font-size: 14px; font-weight: 500;
}
.line-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-150);
}
.line-price { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.remove {
  background: none; border: 0; color: var(--mute);
  font-family: inherit;
  font-size: var(--t-sm); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; min-height: 44px; padding: 0 4px;
  transition: color 0.25s var(--ease);
}
.remove:hover { color: var(--ice); }

.empty {
  padding: var(--space-600) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.empty .seal-mark {
  width: 56px; height: auto; margin: 0 auto var(--space-300);
  display: block; opacity: 0.9;
}
.empty p { color: var(--soft); margin-bottom: var(--space-300); }
.empty a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--space-300);
  border: 1px solid var(--hair);
  color: var(--ice); text-decoration: none;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.3s var(--ease);
}
.empty a:hover { border-color: var(--ice); }

/* Seed shelf — bridge until shop PDPs write into bag */
.seed {
  margin-top: var(--space-600);
  padding-top: var(--space-400);
  border-top: 1px solid var(--hair);
}
.seed h2 {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--space-200);
}
.seed-note {
  font-size: 13px;
  color: var(--mute);
  margin: calc(-1 * var(--space-100)) 0 var(--space-200);
  max-width: 36rem;
}
.seed-grid {
  display: grid;
  gap: 0;
}
.seed-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-150);
  align-items: center;
  padding: var(--space-200) 0;
  border-bottom: 1px solid var(--hair);
}
.seed-row .n { font-size: 14px; font-weight: 500; }
.seed-row .p {
  font-size: 13px; color: var(--mute); margin-top: 2px;
  letter-spacing: 0.04em;
}
.seed-row .onesize {
  color: var(--mute);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.seed-row select {
  background: #0a0a0a;
  color: var(--ice);
  border: 1px solid var(--hair);
  min-height: 44px;
  padding: 0 var(--space-150);
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius);
}
.seed-row button {
  min-height: 44px;
  padding: 0 var(--space-200);
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ice);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.seed-row button:hover { border-color: var(--ice); }

/* ---- Totals / summary ---- */
.summary {
  margin-top: var(--space-400);
  display: grid;
  gap: var(--space-150);
  max-width: 360px;
  margin-left: auto;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.summary-row.total {
  margin-top: var(--space-100);
  padding-top: var(--space-150);
  border-top: 1px solid var(--hair);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ice);
}
.ship-note {
  margin-top: var(--space-100);
  font-size: var(--t-sm);
  color: var(--mute);
  text-align: right;
  line-height: 1.45;
}

.actions {
  margin-top: var(--space-400);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-150);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0 22px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ice);
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { border-color: var(--ice); }
.btn-primary {
  background: var(--light);
  color: var(--accent-ink);
  border-color: var(--light);
}
.btn-primary:hover { background: var(--ice); border-color: var(--ice); }
.btn-primary:disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-block { width: 100%; }

/* ---- Checkout layout ---- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(var(--space-400), 5vw, 56px);
  align-items: start;
}
@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-box { order: -1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  margin-bottom: 18px;
}
.field span {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.04em;
}
.field .opt {
  color: var(--mute);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  background: #0a0a0a;
  border: 1px solid var(--hair);
  color: var(--ice);
  min-height: 48px;
  padding: var(--space-150) 14px;
  font-family: inherit;
  font-size: 16px; /* iOS no-zoom */
  border-radius: var(--radius);
}
/* mono.w3-fashion-a11y — visible invalid field chrome */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(242, 184, 181, 0.65);
  box-shadow: 0 0 0 1px rgba(242, 184, 181, 0.25);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .seed-row { grid-template-columns: 1fr; }
}

.section-label {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: var(--space-400) 0 var(--space-200);
}
.section-label:first-of-type { margin-top: 0; }

.order-box {
  border: 1px solid var(--hair);
  padding: 22px;
  position: sticky;
  top: 88px;
}
.order-box h2 {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-200);
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-150);
  font-size: 13px;
  padding: var(--space-150) 0;
  border-bottom: 1px solid var(--hair);
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.order-line strong { color: var(--ice); font-weight: 500; }

.status {
  margin: var(--space-200) 0;
  padding: 14px var(--space-200);
  border: 1px solid var(--hair);
  font-size: 14px;
  color: var(--soft);
  background: #080808;
}
.status[data-kind="error"] {
  border-color: rgba(242, 184, 181, 0.45);
  color: var(--danger);
}
.status[data-kind="ok"] {
  border-color: rgba(243, 245, 249, 0.35);
  color: var(--ice);
}
.status[hidden] { display: none; }

.pay-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.55;
}

.region {
  display: flex;
  flex-direction: column;
  gap: var(--space-150);
}
.region label {
  display: flex;
  align-items: center;
  gap: var(--space-150);
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  color: var(--soft);
}
.region input { accent-color: var(--ice); width: 18px; height: 18px; }

/* ---- Confirmation ---- */
.confirm {
  max-width: 480px;
  margin: var(--space-600) auto;
  text-align: left;
}
.confirm h1 {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-150);
}
.confirm .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: var(--space-300);
}
.confirm p {
  color: var(--soft);
  margin-bottom: 14px;
  font-size: 15px;
}
.confirm .run {
  margin-top: var(--space-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ice);
}

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 18px var(--pad) 40px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 520px) {
  .site-footer { justify-content: center; }
  .site-footer span + span { display: none; }
  .order-box { position: static; }
  .line { grid-template-columns: 1fr; }
  .line-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }
  .summary { margin-left: 0; max-width: none; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wm, .nav a, .btn, .qty button, .remove, .seed-row button { transition: none; }
  .skip { transition: none; }
}

/* a11y fieldset flush with monochrome mute surface */
fieldset.ship-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset.ship-fieldset > legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 28px 0 14px;
  padding: 0;
}
