:root {
  --paper: #f9efda;
  --card: #fff9eb;
  --ink: #251b16;
  --muted: #594337;
  --red: #8b281e;
  --dark: #221c18;
  --gold: #f8dfa0;
  --line: #cfba99;
  font: 18px/1.57 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: #762419; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #a64b23; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1100px; width: calc(100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 2; background: var(--card); padding: .6rem; }
.skip:focus { top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mast, footer { background: var(--dark); color: var(--gold); }
.mast { border-bottom: 4px solid var(--red); }
.mast-inner, .brand, nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.mast-inner { justify-content: space-between; padding-block: .6rem; }
.brand { flex-wrap: nowrap; font: bold 1.35rem Georgia, serif; text-decoration: none; }
.brand img { border-radius: 50%; }
.mast a, footer a { color: var(--gold); }
.mast nav a, footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
main { padding-block: clamp(1.3rem, 4vw, 3rem) 3rem; }
footer { padding-block: 1.5rem; }
h1, h2, h3, .year-card strong { font-family: Georgia, serif; line-height: 1.12; }
h1 { font-size: clamp(2rem, 6vw, 3.7rem); margin: 0 0 .7rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); margin: 0 0 .65rem; }
p { margin: 0 0 .8rem; }
section { margin-top: 2.15rem; }
.panel, .year-card, .product { padding: clamp(.9rem, 3vw, 1.5rem); border: 1px solid var(--line); background: var(--card); }
.panel { border-top: 4px solid var(--red); }
.hero { width: 100%; display: block; border: 1px solid var(--dark); }
.home-grid, .card-grid, .product-grid { display: grid; gap: 1rem; }
.home-grid { grid-template-columns: 1.2fr 1fr; margin-top: 1rem; }
.home-grid section { margin: 0; }
.feature { background: var(--red); color: var(--card); border-color: var(--red); }
.feature .kicker { color: var(--gold); }
.feature .button { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.card-grid, .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.year-card { color: var(--ink); }
.year-card strong { font-size: 2.1rem; display: block; color: var(--red); }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intro { max-width: 65ch; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .47rem .8rem; border: 2px solid var(--red); border-radius: 4px; text-decoration: none; color: var(--red); background: var(--card); font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { text-decoration: underline; }
.button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--red); color: white; }
.actions, .form-row, .race-controls { display: flex; gap: .55rem; flex-wrap: wrap; }
.jump { margin-block: 1rem; gap: .45rem; }
.song { margin-block: 1rem; scroll-margin-top: .75rem; }
.song-heading { display: flex; gap: .8rem; align-items: flex-start; }
.song-heading h2 { margin-bottom: .2rem; }
.rank { min-width: 3rem; padding: .27rem .45rem; text-align: center; background: var(--dark); color: var(--gold); font-weight: 800; border-radius: 4px; }
.version, .credit, .artist { color: var(--muted); }
.version { margin-top: .6rem; }
.song-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid var(--line); margin-top: .65rem; }
.song-footer a { display: inline-flex; align-items: center; min-height: 48px; }
.video summary, details summary { cursor: pointer; padding-block: .55rem; color: var(--red); width: fit-content; }
.video-box { max-width: 480px; }
.video-load { display: grid; position: relative; width: 100%; color: white; background: var(--dark); border: 0; padding: 0; cursor: pointer; font: inherit; }
.video-load img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.video-load span { position: absolute; bottom: .5rem; left: .5rem; padding: .4rem .7rem; background: var(--dark); }
iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
.notice { padding: .6rem .9rem; background: #f5dfb0; border-left: 4px solid var(--red); font-weight: 700; }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 660px; }
td, th { padding: .55rem; text-align: left; border-bottom: 1px solid var(--line); }
thead { color: var(--gold); background: var(--dark); }
tbody tr:nth-child(even) { background: #f6e9d1; }
.artist { display: block; font-weight: normal; }
td a { display: inline-flex; min-width: 32px; min-height: 44px; align-items: center; justify-content: center; }
.race { padding: 1rem; background: var(--card); border: 1px solid var(--line); }
.race input { width: 100%; min-height: 44px; accent-color: var(--red); }
[data-date] { font-weight: 800; }
.race-bars { margin: 0; padding-left: 1.5rem; }
.race-bars li { margin-bottom: .65rem; }
.race-bars span { display: block; color: var(--muted); }
.bar { height: .45rem; background: var(--red); border-radius: 3px; transition: width .42s ease; }
input[type=email] { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: .5rem; border: 1px solid var(--muted); font: inherit; }
.signup-form { position: relative; }
.signup label { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.signup input[type=email] { flex: 1 1 16rem; min-height: 52px; padding: .65rem .75rem; border: 2px solid var(--muted); font-size: 1.15rem; }
.signup .button { font-size: 1.15rem; min-height: 52px; padding: .55rem 1rem; }
.signup-note, .privacy-note { color: var(--muted); font-size: 1.05rem; max-width: 45rem; }
.privacy-note { margin: .75rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: fixed; bottom: .6rem; right: .6rem; left: .6rem; max-width: 36rem; margin-left: auto; padding: 1rem; background: var(--card); border: 2px solid var(--red); z-index: 5; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1.2rem); }
  .mast-inner { gap: .1rem; }
  .home-grid { grid-template-columns: 1fr; }
  .actions .button { flex: 1 1 100%; }
  .hero { min-height: 105px; object-fit: contain; background: var(--dark); }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
