@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --paper: #f6efe2;
  --pale: #fffaf0;
  --ink: #24392f;
  --soft: #4e6153;
  --green: #1f3b32;
  --burgundy: #8d3e34;
  --line: #cec5b2;
  --display: 'Baskervville', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 72px, 1160px); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 10px; background: var(--pale); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 74px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; gap: 9px; font: 27px/1 var(--display); }
.brand-mark { display: grid; place-items: center; background: var(--green); color: var(--pale); border-radius: 50%; width: 33px; height: 33px; font: 21px/1 var(--display); }
.wordmark small { margin-left: 3px; font: 600 10px var(--mono); color: var(--burgundy); }
.mast nav { display: flex; align-items: center; gap: 14px 22px; font-size: 14px; font-weight: 700; }
.mast nav a { text-decoration: none; }
.mast nav a:hover { text-decoration: underline; }
.nav-play { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; }

.hero { position: relative; overflow: hidden; color: var(--ink); background: var(--pale); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 10px; }
.hero-cover { display: grid; grid-template-columns: 1.14fr .86fr; }
.hero-copy { padding: clamp(26px, 5vw, 61px); }
.eyebrow { margin: 0 0 11px; color: var(--burgundy); font: 600 11px/1.4 var(--mono); letter-spacing: .065em; }
.hero h1 { margin: 0; font: 400 clamp(63px, 10vw, 115px)/.9 var(--display); letter-spacing: -.07em; }
.hero h1 span { color: var(--burgundy); }
.hero-deck { margin: 15px 0 10px; font: 400 clamp(27px, 4vw, 43px)/1.03 var(--display); letter-spacing: -.045em; }
.hero-intro { max-width: 42ch; margin: 0 0 23px; color: var(--soft); }
.hero-actions, .player-tools, .player-tools > div, .section-top, .practice, .footer, .guide-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.primary { border-color: var(--green); background: var(--green); color: var(--pale); padding-inline: 17px; }
.primary:hover { background: #365846; }
.subtle:hover { background: #ebdfcc; }
.button:active { transform: translateY(1px); }
.underlink { font-size: 14px; font-weight: 700; }
.underlink:hover { color: var(--burgundy); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  color: #faf0d7;
  background-color: var(--green);
  background-image: repeating-linear-gradient(0deg, #fbebc310 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, #fbebc30f 0 1px, transparent 1px 28px), radial-gradient(ellipse at top right, #4e6550, transparent 70%);
}
.ledger {
  position: relative;
  width: min(77%, 330px);
  padding: clamp(13px, 2vw, 22px);
  outline: 1px solid #d6c49c;
  outline-offset: 4px;
  background: #faf0d7;
  box-shadow: 0 16px 35px #11221972;
  color: var(--green);
  transform: rotate(-6deg);
  animation: ledger-arrive .55s ease-out both;
}
@keyframes ledger-arrive { from { opacity: .2; transform: translateY(8px) rotate(-2deg); } }
.ledger-head, .ledger-axis { display: flex; justify-content: space-between; gap: 8px; font: 600 clamp(8px, 1.45vw, 10px)/1.5 var(--mono); letter-spacing: .065em; }
.ledger-head { border-bottom: 1px solid #b4a98e; padding-bottom: 8px; }
.ledger-number { margin-top: 10px; font: 400 clamp(33px, 5vw, 60px)/.93 var(--display); letter-spacing: -.06em; }
.ledger-caption { color: #624e3d; font: 600 clamp(8px, 1.45vw, 10px)/1.5 var(--mono); letter-spacing: .09em; }
.ledger-chart { display: flex; align-items: flex-end; gap: 4%; height: clamp(52px, 8vw, 95px); border-bottom: 1px solid #b4a98e; background: repeating-linear-gradient(0deg, transparent 0 18px, #ccbd9f 18px 19px); }
.ledger-chart i { display: block; height: var(--h); flex: 1; background: #617b60; border-radius: 1px 1px 0 0; }
.ledger-chart i:nth-child(3n) { background: #82927a; }
.ledger-chart i:last-child { background: var(--green); }
.ledger-axis { margin-top: 6px; }
.year-slip { position: absolute; right: 8%; bottom: 15%; display: grid; justify-items: center; padding: 9px 18px; background: #9b4e3f; border: 1px solid #f6ceac; outline: 1px solid #9b4e3f; outline-offset: 3px; box-shadow: 0 7px 19px #11221970; transform: rotate(9deg); }
.year-slip span { font: 600 9px var(--mono); letter-spacing: .08em; }
.year-slip strong { font: 400 32px/.99 var(--display); letter-spacing: -.04em; }

.hero[data-gf-state] { min-height: min(850px, max(460px, 83svh)); }
.hero:fullscreen { border-radius: 0; }
.loading { display: flex; align-items: center; gap: 10px; padding: 19px; font-weight: 700; }
.loading span { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: rotate .82s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.player-tools { gap: 10px; padding-block: 10px 16px; border-bottom: 1px solid var(--line); color: var(--soft); }
.player-tools > div { gap: 6px; }
.player-tools .original-link { margin-left: auto; }
.rounds { margin: 27px 0 25px; }
.section-top, .practice, .footer, .guide-top { justify-content: space-between; }
.section-top h2, .practice h2 { margin: 0; font: 400 clamp(31px, 4vw, 47px)/1 var(--display); letter-spacing: -.035em; }
.round-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 15px 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.round-grid li { padding: 17px 18px 19px; }
.round-grid li + li { border-left: 1px solid var(--line); }
.round-grid h3 { margin: 4px 0; font: 400 26px/1.15 var(--display); }
.round-grid span { color: var(--burgundy); font: 600 10px var(--mono); letter-spacing: .055em; }
.round-grid p, .practice p { margin: 0; font-size: 14px; color: var(--soft); }
.practice { padding: 18px 20px; margin-bottom: 25px; border-radius: 5px; background: #eee0cd; }
.practice h2 { margin-bottom: 4px; font-size: 31px; }
.footer { margin-top: 24px; padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.legal { max-width: 760px; margin: 18px auto 34px; padding: clamp(16px, 5vw, 43px); border: 1px solid var(--line); border-radius: 5px; background: var(--pale); }
.legal h1 { margin: 0 0 10px; font: 400 clamp(38px, 6vw, 57px)/1 var(--display); letter-spacing: -.045em; }
.legal h2 { margin: 22px 0 5px; font: 400 29px/1.1 var(--display); }
.legal p { margin: 6px 0 12px; }

.guide-top { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); background: var(--pale); border-radius: 5px; }
.guide-top h1 { margin: 5px 0; font: 400 clamp(40px, 7vw, 72px)/1 var(--display); letter-spacing: -.045em; }
.guide-top p { margin: 8px 0 0; color: var(--soft); max-width: 64ch; }
.guide-grid { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: clamp(18px, 4vw, 39px); margin-block: 26px 35px; }
.guide-index { display: flex; flex-direction: column; align-self: start; gap: 8px; padding: 14px 15px; border-left: 2px solid var(--burgundy); background: #eee0cd; font-size: 14px; }
.guide-copy { max-width: 72ch; }
.guide-copy section { margin-bottom: 25px; scroll-margin-top: 15px; }
.guide-copy h2 { margin: 0 0 6px; font: 400 clamp(30px, 4vw, 40px)/1 var(--display); letter-spacing: -.035em; }
.guide-copy p { margin: 6px 0 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: var(--pale); font-size: 14px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); }
tfoot { background: #e3eadc; font-weight: 700; }
details { padding: 9px 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }

@media (max-width: 770px) {
  .shell { width: calc(100% - 38px); }
  .hero-cover { grid-template-columns: 1.18fr .82fr; }
  .hero h1 { font-size: clamp(62px, 9vw, 90px); }
  .year-slip { right: 7%; bottom: 20%; }
  .guide-grid { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 24px); }
  .mast { min-height: 59px; margin-bottom: 10px; }
  .wordmark { font-size: 21px; gap: 5px; }
  .wordmark small { font-size: 8px; margin-left: 1px; }
  .brand-mark { width: 26px; height: 26px; font-size: 17px; }
  .mast nav { gap: 9px; font-size: 12px; }
  .nav-play { min-height: 35px; padding-inline: 7px; }
  .hero-cover { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px 17px 20px; }
  .hero-deck { margin-top: 10px; }
  .hero-intro { font-size: 14px; margin-bottom: 14px; }
  .hero-art { min-height: 174px; padding: 12px 0; }
  .ledger { width: min(57%, 218px); }
  .ledger-number { margin-top: 6px; }
  .year-slip { right: 14%; bottom: 13%; padding: 7px 10px; }
  .year-slip strong { font-size: 24px; }
  .player-tools .original-link { margin-left: 0; }
  .round-grid, .guide-grid { grid-template-columns: 1fr; }
  .round-grid li { padding: 12px 7px; }
  .round-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  th, td { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
