/*
 * Online BFSU design tokens — the single source for colour, type, radius,
 * spacing, elevation and motion. Every page imports this file (directly or via
 * campus-apple.css). Interface surfaces always use the light theme;
 * the 3D scene itself is not affected.
 *
 * Contrast notes (WCAG 2.x, normal text needs 4.5:1):
 *   --ui-secondary on --ui-surface   light 5.1
 *   --ui-accent-text on --ui-surface light 5.6
 *   --ui-on-accent on --ui-accent    light 4.7
 *   --ui-bfsu-text on --ui-surface   light 10.8
 *   --ui-on-bfsu on --ui-bfsu        light 10.8
 */
@import url('./campus-fonts.css');

:root {
  color-scheme: only light;

  /* Colour — warm paper, pine ink, terracotta. Deliberately not big-tech blue. */
  --ui-bg: #f2ede3;
  --ui-surface: #fbf8f1;
  --ui-surface-2: #ebe4d7;
  --ui-glass: rgba(251, 248, 241, .84);
  --ui-glass-border: rgba(255, 253, 247, .82);
  --ui-text: #24211c;
  --ui-secondary: #6b6459;
  --ui-tertiary: #8d8578;
  --ui-line: rgba(61, 52, 41, .14);
  --ui-separator: rgba(61, 52, 41, .22);
  --ui-fill: rgba(95, 80, 60, .10);
  --ui-fill-strong: rgba(95, 80, 60, .18);
  --ui-accent: #3d5a4a;
  --ui-accent-text: #34503f;
  --ui-on-accent: #fbf8f1;
  --ui-tint: rgba(61, 90, 74, .12);
  --ui-success: #446b4a;
  --ui-success-tint: color-mix(in srgb, var(--ui-success-fill) 16%, var(--ui-surface));
  --ui-success-fill: #6f8f62;
  --ui-danger: #a3402f;
  --ui-warning: #98652c;
  --ui-scrim: rgba(32, 27, 21, .30);
  --ui-focus: rgba(61, 90, 74, .42);
  --ui-clay: #b4694f;
  --ui-gold: #b08a4a;
  /* Project brand navy from the 20261103 brand assets, not an official school VI colour. */
  --ui-bfsu: #1f3a5f;
  --ui-bfsu-text: #1f3a5f;
  --ui-on-bfsu: #fbf8f1;
  --ui-bfsu-tint: color-mix(in srgb, var(--ui-bfsu) 10%, var(--ui-surface));
  --ui-font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;

  /* Elevation */
  --ui-shadow: 0 8px 28px rgba(62, 48, 32, .09), 0 1px 3px rgba(62, 48, 32, .05);
  --ui-shadow-lg: 0 24px 80px rgba(45, 34, 22, .18), 0 2px 8px rgba(45, 34, 22, .06);
  --ui-blur: blur(24px) saturate(130%);

  /* Type scale (iOS text styles, px so the canvas HUD stays predictable) */
  --ui-text-caption: 12px;
  --ui-text-footnote: 13px;
  --ui-text-subhead: 15px;
  --ui-text-body: 17px;
  --ui-text-title3: 20px;
  --ui-text-title2: 22px;
  --ui-text-title1: 28px;
  --ui-text-large: 34px;
  --ui-weight-regular: 400;
  --ui-weight-medium: 500;
  --ui-weight-semibold: 600;
  --ui-weight-bold: 700;

  /* Radius */
  --ui-radius-xs: 8px;
  --ui-radius-s: 12px;
  --ui-radius-m: 16px;
  --ui-radius-l: 22px;
  --ui-radius-xl: 28px;
  --ui-radius-pill: 999px;

  /* Spacing (4pt grid) */
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-8: 32px;

  /* Hit target */
  --ui-hit: 44px;

  /* Motion */
  --ui-ease: cubic-bezier(.32, .72, 0, 1);
  --ui-ease-out: cubic-bezier(.22, 1, .36, 1);
  --ui-duration-fast: .16s;
  --ui-duration: .28s;

  /* Icons */
  --ui-icon-stroke: 1.7;
  --ui-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16' fill='none' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5 3-3 3 3m-6 6 3 3 3-3'/%3E%3C/svg%3E");
}



@media (prefers-contrast: more) {
  :root {
    --ui-secondary: #3a3a3c;
    --ui-line: rgba(60, 60, 67, .36);
    --ui-glass: rgba(250, 250, 252, .96);
  }
}
