/* LIGHT MODE ONLY. No dark-mode media queries. Visual spec: Look, 2026-10-16 (VISUAL-SPEC.md). */
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --c-bg: #ffffff; --c-surface: #f4f5f7; --c-text: #0d1420; --c-muted: #5b6472; --c-border: #e3e6ea;
  --c-accent: #0b3d91; --c-accent-text: #fff; --c-focus: #b35c00;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-num: "Archivo", system-ui, sans-serif;
  --fs-base: 1.0625rem; --fs-h1: clamp(2.5rem, 9vw, 4.5rem); --fs-h2: 1.25rem; --fs-label: .75rem; --lh: 1.55;
  --space: 1rem; --radius: 10px; --maxw: 60rem;
  --section-gap: 3rem;
  --header-h: 49px; --anchor-gap: .75rem; /* sticky header height + breathing room for #hash targets */
}
@media (min-width: 48rem) { :root { --section-gap: 4.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--c-bg); }
body { margin: 0; font: 400 var(--fs-base)/var(--lh) var(--font-body); color: var(--c-text); background: var(--c-bg); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
p, li { max-width: 38rem; }
a { color: var(--c-accent); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--space); top: var(--space); background: var(--c-bg); padding: .5rem; z-index: 20; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
img, video, iframe, select, input, textarea { max-width: 100%; }
img { height: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.header-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space); display: flex; align-items: center; gap: var(--space); min-width: 0; }
.monogram { font: 800 1.125rem/1 var(--font-head); color: var(--c-text); text-decoration: none; white-space: nowrap; padding: .75rem 0; flex: none; }
#nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#nav::-webkit-scrollbar { display: none; }
/* Mobile: 24px white fade on the right edge signals sideways scroll */
.header-inner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; z-index: 1; pointer-events: none; background: linear-gradient(to right, transparent, var(--c-bg)); }
/* Mobile: nav scroller bleeds to the screen's right edge; header-inner clips and holds the fade pinned there, so links scroll under it */
@media (max-width: 47.999rem) {
  .header-inner { overflow: hidden; }
  #nav { overflow-x: auto; margin-right: calc(-1 * var(--space)); padding-right: 2rem; }
}
@media (min-width: 48rem) { .header-inner::after { display: none; } }
#nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 1.25rem; justify-content: flex-end; width: max-content; margin-left: auto; }
#nav li { max-width: none; }
#nav a { display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--c-muted); }
#nav a[aria-current="page"] { color: var(--c-text); text-decoration: underline 2px var(--c-accent); text-underline-offset: 6px; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: var(--space); }
section { margin-block: var(--section-gap); }
section + section { border-top: 1px solid var(--c-border); padding-top: 2rem; }
main > section:first-child { margin-top: 1.5rem; }

/* Hero */
.hero { position: relative; margin-top: 1.5rem; margin-bottom: var(--section-gap); }
.hero .facts { margin-bottom: 0; }
.hero .eyebrow { margin: 0 0 .5rem; }
.hero .eyebrow { white-space: normal; }
.hero .eyebrow .seg { white-space: nowrap; }
/* Wrapped: keep the first dot; drop only the dot before the city and break there */
.hero .eyebrow.wrapped .sep.brk { display: block; font-size: 0; }
.hero h1 { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .75rem; }
.badge { font: 800 1rem/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--c-accent-text); background: var(--c-accent); border-radius: 999px; padding: .35rem .6rem; letter-spacing: 0; align-self: center; }
.bignum { display: none; }
.hero .tagline { color: var(--c-muted); margin: .75rem 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: var(--radius); font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1px solid var(--c-accent); }
.btn-primary { background: var(--c-accent); color: var(--c-accent-text); }
.btn-secondary { background: var(--c-bg); color: var(--c-text); border-color: var(--c-border); }
@media (min-width: 48rem) {
  .badge { display: none; }
  .bignum { display: block; position: absolute; right: 0; top: -1rem; font: 800 8rem/1 var(--font-num); color: rgb(11 61 145 / .16); pointer-events: none; user-select: none; z-index: 0; }
}

/* Stat strip (also used for academics/contact facts) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space); margin: 1.5rem 0 0; }
.facts > div { border-top: 1px solid var(--c-border); padding: .75rem 0; min-width: 0; }
.facts dt { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.facts dd { margin: .25rem 0 0; font: 700 1.5rem/1.2 var(--font-num); font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: normal; }
.facts dd .ph { overflow-wrap: anywhere; }
.facts.text dd { font: 500 1rem/1.4 var(--font-body); }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Hero stat strip: 6 tiles, 2x3 on mobile, 3 cols from 48rem */
@media (min-width: 48rem) { .facts.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Game stat card (data/games.json): reuses .facts tiles; chip = team-rank badge, wraps instead of clipping */
.game > h2.label { font-family: var(--font-body); line-height: 1.4; margin: 0; }
.game-result { margin: .25rem 0 0; }
.game-result span { color: var(--c-muted); }
.game-headline { font: 600 1.125rem/1.4 var(--font-body); margin: .75rem 0 0; }
.facts dd.chip { display: inline-block; max-width: 100%; margin-top: .5rem; padding: .2rem .5rem; border-radius: 6px; font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: .02em; color: var(--c-accent); background: rgb(11 61 145 / .08); overflow-wrap: break-word; }
.facts dd.detail { margin-top: .35rem; font: 400 .875rem/1.4 var(--font-body); color: var(--c-muted); }
.facts.game-secondary { margin-top: 0; }
.game-secondary dd:not(.detail) { font-size: 1.125rem; }
.game-source { margin: 1rem 0 0; font-size: .875rem; color: var(--c-muted); }
/* #hash targets clear the sticky header */
main [id] { scroll-margin-top: calc(var(--header-h) + var(--anchor-gap)); }
/* section + section has a 2rem padding-top above its divider; offset it so the eyebrow (not the empty padding) lands just below the header */
main section + section[id] { scroll-margin-top: calc(var(--header-h) + var(--anchor-gap) - 2rem); }
/* Card link: 44px tap height, same look (inline underlined link) */
.game-link { margin: .5rem 0 0; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }

/* Video / film */
figure { margin: 0; min-width: 0; }
video { display: block; width: 100%; height: auto; background: #000; border-radius: var(--radius); }
figcaption { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; min-width: 0; }
figcaption strong { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
figcaption time { color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
figcaption .desc { flex-basis: 100%; color: var(--c-muted); }
.filter { display: grid; gap: .25rem; min-width: 0; flex: 0 1 12rem; }
.filter label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
select { font: inherit; font-size: .9375rem; width: 100%; height: 44px; padding: 0 .5rem; border: 1px solid var(--c-muted); border-radius: 8px; background: #fff; color: var(--c-text); }
#film-status { color: var(--c-muted); font-size: .875rem; }

/* Buttons & forms */
button { font: 600 1rem/1 var(--font-body); padding: 0 1.25rem; min-height: 48px; background: var(--c-accent); color: var(--c-accent-text); border: 0; border-radius: var(--radius); cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
form { display: grid; gap: .75rem; max-width: 36rem; }
label { font-weight: 600; }
input, textarea { font: inherit; padding: .6rem; border: 1px solid var(--c-muted); border-radius: 8px; width: 100%; background: #fff; color: var(--c-text); }

/* Tables: hairlines only */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 0; border-bottom: 1px solid var(--c-border); padding: .6rem .5rem .6rem 0; text-align: left; overflow-wrap: anywhere; }
th { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 37.49rem) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border-bottom: 1px solid var(--c-border); padding: .75rem 0; }
  table.stack td { border: 0; padding: .15rem 0; }
  table.stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--c-muted); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: .875rem; text-align: center; padding: 1.5rem 0; }
.site-footer p { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space); }
@media (min-width: 48rem) { .site-footer { text-align: left; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Headshot + CHSL photos (Lexi Site, 2026-11-03) */
.hero { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr minmax(12rem, 18rem); align-items: start; }
}
.hero .headshot { width: 100%; max-width: 18rem; height: auto; border-radius: .5rem; object-fit: cover; justify-self: end; }
.hero-copy { min-width: 0; }
.photos .photo-strip { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .photos .photo-strip { grid-template-columns: 1fr 1fr; }
}
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; border-radius: .5rem; display: block; }
.photos figcaption { margin-top: .5rem; color: var(--c-muted); font-size: .9rem; }
/* Flipbooks sprinkled into the Photos strip share the same cell look. */
.photos figure.flipbook { width: 100%; }
.photos .flipbook-frames { border-radius: .5rem; border: none; background: transparent; }
.photos .flipbook figcaption { margin-top: .5rem; color: var(--c-muted); font-size: .9rem; }

/* Flipbook sequences (standalone section, unused on Home). Light mode only. */
.sequences .muted { color: var(--c-muted); margin-top: 0; }
.sequence-list { display: grid; gap: var(--space); }
.flipbook { margin: 0; }
.flipbook:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: var(--radius); }
.flipbook-frames { position: relative; width: 100%; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.flipbook-frame { position: absolute; inset: 0; visibility: hidden; }
.flipbook-frame.is-active { visibility: visible; }
.flipbook-frame img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.flipbook figcaption span { color: var(--c-muted); font-size: .9375rem; }

/* 2026 film: hero + skill grid */
.film-card { margin: 0; }
.film-hero { margin: 0 0 1rem; }
.film-card video { aspect-ratio: 16 / 9; object-fit: contain; }
.film-card figcaption strong { font-size: 1.05rem; }
.film-hero figcaption strong { font-size: 1.25rem; }
.film-grid { display: grid; gap: 1.5rem var(--space); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Schedule event links: accent color, underline, 44px tap height */
.event-link { color: var(--c-accent); text-decoration: underline; text-underline-offset: .15em; display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.event-link:hover { text-decoration-thickness: 2px; }

/* 2026 season highlights on Stats: reuse heading, tagline, and table styles */
.season-hl .tagline { color: var(--c-muted); margin: 0 0 1rem; }
.season-hl h3 { font-size: var(--fs-h2); font-weight: 700; margin: 1.5rem 0 .75rem; }
.season-hl td:last-child { font-variant-numeric: tabular-nums; }
/* Mobile: compact stat cards (no repeated column labels). Desktop table is unchanged. */
.stat-cards-list { display: none; }
@media (max-width: 37.49rem) {
  .season-hl .table-wrap { display: none; }
  .stat-cards-list {
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .stat-card {
    margin: 0;
    padding: .85rem 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--c-surface);
    border-radius: var(--radius);
  }
  .stat-card-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }
  .stat-card .stat-name {
    font-weight: 700;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--c-text);
  }
  .stat-card .stat-value {
    flex: 0 0 auto;
    font-family: var(--font-num);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--c-text);
  }
  .stat-card .stat-rank {
    margin: .15rem 0 0;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--c-muted);
  }
}
