/* ==========================================================================
   Nadageri Production — design tokens (design.md §3, §4, §5)
   "Champagne & Ink", with the logo's dusk dome (lavender → peach → cream)
   as the signature gradient. Components never hard-code colours: only these
   tokens change between the Day and Night themes.
   ========================================================================== */

:root {
  color-scheme: light;

  /* surfaces */
  --c-ivory: #FBF8F3;        /* page */
  --c-linen: #F4EEE5;        /* alternate band */
  --c-greige: #EAE1D3;       /* image placeholders, offset blocks */
  --c-blush: #F3E2CF;        /* CTA band: the peach of the dome */
  --c-espresso: #15162A;     /* night band + footer: the logo's ink-navy at midnight */
  --c-card: #FFFDF9;

  /* text */
  --c-ink: #1F1D24;          /* 15.9:1 on ivory */
  --c-ink-soft: #5B5764;     /* 6.6:1 */
  --c-on-dark: #F4EEE5;
  --c-on-dark-soft: rgba(244, 238, 229, .76);

  /* brand */
  --c-brand: #24284C;        /* deep ink-navy from the logo's tent lines: buttons, links */
  --c-brand-hover: #171A36;
  --c-on-brand: #FBF8F3;
  --c-accent: #B8893B;       /* champagne gold: large display text and lines only */
  --c-accent-deep: #8A6421;  /* small gold text that must pass AA (5.0:1) */
  --c-gold-glow: #E7C987;    /* gold on the night band */
  --c-lavender: #B9A6DA;
  --c-peach: #F4B98E;
  --c-sky: #79A7DC;

  /* the dome: used for the hairline accents, the arch frames and the night glow */
  --g-dusk: linear-gradient(120deg, #B9A6DA 0%, #E9B7B2 38%, #F4B98E 62%, #FBE3B6 100%);
  --g-dusk-v: linear-gradient(180deg, #B9A6DA 0%, #F0B9A0 55%, #FBE3B6 100%);
  --g-night: radial-gradient(120% 90% at 50% 0%, #2A2C55 0%, #15162A 60%, #0E0F1E 100%);

  /* utility */
  --c-line: rgba(31, 29, 36, .13);
  --c-line-strong: rgba(31, 29, 36, .26);
  --c-overlay: rgba(14, 15, 30, .5);
  --c-whatsapp: #25D366;
  --c-whatsapp-ink: #128C4B;
  --c-focus: #8A6421;
  --c-header-solid: rgba(251, 248, 243, .86);
  --c-shadow: rgba(21, 22, 42, .14);
  --c-frame: #FFFDF9;

  /* form fields: border ≥ 3:1, error text ≥ 4.5:1 */
  --c-field: #FFFDF9;
  --c-field-line: #8A8592;
  --c-error: #A3361F;

  /* "Start to finish" mood light: dawn → party night */
  --mood-idea: #F6EFE6;
  --mood-plan: #F1EAF4;
  --mood-design: #F7E6D8;
  --mood-setup: #F3E2CF;
  --mood-event: #E8E0F0;
  --mood-wrap: #F4EEE5;

  /* typography */
  --ff-display: "Cormorant Garamond", "Cormorant fallback", "Times New Roman", serif;
  --ff-body: "Jost", "Jost fallback", Arial, sans-serif;
  --ff-script: "Pinyon Script", "Snell Roundhand", cursive;

  --fs-hero: clamp(2.7rem, 1.5rem + 5vw, 6.4rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.3vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2.2vw, 3.5rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.95rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  --fs-body: clamp(1rem, .96rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-eyebrow: .76rem;
  --ls-caps: .28em;

  /* fluid layout */
  --gutter: clamp(20px, 4vw, 64px);
  --container: min(100% - 2 * var(--gutter), 1320px);
  --container-wide: min(100% - 2 * var(--gutter), 1600px);
  --container-text: min(100% - 2 * var(--gutter), 68ch);
  --section-y: clamp(76px, 10vw, 156px);
  --stack-sm: clamp(12px, 1.5vw, 18px);
  --stack-md: clamp(20px, 3vw, 36px);
  --stack-lg: clamp(36px, 5vw, 72px);
  --grid-gap: clamp(10px, 1.6vw, 24px);
  --radius: clamp(3px, .35vw, 6px);
  --arch: 999px 999px var(--radius) var(--radius);   /* the dome as a frame */
  --header-h: clamp(66px, 6vw, 96px);
  --topbar-h: 0px;
  --tap: 44px;
  --bar-h: 58px;

  /* motion */
  --ease-out: cubic-bezier(.2, .65, .2, 1);
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);
  --dur-reveal: .9s;
  --dur-theme: .5s;
}

/* Metric-matched fallbacks so the swap to the web fonts doesn't shift layout (CLS). */
@font-face {
  font-family: "Cormorant fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Times"), local("Noto Serif");
  size-adjust: 96.7%;
  ascent-override: 95.5%;
  descent-override: 29.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"), local("Roboto");
  size-adjust: 92.6%;
  ascent-override: 115.5%;
  descent-override: 40.5%;
  line-gap-override: 0%;
}

/* Night theme: opt-in, saved in localStorage, applied before first paint.
   Made for the evening work: stages, cold fire, light tunnels. */
[data-theme="night"] {
  color-scheme: dark;

  --c-ivory: #121323;
  --c-linen: #191A2E;
  --c-greige: #23243B;
  --c-blush: #2B2440;
  --c-espresso: #0B0C18;
  --c-card: #1A1B30;

  --c-ink: #F1EBE2;          /* 15.6:1 */
  --c-ink-soft: #B8B2C2;     /* 8.6:1 */
  --c-on-dark: #F1EBE2;
  --c-on-dark-soft: rgba(241, 235, 226, .76);

  --c-brand: #EFD3A6;        /* buttons turn champagne, with ink text */
  --c-brand-hover: #F7E2BF;
  --c-on-brand: #121323;
  --c-accent: #E3BE78;
  --c-accent-deep: #E3BE78;

  --c-line: rgba(241, 235, 226, .14);
  --c-line-strong: rgba(241, 235, 226, .28);
  --c-overlay: rgba(6, 6, 14, .58);
  --c-whatsapp-ink: #25D366;
  --c-focus: #E3BE78;
  --c-header-solid: rgba(18, 19, 35, .86);
  --c-shadow: rgba(0, 0, 0, .5);
  --c-frame: #F1EBE2;

  --c-field: #191A2E;
  --c-field-line: #8C87A0;
  --c-error: #F0A08A;

  --mood-idea: #191A2E;
  --mood-plan: #1E1B33;
  --mood-design: #251E2B;
  --mood-setup: #2B2234;
  --mood-event: #221F3D;
  --mood-wrap: #191A2E;
}
