/* La Salle Lacrosse — Crease Club
   Palette: navy + gold (school colors) on a cool field-paper grey.
   Gold is only ever used on navy (or as a fill behind navy text) so contrast holds. */

:root {
  --navy: #10284a;
  --navy-deep: #0a1a31;
  --gold: #f2c14e;
  --gold-ink: #7a5300;      /* gold-family text on light backgrounds */
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #142033;
  --muted: #4a5668;
  --line: #c9d1dc;
  --on-navy: #ffffff;
  --on-navy-muted: #c6d0de;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --focus: 3px solid var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
.band-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.band-light :focus-visible, main > section:not(.band-navy) :focus-visible { outline-color: var(--navy); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: 1.25rem; color: var(--muted); }
.band-navy .lede { color: var(--on-navy-muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy-deep); font-weight: 700;
  padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-deep); color: var(--on-navy); border-bottom: 4px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--on-navy-muted); margin-top: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 1rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--on-navy-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
@media (max-width: 760px) {
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .site-nav a { justify-content: center; padding: 0 6px; }
}

/* ---------- Hero (home) — the one loud moment: the crease ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.hero-crease {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(66vw, 760px); right: max(-20vw, -240px); top: 50%; transform: translateY(-50%);
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(3.1rem, 13vw, 10.5rem); font-weight: 900; text-transform: uppercase;
  line-height: 0.86; letter-spacing: -0.01em;
}
.hero h1 span { display: block; }
.hero h1 .h1-gold { color: var(--gold); }
.hero .champs { margin-top: 28px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--white); }
.hero .lede { margin-top: 10px; max-width: 46ch; color: var(--on-navy-muted); }

.next-up {
  margin-top: 40px; max-width: 560px; background: var(--navy-deep); border-left: 6px solid var(--gold);
  padding: 18px 22px; display: grid; gap: 4px;
}
.next-up h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--on-navy-muted); }
.next-up .nu-title { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; }
.next-up .nu-meta { color: var(--on-navy-muted); }
.next-up a { color: var(--gold); font-weight: 600; }
@media (max-width: 700px) {
  .hero-crease { width: 130vw; right: -62vw; top: auto; bottom: -48vw; transform: none; opacity: .7; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-crease circle.ring { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s 0.15s cubic-bezier(.4,0,.2,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--on-navy); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; line-height: 0.92; }
.page-head .lede { margin-top: 14px; color: var(--on-navy-muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 2px solid var(--line); }
.section.band-navy { background: var(--navy); color: var(--on-navy); border-top: 0; }
.section.band-white { background: var(--white); }
.section-head { margin-bottom: 28px; }
.section-head .lede { margin-top: 10px; }

/* ---------- Doors (home): who you are → where to go ---------- */
.doors { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--navy); }
.door { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 12px 40px; padding: 28px 0; border-bottom: 2px solid var(--line); }
.door h3 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; }
.door h3 a { color: var(--navy); text-decoration: none; }
.door h3 a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.door p { color: var(--muted); }
.door ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.door ul a { font-weight: 600; display: inline-block; padding-block: 10px; }
@media (max-width: 680px) { .door { grid-template-columns: 1fr; padding: 22px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--navy); color: var(--white); border: 2px solid var(--navy);
}
.btn:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: #ffd36e; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.band-navy .btn-outline { color: var(--white); border-color: var(--white); }
.band-navy .btn-outline:hover { background: var(--white); color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Schedule ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-bottom: 8px; }
.toggle { display: inline-flex; border: 2px solid var(--navy); }
.toggle button {
  font: inherit; font-weight: 600; font-size: 1rem; min-height: 44px; padding: 0 16px;
  background: var(--white); color: var(--navy); border: 0; cursor: pointer;
}
.toggle button + button { border-left: 2px solid var(--navy); }
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.status { color: var(--muted); font-size: 1rem; }

.month { margin-top: 40px; }
.month h2 { font-size: 2rem; padding-bottom: 8px; border-bottom: 4px solid var(--navy); }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 84px 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ev-date { font-family: var(--font-display); line-height: 1; }
.ev-date .d { display: block; font-size: 2.25rem; font-weight: 800; color: var(--navy); }
.ev-date .w { display: block; font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); margin-top: 4px; }
.ev-title { font-weight: 700; font-size: 1.2rem; }
.ev-title .vs { font-weight: 400; color: var(--muted); }
.ev-meta { color: var(--muted); font-size: 1rem; }
.ev-note { font-size: 1rem; margin-top: 2px; }
.ev-team { font-size: 0.95rem; font-weight: 600; color: var(--navy); border: 2px solid var(--navy); padding: 2px 10px; white-space: nowrap; }
.ev.is-game .ev-date .d { color: var(--navy); }
.ev.is-game { box-shadow: inset 6px 0 0 var(--gold); padding-left: 16px; }
.ev.is-today { background: #fff7dc; }
.flag { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--gold-ink); }
@media (max-width: 600px) {
  .ev { grid-template-columns: 64px 1fr; }
  .ev-team { grid-column: 2; justify-self: start; margin-top: 6px; }
  .ev-date .d { font-size: 1.9rem; }
}
.js .ev[hidden], .month[hidden] { display: none; }
.empty { padding: 28px; background: var(--white); border-left: 6px solid var(--navy); }
.empty h3 { margin-bottom: 6px; }

.legend { font-size: 1rem; color: var(--muted); margin-top: 12px; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.legend .swatch { display: inline-block; width: 14px; height: 14px; background: var(--gold); vertical-align: -2px; margin-right: 6px; }

/* ---------- Roster ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.squad { margin-top: 48px; scroll-margin-top: 16px; }
.squad h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.squad h2 small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); }
table.roster { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--white); font-size: 1.05rem; }
table.roster caption { text-align: left; }
table.roster th, table.roster td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.roster thead th { background: var(--navy); color: var(--white); font-weight: 700; font-size: 1rem; }
table.roster tbody th { font-weight: 600; }
table.roster tbody tr:nth-child(even) { background: #f7f9fb; }
.table-scroll { overflow-x: auto; }
@media (max-width: 520px) { table.roster th, table.roster td { padding: 12px 8px; } table.roster { font-size: 1rem; } }

/* ---------- Content blocks ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.ruled-list { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--navy); }
.ruled-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ruled-list strong { display: block; font-size: 1.15rem; }
.ruled-list span { color: var(--muted); }
.band-navy .ruled-list { border-top-color: var(--gold); }
.band-navy .ruled-list li { border-bottom-color: rgba(255,255,255,0.22); }
.band-navy .ruled-list span { color: var(--on-navy-muted); }
.band-navy a:not(.btn) { color: var(--gold); }

ol.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.timeline li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
ol.timeline li::before {
  content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--navy); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy);
}
ol.timeline .t-when { color: var(--muted); font-size: 1rem; }
ol.timeline .t-what { font-weight: 700; font-size: 1.15rem; }

.store { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 4px solid var(--navy); }
.item { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.item h3 { font-size: 1.7rem; }
.item .price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-top: 2px; }
.item p { color: var(--muted); margin-top: 6px; font-size: 1rem; }

.callout { background: var(--gold); color: var(--navy-deep); padding: clamp(28px, 4vw, 44px); }
.callout h2 { color: var(--navy-deep); }
.callout p { margin-top: 10px; }
.callout .btn { margin-top: 20px; }

.note { font-size: 1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); border-top: 4px solid var(--gold); }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; font-size: 1rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding-block: 6px; }
.site-footer a { color: var(--white); }
.site-footer .foot-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .ev.is-game { border-left: 6px solid CanvasText; box-shadow: none; } .toggle button[aria-pressed="true"] { outline: 3px solid Highlight; } }
@media print { .site-header, .site-footer, .controls, .hero-crease { display: none; } body { background: #fff; } }

/* WCAG 2.2 target size for standalone links */
.next-up p a, .site-footer p a { display: inline-block; padding-block: 10px; }
