/* Stencil Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&display=swap');
/* /Stencil Fonts */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Parisienne&family=Titan+One&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&display=swap');

@font-face {
  font-family: 'Amalfi Coast';
  src: url('/assets/fonts/AmalfiCoast.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Girl, Math brand ────────────────────────────────────────────────
     cream canvas · ink text · pink accent (the period) · lime money-in */
  --background: oklch(0.958 0.007 47);
  --foreground: oklch(0.228 0.004 56);
  --card: oklch(0.99 0.004 60);
  --card-foreground: oklch(0.228 0.004 56);
  --popover: oklch(0.99 0.004 60);
  --popover-foreground: oklch(0.228 0.004 56);
  --primary: #E381B2;
  --primary-foreground: #ffffff;
  --secondary: oklch(0.93 0.008 50);
  --secondary-foreground: oklch(0.228 0.004 56);
  --muted: oklch(0.935 0.007 50);
  --muted-foreground: oklch(0.52 0.008 52);
  --accent: oklch(0.925 0.01 350);
  --accent-foreground: oklch(0.34 0.06 350);
  --destructive: oklch(0.55 0.2 25);
  --destructive-foreground: oklch(0.98 0.008 60);
  --border: oklch(0.9 0.008 48);
  --input: oklch(0.9 0.008 48);
  --ring: oklch(0.712 0.132 351);
  --success: oklch(0.66 0.13 140);
  --warning: oklch(0.77 0.15 71);

  /* ── brand tokens — each colour has one job ───────────────────────
     pink       (Persian Pink)  the period + the primary button — the app's main colour
     lime                       money in · profit · progress · positive states
     olive      (Moss)          deep accent · charts · readable green on cream · text on lime
     rose       (Rosehip)       warm surfaces · gentle highlights
     ink                        the wordmark · dark bands · every number · body copy
     gold                       accent — sparing highlights, tax/savings call-outs
     periwinkle                 cool counterpoint on charts and category swatches
     tangerine                  high-energy accent — attention states, alongside pink
     jordy-blue                 cool chart/category colour, pairs with olive + periwinkle */
  --pink: #E381B2;
  --pink-foreground: #ffffff;
  --pink-soft: oklch(0.93 0.045 351);
  --money-in: #D6DA81;
  --money-in-foreground: #3d3f1c;
  --money-in-strong: #937D1B;
  --olive: #937D1B;
  --olive-foreground: #ffffff;
  --rose: #F6C3AE;
  --rose-foreground: #6b3a26;
  --ink: oklch(0.27 0.03 50);
  --ink-foreground: #F7F1EF;
  --gold: #DEBC66;
  --gold-foreground: #5c4813;
  --periwinkle: #CDBCDC;
  --periwinkle-foreground: #453a54;
  --tangerine: #F0743E;
  --tangerine-foreground: #ffffff;
  --jordy-blue: #8DAEF2;
  --jordy-blue-foreground: #1f3864;

  --chart-1: #E381B2;
  --chart-2: #D6DA81;
  --chart-3: #937D1B;
  --chart-4: #F6C3AE;
  --chart-5: #8DAEF2;

  --sidebar: oklch(0.99 0.004 60);
  --sidebar-foreground: oklch(0.228 0.004 56);
  --sidebar-primary: oklch(0.228 0.004 56);
  --sidebar-primary-foreground: oklch(0.968 0.008 60);
  --sidebar-accent: oklch(0.93 0.008 50);
  --sidebar-accent-foreground: oklch(0.228 0.004 56);
  --sidebar-border: oklch(0.9 0.008 48);
  --sidebar-ring: oklch(0.712 0.132 351);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.945 0.008 48);
  --surface-hover:   color-mix(in srgb, var(--rose) 30%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--rose) 50%, var(--background));
  --surface-elevated: oklch(1 0.003 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.93 0.006 48);
  --border-muted: oklch(0.91 0.007 48);
  --border-strong: oklch(0.82 0.009 48);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.006 54);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, black);
  --primary-muted: color-mix(in srgb, var(--primary) 12%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 7%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  --focus-ring: oklch(0.712 0.132 351 / 0.4);
  --error: oklch(0.55 0.2 25);
  --error-foreground: oklch(0.98 0.008 60);

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

  /* ── typography ───────────────────────────────────────────────── */
  /* Fraunces = the wordmark & display numerals (its own object).
     DM Serif Display = app headings (sibling to the mark, not twin).
     DM Sans = body & UI. */
  --font-wordmark: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  /* CTAs, captions & labels — DM Mono, always uppercase + wide tracking */
  --font-cta: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  /* Handwritten ink accents — the licensed Amalfi Coast script */
  --font-script: 'Amalfi Coast', 'Parisienne', 'Snell Roundhand', 'Brush Script MT', cursive;
  --font-weight-display: 600;
  --line-height-display: 1.05;
  --tracking-display: -0.018em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 50 / 0.06);
  --shadow-md: 0 6px 20px oklch(0.3 0.02 50 / 0.08);
  --shadow-lg: 0 18px 44px oklch(0.3 0.02 50 / 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 340ms;
  --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-base: 0.25rem;
}

.dark {
  --background: oklch(0.2 0.006 56);
  --foreground: oklch(0.955 0.006 60);
  --card: oklch(0.245 0.006 56);
  --card-foreground: oklch(0.955 0.006 60);
  --popover: oklch(0.245 0.006 56);
  --popover-foreground: oklch(0.955 0.006 60);
  --primary: oklch(0.955 0.006 60);
  --primary-foreground: oklch(0.228 0.004 56);
  --secondary: oklch(0.3 0.006 56);
  --secondary-foreground: oklch(0.955 0.006 60);
  --muted: oklch(0.3 0.006 56);
  --muted-foreground: oklch(0.72 0.006 56);
  --accent: oklch(0.34 0.03 350);
  --accent-foreground: oklch(0.9 0.04 350);
  --destructive: oklch(0.62 0.2 25);
  --destructive-foreground: oklch(0.98 0.008 60);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.712 0.132 351);
  --success: oklch(0.7 0.13 140);
  --warning: oklch(0.82 0.15 71);

  --pink: #E381B2;
  --pink-foreground: #ffffff;
  --pink-soft: oklch(0.36 0.06 351);
  --money-in: #D6DA81;
  --money-in-foreground: #2c2e14;
  --money-in-strong: oklch(0.8 0.12 118);
  --olive: oklch(0.7 0.1 100);
  --olive-foreground: #1C1B1A;
  --rose: #F6C3AE;
  --rose-foreground: #6b3a26;
  --ink: oklch(0.19 0.025 50);
  --ink-foreground: #F7F1EF;
  --gold: #DEBC66;
  --gold-foreground: #4a390e;
  --periwinkle: #CDBCDC;
  --periwinkle-foreground: #2f2739;
  --tangerine: #F0743E;
  --tangerine-foreground: #2b1006;
  --jordy-blue: #8DAEF2;
  --jordy-blue-foreground: #10203f;

  --chart-1: #E381B2;
  --chart-2: #D6DA81;
  --chart-3: oklch(0.8 0.12 118);
  --chart-4: #F6C3AE;
  --chart-5: #8DAEF2;

  --sidebar: oklch(0.245 0.006 56);
  --sidebar-foreground: oklch(0.955 0.006 60);
  --sidebar-primary: oklch(0.955 0.006 60);
  --sidebar-primary-foreground: oklch(0.228 0.004 56);
  --sidebar-accent: oklch(0.3 0.006 56);
  --sidebar-accent-foreground: oklch(0.955 0.006 60);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.712 0.132 351);

  --background-secondary: oklch(0.23 0.006 56);
  --surface-elevated: oklch(0.28 0.006 56);
  --border-subtle: oklch(1 0 0 / 7%);
  --border-muted: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 22%);
  --foreground-secondary: oklch(0.74 0.006 56);
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));
  --focus-ring: oklch(0.712 0.132 351 / 0.5);
  --error: oklch(0.62 0.2 25);
  --error-foreground: oklch(0.98 0.008 60);
}

/* Stencil Tweaks */
:root {
  --primary: #E381B2;
  --background: #F7F1EF;
  --foreground: #1C1B1A;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius: 18px;
}
/* /Stencil Tweaks */