@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Poppins:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500&family=Asap:wght@700;800&family=Lato:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap');

:root {
  /* ── shadcn base tokens (white + off-white, charcoal text, seafoam + terracotta accents) ── */
  --background: #FFFFFF;
  --foreground: #2C3832;
  --card: #FFFFFF;
  --card-foreground: #2C3832;
  --popover: #FFFFFF;
  --popover-foreground: #2C3832;
  --primary: #7BA99A;
  --primary-foreground: #FFFFFF;
  --secondary: #F7F8F7;
  --secondary-foreground: #2C3832;
  --muted: #F7F8F7;
  --muted-foreground: #6B7571;
  --accent: #EEF4F1;
  --accent-foreground: #2C3832;
  --destructive: oklch(0.55 0.19 28);
  --destructive-foreground: #FFFFFF;
  --border: rgb(123 169 154 / 0.3);
  --input: rgb(123 169 154 / 0.5);
  --ring: #7BA99A;
  --success: oklch(0.52 0.11 150);
  --warning: oklch(0.62 0.13 70);
  --chart-1: #2C3832;
  --chart-2: #7BA99A;
  --chart-3: #C4714A;
  --chart-4: oklch(0.62 0.13 70);
  --chart-5: #D7E5E1;
  --sidebar: #FFFFFF;
  --sidebar-foreground: #2C3832;
  --sidebar-primary: #7BA99A;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F7F8F7;
  --sidebar-accent-foreground: #2C3832;
  --sidebar-border: rgb(123 169 154 / 0.3);
  --sidebar-ring: #7BA99A;

  /* ── editorial accents ────────────────────────────────────────── */
  --charcoal: #2C3832;        /* hero bands, footer, headings */
  --seafoam: #7BA99A;         /* pills, section labels, primary buttons */
  --seafoam-foreground: #2C3832;
  --terracotta: #C4714A;      /* reserved, used sparingly — seafoam is now the primary accent */
  --hero: #2C3832;           /* cinematic hero bands */
  --hero-foreground: #FFFFFF;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #F7F8F7;
  --surface-hover:   color-mix(in srgb, var(--foreground) 4%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 8%,  var(--background));
  --surface-elevated: #FFFFFF;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: rgb(123 169 154 / 0.18);
  --border-muted: rgb(123 169 154 / 0.24);
  --border-strong: #2C3832;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #555555;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: #5F8F80;
  --primary-muted: #E4EEEA;
  --primary-soft:  #EEF4F1;
  --primary-tint:  #F5F9F7;

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgb(123 169 154 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.19 28);
  --error-foreground: #FFFFFF;

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Fraunces", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 0.98;
  --tracking-display: -0.045em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: -0.005em;
  --font-weight-mono: 400;

  /* ── shadows (barely there — hairlines do the structure) ──────── */
  --shadow-sm: 0 1px 2px rgb(44 56 50 / 0.04);
  --shadow-md: 0 8px 24px rgb(44 56 50 / 0.06);
  --shadow-lg: 0 24px 64px rgb(44 56 50 / 0.1);

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

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

/* The brand is light by design — dark preference keeps the same coastal palette. */
.dark {
  --background: #FFFFFF;
  --foreground: #2C3832;
  --card: #FFFFFF;
  --card-foreground: #2C3832;
  --popover: #FFFFFF;
  --popover-foreground: #2C3832;
  --primary: #7BA99A;
  --primary-foreground: #FFFFFF;
  --secondary: #F7F8F7;
  --secondary-foreground: #2C3832;
  --muted: #F7F8F7;
  --muted-foreground: #6B7571;
  --accent: #EEF4F1;
  --accent-foreground: #2C3832;
  --destructive: oklch(0.55 0.19 28);
  --destructive-foreground: #FFFFFF;
  --border: rgb(123 169 154 / 0.3);
  --input: rgb(123 169 154 / 0.5);
  --ring: #7BA99A;
  --success: oklch(0.52 0.11 150);
  --warning: oklch(0.62 0.13 70);
  --chart-1: #2C3832;
  --chart-2: #7BA99A;
  --chart-3: #C4714A;
  --chart-4: oklch(0.62 0.13 70);
  --chart-5: #D7E5E1;
  --sidebar: #FFFFFF;
  --sidebar-foreground: #2C3832;
  --sidebar-primary: #7BA99A;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F7F8F7;
  --sidebar-accent-foreground: #2C3832;
  --sidebar-border: rgb(123 169 154 / 0.3);
  --sidebar-ring: #7BA99A;

  --charcoal: #2C3832;
  --seafoam: #7BA99A;
  --seafoam-foreground: #2C3832;
  --terracotta: #C4714A;
  --hero: #2C3832;
  --hero-foreground: #FFFFFF;

  --background-secondary: #F7F8F7;
  --surface-elevated: #FFFFFF;

  --border-subtle: rgb(123 169 154 / 0.18);
  --border-muted: rgb(123 169 154 / 0.24);
  --border-strong: #2C3832;

  --foreground-secondary: #555555;

  --primary-tint:  #F5F9F7;

  --focus-ring: rgb(123 169 154 / 0.35);

  --error: oklch(0.55 0.19 28);
  --error-foreground: #FFFFFF;
}
