/* PROVENANCE — marketing site
   One stylesheet, no build step, no third-party requests.
   The palette and type are lifted from the iOS design system. */

/* ── Fonts (self-hosted, subset from upstream so `onum` survives) ───── */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodonimoda-var.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodonimoda-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper:       #F2EDE3;
  --card:        #FAF6EE;
  --card-back:   #EFE9DD;
  --ink:         #16241C;
  --oxblood:     #6E2230;
  --wax:         #78252F;
  --brass:       #B4924C;
  --brass-top:   #C8A961;
  --brass-bottom:#91702F;
  --rule:        #C9BFAE;
  --hair:        #E0D8C8;
  --cream:       #F7F3EA;

  /* Decorative only — these fail WCAG AA as text. Never set them on type. */
  --muted-decor: #8C9189;
  --faint-decor: #A9A296;

  /* Text-safe counterparts. Same hue, darkened until AA passes on paper. */
  --muted:       #696D66;  /* 4.52:1 */
  --faint:       #736B5E;  /* 4.51:1 */
  --brass-text:  #816836;  /* 4.54:1 */

  --display: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', Georgia, serif;
  --ui: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 6vw, 5rem);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

/* ── Ground ─────────────────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: 'onum' 1, 'pnum' 1;
  overflow-x: hidden;
}

/* Paper grain: tiled fractal noise, multiplied over everything.
   Inline SVG turbulence — no PNG to ship, no request to make. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Skip link & focus ──────────────────────────────────────────────── */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.75rem 1.25rem;
}
.skip:focus { left: var(--gutter); top: 1rem; }

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

/* ── Layout ─────────────────────────────────────────────────────────── */
.shell {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shell--wide { max-width: 58rem; }

main { display: block; }

hr, .hairline {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ── Type ───────────────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: 0.01em;
}
.label {
  font-family: var(--ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.6875rem;   /* 11px */
  line-height: 1.5;
  color: var(--muted);
}
.label--ink { color: var(--ink); }
.label--oxblood { color: var(--oxblood); }

p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }

a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.05em;
}
a:hover, a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

strong { font-weight: 500; }
em { font-style: italic; }

/* ── Masthead ───────────────────────────────────────────────────────── */
.masthead {
  padding: clamp(2rem, 5vw, 3.25rem) 0 1.25rem;
}
.masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.masthead__mark {
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
}
nav.masthead__nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}
nav.masthead__nav a {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  border: 0;
  padding-bottom: 0.25rem;
}
nav.masthead__nav a:hover,
nav.masthead__nav a:focus-visible { color: var(--ink); }
nav.masthead__nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom: 1px solid var(--oxblood);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5.5rem); }

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 8.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 -1px 0 rgba(255,255,255,0.72), 0 1px 0 rgba(22,36,28,0.22);
  animation: settle-in 800ms ease-out both;
}
@keyframes settle-in { from { opacity: 0; } to { opacity: 1; } }

.hero__rule { width: 8.25rem; margin: 2rem 0; }

.hero__line {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.45;
  max-width: 26rem;
}

.hero__badge { margin-top: 2.75rem; display: inline-block; border: 0; }
.hero__badge img { width: 150px; height: 50px; }
.hero__badge--pending {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0.55;
  cursor: default;
}
.hero__note { margin-top: 0.9rem; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section__head { margin-bottom: 2.5rem; }
.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
  margin-top: 0.6rem;
}

/* Numbered steps */
.steps { counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hair);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps__num {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--oxblood);
}
.steps__body { max-width: 30rem; }
.steps__body p { margin-top: 0.35rem; }

/* Deck list */
.decks li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--hair);
}
.decks li:last-child { border-bottom: 1px solid var(--hair); }
.decks__name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.decks__meta { grid-column: 1; }
.decks__price {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--display);
  font-size: 1.15rem;
  white-space: nowrap;
}
.decks__price--included { color: var(--oxblood); }
.decks__desc { grid-column: 1 / -1; max-width: 30rem; margin-top: 0.4rem; font-style: italic; font-family: var(--display); font-size: 1.02rem; }

/* ── The card, drawn (not a photograph of one) ──────────────────────── */
.plate {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem) 0 0;
}
.plate figure { margin: 0; text-align: center; }
.plate figcaption { margin-top: 1.5rem; }

.prompt-card {
  position: relative;
  width: min(18.5rem, 78vw);
  aspect-ratio: 296 / 404;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 3px rgba(22,36,28,0.10), 0 8px 16px rgba(22,36,28,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.75rem;
  margin-inline: auto;
}
.prompt-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--hair);
  pointer-events: none;
}
.prompt-card__crest { width: 26px; height: 26px; }
.prompt-card__rule { width: 52px; margin: 0.9rem 0 1.4rem; }
.prompt-card__text {
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.2vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
}
.prompt-card__foot {
  position: absolute;
  bottom: 1.6rem;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
}
.card-sides {
  display: flex;
  justify-content: space-between;
  width: min(18.5rem, 78vw);
  margin: 1.25rem auto 0;
  font-family: var(--ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.card-sides__new { color: var(--brass-text); }
.card-sides__old { color: var(--oxblood); }

/* ── Long-form documents (terms, privacy, legal) ────────────────────── */
.doc { padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 9vw, 6rem); }
.doc__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 2.9rem);
  line-height: 1.08;
  margin-top: 0.75rem;
}
.doc__standfirst {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  margin-top: 1rem;
  max-width: 30rem;
}
.doc__updated { margin-top: 1.5rem; }
.doc > .hairline { margin: 2rem 0 0; }

.doc section { padding-top: 2.75rem; }
.doc h2 {
  font-family: var(--ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6875rem;
  color: var(--oxblood);
  margin-bottom: 0.85rem;
}
.doc h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}
.doc ul.bullets { margin-top: 0.9rem; max-width: var(--measure); }
.doc ul.bullets li {
  position: relative;
  padding-left: 1.15rem;
  margin-top: 0.55rem;
}
.doc ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--rule);
}

.callout {
  border-left: 2px solid var(--oxblood);
  background: rgba(110,34,48,0.035);
  padding: 1.1rem 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: var(--measure);
}
.callout p { max-width: none; }

/* Placeholders still to be filled before submission */
.fill {
  font-family: var(--ui);
  font-size: 0.9em;
  letter-spacing: 0.04em;
  background: rgba(110,34,48,0.09);
  border-bottom: 1px solid var(--oxblood);
  padding: 0 0.2em;
  white-space: nowrap;
}

/* Definition-style key/value rows */
.rows { margin-top: 1.25rem; }
.rows div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hair);
}
.rows div:last-child { border-bottom: 1px solid var(--hair); }
.rows dt {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.28em;
}
.rows dd { margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq li {
  padding: 1.65rem 0;
  border-top: 1px solid var(--hair);
}
.faq li:last-child { border-bottom: 1px solid var(--hair); }
.faq h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq p { margin-top: 0.5rem; }

.contact-line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.2;
  border: 0;
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  word-break: break-word;
}

/* ── Press ──────────────────────────────────────────────────────────── */
.assets { margin-top: 1rem; }
.assets li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-top: 1px solid var(--hair);
}
.assets li:last-child { border-bottom: 1px solid var(--hair); }
.assets__name { font-family: var(--display); font-size: 1.1rem; }
.assets__note { grid-column: 1; }

/* ── Room deep-link page ────────────────────────────────────────────── */
.room {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  gap: 1.5rem;
}
.room__code {
  font-family: var(--display);
  font-size: clamp(3rem, 17vw, 3.5rem);
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;   /* balance the trailing tracking */
}
.room__rule { width: 10rem; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.button {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6875rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 1rem 1.75rem;
  min-height: 44px;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--brass {
  background: var(--brass);
  border-color: var(--brass-bottom);
  color: var(--ink);           /* 5.49:1 — cream on brass would fail */
  box-shadow: inset 0 1px 0 var(--brass-top), inset 0 -1px 0 var(--brass-bottom);
}
.button--brass:hover, .button--brass:focus-visible { background: var(--brass-top); color: var(--ink); }

/* ── Colophon ───────────────────────────────────────────────────────── */
.colophon {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}
.colophon__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.colophon__nav a {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  border: 0;
}
.colophon__nav a:hover, .colophon__nav a:focus-visible { color: var(--ink); }
.colophon__legal { margin-top: 1.75rem; font-size: 0.8125rem; color: var(--muted); }
.colophon__legal p { max-width: 32rem; }

/* ── Narrow screens ─────────────────────────────────────────────────── */
@media (max-width: 30rem) {
  .rows div { grid-template-columns: 1fr; }
  .rows dt { padding-top: 0; }
  .decks li { grid-template-columns: 1fr; }
  .decks__price { grid-row: auto; grid-column: 1; }
}

/* ── Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  body::after { display: none; }
  body { background: #fff; }
  .masthead__nav, .colophon__nav { display: none; }
  a { color: var(--ink); }
}

/* ── Utilities ──────────────────────────────────────────────────────────
   Spacing that varies per page. Kept here rather than in style attributes
   so the Content-Security-Policy can refuse inline styles outright. */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.mt-7 { margin-top: 3.5rem; }
.mb-4 { margin-bottom: 1.75rem; }
.label--tight { letter-spacing: 0.16em; }
.plain { border: 0; }
.recede { opacity: 0.55; }
.numerals-plain { letter-spacing: 0.08em; text-indent: 0.08em; }
