/* School2Success · shared styles
   White grounds, navy ink, gold for moments that matter. IBM Plex Sans for reading,
   IBM Plex Mono for labels and data, Noto Serif for the wordmark, Kalam for hand-written notes. */
:root {
  --bg: #FFFFFF;
  --ink: #122246;
  --ink-hover: #1C3366;
  --ink-2: #4A5672;
  --ink-3: #6B7590;
  --line: #E3E6EE;
  --line-2: #C9CFDC;
  --wash: #F4F6FA;
  --gold: #BF8C3A;
  --gold-deep: #8C6420;
  --sand: #F8F1E4;
  --danger: #A3261C;
  --danger-wash: #FCEFED;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D1E3;
  --board: #0B1730;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --hand: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1248px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Scroll boxes must contain their hidden labels, or those labels widen the page on phones */
.tt-scroll, .map-scroll, .profile-scroll, .board, .profile, .map { position: relative; }
.sr-only { position: absolute; 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: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-dark); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-dark); outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* Type helpers */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.kicker-gold { color: var(--gold-deep); }
h1.kicker { margin: 0; font-weight: 500; }
.mono { font-family: var(--mono); }
.note { font-family: var(--hand); font-size: 22px; line-height: 1.25; color: var(--gold-deep); display: inline-block; transform: rotate(-2deg); transform-origin: left center; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.h-display { font-size: clamp(38px, 5vw, 66px); font-weight: 500; line-height: 1.03; letter-spacing: -0.03em; margin: 0; }
.h-section { font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; margin: 0; }
.h-card { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--on-dark); }
.btn-ghost { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { flex: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 15px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); font-weight: 500; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link svg { transition: transform .15s; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { color: var(--gold); }
.brand:hover { color: var(--ink); }
.nav-desktop { display: flex; align-items: center; gap: 6px 26px; }
.nav-desktop > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-desktop > a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 500; }
.nav-buttons { display: flex; gap: 10px; margin-left: 8px; }
.menu { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { transition: transform .15s; }
.menu[open] summary svg { transform: rotate(45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(18, 34, 70, 0.08); }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 18px; text-decoration: none; }
.menu-panel a[aria-current="page"] { font-weight: 600; }
.menu-panel .menu-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
}

/* Sections */
.section { padding-block: 120px 0; }
.section-rule { border-top: 1px solid var(--line); padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.section-head > div:first-child { flex: 1 1 560px; min-width: 0; max-width: 780px; }
.section-head .h-section { margin-top: 14px; }
.section-head .lede { margin-top: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 32px; }
.col { flex: 1 1 220px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.col .n { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); margin-bottom: 10px; }
.col p { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* Footer */
.site-footer { margin-top: 140px; border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { flex: 1 1 280px; max-width: 360px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-cols ul { list-style: none; margin: 12px 0 0; padding: 0; }
.footer-cols li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.footer-cols li a:hover { color: var(--gold-deep); text-decoration: underline; }
.footer-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.footer-legal a { color: var(--ink-2); }
.footer-legal strong { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }

@media (max-width: 520px) {
  .section { padding-top: 88px; }
  .section-rule { padding-top: 56px; }
  .lede { font-size: 17px; }
  .site-footer { margin-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
