/* =====================================================================
 SENIOR HUB — STYLES
 To change school colors, edit the two values marked below. Nothing else
 in this file needs to change from year to year.
 ===================================================================== */
:root {
  --blue: #163E8C;      /* SCHOOL COLOR 1  unslop-ignore */
  --blue-deep: color-mix(in srgb, var(--blue) 80%, black);
  --yellow: #F5C518;    /* SCHOOL COLOR 2  unslop-ignore */
  --paper: #FFFFFF;
  --ink: #101828;
  --ink-soft: #4A5568;
  --rule: #C9D3E8;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F1729; --ink: #EDF1F8; --ink-soft: #A9B4C8; --rule: #27334D; --blue: #2C5CC5; }
}
:root[data-theme="dark"] { --paper: #0F1729; --ink: #EDF1F8; --ink-soft: #A9B4C8; --rule: #27334D; --blue: #2C5CC5; }

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 17px; line-height: 1.5;
}
.display { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Nav: a solid blue bar, yellow underline marks hover */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blue-deep); color: #fff; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; }
nav .brand { color: #fff; text-decoration: none; font-size: 17px; }
nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
nav ul::-webkit-scrollbar { display: none; }
nav li a { color: #fff; text-decoration: none; font-size: 15px; white-space: nowrap; display: inline-block; padding: 4px 0; border-bottom: 3px solid transparent; line-height: 1.2; }
nav li a:hover { border-bottom-color: var(--yellow); }
nav .site-link { flex-shrink: 0; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; white-space: nowrap; }
nav .site-link:hover { background: #fff; }
nav .site-link[hidden] { display: none; }
@media (max-width: 720px) { nav .wrap { gap: 14px; } nav .site-link { font-size: 13px; padding: 6px 10px; } }

/* Hero: the date, as big as a banner across a gym */
.hero { background: var(--blue); color: #fff; padding: clamp(40px, 7vw, 80px) 0 0; }
.hero .school { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 0 0 6px; }
.hero h1 { font-size: clamp(52px, 11vw, 132px); color: var(--yellow); text-transform: uppercase; }
.hero .when { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 24px); }
.hero .countdown { display: flex; gap: clamp(14px, 3vw, 28px); }
.hero .countdown span { display: grid; justify-items: start; }
.hero .countdown b { font-size: clamp(28px, 4vw, 42px); color: var(--yellow); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.hero .countdown small { font-size: 14px; color: #fff; opacity: .85; margin-top: 2px; }
.hero .when span { color: #fff; }
.hero .band { margin-top: clamp(32px, 5vw, 56px); background: var(--yellow); color: var(--ink); }
.hero .band .wrap { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 14px clamp(20px, 4vw, 40px); font-size: 16px; }
.hero .band strong { font-weight: 700; }

/* Next up: three deadlines, plain and dense, like a program insert */
.nextup { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 4px solid var(--blue); }
.nextup h2 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.nextup ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.nextup li { padding: 12px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.nextup li b { color: var(--blue); font-size: 15px; line-height: 1.3; }
.nextup li span { font-weight: 700; }
.nextup li small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 15px; }

/* Sections share one rhythm; content shapes differ */
section { padding: clamp(48px, 7vw, 80px) 0; }
section + section { border-top: 1px solid var(--rule); }
section h2.display { font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
section .intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }

/* Key dates: two-column ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .ledger li { grid-template-columns: 1fr; gap: 2px; } }
.ledger time { font-weight: 700; color: var(--blue); }
.ledger strong { display: block; }
.ledger p { margin: 0; color: var(--ink-soft); }
.ledger li.past { color: var(--ink-soft); }
.ledger li.past time, .ledger li.past strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--rule); }

/* Ceremony: definition list with yellow markers */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 48px; }
.facts h3 { font-size: 22px; margin-bottom: 8px; padding-left: 14px; border-left: 6px solid var(--yellow); line-height: 1.1; }
.facts p { margin: 0 0 4px; }

/* Resources: two-column link list, no cards */
.links { columns: 2; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .links { columns: 1; } }
.links li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.links a { font-weight: 700; font-size: 18px; }
.links span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }

/* Photos: tight mosaic, square corners, one large */
.mosaic { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.mosaic figure { margin: 0; aspect-ratio: 1; background: var(--blue-deep); color: var(--yellow); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 15px; }
.mosaic figure:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic figure small { display: block; color: #fff; opacity: .7; margin-top: 4px; }

/* Announcements: running dated entries */
.notes { max-width: 68ch; }
.note { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; gap: 2px; } }
.note time { color: var(--blue); font-weight: 700; font-size: 15px; padding-top: 2px; }
.note p { margin: 0; }

footer { background: var(--blue-deep); color: #fff; padding: 32px 0 48px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .disclaimer { flex-basis: 100%; margin: 0 0 8px; max-width: 72ch; font-size: 14px; line-height: 1.5; opacity: .85; }
footer .disclaimer:empty { display: none; }
footer a { color: var(--yellow); }

/* Photo strip below "Coming up next" */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: clamp(28px, 4vw, 40px) 0 0; }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip figure:nth-child(n+4) { display: none; } }
.strip figure { margin: 0; aspect-ratio: 4/5; background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 14px; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
