/* ── Brand fonts (The Proof House licensed families, same as the Ledger) ── */
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-Thin.woff") format("woff");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-ThinItalic.woff") format("woff");
  font-weight: 100 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-Regular.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-Italic.woff") format("woff");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-Bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNoteText-BoldItalic.woff") format("woff");
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Hairline.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-HairlineItalic.woff") format("woff");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Thin.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-ThinItalic.woff") format("woff");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-SemiboldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-Black.woff") format("woff");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Swiss";
  src: url("/assets/fonts/NeueSwiss-BlackItalic.woff") format("woff");
  font-weight: 800 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Stylish Babes";
  src: url("/assets/fonts/StylishBabes.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #FAF8F5;
  --foreground: #1E2021;
  --card: #FFFFFF;
  --card-foreground: #1E2021;
  --popover: #FFFFFF;
  --popover-foreground: #1E2021;
  --primary: #172741;
  --primary-foreground: #FAF8F5;
  --secondary: #F0EBE3;
  --secondary-foreground: #172741;
  --muted: #F0EBE3;
  --muted-foreground: #6B645A;
  --accent: #8B5E3C;
  --accent-foreground: #FAF8F5;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: #C5B9A8;
  --input: #C5B9A8;
  --ring: #C4A265;
  --success: oklch(0.596 0.145 145.59);
  --warning: oklch(0.769 0.154 71.29);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* ── brand extras ─────────────────────────────────────────────── */
  --highlight: #C4A265;          /* Gold */
  --highlight-foreground: #1E2021;
  --cognac: #8B5E3C;             /* Accent — Cognac */
  --stone-taupe: #C5B9A8;        /* Lines */

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

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #E4DBCD;
  --border-muted: #D6C9B8;
  --border-strong: #B3A48F;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #5A544C;

  /* ── 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.708 0 0 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.577 0.245 27.325);
  --error-foreground: oklch(0.985 0 0);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Editor's Note", Georgia, "Times New Roman", serif;
  --font-sans: "Neue Swiss", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-signature: "Stylish Babes", cursive;
  --font-weight-display: 500;
  --line-height-display: 1.08;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --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 {
  /* This editorial page stays on the Paper White brand in every scheme —
     the .dark values mirror :root so a browser preference never flips it. */
  --background: #FAF8F5;
  --foreground: #1E2021;
  --card: #FFFFFF;
  --card-foreground: #1E2021;
  --popover: #FFFFFF;
  --popover-foreground: #1E2021;
  --primary: #172741;
  --primary-foreground: #FAF8F5;
  --secondary: #F0EBE3;
  --secondary-foreground: #172741;
  --muted: #F0EBE3;
  --muted-foreground: #6B645A;
  --accent: #8B5E3C;
  --accent-foreground: #FAF8F5;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: #C5B9A8;
  --input: #C5B9A8;
  --ring: #C4A265;
  --success: oklch(0.696 0.145 145.59);
  --warning: oklch(0.849 0.154 71.29);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);

  /* ── brand extras ─────────────────────────────────────────────── */
  --highlight: #C4A265;
  --highlight-foreground: #1E2021;
  --cognac: #8B5E3C;
  --stone-taupe: #C5B9A8;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #F3EEE7;
  --surface-elevated: #FFFFFF;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #E4DBCD;
  --border-muted: #D6C9B8;
  --border-strong: #B3A48F;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #5A544C;
}
