/*
 * YEARBOOK Design System
 * Central source of truth for theme colors, typography, layout and component geometry.
 * Change tokens here instead of overriding individual page styles.
 */
:root {
  color-scheme: light;

  /* Color */
  --color-ink: #202124;
  --color-muted: #62666b;
  --color-line: #e2ded9;
  --color-border-strong: #c9c3bd;
  --color-paper: #f7f6f3;
  --color-surface: #ffffff;
  --color-accent: #8f2638;
  --color-accent-hover: #701d2c;
  --color-accent-soft: #f8eaed;
  --color-overlay: rgba(32, 33, 36, .72);
  --color-on-accent: #ffffff;
  --color-focus: rgba(143, 38, 56, .24);

  /* Typography */
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2.4vw, 2rem);
  --text-3xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-display: clamp(2.5rem, 5vw, 4.875rem);
  --leading-tight: 1.08;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(2.5rem, 5vw, 5rem);
  --layout-gutter: clamp(1rem, 3vw, 3rem);
  --component-gap: 1rem;

  /* Layout widths */
  --container-narrow: 760px;
  --container-content: 1000px;
  --container-wide: 1280px;
  --container-max: 1440px;

  /* Borders and elevation */
  --radius-xs: .25rem;
  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;
  --border-width: 1px;
  --shadow-sm: 0 1px 3px rgba(32, 33, 36, .06);
  --shadow-md: 0 8px 24px rgba(32, 33, 36, .08);
  --shadow-lg: 0 18px 48px rgba(32, 33, 36, .12);
  --focus-ring: 0 0 0 3px var(--color-focus);

  /* Interactive controls */
  --control-height: 44px;
  --control-height-compact: 40px;
  --control-radius: var(--radius-sm);
  --button-padding-inline: 1.125rem;
  --button-font-size: var(--text-xs);
  --button-letter-spacing: .08em;
  --field-padding-block: .7rem;
  --field-padding-inline: .85rem;
  --field-border: var(--color-border-strong);
  --field-background: var(--color-surface);

  /* Backward-compatible aliases used by existing templates/styles. */
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --paper: var(--color-paper);
  --white: var(--color-surface);
  --accent: var(--color-accent);
  --max: var(--container-max);
  --space: var(--layout-gutter);
  --shadow: var(--shadow-md);
}
