@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Senior Sunday — dark editorial. Near-black warm ground, citron headlines,
   lilac spaced labels, pink coaching notes, cream body. Both modes are dark. */

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.205 0.004 60);
  --foreground: oklch(0.95 0.012 85);
  --card: oklch(0.24 0.005 60);
  --card-foreground: oklch(0.95 0.012 85);
  --popover: oklch(0.26 0.005 60);
  --popover-foreground: oklch(0.95 0.012 85);
  --primary: oklch(0.90 0.11 108);
  --primary-foreground: oklch(0.2 0.01 108);
  --secondary: oklch(0.30 0.025 300);
  --secondary-foreground: oklch(0.90 0.05 300);
  --muted: oklch(0.27 0.005 60);
  --muted-foreground: oklch(0.74 0.012 85);
  --accent: oklch(0.29 0.008 60);
  --accent-foreground: oklch(0.95 0.012 85);
  --destructive: oklch(0.65 0.2 22);
  --destructive-foreground: oklch(0.25 0.01 22.109);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.80 0.07 300);
  --success: oklch(0.80 0.13 140);
  --warning: oklch(0.84 0.14 80);
  --chart-1: oklch(0.90 0.11 108);
  --chart-2: oklch(0.80 0.07 300);
  --chart-3: oklch(0.78 0.12 350);
  --chart-4: oklch(0.95 0.012 85);
  --chart-5: oklch(0.62 0.02 85);
  --sidebar: oklch(0.17 0.004 60);
  --sidebar-foreground: oklch(0.92 0.012 85);
  --sidebar-primary: oklch(0.90 0.11 108);
  --sidebar-primary-foreground: oklch(0.2 0.01 108);
  --sidebar-accent: oklch(0.24 0.006 60);
  --sidebar-accent-foreground: oklch(0.95 0.012 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.80 0.07 300);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.225 0.005 60);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.28 0.006 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.012 85);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.80 0.07 300 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.72 0.18 22);
  --error-foreground: oklch(0.2 0.01 22);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.375rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.0;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.195 0.004 60);
  --foreground: oklch(0.95 0.012 85);
  --card: oklch(0.235 0.005 60);
  --card-foreground: oklch(0.95 0.012 85);
  --popover: oklch(0.255 0.005 60);
  --popover-foreground: oklch(0.95 0.012 85);
  --primary: oklch(0.90 0.11 108);
  --primary-foreground: oklch(0.2 0.01 108);
  --secondary: oklch(0.30 0.025 300);
  --secondary-foreground: oklch(0.90 0.05 300);
  --muted: oklch(0.265 0.005 60);
  --muted-foreground: oklch(0.74 0.012 85);
  --accent: oklch(0.285 0.008 60);
  --accent-foreground: oklch(0.95 0.012 85);
  --destructive: oklch(0.65 0.2 22);
  --destructive-foreground: oklch(0.98 0.01 22);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.80 0.07 300);
  --success: oklch(0.80 0.13 140);
  --warning: oklch(0.84 0.14 80);
  --chart-1: oklch(0.90 0.11 108);
  --chart-2: oklch(0.80 0.07 300);
  --chart-3: oklch(0.78 0.12 350);
  --chart-4: oklch(0.95 0.012 85);
  --chart-5: oklch(0.62 0.02 85);
  --sidebar: oklch(0.165 0.004 60);
  --sidebar-foreground: oklch(0.92 0.012 85);
  --sidebar-primary: oklch(0.90 0.11 108);
  --sidebar-primary-foreground: oklch(0.2 0.01 108);
  --sidebar-accent: oklch(0.235 0.006 60);
  --sidebar-accent-foreground: oklch(0.95 0.012 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.80 0.07 300);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.005 60);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.275 0.006 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.012 85);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.80 0.07 300 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.18 22);
  --error-foreground: oklch(0.2 0.01 22);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.375rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.0;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}
