:root {
  --ink: #102a43;
  --paper: #f5fbff;
  --cream: #e5f4fc;
  --lime: #f6c453;
  --green: #2f91c2;
  --line: rgba(16, 42, 67, 0.14);
  --muted: #667d8f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; }
button, a { font: inherit; }
button { color: inherit; }
.shell { width: min(1380px, calc(100% - 64px)); margin-inline: auto; }

.hero { min-height: 780px; position: relative; overflow: hidden; color: #fff; background: #0b2942; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 11px; background: linear-gradient(90deg, #75c5eb 0 40%, #fff 40% 60%, #75c5eb 60% 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.nav { height: 94px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand { color: inherit; text-decoration: none; display: flex; gap: 12px; align-items: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; color: var(--ink); background: var(--lime); font: 500 12px "DM Mono"; }
.nav-link { color: rgba(255,255,255,.7); font-size: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; }
.hero-content { position: relative; z-index: 1; padding-top: 100px; }
.eyebrow, .kicker, .drawer-kicker { font: 500 11px "DM Mono"; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow { color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--lime); }
h1 { max-width: 850px; margin: 28px 0 24px; font-size: clamp(72px, 9.7vw, 148px); line-height: .82; letter-spacing: -.075em; font-weight: 600; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { width: min(520px, 55%); color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.7; }
.hero-meta { display: flex; gap: 68px; margin-top: 66px; }
.hero-meta div { display: flex; flex-direction: column; gap: 5px; }
.hero-meta strong { color: var(--lime); font: 500 24px "DM Mono"; }
.hero-meta span { color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hero-ball { position: absolute; z-index: 0; right: -8vw; bottom: -25vw; width: min(52vw, 750px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(117,197,235,.32); box-shadow: 0 0 0 6vw rgba(117,197,235,.035), inset 0 0 130px rgba(117,197,235,.11); }
.hero-ball::before, .hero-ball::after { content: ""; position: absolute; border: 1px solid rgba(117,197,235,.2); border-radius: 50%; }
.hero-ball::before { width: 62%; height: 62%; }
.hero-ball::after { width: 30%; height: 30%; }
.hero-ball span { color: rgba(246,196,83,.18); font: 600 12vw "DM Mono"; }

.calendar-section { padding-block: 120px 110px; }
.section-head { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 50px; margin-bottom: 56px; }
.kicker { color: var(--green); margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -.055em; }
.section-head > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.toolbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid var(--line); }
.filter-group { display: flex; gap: 6px; }
.filter { padding: 9px 15px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; }
.filter.active { color: white; background: var(--ink); }
.legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 400 9px "DM Mono"; text-transform: uppercase; }
.legend i { width: 13px; height: 13px; border-radius: 3px; }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.month { padding: 19px; background: rgba(255,255,255,.38); border: 1px solid var(--line); }
.month-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.month h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.month-count { color: var(--muted); font: 400 9px "DM Mono"; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { position: relative; min-width: 0; aspect-ratio: 1; border: 0; border-radius: 4px; color: #8395a3; background: rgba(16,42,67,.05); font: 400 9px "DM Mono"; cursor: default; transition: transform .16s ease, outline-color .16s ease; }
.day.scored { color: white; cursor: pointer; }
.day.scored:hover, .day.scored:focus-visible { z-index: 1; transform: scale(1.14); outline: 2px solid var(--ink); outline-offset: 2px; }
.day.level-1, .level-1 { background: #9bd5ef; }
.day.level-2, .level-2 { background: #55add8; }
.day.level-3, .level-3 { background: #237da9; }
.day.level-4, .level-4 { color: #fff3c4; background: #0b466c; }
.level-0 { background: rgba(16,42,67,.07); }
.leap-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; }
.leap-note span { display: inline-block; padding: 5px 7px; margin-right: 8px; color: var(--ink); background: var(--lime); font: 500 9px "DM Mono"; }

.record { display: grid; grid-template-columns: .55fr .7fr 1.3fr; gap: 40px; padding-block: 80px; border-top: 1px solid var(--line); }
.record-label { font: 500 10px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; }
.record-date { color: var(--green); font-size: clamp(76px, 9vw, 130px); line-height: .75; letter-spacing: -.08em; }
.record h2 { margin: 0 0 20px; max-width: 530px; font-size: 31px; letter-spacing: -.035em; }
.record h2 span { color: var(--green); }
.record p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-button { padding: 0 0 7px; border: 0; border-bottom: 1px solid var(--ink); background: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.text-button span { margin-left: 18px; }
.sources { padding-block: 50px 70px; display: grid; grid-template-columns: .4fr .9fr 1fr; gap: 32px; border-top: 1px solid var(--line); font-size: 11px; }
.sources > p:first-child { margin: 0; font: 500 10px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; }
#source-links { display: flex; flex-direction: column; gap: 8px; }
#source-links a { color: inherit; text-underline-offset: 4px; }
.sources-note { margin: 0; color: var(--muted); line-height: 1.6; }

.overlay { position: fixed; z-index: 10; inset: 0; background: rgba(3,10,7,.6); backdrop-filter: blur(4px); }
.drawer { position: fixed; z-index: 11; top: 0; right: 0; width: min(560px, 100%); height: 100dvh; overflow-y: auto; padding: 54px 48px; transform: translateX(102%); transition: transform .35s cubic-bezier(.2,.8,.2,1); background: var(--paper); box-shadow: -30px 0 80px rgba(0,0,0,.2); }
.drawer.open { transform: translateX(0); }
.close { position: absolute; top: 24px; right: 28px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; font-size: 26px; line-height: 1; }
.drawer-kicker { margin: 36px 0 14px; color: var(--green); }
.drawer h2 { margin: 0; font-size: 52px; letter-spacing: -.055em; text-transform: capitalize; }
.drawer-summary { display: flex; align-items: center; gap: 18px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.drawer-summary strong { color: var(--green); font: 500 52px "DM Mono"; }
.drawer-summary span { max-width: 120px; color: var(--muted); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.drawer-list { padding-top: 14px; }
.match { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.match-year { font: 500 12px "DM Mono"; }
.match-main strong { display: block; font-size: 14px; }
.match-main span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.match-score { font: 500 13px "DM Mono"; }
.match-badge { display: inline-block; margin-top: 8px; padding: 4px 6px; color: var(--green); background: rgba(47,145,194,.11); font: 500 8px "DM Mono"; text-transform: uppercase; }

@media (max-width: 1050px) {
  .calendar { grid-template-columns: repeat(3, 1fr); }
  .record { grid-template-columns: .5fr .6fr 1fr; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 620px); }
  .hero { min-height: 720px; }
  .nav { height: 76px; }
  .hero-content { padding-top: 78px; }
  h1 { font-size: clamp(67px, 23vw, 105px); }
  .hero-copy { width: 100%; max-width: 470px; }
  .hero-meta { gap: 26px; flex-wrap: wrap; margin-top: 52px; }
  .hero-ball { right: -35vw; bottom: -5vw; width: 90vw; }
  .calendar-section { padding-block: 82px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .toolbar { padding-block: 14px; align-items: flex-start; flex-direction: column; }
  .calendar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .month { padding: 13px; }
  .days { gap: 3px; }
  .record { grid-template-columns: 1fr; gap: 28px; }
  .record-date { font-size: 100px; }
  .sources { grid-template-columns: 1fr; }
  .drawer { padding: 44px 24px; }
}
@media (max-width: 430px) {
  .calendar { grid-template-columns: 1fr; }
  .month { padding: 18px; }
  .day { font-size: 10px; }
  .hero-meta { display: grid; grid-template-columns: repeat(2, max-content); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
