/*
 * tokens.css — design tokens shared by every template skin.
 *
 * Brand/white-label and per-agent colors are applied by overriding these
 * custom properties (see [data-brand-mode] blocks), so a skin is never forked
 * per brand — it's just re-tokenized (property-website-dev.md §F2).
 */
:root {
  /* Palette (Editorial default; skins may override) */
  --c-bg:        #fbfaf7;   /* warm off-white */
  --c-surface:   #ffffff;
  --c-ink:       #1a1a18;   /* near-black text */
  --c-ink-soft:  #5a5a54;   /* muted text */
  --c-line:      #e7e3da;   /* hairlines */
  --c-accent:    #1f513f;   /* brand accent (overridden by agent brand_color in WL) */
  --c-accent-ink:#ffffff;
  --accent: var(--c-accent);
  --c-accent-text: var(--c-ink); /* readable no-script fallback */
  --c-ribbon:    #9a3412;   /* price-reduced / status ribbon */
  --c-scrim:     rgba(12,12,10,.45); /* hero overlay scrim */

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale & rhythm */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .6s;

  /* Chrome */
  --nav-h: 4.5rem;
}

/* Brand modes — all three generated simultaneously (see property-website-dev.md §C). */
[data-brand-mode="klm"]       { --c-accent: #1f513f; }   /* KLM showcase / lead-gen */
[data-brand-mode="agent"]     { /* --c-accent injected by JS from agent.brand_color */ }
[data-brand-mode="unbranded"] { --c-accent: #46505a; }   /* neutral slate — no one's brand (MLS unbranded) */

/* Color themes — accent palette overrides. `html:root` raises
   specificity to (0,2,1), above a skin's later `html[data-template]` (0,1,1).
   Set via data-theme on <html>; 'default' adds no attribute. */
html:root[data-theme="gold"]     { --c-accent: #b08d3c; --c-accent-ink: #1a1a18; --c-ribbon: #936a1c; }  /* KLM gold/yellow */
html:root[data-theme="navy"]     { --c-accent: #1e3a5f; --c-accent-ink: #ffffff; --c-ribbon: #8a3324; }
html:root[data-theme="charcoal"] { --c-accent: #2b2b28; --c-accent-ink: #ffffff; --c-ribbon: #8a3324; }

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
}
