/*
 * Design tokens: Minimal Ivory + Delft Blue
 * Source: planning/look_and_feel.md
 * Tokens + minimal reset only. Guest page classes: page.css.
 */

:root {
  /* —— Colour: core —— */
  --background-ivory: #faf8f4;
  --surface-white: #ffffff;
  --delft-primary: #2b4c7e;
  --delft-deep: #1e3555;
  --delft-soft: #5a7396;
  --delft-wash: #e8eef4;
  --delft-line: #c5d3e3;

  /* —— Colour: neutrals —— */
  --text-primary: #2a2a28;
  --text-secondary: #6b6b66;
  --text-muted: #9a9a94;
  --border-subtle: #e5e2dc;

  /* —— Colour: semantic (RSVP) —— */
  --rsvp-yes: #2b4c7e;
  --rsvp-yes-hover: #1e3555;
  --rsvp-no: #ffffff;
  --rsvp-no-border: #c5d3e3;
  --rsvp-no-text: #5a7396;
  --success-bg: #f0f5f0;
  --success-text: #3d5c4a;
  --error-bg: #faf6f4;
  --error-accent: #7a6b5e;

  /* —— Colour: ornaments —— */
  --ornament-faint: rgba(43, 76, 126, 0.07);
  --ornament-line: #2b4c7e;

  /* Self-contained system stacks: never block rendering on a font CDN. */
  --font-display: Georgia, "Times New Roman", serif;
  --font-script: "Segoe Script", "Brush Script MT", cursive;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;

  /* —— Typography: scale —— */
  --display-xl-size: 2.5rem;
  --display-xl-weight: 500;
  --display-xl-line-height: 1.15;
  --display-xl-letter-spacing: 0.02em;

  --display-lg-size: 2rem;
  --display-lg-weight: 500;
  --display-lg-line-height: 1.2;
  --display-lg-letter-spacing: 0.02em;

  --heading-md-size: 1.5rem;
  --heading-md-weight: 500;
  --heading-md-line-height: 1.25;
  --heading-md-letter-spacing: 0.01em;

  --heading-sm-size: 1.25rem;
  --heading-sm-weight: 500;
  --heading-sm-line-height: 1.3;
  --heading-sm-letter-spacing: 0;

  --body-lg-size: 1.125rem;
  --body-lg-weight: 400;
  --body-lg-line-height: 1.6;
  --body-lg-letter-spacing: 0;

  --body-md-size: 1rem;
  --body-md-weight: 400;
  --body-md-line-height: 1.6;
  --body-md-letter-spacing: 0;

  --body-sm-size: 0.875rem;
  --body-sm-weight: 400;
  --body-sm-line-height: 1.5;
  --body-sm-letter-spacing: 0;

  --label-size: 0.75rem;
  --label-weight: 500;
  --label-line-height: 1.4;
  --label-letter-spacing: 0.08em;

  --button-size: 0.9375rem;
  --button-weight: 500;
  --button-line-height: 1;
  --button-letter-spacing: 0.04em;

  /* —— Spacing (8px base) —— */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* —— Layout —— */
  --content-max-mobile: 100%;
  --content-max-tablet: 560px;
  --content-max-desktop: 600px;
  --page-padding-mobile: 24px;
  --page-padding-tablet: 32px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;

  /* —— Radius —— */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* —— Shadow —— */
  --shadow-card: 0 1px 3px rgba(42, 42, 40, 0.06);
  --shadow-elevated: 0 4px 16px rgba(42, 42, 40, 0.08);

  /* —— Motion —— */
  --transition: 180ms ease;
}

/* —— Minimal reset —— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--surface-white);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--body-md-size);
  font-weight: var(--body-md-weight);
  line-height: var(--body-md-line-height);
  letter-spacing: var(--body-md-letter-spacing);
}
