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

:root {
  /* ── Better Said Studio brand system: eight colours, each with a job ──
     Off-white and ink do most of the work. Colours come in pairs:
     plum + blush, moss + pale lime, blush mauve + plum, powder blue + ink.
     Apricot is the spark: always small, always carries plum text. */
  --off-white: #F7F5F0;
  --ink: #1B1B19;
  --plum: #5C2235;
  --blush: #F3DDDC;
  --moss: #56623E;
  --lime: #EEF2D2;
  --mauve: #E6CACA;
  --powder: #C9DAE8;
  --apricot: #E9A15A;
  --apricot-hover: color-mix(in srgb, var(--apricot) 88%, var(--plum));

  /* ── shadcn base tokens ── */
  --background: #F7F5F0;                        /* Off-white — the page */
  --foreground: #1B1B19;                        /* Ink */
  --card: #FBFAF7;
  --card-foreground: #1B1B19;
  --popover: #FBFAF7;
  --popover-foreground: #1B1B19;
  --primary: #5C2235;                           /* Plum — founders & individuals, the heart */
  --primary-foreground: #F3DDDC;                /* Blush on plum */
  --secondary: #E6CACA;                         /* Blush mauve — quotes, proof */
  --secondary-foreground: #5C2235;              /* Plum on blush mauve */
  --muted: #EDEAE3;
  --muted-foreground: #5E5B55;
  --accent: #F3DDDC;                            /* soft blush hover tint */
  --accent-foreground: #5C2235;
  --destructive: oklch(0.50 0.19 27);
  --destructive-foreground: #F7F5F0;
  --border: #D9D4CA;
  --input: #CFC9BE;
  --ring: #5C2235;
  --success: #56623E;
  --warning: oklch(0.58 0.14 60);
  --chart-1: #5C2235;
  --chart-2: #E9A15A;                           /* Apricot — small marks only */
  --chart-3: #56623E;
  --chart-4: #C9DAE8;
  --chart-5: #E6CACA;
  --sidebar: #1B1B19;                           /* Ink rail */
  --sidebar-foreground: #F7F5F0;
  --sidebar-primary: #E9A15A;
  --sidebar-primary-foreground: #5C2235;
  --sidebar-accent: #2A2A27;
  --sidebar-accent-foreground: #F7F5F0;
  --sidebar-border: #34342F;
  --sidebar-ring: #E9A15A;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #EFECE5;
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: #FBFAF7;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #E7E3DB;
  --border-muted: #DFDAD0;
  --border-strong: #A9A397;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #3D3C38;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, 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) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgb(92 34 53 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.50 0.19 27);
  --error-foreground: #F7F5F0;

  /* ── radius — flat, printed, near-square ─────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.125rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  /* Headlines: heavy, tight, uppercase grotesque. Asides and quotes: Instrument
     Serif, mostly italic. Wordmark and small labels: Plus Jakarta Sans Bold. */
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-brand: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 800;
  --line-height-display: 1;
  --tracking-display: -0.035em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — barely there ───────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(27, 27, 25, 0.06);
  --shadow-md: 0 4px 14px rgba(27, 27, 25, 0.09);
  --shadow-lg: 0 14px 36px rgba(27, 27, 25, 0.14);

  /* ── 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 ── Ink page, off-white text ──────────── */
  --background: #1B1B19;
  --foreground: #F7F5F0;
  --card: #242422;
  --card-foreground: #F7F5F0;
  --popover: #2A2A27;
  --popover-foreground: #F7F5F0;
  --primary: #5C2235;
  --primary-foreground: #F3DDDC;
  --secondary: #3A2A2C;
  --secondary-foreground: #F3DDDC;
  --muted: #2A2A27;
  --muted-foreground: #B9B4AA;
  --accent: #33292A;
  --accent-foreground: #F3DDDC;
  --destructive: oklch(0.60 0.19 27);
  --destructive-foreground: #F7F5F0;
  --border: oklch(1 0 0 / 14%);
  --input: oklch(1 0 0 / 18%);
  --ring: #E9A15A;
  --success: #A9B585;
  --warning: oklch(0.80 0.13 70);
  --chart-1: #B5546F;
  --chart-2: #E9A15A;
  --chart-3: #A9B585;
  --chart-4: #C9DAE8;
  --chart-5: #E6CACA;
  --sidebar: #141413;
  --sidebar-foreground: #F7F5F0;
  --sidebar-primary: #E9A15A;
  --sidebar-primary-foreground: #5C2235;
  --sidebar-accent: #242422;
  --sidebar-accent-foreground: #F7F5F0;
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: #E9A15A;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #222220;
  --surface-elevated: #2A2A27;

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

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

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: rgb(233 161 90 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.17 27);
  --error-foreground: #1B1B19;
}

/* Stencil Tweaks */
:root:not(.dark) {
  --primary: #5C2235;
  --background: #F7F5F0;
  --foreground: #1B1B19;
}
:root {
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}
/* /Stencil Tweaks */
