/* ============================================================
   Broadway Report Card — The Ledger
   Deep ink-blue on warm cream · Bodoni Moda + Newsreader
   ============================================================ */

:root {
  --paper:    #f4ede0;
  --paper-2:  #efe6d6;
  --ink:      #1f2a44;
  --ink-soft: #46506a;
  --rule:     #c9bda6;
  --red:      #9e3a2f;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
}

/* ── Page container ──────────────────────────────────────── */

.ledger {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 50% -10%, #f8f2e7 0%, var(--paper) 55%, var(--paper-2) 100%);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  padding: 72px 96px 72px;
  overflow: hidden;
}

/* Aged-paper grain overlay */
.ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 5;
  opacity: 0.05;
}

/* Soft printed vignette */
.ledger::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 180px rgba(60, 46, 20, 0.10);
}

.stage {
  position: relative;
  z-index: 6;
  max-width: 1060px;
  margin: 0 auto;
}

/* ── Topline ─────────────────────────────────────────────── */

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
}

.topline .dot {
  color: var(--red);
}

.hairline {
  height: 1.5px;
  background: var(--ink);
  margin-top: 4px;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 64px 0 44px;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.wordmark {
  font-family: "Bodoni Moda", Didot, "Bodoni 72", serif;
  font-weight: 500;
  line-height: 0.9;
  color: var(--ink);
  margin: 0;
}

.wm-1 {
  display: block;
  font-size: 138px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.wm-2 {
  display: block;
  font-size: 62px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 6px;
  color: var(--ink-soft);
}

.rule-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 40px auto 0;
  max-width: 560px;
}

.rule-pair .ln {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.rule-pair .grade {
  font-family: "Bodoni Moda", serif;
  font-size: 34px;
  font-weight: 600;
  border: 2px solid var(--red);
  color: var(--red);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(158, 58, 47, 0.04);
}

/* ── Lede paragraph ──────────────────────────────────────── */

.lede {
  max-width: 720px;
  margin: 46px auto 0;
  text-align: center;
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 380;
  text-wrap: pretty;
}

.lede em {
  color: var(--red);
  font-style: italic;
}

/* ── Grading sheet — single track ───────────────────────── */

.sheet {
  max-width: 680px;
  margin: 54px auto 0;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 4px;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.row .name {
  font-size: 21px;
  font-weight: 420;
  white-space: nowrap;
}

.row .leader {
  flex: 1;
  border-bottom: 1.5px dotted var(--rule);
  transform: translateY(-5px);
}

/* Empty grade box — marks pending */
.row .box {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 2px;
  flex: 0 0 auto;
  background: #fff8ec;
}

/* Filled grade — replace .box with this when results are published */
.row .mark {
  flex: 0 0 auto;
  width: 48px;
  text-align: right;
  font-family: "Bodoni Moda", Didot, "Bodoni 72", serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  transform: translateY(-1px) rotate(-1.5deg);
}

/* Muted box — Insider column before launch */
.row .box.is-pending {
  opacity: 0.32;
}

/* ── Grading sheet — two-track (Observers + Insiders) ────── */

.sheet-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  max-width: 860px;
  margin: 54px auto 0;
}

.sheet-two .col {
  min-width: 0;
}

.col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 4px;
}

.col-label {
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.col-status {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.col-status.is-soon {
  color: var(--red);
}

/* ── CTA ─────────────────────────────────────────────────── */

.cta {
  text-align: center;
  margin: 60px auto 0;
}

.cta .soon {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 18px;
}

.cta .when {
  font-family: "Bodoni Moda", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 1px;
}

.footer a:hover {
  color: var(--red);
}

/* Secondary footer — KGM ecosystem links */
.footer-links {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.55;
  text-align: center;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  opacity: 1;
}

/* ── Mobile · ≤ 640px ────────────────────────────────────── */

@media (max-width: 640px) {
  .ledger {
    padding: 34px 26px 40px;
  }

  .topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    padding-bottom: 12px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .kicker {
    font-size: 9.5px;
    letter-spacing: 0.24em;
    margin-bottom: 16px;
    line-height: 1.7;
  }

  .wm-1 {
    font-size: 54px;
  }

  .wm-2 {
    font-size: 27px;
    margin-top: 4px;
  }

  .rule-pair {
    margin-top: 22px;
    max-width: none;
    gap: 16px;
  }

  .rule-pair .grade {
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  .lede {
    font-size: 16.5px;
    line-height: 1.5;
    margin-top: 26px;
    max-width: none;
  }

  .sheet {
    margin-top: 30px;
    max-width: none;
  }

  .sheet-head {
    font-size: 9.5px;
  }

  .row {
    padding: 12px 0;
    gap: 12px;
  }

  .row .name {
    font-size: 16.5px;
  }

  .row .box {
    width: 26px;
    height: 26px;
  }

  .row .mark {
    font-size: 21px;
    width: 40px;
  }

  .cta {
    margin-top: 34px;
  }

  .cta .when {
    font-size: 21px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    margin-top: 44px;
  }

  .footer-links {
    text-align: left;
    margin-top: 16px;
  }

  /* Two-track stacks vertically on mobile — Observers first */
  .sheet-two {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: none;
  }
}
