@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=Cormorant+Garamond:ital,wght@0,400..700;1,400..700&family=Bebas+Neue&family=Caveat:wght@500..700&family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=UnifrakturMaguntia&family=Yesteryear&display=swap');

/* Paloma — Emily's own display face, used for the Holiday Magic masthead. */
@font-face {
  font-family: 'Paloma';
  src: url('/assets/fonts/Paloma.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

/* League Spartan Black — the uppercase treatment for the three issue
   mastheads (Snapshot's Holiday Magic, the Roadmap cover, Magic moments). */
@font-face {
  font-family: 'League Spartan Black';
  src: url('/assets/fonts/LeagueSpartan-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* Orange Crayon — Emily's own tagline face, under the Home hero card. */
@font-face {
  font-family: 'Orange Crayon';
  src: url('/assets/fonts/Orange Crayon.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.25 0.03 160);
  --card: oklch(0.99 0.008 85);
  --card-foreground: oklch(0.25 0.03 160);
  --popover: oklch(0.99 0.008 85);
  --popover-foreground: oklch(0.25 0.03 160);
  --primary: oklch(0.42 0.07 160);
  --primary-foreground: oklch(0.98 0.01 85);
  --secondary: oklch(0.93 0.02 90);
  --secondary-foreground: oklch(0.3 0.03 160);
  --muted: oklch(0.94 0.015 88);
  --muted-foreground: oklch(0.45 0.03 160);
  --accent: oklch(0.92 0.025 150);
  --accent-foreground: oklch(0.28 0.04 160);
  --destructive: oklch(0.5 0.16 15);
  --destructive-foreground: oklch(0.98 0.01 85);
  --border: oklch(0.88 0.02 90);
  --input: oklch(0.88 0.02 90);
  --ring: oklch(0.55 0.06 160);
  --success: oklch(0.47 0.08 155);
  --warning: oklch(0.6 0.11 80);
  --chart-1: oklch(0.42 0.07 160);
  --chart-2: oklch(0.68 0.11 80);
  --chart-3: oklch(0.5 0.16 15);
  --chart-4: oklch(0.65 0.05 150);
  --chart-5: oklch(0.78 0.04 90);
  --sidebar: oklch(0.955 0.015 88);
  --sidebar-foreground: oklch(0.25 0.03 160);
  --sidebar-primary: oklch(0.42 0.07 160);
  --sidebar-primary-foreground: oklch(0.98 0.01 85);
  --sidebar-accent: oklch(0.91 0.025 150);
  --sidebar-accent-foreground: oklch(0.28 0.04 160);
  --sidebar-border: oklch(0.88 0.02 90);
  --sidebar-ring: oklch(0.55 0.06 160);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.015 88);
  --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.995 0.006 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.93 0.015 90);
  --border-muted: oklch(0.905 0.018 90);
  --border-strong: oklch(0.78 0.03 100);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.38 0.03 160);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 15%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  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.55 0.06 160 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.16 15);
  --error-foreground: oklch(0.98 0.01 85);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Fraunces, Georgia, 'Times New Roman', serif;
  --font-brand: 'Paloma', Fraunces, Georgia, serif;
  /* The three issue mastheads (Snapshot, Roadmap, Magic moments), uppercase. */
  --font-masthead: 'League Spartan Black', 'League Spartan', Arial Black, sans-serif;
  /* Snapshot's department titles (Total budget, Gifts by person, Coming up). */
  --font-dept-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  /* Magic moments' scrapbook voices: poster caps and handwriting. */
  --font-poster: 'Bebas Neue', Fraunces, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(45, 60, 40, 0.05);
  --shadow-md: 0 4px 14px rgba(45, 60, 40, 0.08);
  --shadow-lg: 0 14px 36px rgba(45, 60, 40, 0.12);

  /* ── 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.21 0.02 160);
  --foreground: oklch(0.95 0.015 85);
  --card: oklch(0.25 0.022 160);
  --card-foreground: oklch(0.95 0.015 85);
  --popover: oklch(0.25 0.022 160);
  --popover-foreground: oklch(0.95 0.015 85);
  --primary: oklch(0.8 0.06 150);
  --primary-foreground: oklch(0.2 0.03 160);
  --secondary: oklch(0.3 0.025 160);
  --secondary-foreground: oklch(0.95 0.015 85);
  --muted: oklch(0.3 0.025 160);
  --muted-foreground: oklch(0.75 0.02 100);
  --accent: oklch(0.31 0.03 155);
  --accent-foreground: oklch(0.95 0.015 85);
  --destructive: oklch(0.68 0.15 15);
  --destructive-foreground: oklch(0.16 0.03 15);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.7 0.06 150);
  --success: oklch(0.72 0.1 150);
  --warning: oklch(0.8 0.12 85);
  --chart-1: oklch(0.8 0.06 150);
  --chart-2: oklch(0.8 0.12 85);
  --chart-3: oklch(0.68 0.15 15);
  --chart-4: oklch(0.6 0.05 150);
  --chart-5: oklch(0.5 0.03 90);
  --sidebar: oklch(0.19 0.02 160);
  --sidebar-foreground: oklch(0.95 0.015 85);
  --sidebar-primary: oklch(0.8 0.06 150);
  --sidebar-primary-foreground: oklch(0.2 0.03 160);
  --sidebar-accent: oklch(0.29 0.03 155);
  --sidebar-accent-foreground: oklch(0.95 0.015 85);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.7 0.06 150);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.24 0.02 160);
  --surface-elevated: oklch(0.3 0.025 160);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.015 90);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.7 0.06 150 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.15 15);
  --error-foreground: oklch(0.16 0.03 15);
}
