/* Northern ’01 — shared design system
   Layout concept: Apple-style product rhythm. Full-bleed bands that alternate
   white, soft grey and an always-dark "stage", big tight headlines, and bento
   tiles. Varsity numerals (from the Huskies wordmark) are the one loud accent. */

:root {
  /* Color — light */
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.22);
  --red: #c1272d;
  --red-ink: #b0232a;
  --red-soft: rgba(193, 39, 45, 0.08);
  --ice: #4f86b0;
  --ok: #1d7f47;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.16);

  /* Always-dark stage (same in both themes) */
  --stage: #000000;
  --stage-2: #0e0e10;
  --stage-3: #1c1c1f;
  --stage-ink: #f5f5f7;
  --stage-ink-2: #a1a1a6;
  --stage-line: rgba(255, 255, 255, 0.14);
  --stage-red: #e8383f;
  --nav-bg: rgba(22, 22, 23, 0.78);
  --nav-ink: rgba(245, 245, 247, 0.86);

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-varsity: "Graduate", "Rockwell", "Roboto Slab", Georgia, serif;

  --fs-hero: clamp(2.9rem, 7.6vw, 6.25rem);
  --fs-h1: clamp(2.5rem, 6vw, 4.75rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.55vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.78rem;

  /* Space & shape */
  --band: clamp(84px, 11vw, 150px);
  --radius: 28px;
  --radius-sm: 16px;
  --nav-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #101012;
    --bg-3: #232326;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #8a8a8f;
    --line: rgba(245, 245, 247, 0.13);
    --line-strong: rgba(245, 245, 247, 0.24);
    --red: #e5484d;
    --red-ink: #ff6b70;
    --red-soft: rgba(229, 72, 77, 0.14);
    --ice: #8cb9dc;
    --ok: #4cc27f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #101012;
  --bg-3: #232326;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8a8a8f;
  --line: rgba(245, 245, 247, 0.13);
  --line-strong: rgba(245, 245, 247, 0.24);
  --red: #e5484d;
  --red-ink: #ff6b70;
  --red-soft: rgba(229, 72, 77, 0.14);
  --ice: #8cb9dc;
  --ok: #4cc27f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--nav-bg); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.028em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 8px; }

.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); transition: top .2s; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: 880px; }
.wrap--wide { max-width: 1400px; }
.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: clamp(56px, 7vw, 96px); }
.band--alt { background: var(--bg-2); }
.band--stage { background: var(--stage); color: var(--stage-ink); }
.band--stage .muted, .stage .muted { color: var(--stage-ink-2); }
.stage { background: var(--stage); color: var(--stage-ink); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px 64px; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-text); font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-ink); }
.band--stage .eyebrow, .stage .eyebrow { color: #ff6b70; }
.hero-title { font-size: var(--fs-hero); letter-spacing: -0.04em; line-height: 0.98; font-weight: 700; }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.032em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: var(--fs-lead); line-height: 1.42; color: var(--ink-2); letter-spacing: -0.016em; max-width: 40ch; }
.band--stage .lead, .stage .lead { color: var(--stage-ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.fine { font-size: var(--fs-tiny); color: var(--ink-3); line-height: 1.55; max-width: 80ch; }
.band--stage .fine, .stage .fine { color: var(--stage-ink-2); }
.varsity { font-family: var(--font-varsity); font-weight: 400; letter-spacing: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.grad-red { background: linear-gradient(100deg, #ff7a7e 0%, #e5383f 45%, #a3161d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ink { background: linear-gradient(180deg, var(--ink) 30%, var(--ink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage .grad-silver, .band--stage .grad-silver { background: linear-gradient(180deg, #ffffff 20%, #9a9aa0 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-ink: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s, box-shadow .3s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--red { --btn-bg: var(--red); --btn-ink: #fff; box-shadow: 0 8px 24px rgba(193, 39, 45, 0.28); }
.btn--red:hover { box-shadow: 0 12px 30px rgba(193, 39, 45, 0.38); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { --btn-bg: #f5f5f7; --btn-ink: #1d1d1f; }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.1); --btn-ink: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.16); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link { display: inline-flex; align-items: center; gap: 4px; color: var(--red-ink); font-weight: 600; text-decoration: none; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .3s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translate(3px, -1px); }
.band--stage .link, .stage .link { color: #ff7a7e; }

/* ---------- Pills, chips, segmented ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.02em; background: var(--bg-2); color: var(--ink-2); }
.pill--red { background: var(--red-soft); color: var(--red-ink); }
.pill--stage { background: rgba(255, 255, 255, 0.08); color: var(--stage-ink-2); box-shadow: inset 0 0 0 1px var(--stage-line); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot--live { background: #ff6b70 !important; box-shadow: 0 0 0 0 rgba(255, 107, 112, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 112, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 112, 0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 16px; font-size: 0.92rem; font-weight: 500;
  background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.band--alt .chip { background: var(--card); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .count { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-3); gap: 2px; position: relative; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 7px 16px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .25s, box-shadow .25s; }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ---------- Tiles / cards ---------- */
.tile { position: relative; border-radius: var(--radius); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.band--alt .tile, .tile--card { background: var(--card); }
.tile--stage { background: var(--stage-2); color: var(--stage-ink); }
.tile__body { padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; position: relative; z-index: 1; }
.card { background: var(--card); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status--on::before { background: var(--ok); }

/* ---------- Global nav (Apple-style) ---------- */
.gnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; color: var(--nav-ink); }
/* The blur lives on a layer behind the bar, so the full-screen phone menu isn't trapped inside it */
.gnav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: background-color .3s; }
.gnav[data-fly]::before, .gnav[data-open="true"]::before { background: rgba(22, 22, 23, 0.97); }
.gnav__inner { position: relative; z-index: 2; max-width: 1024px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.gnav__back { order: 0; display: inline-flex; align-items: center; gap: 3px; margin: 0 6px 0 -8px; padding: 6px 10px 6px 6px; border-radius: 999px; color: #f5f5f7; font-size: 0.8rem; font-weight: 500; text-decoration: none; white-space: nowrap; opacity: .82; transition: opacity .2s, background-color .2s; }
.gnav__back:hover, .gnav__back:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.gnav__back svg { width: 13px; height: 13px; }
.back-pill { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 14px); left: max(14px, env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(29, 29, 31, 0.72); color: #f5f5f7; font: 500 0.85rem/1 var(--font-text); text-decoration: none; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.back-pill svg { width: 13px; height: 13px; }
@media print { .gnav__back, .back-pill { display: none; } }
.gnav__brand { order: 1; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #f5f5f7; font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; white-space: nowrap; padding: 6px 4px; opacity: .92; transition: opacity .2s; }
.gnav__brand:hover { opacity: 1; }
.gnav__brand img { width: 20px; height: auto; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)); }
.gnav__name { display: none; }
.gnav__name .varsity { color: #ff6b70; }
.gnav__links { order: 2; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 4px; max-width: 760px; margin: 0 auto; list-style: none; padding: 0 0 0 28px; }
.gnav__item { position: static; }
.gnav__link { display: block; padding: 8px 6px; text-decoration: none; font-size: 0.75rem; letter-spacing: -0.01em; color: rgba(245, 245, 247, 0.8); transition: color .2s; white-space: nowrap; }
.gnav__link:hover, .gnav[data-fly] .gnav__item:hover .gnav__link { color: #fff; }
.gnav__link[aria-current="page"] { color: #fff; }
.gnav__more, .gnav__sub { display: none; }
.gnav__toggle { order: 4; display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: transparent; color: #f5f5f7; place-items: center; }
.gnav__toggle span { display: block; width: 17px; height: 1.2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.gnav__toggle span + span { margin-top: 7px; }
.gnav[data-open="true"] .gnav__toggle span:first-child { transform: translateY(4.1px) rotate(45deg); }
.gnav[data-open="true"] .gnav__toggle span:last-child { transform: translateY(-4.1px) rotate(-45deg); }
/* Flyout */
.gnav__flyout { position: absolute; left: 0; right: 0; top: 100%; height: 0; overflow: hidden; background: rgba(22, 22, 23, 0.97); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: height .42s cubic-bezier(.4, 0, .6, 1); }
.gnav__panel { position: absolute; left: 0; right: 0; top: 0; display: none; gap: 72px; max-width: 1024px; margin: 0 auto; padding: 36px max(56px, env(safe-area-inset-left, 0px)) 72px; }
.gnav__panel.is-on { display: flex; animation: flyIn .45s var(--ease) both; }
@keyframes flyIn { from { opacity: 0; transform: translateY(-6px); } }
.gnav__col { display: grid; gap: 10px; align-content: start; }
.gnav__kicker { font-size: 0.75rem; color: #86868b; margin-bottom: 6px; }
.gnav__big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; color: #e8e8ed; text-decoration: none; transition: color .2s; }
.gnav__big:hover { color: #fff; }
.gnav__col--small a { font-size: 0.8rem; font-weight: 600; color: #e8e8ed; text-decoration: none; }
.gnav__col--small a:hover { color: #fff; text-decoration: underline; }
.gnav__curtain { position: fixed; inset: 0; z-index: 45; background: rgba(232, 232, 237, 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
html.fly-open .gnav__curtain { opacity: 1; visibility: visible; }
/* Mobile menu */
@media (max-width: 900px) {
  .gnav__name { display: inline; }
  .gnav__toggle { display: grid; }
  .gnav__toggle > div { display: grid; }
  .gnav__flyout, .gnav__curtain { display: none; }
  .gnav__links { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); bottom: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; max-width: none; margin: 0; padding: 14px max(44px, env(safe-area-inset-left, 0px)) 40px; background: rgb(22, 22, 23); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .gnav[data-open="true"] .gnav__links { opacity: 1; visibility: visible; }
  .gnav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
  .gnav[data-open="true"] .gnav__item { opacity: 1; transform: none; }
  .gnav[data-open="true"] .gnav__item:nth-child(2) { transition-delay: .03s; } .gnav[data-open="true"] .gnav__item:nth-child(3) { transition-delay: .06s; }
  .gnav[data-open="true"] .gnav__item:nth-child(4) { transition-delay: .09s; } .gnav[data-open="true"] .gnav__item:nth-child(5) { transition-delay: .12s; }
  .gnav[data-open="true"] .gnav__item:nth-child(6) { transition-delay: .15s; } .gnav[data-open="true"] .gnav__item:nth-child(7) { transition-delay: .18s; }
  .gnav__link { padding: 10px 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 650; letter-spacing: -0.025em; color: #e8e8ed; }
  .gnav__more { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border: 0; background: transparent; color: #86868b; }
  .gnav__more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
  .gnav__item.is-expanded .gnav__more svg { transform: rotate(90deg); }
  .gnav__sub { grid-column: 1 / -1; display: grid; gap: 2px; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .gnav__item.is-expanded .gnav__sub { max-height: 360px; padding-bottom: 10px; }
  .gnav__sub a { padding: 7px 0; font-size: 1rem; font-weight: 600; color: #a1a1a6; text-decoration: none; }
  .gnav__sub a:hover { color: #fff; }
  html.menu-open { overflow: hidden; }
}

/* Account (shown when the site is connected to Supabase) */
.acct { order: 3; position: relative; margin-left: 12px; }
.acct__in { border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, 0.12); color: #f5f5f7; font-size: 0.75rem; font-weight: 600; }
.acct__in:hover { background: rgba(255, 255, 255, 0.2); }
.acct__btn { width: 26px; height: 26px; border-radius: 50%; border: 0; background: linear-gradient(150deg, #ff6b70, #a3161d); color: #fff; font-weight: 700; font-size: 0.78rem; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; padding: 14px; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); display: grid; gap: 10px; font-size: 0.88rem; }
.acct__menu span { word-break: break-all; color: var(--ink-2); }
.acct__menu .acct__tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); font-weight: 600; font-size: 0.75rem; }
.acct__menu button { justify-self: start; border: 0; background: transparent; color: var(--red-ink); font-weight: 600; padding: 0; }
@media (max-width: 900px) { .acct { margin-left: auto; } }

/* Local (page) nav, Apple-style */
.lnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.lnav__inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav__title { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.lnav__links { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.lnav__links::-webkit-scrollbar { display: none; }
.lnav__links a { font-size: 0.8rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding-block: 6px; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.lnav__links a:hover, .lnav__links a.is-active { color: var(--ink); }
.lnav__links a.is-active { border-color: var(--ink); }
@media (max-width: 720px) { .lnav__title { display: none; } .lnav__inner { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.foot { background: var(--bg-2); color: var(--ink-2); font-size: 0.8rem; padding-block: 48px 40px; border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand img { width: 170px; }
.foot__brand .wm-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot__brand .wm-light { display: none; } :root:not([data-theme="light"]) .foot__brand .wm-dark { display: block; } }
:root[data-theme="dark"] .foot__brand .wm-light { display: none; }
:root[data-theme="dark"] .foot__brand .wm-dark { display: block; }
.foot h4 { font-family: var(--font-text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; align-items: center; }
.motion-toggle { border: 0; background: transparent; color: var(--ink-2); padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.motion-toggle:hover { color: var(--ink); }
@media (max-width: 780px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-tiny); color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 0;
  background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background-color .2s; font-size: 1rem;
}
.band--alt .input, .band--alt .select, .band--alt .textarea, .card .input, .card .select, .card .textarea, dialog .input, dialog .select, dialog .textarea { background: var(--bg); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ice); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Dialog / sheet ---------- */
dialog.sheet {
  width: min(680px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 30px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.sheet[open] { animation: sheetIn .5s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s ease; }
.sheet__scroll { max-height: min(88vh, 900px); overflow: auto; padding: clamp(26px, 4vw, 44px); display: grid; gap: 22px; }
.sheet__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-3); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; z-index: 2; }
.sheet__close:hover { background: var(--line-strong); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 7vw, 80px) 24px; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.band--alt .empty { background: var(--card); }
.empty .varsity { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--red); opacity: .9; }
.empty p { max-width: 46ch; color: var(--ink-2); }

/* ---------- Page hero (shared) ---------- */
.phero { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-ink); isolation: isolate; }
.phero__inner { position: relative; z-index: 2; padding-block: clamp(80px, 12vw, 150px) clamp(64px, 9vw, 120px); display: grid; gap: 22px; justify-items: start; }
.phero__inner--center { justify-items: center; text-align: center; }
canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.phero__glow { position: absolute; z-index: 1; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, rgba(232, 56, 63, 0.32), rgba(232, 56, 63, 0) 62%); filter: blur(10px); pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-10%, -6%) scale(1); } to { transform: translate(8%, 6%) scale(1.12); } }
.phero .lead { max-width: 46ch; }
.ghost-num { position: absolute; z-index: 1; font-family: var(--font-varsity); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09); pointer-events: none; user-select: none; }

/* Breadcrumb */
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--stage-ink-2); text-decoration: none; }
.crumb:hover { color: #fff; }

/* ---------- Motion ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-play-state: paused !important; }
html[data-motion="off"] .reveal { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Shared bits ---------- */
.kv { display: grid; gap: 4px; }
.kv dt { font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { font-size: 1rem; color: var(--ink); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.55; }
.band--alt .note { background: var(--card); }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ink-3); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Destination illustrations (shared by home + trips) */
.scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.scene svg, .scene > img { width: 100%; height: 100%; }
.scene > img { object-fit: cover; }
.scene__tag { position: absolute; left: 16px; top: 16px; z-index: 2; }
.scene .sky-anim { animation: skyShift 14s ease-in-out infinite alternate; }
@keyframes skyShift { to { transform: translateX(-6%); } }
.scene .twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
.scene .bob { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(3px); } }
