@font-face { font-family: "Russo One"; src: url("/fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #121212;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: rgba(255, 247, 215, 0.12);
  --text: #fff7d7;
  --muted: #c9c0a2;
  --yellow: #f6ca2f;
  --yellow-text: #f6ca2f;
  --on-yellow: #0a0a0a;
  --micro: #f28c28;
  --open: #9b6bff;
  --radius: 14px;
  --display: "Russo One", "Arial Black", sans-serif;
  --body: "Barlow", ui-sans-serif, system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff7d7;
  --bg-2: #fbefc4;
  --surface: #fffdf2;
  --surface-2: #f6ebc4;
  --line: rgba(10, 10, 10, 0.14);
  --text: #141310;
  --muted: #5a5440;
  --yellow-text: #7a5a00;
  --micro: #b35a00;
  --open: #6a35d6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 48px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--on-yellow); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--yellow-text); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 9px; background: currentColor; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.lede { color: var(--muted); font-size: 1.2rem; max-width: 640px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; }
.brand img { width: 40px; height: 46px; }
.brand b { color: var(--yellow-text); font-weight: 400; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; }
.control { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 0.9rem var(--body); text-decoration: none; cursor: pointer; }
.control:hover { border-color: var(--yellow); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.button:hover { border-color: var(--yellow); }
.button.primary { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.button.primary:hover { filter: brightness(1.06); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-62deg, transparent 0 46px, color-mix(in srgb, var(--yellow) 7%, transparent) 46px 48px); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 span { color: var(--yellow-text); }
.hero .actions { margin-top: 32px; }

.osd { position: relative; aspect-ratio: 4 / 4.2; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--yellow) 22%, transparent), transparent 62%), var(--bg-2); border: 1px solid var(--line); font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text); }
.osd img { width: 64%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.osd span { position: absolute; padding: 4px 8px; border-radius: 6px; background: rgba(10, 10, 10, 0.55); color: #fff7d7; }
.osd .tl { top: 16px; left: 16px; } .osd .tr { top: 16px; right: 16px; } .osd .bl { bottom: 16px; left: 16px; } .osd .br { bottom: 16px; right: 16px; color: #f6ca2f; }
.osd::before, .osd::after { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--yellow); }
.osd::before { top: 50px; left: 50px; border-right: 0; border-bottom: 0; }
.osd::after { bottom: 50px; right: 50px; border-left: 0; border-top: 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card p { color: var(--muted); }
.card img { width: 72px; }
.card .link { margin-top: 4px; color: var(--yellow-text); font-weight: 700; text-decoration: none; }
.card .link:hover { text-decoration: underline; }
.tag { width: fit-content; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.class { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--class, var(--yellow)); border-radius: var(--radius); background: var(--surface); }
.class h3 { color: var(--class, var(--yellow-text)); }
.class ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.class p { color: var(--muted); margin-top: 8px; }
.class.micro { --class: var(--micro); } .class.spec { --class: var(--open); }
.note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* Season */
.season { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 40px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--display); color: var(--yellow-text); }
.timeline strong { display: block; font-size: 1.1rem; }
.timeline span { color: var(--muted); }
.timeline a { color: var(--yellow-text); font-weight: 700; }
.poster { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.poster figcaption { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; background: var(--surface); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; font-family: var(--display); font-size: 2rem; color: var(--yellow-text); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

.rules { columns: 2; column-gap: 40px; margin: 0; padding-left: 20px; color: var(--muted); }
.rules li { margin-bottom: 10px; break-inside: avoid; }

/* Community */
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.links { display: grid; gap: 10px; }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 700; }
.links a span { color: var(--muted); font-weight: 400; }
.links a:hover { border-color: var(--yellow); }
.allies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.allies li { list-style: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.allies { padding: 0; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .season, .community { grid-template-columns: 1fr; }
  .osd { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .classes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand span { display: none; }
  .class { grid-template-columns: 64px 1fr; padding: 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .rules { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
