:root {
  color-scheme: light;
  --paper: #f8f0e4;
  --white: #fff9ef;
  --ink: #2e2721;
  --muted: #61534a;
  --clay: #873e2a;
  --clay-dark: #6c301f;
  --rule: #cbb59d;
  --green: #154738;
  --pale-green: #d5e2d5;
  --gold: #efc875;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--clay); outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-180%); padding: .5rem 1rem; background: var(--white); z-index: 2; }
.skip:focus { transform: none; }
.wrap, .masthead { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 750; text-decoration: none; line-height: 1.2; }
.brand img, .ledger-head img { border-radius: .55rem; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; align-items: center; grid-template-columns: 1.12fr minmax(0, .88fr); gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(3rem, 8vw, 7rem); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
h1 { max-width: 12ch; font-size: clamp(2.9rem, 7vw, 6.4rem); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p:first-of-type { max-width: 36rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.24rem); }
.button { display: inline-flex; align-items: center; min-height: 48px; margin-top: 1.65rem; padding: .65rem 1.2rem; color: var(--white); background: var(--clay); border-radius: .35rem; font-weight: 700; text-decoration: none; transition: background-color .16s, transform .16s; }
.button:hover { background: var(--clay-dark); }
.button:active { transform: translateY(2px); }
.platforms { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.preview { display: grid; justify-items: center; gap: .65rem; }
.ledger { width: 100%; padding: clamp(1.25rem, 3.5vw, 2.4rem); background: var(--white); border: 1px solid var(--rule); border-top: .32rem solid var(--clay); border-radius: .6rem; box-shadow: 0 1.35rem 2.5rem #43281d16; }
.ledger-head { display: flex; align-items: center; gap: .65rem; font-weight: 650; }
.ledger-total { margin: 1.25rem 0; padding: .9rem 0; border-block: 1px solid var(--rule); }
.ledger-total span, .ledger-row small { display: block; color: var(--muted); }
.ledger-total strong { display: block; color: var(--green); font: 600 clamp(2.4rem, 5vw, 4rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.ledger-progress, .ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
meter { display: block; width: 100%; height: .85rem; margin: .45rem 0 1.25rem; accent-color: var(--green); }
meter::-webkit-meter-bar { border: 0; border-radius: .15rem; background: var(--pale-green); }
meter::-webkit-meter-optimum-value { background: var(--green); }
.ledger h2 { font-size: 1.25rem; }
.ledger-row { padding-top: .5rem; margin-top: .5rem; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.ledger-row small { font-size: .875rem; }
figcaption { display: flex; width: 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 .75rem; color: var(--muted); font-size: .875rem; }
.replay { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--clay-dark); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.replay:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.preview { perspective: 1000px; }
.ledger { transform-origin: 50% 85%; }
.ledger-total strong { transform-origin: left center; }
.features { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.features h2, .access h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); margin-top: 2rem; }
.feature-grid > div { border-top: 2px solid var(--clay); padding-top: .9rem; }
.feature-grid h3 { font-size: 1.35rem; }
.feature-grid p { color: var(--muted); margin-top: .3rem; }
.access { background: var(--green); color: var(--white); padding-block: clamp(2.5rem, 7vw, 5rem); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 8vw, 7rem); }
.access p { max-width: 32rem; margin-top: 1rem; }
.access ol { margin: 0; padding-left: 1.5rem; }
.access li { padding: .75rem .2rem; border-bottom: 1px solid #fff9ef55; }
.access li::marker { color: var(--gold); font-weight: 700; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; color: var(--muted); }
@media (max-width: 760px) {
  .hero, .access-grid { grid-template-columns: 1fr; gap: 2rem; }
  .preview { width: min(100%, 30rem); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 420px) {
  .wrap, .masthead { width: calc(100% - 2rem); }
  .masthead { flex-wrap: wrap; padding-block: .75rem; gap: .2rem .8rem; }
  .hero { padding-top: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:active { transform: none; }
}
