/* ============================================================
   ZIRYAN — Chapter 0
   Design system. Flat colour fields only.
   No gradients, no rounded corners, no shadows (except the book).
   ============================================================ */

:root {
  --navy:        #0C1830;
  --navy-deep:   #081120;
  --bone:        #F4EFE4;
  --body:        rgba(244, 239, 228, 0.72);
  --micro:       rgba(244, 239, 228, 0.45);
  --dim:         rgba(244, 239, 228, 0.55);
  --faint:       rgba(244, 239, 228, 0.28);
  --brass:       #C09A5E;
  --brass-deep:  #8B6A3C;

  --rule:        1px solid rgba(244, 239, 228, 0.14);
  --rule-strong: 1px solid rgba(244, 239, 228, 0.22);

  --paper:       #EFE8DA;
  --ink:         #2A2118;
  --ink-soft:    #4A3C2C;
  --ink-faint:   #6B5A44;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'Space Mono', ui-monospace, 'Courier New', monospace;

  --gutter: 40px;
  --shell:  1360px;
  --header: 59px;
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--navy);
  color: var(--bone);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass); }
button { font: inherit; color: inherit; background: none; border: 0; }
input { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--navy-deep); }

:focus-visible { outline: 2px solid var(--brass); 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;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--brass); color: var(--navy-deep);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  padding: 12px 18px; transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--navy-deep); }

/* ---------- bilingual ---------- */

.es { display: none; }
[data-lang="es"] .es { display: revert; }
[data-lang="es"] .en { display: none; }

/* ---------- type primitives ---------- */

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mono-sm { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--brass);
  margin-bottom: 26px;
  text-transform: uppercase;
}

.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 12.5vw, 196px); line-height: .86; letter-spacing: -.03em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.02em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.06; }
.h4 { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; }

.lede { font-size: 17px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.copy { color: var(--body); text-wrap: pretty; }
.copy + .copy { margin-top: 26px; }

.measure    { max-width: 44ch; }
.measure-sm { max-width: 40ch; }
.measure-lg { max-width: 68ch; }

/* ---------- layout ---------- */

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

.section {
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  border-bottom: var(--rule);
}
.section--navy { background: var(--navy); }
.section--deep { background: var(--navy-deep); }
.section--flush { padding-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
.split--end { align-items: end; }
.split--center { align-items: center; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px);
  border-top: var(--rule-strong);
  padding-top: 44px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--brass { background: var(--brass); color: var(--navy-deep); }
.btn--brass:hover { background: var(--bone); color: var(--navy-deep); }
.btn--ghost { border-color: var(--faint); color: var(--bone); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 19px 22px; letter-spacing: .22em; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: rgba(244, 239, 228, .08);
  color: rgba(244, 239, 228, .35);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.link-brass {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid rgba(192, 154, 94, .5);
  padding-bottom: 3px;
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: var(--navy-deep);
  border-bottom: var(--rule);
}

.masthead__brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.masthead__brand:hover { color: inherit; }
.masthead__mark { width: 30px; height: 30px; object-fit: contain; }
.masthead__word { font-family: var(--display); font-size: 15px; letter-spacing: .26em; color: var(--brass); }
.masthead__chapter { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--micro); text-transform: uppercase; }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--body);
}

.masthead__tools { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.lang-toggle {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  border: 1px solid var(--faint);
  color: var(--bone);
  padding: 5px 10px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--brass); color: var(--brass); }

.cart-link {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--bone);
  text-transform: uppercase;
}
.cart-link__count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brass);
}
.cart-link[data-empty="true"] .cart-link__count { color: var(--micro); }

.masthead__burger { display: none; }

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 55;
  background: var(--navy-deep);
  padding: 32px var(--gutter) 48px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.drawer[data-open="true"] { display: flex; }
.drawer a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 20px 0;
  border-bottom: var(--rule);
}

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy-deep);
  border-bottom: var(--rule);
}
.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(56px, 6vw, 80px);
}
.hero__grid {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: end;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--brass);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: var(--brass-deep); flex-shrink: 0; }
.hero__title { margin-bottom: 28px; }
.hero__sub {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--brass);
  margin-bottom: 36px;
}
.hero__lede { max-width: 46ch; margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; }
.hero__media { position: relative; aspect-ratio: 4 / 5; min-height: 320px; }

.hero__ticker { border-top: var(--rule); padding: 22px var(--gutter); }
.hero__ticker-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--dim);
  text-transform: uppercase;
}
.countdown { color: var(--bone); font-size: 12px; letter-spacing: .16em; font-variant-numeric: tabular-nums; }

/* ---------- media ---------- */

.media { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--navy); }
.media img { width: 100%; height: 100%; }
.media--cover img { object-fit: cover; }
.media--contain { padding: clamp(24px, 4vw, 48px); }
.media--contain img { object-fit: contain; }

/* ---------- archive ledger ---------- */

.ledger__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.ledger__total { display: flex; align-items: baseline; gap: 16px; margin-top: 34px; }
.ledger__total-n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; }

.ledger__cols,
.ledger__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 260px 110px 190px;
  align-items: center;
  gap: 16px;
}
.ledger__cols {
  padding-bottom: 14px;
  border-bottom: var(--rule-strong);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--micro);
  text-transform: uppercase;
}
.ledger__row {
  padding: 26px 0;
  border-bottom: var(--rule);
  transition: background .15s;
}
.ledger__row:hover { background: rgba(244, 239, 228, .03); color: inherit; }
.ledger__code { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: rgba(244, 239, 228, .5); }
.ledger__name { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); color: var(--bone); }
.ledger__meter { display: flex; align-items: center; gap: 16px; }
.ledger__bar { flex: 1; height: 1px; background: rgba(244, 239, 228, .18); position: relative; }
.ledger__bar span { position: absolute; left: 0; top: 0; height: 1px; background: var(--brass); }
.ledger__left { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: rgba(244, 239, 228, .75); font-variant-numeric: tabular-nums; }
.ledger__price { text-align: right; font-family: var(--display); font-size: 22px; color: var(--brass); }
.ledger__cta { text-align: right; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--brass); text-transform: uppercase; }
.ledger__note { margin-top: 30px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: rgba(244, 239, 228, .4); text-transform: uppercase; }

.ledger__row-label { display: none; }

/* ---------- collection: view switch ---------- */

.viewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.segmented { display: flex; border: var(--rule-strong); }
.segmented button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  padding: 11px 20px;
  cursor: pointer;
  background: transparent;
  color: var(--body);
  text-transform: uppercase;
}
.segmented button[aria-pressed="true"] { background: var(--brass); color: var(--navy-deep); }

/* ---------- editorial rows ---------- */

.editorial { padding-bottom: clamp(72px, 9vw, 120px); }
.editorial__row {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  border-top: var(--rule);
  align-items: center;
}
.editorial__row:nth-child(even) { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.editorial__row:nth-child(even) .editorial__media { grid-column: 2; grid-row: 1; }
.editorial__row:nth-child(even) .editorial__text { grid-column: 1; grid-row: 1; }
.editorial__media { position: relative; aspect-ratio: 1; min-height: 280px; grid-column: 1; grid-row: 1; }
.editorial__text {
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  grid-column: 2;
  grid-row: 1;
}
.editorial__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: var(--rule);
}
.editorial__price { font-family: var(--display); font-size: 32px; color: var(--brass); display: block; }

/* ---------- index grid ---------- */

.index-grid {
  padding-bottom: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 239, 228, .14);
  border: var(--rule);
}
.index-card { background: var(--navy-deep); padding-bottom: 28px; display: flex; flex-direction: column; transition: background .15s; }
.index-card:hover { background: var(--navy); color: inherit; }
.index-card__media { position: relative; aspect-ratio: 4 / 5; width: 100%; }
.index-card__body { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.index-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.index-card__price { font-family: var(--display); font-size: 24px; color: var(--brass); }

/* ---------- manifesto ---------- */

.manifesto { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.manifesto__lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--bone);
  margin-bottom: 52px;
  text-wrap: pretty;
}

/* ---------- story ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.story__text { padding: clamp(72px, 9vw, 130px) clamp(32px, 5vw, 72px) clamp(72px, 9vw, 130px) var(--gutter); }
.story__media { position: relative; min-height: 420px; border-left: var(--rule); }
.pullquote {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.36;
  color: var(--brass);
  margin: 40px 0;
  padding-left: 26px;
  border-left: 1px solid rgba(192, 154, 94, .4);
  text-wrap: pretty;
}

/* ---------- next chapter ---------- */

.next { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border-top: var(--rule); }
.next__media { position: relative; aspect-ratio: 4 / 5; min-height: 380px; }
.next__list { padding: clamp(32px, 4vw, 56px) 0 0 clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.next__item {
  padding: 22px 0;
  border-bottom: var(--rule);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 22px);
  color: rgba(244, 239, 228, .8);
}
.next__item--hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--bone);
}

/* ---------- signup ---------- */

.signup { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--faint); max-width: 520px; }
.signup input {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 16px 4px;
}
.signup input::placeholder { color: var(--micro); }
.signup button {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--brass);
  padding: 16px 8px;
  cursor: pointer;
  text-transform: uppercase;
}
.signup button:hover { color: var(--bone); }
.form-note { margin-top: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--micro); text-transform: uppercase; }
.form-note[data-state="error"] { color: #E0876A; }
.form-note[data-state="ok"] { color: var(--brass); }

/* ---------- footer ---------- */

.footer { padding: 72px var(--gutter) 56px; background: var(--navy-deep); }
.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 28px; height: 28px; object-fit: contain; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: rgba(244, 239, 228, .75); }
.footer__links a { border-bottom: 1px solid rgba(244, 239, 228, .3); padding-bottom: 2px; }
.footer__legal {
  max-width: var(--shell);
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--micro);
  text-transform: uppercase;
}

/* ---------- the letter (book) ---------- */

.letter {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 9, 18, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.letter[hidden] { display: none; }
.letter__bar {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
}
.letter__bar button { color: var(--brass); cursor: pointer; font: inherit; }

.book {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  position: relative;
}
.book__gutter {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 44px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(90,72,48,0) 0%, rgba(90,72,48,.16) 45%, rgba(90,72,48,.26) 50%, rgba(90,72,48,.16) 55%, rgba(90,72,48,0) 100%);
  pointer-events: none; z-index: 2;
}
.page {
  height: min(78vh, 720px);
  padding: clamp(32px, 5vw, 64px) clamp(28px, 4.5vw, 58px) clamp(32px, 4vw, 52px);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.page[hidden] { display: none; }
.page--centre { justify-content: center; align-items: center; text-align: center; gap: 26px; padding-bottom: clamp(32px, 5vw, 64px); }
.page p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.86;
  text-wrap: pretty;
}
.page p + p { margin-top: 20px; }
.page__drop { float: left; font-size: 62px; line-height: .82; padding: 6px 12px 0 0; color: var(--brass-deep); }
.page__no {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--brass-deep);
}
.page__mark { width: 66px; height: 66px; object-fit: contain; }
.page__title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 54px); line-height: 1.02; color: var(--ink); }
.page__sub { font-family: var(--display); font-weight: 300; font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-faint); max-width: 26ch; }
.page__close { font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1.5; color: var(--ink); max-width: 28ch; }
.page__sign { font-family: var(--display); font-weight: 400; font-size: 20px; margin-top: 34px; color: var(--brass-deep); }
.page__envoi { font-family: var(--display); font-weight: 300; font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.page__cta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  background: var(--ink); color: var(--paper); padding: 15px 26px; text-transform: uppercase;
}
.page__cta:hover { background: var(--brass-deep); color: var(--paper); }

.letter__nav {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.letter__nav button { color: var(--brass); cursor: pointer; }
.letter__nav button[disabled] { color: rgba(244, 239, 228, .22); cursor: default; }
.letter__nav span { color: var(--dim); }

/* ============================================================
   Product page
   ============================================================ */

.tabs { display: flex; flex-wrap: wrap; border-bottom: var(--rule); background: var(--navy-deep); }
.tabs button {
  flex: 1;
  min-width: 180px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-align: left;
  padding: 16px 24px;
  cursor: pointer;
  border-right: var(--rule);
  background: transparent;
  color: rgba(244, 239, 228, .5);
  text-transform: uppercase;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--brass); }
.tabs button:hover { color: var(--brass); }

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; background: var(--navy); }
.product__gallery { border-right: var(--rule); position: sticky; top: var(--header); }
.product__main { position: relative; aspect-ratio: 1; width: 100%; }
.product__thumbs { display: grid; gap: 1px; background: rgba(244, 239, 228, .14); border-top: var(--rule); }
.product__thumb { position: relative; aspect-ratio: 1; background: var(--navy); cursor: pointer; padding: 0; }
.product__thumb .media { padding: 18px; }
.product__thumb[aria-selected="true"] { background: var(--navy-deep); }
.product__thumb[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--brass); pointer-events: none;
}

.product__panel { padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 80px) clamp(32px, 4vw, 56px); }
.product__title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 24px; }
.product__price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px;
  padding-bottom: 34px; border-bottom: var(--rule-strong);
}
.product__price { font-family: var(--display); font-size: 40px; color: var(--brass); }
.product__stock { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: rgba(244, 239, 228, .5); text-transform: uppercase; }

.step { padding-top: clamp(32px, 4vw, 44px); }
.step__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.step__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--bone); text-transform: uppercase; }
.step__hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--micro); text-transform: uppercase; }

.numbers {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 239, 228, .12);
  border: 1px solid rgba(244, 239, 228, .12);
}
.numbers button {
  font-family: var(--mono);
  font-size: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--navy);
  color: rgba(244, 239, 228, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  font-variant-numeric: tabular-nums;
}
.numbers button:hover:not([disabled]) { background: rgba(192, 154, 94, .25); color: var(--bone); }
.numbers button[aria-pressed="true"] { background: var(--brass); color: var(--navy-deep); }
.numbers button[disabled] {
  background: rgba(244, 239, 228, .06);
  color: rgba(244, 239, 228, .2);
  text-decoration: line-through;
  cursor: not-allowed;
}
/* already in this visitor's own cart — held, not lost */
.numbers button[data-mine] {
  background: rgba(192, 154, 94, .16);
  color: var(--brass);
  text-decoration: none;
  cursor: default;
}
.numbers[data-loading="true"] { opacity: .4; pointer-events: none; }

.mark-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.mark-input {
  width: 120px;
  background: transparent;
  border: 1px solid var(--faint);
  outline: none;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 8px;
}
.mark-input:focus { border-color: var(--brass); }
.mark-input::placeholder { color: rgba(192, 154, 94, .4); }
.mark-help { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; line-height: 1.9; color: var(--micro); text-transform: uppercase; }

.summary { margin-top: 48px; border-top: var(--rule-strong); padding-top: 26px; }
.summary__row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.summary__engraving { font-family: var(--display); font-size: 26px; color: var(--bone); }
.summary__price { font-family: var(--display); font-size: 26px; color: var(--brass); }
.fineprint { margin-top: 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; line-height: 1.9; color: rgba(244, 239, 228, .42); text-transform: uppercase; }

/* ---------- cart ---------- */

.cart { padding: clamp(48px, 6vw, 90px) var(--gutter) clamp(72px, 9vw, 120px); }
.cart__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(40px, 5vw, 72px); align-items: start; }

.line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: var(--rule);
}
.line__media { position: relative; aspect-ratio: 1; background: var(--navy-deep); }
.line__name { font-family: var(--display); font-size: 24px; color: var(--bone); }
.line__meta { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--micro); margin-top: 8px; text-transform: uppercase; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.line__price { font-family: var(--display); font-size: 24px; color: var(--brass); }
.line__remove {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  color: var(--micro); cursor: pointer; text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 239, 228, .2); padding-bottom: 2px;
}
.line__remove:hover { color: var(--brass); border-color: var(--brass); }

.totals { border: var(--rule-strong); padding: clamp(28px, 3vw, 36px); position: sticky; top: calc(var(--header) + 24px); }
.totals__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--body);
  text-transform: uppercase;
}
.totals__row--grand {
  border-top: var(--rule); margin-top: 12px; padding-top: 22px;
  font-family: var(--display); font-size: 28px; letter-spacing: 0; color: var(--bone); text-transform: none;
}
.totals__row--grand span:last-child { color: var(--brass); }

.totals__field { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 12px; }
.totals__field select {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--faint);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 12px 34px 12px 12px;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.totals__field select:focus { outline: none; border-color: var(--brass); }
.totals__field select[data-unset="true"] { border-color: var(--brass); }

.totals__perk {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1.9;
  color: var(--brass);
  text-transform: uppercase;
  padding-bottom: 6px;
}

.empty { text-align: center; padding: clamp(64px, 9vw, 120px) 0; }
.empty h2 { margin-bottom: 20px; }
.empty p { margin-bottom: 36px; color: var(--body); }

/* ---------- notice / status ---------- */

.notice {
  border: 1px solid var(--faint);
  border-left: 2px solid var(--brass);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.9;
  color: var(--body);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.notice--error { border-left-color: #E0876A; color: #E0876A; }

/* ---------- receipt (success page) ---------- */

.receipt { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(64px, 9vw, 130px) 0; }
.receipt__mark { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 28px; }
.receipt__title { margin-bottom: 20px; }
.receipt__list { margin: 44px 0; border-top: var(--rule-strong); text-align: left; }
.receipt__item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: var(--rule); }

/* ---------- policies ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--body); text-wrap: pretty; }
.prose p + p { margin-top: 18px; }
.prose ul { margin: 18px 0 0 20px; }
.prose li + li { margin-top: 10px; }
.prose a { color: var(--brass); border-bottom: 1px solid rgba(192, 154, 94, .4); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .ledger__cols, .ledger__row { grid-template-columns: 96px minmax(0, 1fr) 200px 92px 40px; }
  .ledger__cta { font-size: 0; }
  .ledger__cta::after { content: "→"; font-size: 13px; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead__nav { gap: 22px; }
}

@media (max-width: 980px) {
  .masthead__chapter { display: none; }
  .masthead__nav { display: none; }

  /* Brand + language + cart + Reserve + burger overflows a phone header, and
     "Reservar" is wider than "Reserve" — enough to push the burger off the
     edge and leave no way to open the menu. Drop it here: the drawer carries
     "Reserve your number", and the hero's own button is right below. */
  .masthead .link-brass { display: none; }
  .masthead__burger {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; cursor: pointer; border: 1px solid var(--faint);
  }
  .masthead__burger span { display: block; width: 15px; height: 1px; background: var(--bone); position: relative; }
  .masthead__burger span::before,
  .masthead__burger span::after { content: ""; position: absolute; left: 0; width: 15px; height: 1px; background: var(--bone); }
  .masthead__burger span::before { top: -5px; }
  .masthead__burger span::after { top: 5px; }
  .masthead__burger[aria-expanded="true"] span { background: transparent; }
  .masthead__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .masthead__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__media { aspect-ratio: 4 / 3; min-height: 0; order: -1; }
  .hero { min-height: 0; }

  .split, .ledger__head { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .manifesto { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .story { grid-template-columns: minmax(0, 1fr); }
  .story__text { padding: clamp(64px, 9vw, 110px) var(--gutter); }
  .story__media { min-height: 0; aspect-ratio: 4 / 3; border-left: 0; border-top: var(--rule); }

  .next { grid-template-columns: minmax(0, 1fr); }
  .next__media { aspect-ratio: 4 / 3; min-height: 0; }
  .next__list { padding: 40px var(--gutter) 0 0; }

  .editorial__row,
  .editorial__row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .editorial__media,
  .editorial__row:nth-child(even) .editorial__media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; min-height: 0; }
  .editorial__text,
  .editorial__row:nth-child(even) .editorial__text { grid-column: 1; grid-row: 2; padding: 36px 0 56px; }

  .product { grid-template-columns: minmax(0, 1fr); }
  .product__gallery { border-right: 0; border-bottom: var(--rule); position: static; }
  .product__panel { padding: 40px var(--gutter) 72px; }

  .cart__grid { grid-template-columns: minmax(0, 1fr); }
  .totals { position: static; }

  /* the book becomes a single page */
  .book { grid-template-columns: 1fr; }
  .book__gutter { display: none; }
  .letter { padding: 20px 16px 16px; }
  .page { height: min(72vh, 640px); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  .h1 { font-size: clamp(56px, 19vw, 96px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__ticker-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ledger: table → stacked cards */
  .ledger__cols { display: none; }
  .ledger__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 24px 0;
  }
  .ledger__code { grid-column: 1; grid-row: 1; }
  .ledger__price { grid-column: 2; grid-row: 1; font-size: 20px; }
  .ledger__name { grid-column: 1 / -1; grid-row: 2; font-size: 24px; }
  .ledger__meter { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  .ledger__cta { grid-column: 1 / -1; grid-row: 4; text-align: left; margin-top: 10px; }
  .ledger__cta::after { content: none; }
  .ledger__cta { font-size: 10px; }
  .ledger__total-n { font-size: 44px; }

  .viewbar { align-items: flex-start; gap: 28px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; text-align: center; }

  .index-grid { grid-template-columns: minmax(0, 1fr); }

  .editorial__foot { flex-direction: column; align-items: stretch; }
  .editorial__foot .btn { width: 100%; }

  .tabs button { min-width: 50%; flex: 1 1 50%; }

  .numbers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .numbers button { font-size: 11px; }

  .product__price-row { gap: 12px; }
  .product__price { font-size: 34px; }

  .line { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .line__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__legal { flex-direction: column; gap: 12px; }

  .letter__bar, .letter__nav { font-size: 9px; letter-spacing: .16em; }
  .page { height: min(70vh, 560px); padding: 28px 24px 24px; }
  .page__drop { font-size: 48px; }
}

@media (max-width: 420px) {
  .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .masthead { gap: 12px; padding: 14px var(--gutter); }
  .masthead__tools { gap: 12px; }
}

/* ---------- print ---------- */

@media print {
  .masthead, .drawer, .letter, .hero__ticker, .signup { display: none !important; }
  body { background: #fff; color: #000; }
}
