:root {
  /* ── shadcn base tokens ──── monochrome: black ink on white ─────── */
  --background: #FFFFFF;
  --foreground: #000000;
  --card: #FFFFFF;
  --card-foreground: #111111;
  --popover: #FFFFFF;
  --popover-foreground: #111111;
  --primary: #FFDE59;
  --primary-foreground: #1a1a1a;
  --secondary: #E6E6E6;
  --secondary-foreground: #1a1a1a;
  --muted: #F4F4F4;
  --muted-foreground: #6B6B6B;
  --accent: #EEEEEE;
  --accent-foreground: #1a1a1a;
  --destructive: #1a1a1a;
  --destructive-foreground: #FFFFFF;
  --border: #E5E5E5;
  --input: #DADADA;
  --ring: #FFDE59;
  --success: #4A4A4A;
  --warning: #9A9A9A;
  --chart-1: #111111;
  --chart-2: #4A4A4A;
  --chart-3: #7A7A7A;
  --chart-4: #A6A6A6;
  --chart-5: #CFCFCF;
  --sidebar: #FFFFFF;
  --sidebar-foreground: #111111;
  --sidebar-primary: #111111;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F0F0F0;
  --sidebar-accent-foreground: #1a1a1a;
  --sidebar-border: #E5E5E5;
  --sidebar-ring: #111111;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #F6F6F6;
  --surface-hover:   color-mix(in srgb, var(--primary) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --surface-elevated: #FFFFFF;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #EFEFEF;
  --border-muted: #E5E5E5;
  --border-strong: #C4C4C4;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #4F4F4F;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: #E8C94A;
  --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) 4%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgb(255 222 89 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: #1a1a1a;
  --error-foreground: #FFFFFF;

  /* ── heading ink — headings/titles render near-black ─ */
  --heading-ink: #1a1a1a;

  /* ── radius (soft, rounded) ───────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'GoogleSans', 'Google Sans', 'Roboto', sans-serif;
  --font-sans: 'GoogleSans', 'Google Sans', 'Roboto', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.12;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — neutral grey ───────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.04);
  --shadow-md: 0 6px 20px rgb(0 0 0 / 0.08), 0 2px 6px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 18px 44px rgb(0 0 0 / 0.12), 0 6px 14px rgb(0 0 0 / 0.06);

  /* ── 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 ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #111111;
  --foreground: #F5F5F5;
  --card: #1A1A1A;
  --card-foreground: #F5F5F5;
  --popover: #1A1A1A;
  --popover-foreground: #F5F5F5;
  --primary: #FFDE59;
  --primary-foreground: #1a1a1a;
  --secondary: #2E2E2E;
  --secondary-foreground: #EDEDED;
  --muted: #262626;
  --muted-foreground: #A3A3A3;
  --accent: #2E2E2E;
  --accent-foreground: #F5F5F5;
  --destructive: #EDEDED;
  --destructive-foreground: #111111;
  --border: rgb(255 255 255 / 11%);
  --input: rgb(255 255 255 / 15%);
  --ring: #FFDE59;
  --success: #C8C8C8;
  --warning: #8A8A8A;
  --chart-1: #F5F5F5;
  --chart-2: #C8C8C8;
  --chart-3: #9A9A9A;
  --chart-4: #707070;
  --chart-5: #4A4A4A;
  --sidebar: #0D0D0D;
  --sidebar-foreground: #F5F5F5;
  --sidebar-primary: #F5F5F5;
  --sidebar-primary-foreground: #111111;
  --sidebar-accent: #262626;
  --sidebar-accent-foreground: #F5F5F5;
  --sidebar-border: rgb(255 255 255 / 11%);
  --sidebar-ring: #F5F5F5;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #161616;
  --surface-elevated: #262626;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: rgb(255 255 255 / 6%);
  --border-muted: rgb(255 255 255 / 8%);
  --border-strong: rgb(255 255 255 / 22%);

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

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: rgb(255 222 89 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: #EDEDED;
  --error-foreground: #111111;

  /* ── heading ink — stay legible on the dark background ────────── */
  --heading-ink: var(--foreground);
}

/* ── section identity ─────────────────────────────────────────────
   Pages still mark their section with data-section="…", but every section
   now shares one monochrome treatment: a light grey band, black ink and a
   grey hairline on cards. */
:root {
  --section-band: var(--muted);
  --section-ink: var(--foreground);
  --card-line: color-mix(in oklab, var(--border-subtle) 60%, transparent);
  --card-line-width: 1px;
}
[data-section] {
  --card-line-width: 1.5px;
  --section-band: #F0F0F0;
  --section-ink: #1a1a1a;
  --card-line: #DADADA;
}
.dark [data-section] {
  --section-band: #262626;
  --section-ink: #F5F5F5;
  --card-line: rgb(255 255 255 / 16%);
}

/* Stencil Tweaks */
:root:not(.dark) {
  /* ── brand colour — a warm yellow, at the owner's request (2026-11-08) ── */
  --primary: #FFDE59;
  --primary-foreground: #1a1a1a;
  --primary-hover: #E8C94A;
  --ring: #FFDE59;
  --focus-ring: rgb(255 222 89 / 0.4);
}
.dark {
  --primary: #FFDE59;
  --primary-foreground: #1a1a1a;
  --primary-hover: #E8C94A;
  --ring: #FFDE59;
  --focus-ring: rgb(255 222 89 / 0.45);
}
@font-face {
  font-family: 'GoogleSans';
  src: url('/assets/fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GoogleSans';
  src: url('/assets/fonts/GoogleSans_17pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* /Stencil Tweaks */