/* Hallmark · macrostructure: Workbench · H2 split knobs: ratio=7/5, right=screenshot, divider=negative-space
 * theme: custom · vibe: "felt table, card club, gold foil, family game night"
 * paper: oklch(96.5% 0.01 150) · accent: oklch(48% 0.13 152)
 * display: Fraunces · body: Source Serif 4 · axes: light / roman-serif / chromatic-green
 * genre: editorial · nav: N6 masthead · footer: Ft2 inline line · enrichment: none (real screenshots)
 * studied: no · context: inferred · pre-emit critique: P4 H4 E4 S5 R4 V4
 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  padding-inline: max(0px, env(safe-area-inset-left));
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0 0 var(--space-sm);
}
p { margin: 0 0 var(--space-md); }
a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; } a:active { color: var(--color-ink); }

/* ── N6 masthead ─────────────────────────────── */
.mast { display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--page-gutter) 0; text-align: center; }
.mast__mark { width: 44px; height: 44px; margin: 0 auto; border-radius: 10px; }
.mast__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.mast__name a { color: inherit; text-decoration: none; }
.mast__line { font-variant-caps: all-small-caps; letter-spacing: 0.09em; font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.mast__nav ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--space-lg); list-style: none; padding: 0; margin: var(--space-xs) 0 0; }
.mast__nav a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; padding: var(--space-2xs) 0; display: inline-block; min-height: 28px; }
.mast__nav a:hover, .mast__nav a[aria-current="page"] { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }
.mast__rule { border: 0; border-top: var(--rule-hair) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-ink); height: 4px; margin: var(--space-sm) 0 0; background: none; }

/* ── H2 split hero ───────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center;
        padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); max-width: 68rem; margin-inline: auto; }
.hero h1 { font-size: var(--text-display); margin-bottom: var(--space-md); }
.hero__lede { font-size: var(--text-md); color: var(--color-ink-2); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; margin-top: var(--space-lg); }
.hero__shot { margin: 0; justify-self: end; } .hero__shot img { max-width: 21rem; }

.shot { margin: 0; }
.shot img { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-md); }
.shot figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }

/* one orchestrated entrance — hero only */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal var(--dur-long) var(--ease-out) forwards;
          animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── CTAs ────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: var(--space-xs) var(--space-lg); min-height: 44px;
        border: 1.5px solid var(--color-accent); border-radius: var(--radius-sm); color: var(--color-accent);
        font-weight: 600; text-decoration: none; white-space: nowrap;
        transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.chip:hover { transform: translateY(-1.5px); background: var(--color-paper-2); }
.chip:active { transform: translateY(0); }
.textlink { white-space: nowrap; }

/* ── F4 step tour ────────────────────────────── */
.tour { max-width: 68rem; margin-inline: auto; padding: 0 var(--page-gutter) var(--space-2xl); }
.tour > h2 { font-size: var(--text-xl); max-width: 26ch; }
.steps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-2xl); }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: var(--space-xl); align-items: center; }
.steps li:nth-child(even) { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
.steps li:nth-child(even) .step__text { order: 2; }
.step__num { display: block; font-family: var(--font-display); font-weight: 700; color: var(--color-accent);
             font-size: var(--text-md); margin-bottom: var(--space-2xs); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--text-lg); }
.steps p { color: var(--color-ink-2); max-width: 44ch; margin-bottom: 0; }

/* ── wild-rank strip ─────────────────────────── */
.wilds { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule);
         padding: var(--space-xl) var(--page-gutter) var(--space-lg); }
.wilds__inner { max-width: 68rem; margin-inline: auto; }
.wilds h2 { font-size: var(--text-lg); }
.wilds ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: 0; margin: var(--space-md) 0 var(--space-sm); }
.wilds li { display: grid; gap: 2px; place-items: center; min-width: 3.4rem; padding: var(--space-xs) var(--space-2xs);
            background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
            border-top: 3px solid var(--color-gold); border-radius: var(--radius-sm); }
.wilds .r { font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.wilds .w { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.wilds p { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }

/* ── closing CTA band ────────────────────────── */
.close-band { max-width: 68rem; margin-inline: auto; padding: var(--space-3xl) var(--page-gutter) var(--space-2xl); }
.close-band p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; max-width: 22ch; margin-bottom: var(--space-lg); }
.close-band .close-band__note { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; margin: var(--space-md) 0 0; }

/* ── Ft2 footer ──────────────────────────────── */
.foot { border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-xl);
        padding: var(--space-lg) var(--page-gutter) var(--space-xl); }
.foot p { max-width: 68rem; margin: 0 auto; font-size: var(--text-sm); color: var(--color-muted); }
.foot a { color: var(--color-ink-2); white-space: nowrap; }

/* ── document pages ──────────────────────────── */
.doc { max-width: 42rem; margin-inline: auto; padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); }
.doc h1 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.doc h2 { font-size: var(--text-lg); margin-top: var(--space-2xl); }
.doc h3 { font-size: var(--text-md); margin-top: var(--space-lg); }
.doc p, .doc li { color: var(--color-ink); }
.doc ul, .doc ol { padding-left: 1.4rem; margin: 0 0 var(--space-md); }
.doc li { margin-bottom: var(--space-2xs); }
.doc .aside { border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2);
              padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
              margin: 0 0 var(--space-md); }
.doc .aside p { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }

.tablewrap { overflow-x: auto; margin: 0 0 var(--space-md); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-variant-caps: all-small-caps; letter-spacing: 0.08em;
          color: var(--color-muted); padding-bottom: var(--space-xs); }
th, td { text-align: left; padding: var(--space-xs) var(--space-md) var(--space-xs) 0; }
thead th { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
           border-bottom: 2px solid var(--color-ink); }
tbody td, tbody th { border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 400; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num { font-weight: 600; }

/* ── responsive ──────────────────────────────── */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .hero__shot { justify-self: start; }
  .hero__shot img { max-width: min(100%, 20rem); }
  .steps li, .steps li:nth-child(even) { grid-template-columns: 1fr; }
  .steps li:nth-child(even) .step__text { order: 0; }
  .steps .shot img { max-width: min(100%, 17rem); }
}
@media (max-width: 40rem) {
  .mast__nav ul { gap: var(--space-md); }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
}
@media (pointer: coarse) {
  .mast__nav a, .foot a { padding-block: var(--space-xs); }
}

/* ── print (scoring sheet) ───────────────────── */
@media print {
  .mast__nav, .foot, .chip, .no-print { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { padding: 0; max-width: none; }
  .mast { padding-top: 0; }
  .mast__rule { border-color: #000; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { animation: reveal-reduced 150ms linear forwards; }
  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
}

/* ── printable score pads (from the family paper sheet) ── */
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-lg); margin: var(--space-lg) 0; }
.pad { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.pad th, .pad td { border: var(--rule-hair) solid var(--color-rule); padding: 0; height: 1.9rem; }
.pad .name { border-bottom-width: 2px; }
.pad .rank { width: 2rem; background: var(--color-ink); color: var(--color-paper);
             font-family: var(--font-display); font-weight: 700; text-align: center; font-size: var(--text-sm); }
.pad tr:nth-child(odd) td:not(.rank) { background: var(--color-paper-2); }
.pads-note { color: var(--color-muted); font-size: var(--text-sm); }
.doc--wide { max-width: 64rem; }
@media print {
  @page { size: letter landscape; margin: 0.4in; }
  .pads { grid-template-columns: repeat(4, 1fr); gap: 0.25in 0.3in; margin: 0; }
  .pad th, .pad td { border-color: #000; height: 0.24in; }
  .pad .rank { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pad tr:nth-child(odd) td:not(.rank) { background: #f0f0f0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc h1 { font-size: 14pt; margin-bottom: 6pt; }
}

/* ── gift set ── */
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl);
           align-items: start; max-width: 68rem; margin-inline: auto;
           padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); }
.product h1 { font-size: var(--text-2xl); }
.product__img { margin: 0; }
.product__img img { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-md); }
.product__img figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }
.contents { list-style: none; padding: 0; margin: var(--space-lg) 0; }
.contents li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.contents li:first-child { border-top: 2px solid var(--color-gold); }
.contents strong { font-family: var(--font-display); font-weight: 600; }
.band { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.band__inner { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-xl);
               align-items: center; max-width: 68rem; margin-inline: auto;
               padding: var(--space-xl) var(--page-gutter); }
.band__inner img { border-radius: var(--radius-md); border: var(--rule-hair) solid var(--color-rule); }
.band__inner h2 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.band__inner p { margin-bottom: var(--space-sm); color: var(--color-ink-2); }
@media (max-width: 56rem) {
  .product { grid-template-columns: 1fr; gap: var(--space-xl); }
  .band__inner { grid-template-columns: 1fr; }
  .band__inner img { max-width: 14rem; }
}
