/* Neutral grayscale by default. The accent is the only color, and visitors can switch it. */
:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --text: #181818;
  --muted: #5b5b5b;
  --line: #dcdcdc;
  --accent: #2a2a2a;
  --accent-ink: #ffffff;
  --accent-soft: #ececec;
  --radius: 14px;
  --max: 68rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="navy"]    { --accent: #1f3a68; --accent-soft: #e6ebf3; }
[data-theme="royal"]   { --accent: #1d4fbf; --accent-soft: #e6edfa; }
[data-theme="crimson"] { --accent: #b3202a; --accent-soft: #f7e7e8; }
[data-theme="maroon"]  { --accent: #7a1f2b; --accent-soft: #f3e6e8; }
[data-theme="orange"]  { --accent: #b8470f; --accent-soft: #f8ebe3; }
[data-theme="forest"]  { --accent: #1f5a3a; --accent-soft: #e5f0ea; }
[data-theme="purple"]  { --accent: #5b2a86; --accent-soft: #eee6f5; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246,246,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; min-height: 3.5rem; padding-top: .35rem; padding-bottom: .35rem; }
.brand { font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .35rem 0; }
.nav a:hover { color: var(--text); }
.menu-toggle { display: none; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .85rem; margin-left: auto; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.menu-toggle:hover { background: var(--accent-soft); }
.menu-icon { position: relative; width: 1.15rem; height: .9rem; display: block; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 50%; margin-top: -1px; }
.menu-icon span:nth-child(3) { top: 100%; margin-top: -2px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 50%; margin-top: -1px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 50%; margin-top: -1px; transform: rotate(-45deg); }
.themes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem; }
.themes::before { content: "School colors"; font-size: .75rem; color: var(--muted); margin-right: .35rem; }
.swatch {
  width: 1.75rem; height: 1.75rem; padding: 0; border-radius: 50%;
  border: 2px solid transparent; background: none; cursor: pointer; display: grid; place-items: center;
}
.swatch span { width: 1.1rem; height: 1.1rem; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch:hover { border-color: var(--line); }
.swatch[aria-pressed="true"]:hover { border-color: var(--text); }

/* Hero */
.hero { padding: 3rem 0 2.25rem; background: var(--surface); border-bottom: 1px solid var(--line); border-top: 4px solid var(--accent); }
.eyebrow { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.sub { margin: .85rem 0 1.75rem; color: var(--muted); font-size: 1.1rem; }

.video { width: 100%; max-width: 52rem; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; position: relative; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video[hidden] { display: none; }
.video.preview { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ececec, #ececec 14px, #e4e4e4 14px, #e4e4e4 28px); color: #444; text-align: center; padding: 1rem; }
.video.preview strong { display: block; font-size: 1.15rem; }
.video.preview small { display: block; margin-top: .35rem; color: #666; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid var(--accent);
  color: var(--accent); background: transparent; font-weight: 600; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.12); }

/* Quick facts */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0; margin: 0; }
.facts dl > div { padding: 1.1rem 1rem; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }

/* Blocks */
.block { padding: 3.25rem 0; }
.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 .75rem; font-size: 1.75rem; letter-spacing: -.02em; }
h2::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--accent); margin-top: .5rem; border-radius: 2px; }
.lede { color: var(--muted); margin-top: 0; }
.list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.list li { padding: .85rem 1rem; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; }
.block.alt .list li { background: var(--bg); }
.mail { font-size: 1.35rem; font-weight: 600; margin: .5rem 0 1rem; word-break: break-all; }

.site-footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: .2rem 0; }
.site-footer .small { font-size: .85rem; }
.site-footer a { display: inline-block; padding: .6rem 0; }
.nf { font-size: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .hero { padding: 2rem 0 1.75rem; }
  .block { padding: 2.5rem 0; }
  .facts dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
/* Mobile navigation: at 768px and below the section links collapse into a Menu button.
   The School colors picker is hidden on these sizes. Without JavaScript the links simply show in a row. */
@media (max-width: 768px) {
  .themes { display: none; }
  .brand { margin-right: 0; }
  .nav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 .25rem; }
  html.js .menu-toggle { display: inline-flex; }
  html.js .bar { position: relative; flex-wrap: wrap; }
  html.js .menu-toggle { flex-shrink: 0; }
  html.js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: .35rem 1.25rem .75rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  html.js .nav.open { display: flex; }
  html.js .nav a { font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--line); padding: 0 .25rem; }
  html.js .nav a:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu-icon span { transition: none; } }
@media print {
  .site-header, .cta, .video, .themes, .skip, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .hero { border-top: 0; }
}

/* Draft placeholders. Everything here is temporary and is blocked from publishing by the Pages workflow. */
.draft-banner { background: #fff3c4; color: #3d2e00; border-bottom: 1px solid #d6bd4a; padding: .6rem 1.25rem; text-align: center; font-size: .95rem; line-height: 1.4; }
.ph-badge { display: inline-block; background: #fff3c4; color: #3d2e00; border: 1px solid #d6bd4a; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .45rem; vertical-align: middle; line-height: 1.4; }
h2 .ph-badge { margin-left: .5rem; font-size: .68rem; }
.ph { outline: 2px dashed #a8902a; outline-offset: 6px; border-radius: 6px; }
.ph-text { color: #5a4600; font-style: italic; }
.ph-note { margin: .75rem 0 0; color: #5a4600; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: .75rem; margin: 1rem 0 .75rem; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: .9rem 1rem; }
.block.alt .stats > div { background: var(--bg); }
.stats dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.quote { margin: 1rem 0 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--bg); font-size: 1.15rem; }
.quote p { margin: 0 0 .6rem; }
.quote footer { font-size: .95rem; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.photo { margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 16rem; display: grid; place-items: center; text-align: center; padding: 1rem; background: #ececec; color: #444; border-radius: var(--radius); }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .photo { max-width: 14rem; } }
@media print { .draft-banner { display: none; } }

/* Tablet widths: the School colors label would wrap the header, so only the swatches show. The group keeps its accessible name. */
@media (min-width: 769px) and (max-width: 960px) { .themes::before { display: none; } }

/* Long words wrap instead of forcing sideways scrolling at large text sizes. */
h1, h2, h3, .stats dt, .stats dd, .list li, .quote, .mail { overflow-wrap: break-word; }

/* Highlights: two videos side by side on wider screens, stacked on phones. */
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin: 1.25rem 0 1.75rem; }
.hl h3 { margin: 0 0 .65rem; font-size: 1.1rem; letter-spacing: -.01em; overflow-wrap: break-word; }
.hl .video { max-width: none; margin: 0 0 .5rem; }
.hl-link { margin: 0; }
.hl-link a { display: inline-block; padding: .55rem 0; }
@media (max-width: 768px) { .highlights { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* Coming soon page shown at the site root until launch. */
.soon { min-height: 100vh; padding: 5rem 0; background: var(--surface); border-top: 4px solid var(--accent); }
.soon .sub { margin-bottom: 1.25rem; }
.soon .lede { margin: 0 0 1.75rem; font-size: 1.15rem; }
