/* Carolina Athletics (UNC) v2 brand system. Palette from the UNC identity guide (identity.unc.edu/brand/color):
   Carolina Blue #4B9CD3 (PMS 542), Navy #13294B (PMS 2767), white. Libre Franklin (display + UI) with Literata (editorial). */
:root {
  --m-950: #060D19; --m-900: #091424; --m-850: #0B192E; --m-800: #0D1D36; --m-700: #13294B; --m-600: #183258; --m-500: #1C3A66; --m-400: #425D86; --m-300: #5578A5;
  --g-700: #23648F; --g-600: #2C76A7; --g-500: #4B9CD3; --g-400: #61AADA; --g-300: #84BDE3; --g-200: #C0DDF0; --g-100: #E6F2FA;
  --foil: linear-gradient(100deg, #2C76A7 0%, #4399D2 18%, #B6D9F1 34%, #3B8FC7 50%, #8FC6EA 68%, #3283B9 84%, #84BDE3 100%);
  --foil-deep: linear-gradient(100deg, #1B5175 0%, #276B99 20%, #3B8FC7 36%, #205C84 54%, #2D79AB 74%, #1B5175 100%);
  --foil-line: linear-gradient(90deg, rgba(67,153,210,0) 0%, #4399D2 18%, #C3E0F4 50%, #4399D2 82%, rgba(67,153,210,0) 100%);
  --f-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Literata", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pos: #1E7A4C; --pos-bg: #E3F2E9; --neg: #B0263A; --neg-bg: #FBE6E9; --warn: #8F6000; --warn-bg: #FBF0D6;

  /* Day */
  --bg: #EEF1F4; --bg-2: #E4E8ED; --surface: #FFFFFF; --surface-2: #F6F8FA; --hover: #E8EBEF;
  --ink: #101419; --ink-2: #383F47; --ink-3: #5C636C; --ink-4: #8C9197;
  --rule: #D6DADF; --rule-soft: #E1E5EA; --rule-strong: #BEC3C8;
  --accent: #13294B; --accent-ink: #FFFFFF; --link: #1F5A8C; --chart: #13294B; --chart-2: #4B9CD3; --chart-ctx: #D1D4D9; --chart-ctx-2: #E6E8E2;
  --shadow-1: 0 1px 2px rgba(9,20,36, .05), 0 2px 8px rgba(9,20,36, .04);
  --shadow-2: 0 2px 4px rgba(9,20,36, .05), 0 12px 32px -8px rgba(9,20,36, .14);
  --shadow-3: 0 24px 64px -16px rgba(9,20,36, .35);
  --focus: #13294B; --focus-2: #84BDE3;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070D18; --bg-2: #0A1220; --surface: #0E1728; --surface-2: #122030; --hover: #182739;
  --ink: #EDF0F4; --ink-2: #C8CDD4; --ink-3: #A0A7AF; --ink-4: #798089;
  --rule: #1F2D42; --rule-soft: #162234; --rule-strong: #2D3F58;
  --accent: #84BDE3; --accent-ink: #091424; --link: #9DCCEC; --chart: #4B9CD3; --chart-2: #A9D0EC; --chart-ctx: #26354A; --chart-ctx-2: #1A2638;
  --pos: #6FD19C; --pos-bg: #10301F; --neg: #FF8F8F; --neg-bg: #3A1414; --warn: #F0C76A; --warn-bg: #33270B;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px -12px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 64px -16px rgba(0, 0, 0, .7);
  --focus: #84BDE3; --focus-2: #13294B;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-display); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--focus-2) 35%, transparent); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--m-700); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.foil-text { background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ic { flex: none; }

/* branded wipe (between front door and workspace / command centers) */
.wipe { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #12294C 0%, #0D1D36 45%, #060D19 100%); clip-path: inset(100% 0 0 0); }
.wipe::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--foil-line); }
.wipe .wipe-mark { width: 96px; opacity: 0; transform: scale(.86); filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.wipe .wipe-word { position: absolute; top: calc(50% + 70px); font: 600 11px/1 var(--f-display); letter-spacing: .32em; color: var(--g-300); opacity: 0; }
.wipe.on { animation: wipeIn .62s var(--ease-io) forwards; pointer-events: auto; }
.wipe.on .wipe-mark { animation: markIn .7s .18s var(--ease-out) forwards; }
.wipe.on .wipe-word { animation: fadeIn .5s .3s ease forwards; }
.wipe.out { clip-path: inset(0 0 0 0); animation: wipeOut .7s .05s var(--ease-io) forwards; }
.wipe.out .wipe-mark, .wipe.out .wipe-word { opacity: 1; transform: none; animation: fadeOut .3s ease forwards; }
@keyframes wipeIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes markIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wipe.on, .wipe.out { animation-duration: .01s !important; animation-delay: 0s !important; }
  .wipe.on .wipe-mark, .wipe.on .wipe-word { animation-duration: .01s; animation-delay: 0s; }
}
