/* The Infield design tokens (Infield Track Club, Orono, Maine).
   Brand: Jet ground, white type and "boards", Carolina accent. About 70% jet, 20% white or bone, 10% Carolina.
   Jet is the default theme. Bone sections use data-theme="light" on any element.
   data-theme="dark" is kept as an alias of the default so dark-only blocks stay dark inside a light section.
   Components read only the role tokens, never raw values. */
/* Fonts are served from this site (no third-party request). Both are SIL Open Font License Google Fonts. */
@font-face{font-family:"Big Shoulders Display";src:url("/assets/fonts/big-shoulders-display.woff2") format("woff2");font-weight:900;font-display:swap}
@font-face{font-family:"Archivo";src:url("/assets/fonts/archivo.woff2") format("woff2");font-weight:400 800;font-stretch:100% 125%;font-display:swap}
@font-face{font-family:"Display Fallback";src:local("Arial Narrow Bold"),local("ArialNarrow-Bold"),local("Roboto Condensed Bold"),local("Liberation Sans Narrow Bold"),local("Arial Bold");font-weight:900;size-adjust:92%}
@font-face{font-family:"Archivo Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Roboto");font-weight:400;size-adjust:104%}

:root{
  /* Brand palette */
  --jet:#0F0F10; --white:#FFFFFF; --carolina:#8BC1EA; --carolina-deep:#2B6699; --bone:#EEEAE1;
  --graphite:#1C1D21; --graphite-2:#24262B; --line-dark:#2A2B30; --line-light:#D9D4C9;
  --mute-dark:#A9ADB5; --mute-light:#5A5F68;
  /* Programs share Carolina; their shapes tell them apart */
  --flight:var(--carolina); --force:var(--carolina);
  --navy:var(--jet);

  color-scheme:dark;
  /* Role tokens: jet (default) */
  --bg:var(--jet);            /* page ground */
  --surface:var(--graphite);  /* cards, tables, panels */
  --band:var(--graphite);     /* table heads, quiet strips */
  --text:var(--white);        /* 19.1:1 on jet */
  --text-2:var(--mute-dark);  /* 8.5:1 on jet, 7.5:1 on graphite */
  --rule:var(--line-dark);    /* hairlines and borders */
  --lane:var(--white);        /* 3px lane-line dividers */
  --control:#6B6F78;          /* input and outline borders, 3.6:1 on jet */
  --grid:#232429;             /* chart grid */
  --axis:#6B6F78;             /* chart axes, dashed placeholders (non-text) */
  --accent:var(--carolina);   /* actions, selected states, chart line. 9.96:1 on jet */
  --link:var(--carolina);
  --on-accent:var(--jet);
  --hl:#24435E;               /* highlighter stripe */
  --hl-soft:#1E2A36;          /* recommended column, code chips */
  --focus:var(--carolina);

  /* Semantic data colors. Always paired with a shape or a word, never color alone. */
  --pr:#FFC857; --pr-fg:#FFC857; --pr-bg:#33290F;
  --up:#5EE0A0; --down:#FF8A7A; --ok:#5EE0A0;

  /* Type: display for headlines and big numbers, Archivo for reading, Archivo Expanded for labels */
  --f-display:"Big Shoulders Display","Display Fallback","Arial Narrow",sans-serif;
  --f-text:"Archivo","Archivo Fallback",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:var(--f-text);    /* data: Archivo with tabular numerals */
  --f-label:var(--f-text);
  --label-stretch:125%; --label-tracking:.32em;
  --display-stretch:100%;

  /* Modular scale, ratio 1.25 from 16px */
  --t-2xs:.6875rem;  /* 11  labels */
  --t-xs:.8125rem;   /* 13  captions */
  --t-sm:.9375rem;   /* 15  dense text */
  --t-base:1rem;     /* 16 */
  --t-md:1.375rem;   /* 22 */
  --t-lg:1.75rem;    /* 28 */
  --t-xl:2.25rem;    /* 36 */
  --t-2xl:3rem;      /* 48 */
  --t-3xl:4.25rem;   /* 68 */

  /* 8pt spacing scale */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;

  /* Layout: 12 columns, 24px gutter */
  --container:1280px;
  --gutter:clamp(20px,5vw,64px);
  --col-gap:24px;
  --header-h:72px;

  /* Shape: pills echo the track oval; cards get 16px */
  --r-sm:8px; --r:12px; --r-lg:16px; --r-pill:999px;
  --lane-w:3px;
  --target:44px;     /* minimum touch target */

  /* Motion: state changes only */
  --dur-1:150ms; --dur-2:250ms; --ease:cubic-bezier(.2,.7,.3,1);
}

:root[data-theme="dark"],[data-theme="dark"]{
  color-scheme:dark;
  --bg:var(--jet); --surface:var(--graphite); --band:var(--graphite);
  --text:var(--white); --text-2:var(--mute-dark); --rule:var(--line-dark); --lane:var(--white);
  --control:#6B6F78; --grid:#232429; --axis:#6B6F78;
  --accent:var(--carolina); --link:var(--carolina); --on-accent:var(--jet);
  --hl:#24435E; --hl-soft:#1E2A36; --focus:var(--carolina);
  --pr:#FFC857; --pr-fg:#FFC857; --pr-bg:#33290F; --up:#5EE0A0; --down:#FF8A7A; --ok:#5EE0A0;
}

/* Bone sections. Carolina never sets text on light grounds: Carolina Deep stands in. */
[data-theme="light"]{
  color-scheme:light;
  --bg:var(--bone);
  --surface:var(--white);
  --band:#E4DFD4;
  --text:var(--jet);          /* 15.9:1 on bone */
  --text-2:var(--mute-light); /* 5.4:1 on bone, 6.4:1 on white */
  --rule:var(--line-light);
  --lane:var(--jet);
  --control:#8A8F98;
  --grid:#E1DCD1;
  --axis:#8A8F98;
  --flight:var(--carolina-deep); --force:var(--carolina-deep);
  --accent:var(--carolina-deep); /* 5.05:1 on bone, 6.06:1 on white */
  --link:var(--carolina-deep);
  --on-accent:var(--white);
  --hl:#BFD9EE;
  --hl-soft:#E3EEF7;
  --focus:var(--carolina-deep);
  --pr:#B26A00; --pr-fg:#8A5A00; --pr-bg:#FFF3D1;
  --up:#0B6E4F; --down:#B3261E; --ok:#0B6E4F;
}
