/* University of Miami Athletics v2 brand system. Palette from the University of Miami identity
   (green #005030, orange #F47321), dark green #003A26. Libre Franklin (display + UI) with Literata (editorial). */
:root {
  --m-950: #00150D; --m-900: #001F14; --m-850: #00271A; --m-800: #002E1E; --m-700: #003A26; --m-600: #00472F; --m-500: #005030; --m-400: #1F6B4A; --m-300: #5E9C7E;
  --g-700: #A8440A; --g-600: #C4540F; --g-500: #F47321; --g-400: #F68A45; --g-300: #F9A66E; --g-200: #FCD3B4; --g-100: #FEEEE2;
  --foil: linear-gradient(100deg, #C4540F 0%, #F47321 18%, #FFD2A8 34%, #E8661A 50%, #FFB57A 68%, #D95F12 84%, #F9A66E 100%);
  --foil-deep: linear-gradient(100deg, #8A3606 0%, #B44C0C 20%, #E8661A 36%, #9C3E08 54%, #C9560F 74%, #8A3606 100%);
  --foil-line: linear-gradient(90deg, rgba(244,115,33,0) 0%, #F47321 18%, #FFD9B8 50%, #F47321 82%, rgba(244,115,33,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: #F4F3EE; --bg-2: #EDEBE4; --surface: #FFFFFF; --surface-2: #FAF9F6; --hover: #EFEEE8;
  --ink: #111816; --ink-2: #3A4541; --ink-3: #5E6A66; --ink-4: #8D9692;
  --rule: #DFDDD5; --rule-soft: #EAE8E1; --rule-strong: #C9C7BD;
  --accent: #005030; --accent-ink: #FFFFFF; --link: #005030; --chart: #005030; --chart-2: #F47321; --chart-ctx: #D3D8D2; --chart-ctx-2: #E6E8E2;
  --shadow-1: 0 1px 2px rgba(0,31,20, .05), 0 2px 8px rgba(0,31,20, .04);
  --shadow-2: 0 2px 4px rgba(0,31,20, .05), 0 12px 32px -8px rgba(0,31,20, .14);
  --shadow-3: 0 24px 64px -16px rgba(0,31,20, .35);
  --focus: #005030; --focus-2: #F9A66E;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07100C; --bg-2: #0A1510; --surface: #0E1A15; --surface-2: #12201A; --hover: #172820;
  --ink: #EEF3EF; --ink-2: #C9D3CE; --ink-3: #A2ADA8; --ink-4: #7B8781;
  --rule: #22332A; --rule-soft: #18251F; --rule-strong: #304539;
  --accent: #F9A66E; --accent-ink: #001F14; --link: #FFB98A; --chart: #3FB984; --chart-2: #F9A66E; --chart-ctx: #2E3D35; --chart-ctx-2: #1F2B25;
  --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: #F9A66E; --focus-2: #005030;
  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%, #004128 0%, #002E1E 45%, #00150D 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; }
}
