/* Lumos Group: design tokens. "The Sales Suite": a developer's private suite after hours.
   Default is lights down (the suite at night). [data-theme="light"] is lights up: the house lights come on over
   travertine. Every pairing below was measured for WCAG AA (see .design/lumos-redesign/DESIGN_TOKENS.md). */

@font-face { font-family: 'Marcellus'; src: url(/fonts/marcellus.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url(/fonts/albert-sans-var.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url(/fonts/albert-sans-italic-var.woff2) format('woff2'); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;

  /* ---- materials of the room (used by surfaces and by the 3D models) ---- */
  --material-wall: #1B1918;            /* warm charcoal, from their brand charcoal #202022 */
  --material-travertine: #D8C8AE;      /* plinth stone */
  --material-travertine-deep: #B9A688; /* its shadowed faces and pits */
  --material-timber: #7E4F2E;          /* oiled blackbutt model bases */
  --material-card: #F3EFE8;            /* white-card models */
  --material-brass: #B48A4E;           /* labels, fixings: the only metal */
  --material-light: #FFD9A0;           /* the spotlight's colour */
  --brand-green: #08A86A;              /* their green: wordmark and the actions that matter */
  --brand-charcoal: #202022;

  /* ---- colour: lights down (default) ---- */
  --color-bg-primary: #1B1918;
  --color-bg-secondary: #24211F;
  --color-bg-tertiary: #2E2A27;
  --color-bg-inverse: #E9E1D4;

  --color-text-primary: #EEE7DC;
  --color-text-secondary: #BDB3A6;
  --color-text-tertiary: #968C80;
  --color-text-inverse: #1B1918;
  --color-text-link: #3CC38B;

  --color-border-primary: #3A3532;
  --color-border-secondary: #2C2826;
  --color-border-focus: #E9C98B;

  --color-accent-primary: #08A86A;
  --color-accent-primary-hover: #0BBE79;
  --color-accent-primary-active: #07935D;
  --color-on-accent: #10140F;          /* charcoal on green, 6.0:1; never small white text on the green */
  --color-accent-secondary: #C29A5B;   /* brass, for labels and rules */

  --color-status-success: #5CC08A;
  --color-status-warning: #E0B060;
  --color-status-error: #E58A7B;
  --color-status-info: #8FB4D9;

  --color-surface-overlay: rgb(12 11 10 / .74);

  /* ---- spacing: 8px base, spacious multipliers ---- */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 96px;
  --space-12: 128px;
  --space-section: clamp(96px, 8vw + 40px, 176px);
  --space-gutter: clamp(20px, 4vw, 64px);

  /* ---- typography ---- */
  --font-family-display: 'Marcellus', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-family-body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-family-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --font-size-xs: .8125rem;
  --font-size-sm: .9375rem;
  --font-size-base: 1.0625rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: clamp(2.25rem, 1.6rem + 2.2vw, 3rem);
  --font-size-3xl: clamp(2.75rem, 1.8rem + 3.6vw, 4.25rem);
  --font-size-4xl: clamp(3.25rem, 2rem + 5vw, 6rem);   /* hero display */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.06;
  --line-height-snug: 1.25;
  --line-height-normal: 1.55;
  --line-height-relaxed: 1.7;

  --letter-spacing-tight: -.015em;     /* Marcellus at display sizes */
  --letter-spacing-normal: 0;
  --letter-spacing-wide: .14em;        /* plinth-label caps */

  /* ---- layout ---- */
  --max-width-content: 66ch;
  --max-width-wide: 1120px;
  --max-width-page: 1440px;

  --border-radius-sm: 2px;             /* architecture is square: corners only soften */
  --border-radius-md: 4px;
  --border-radius-lg: 6px;
  --border-radius-full: 999px;         /* only the theme switch and status dots */

  /* soft, offset shadows, as cast by the one overhead light; never a glow */
  --shadow-sm: 0 2px 6px rgb(0 0 0 / .28);
  --shadow-md: 0 10px 28px -8px rgb(0 0 0 / .45);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .6);
  --shadow-focus: 0 0 0 3px var(--color-border-focus);

  /* ---- motion: slow, settled ---- */
  --duration-instant: 50ms;
  --duration-fast: 160ms;
  --duration-normal: 280ms;
  --duration-slow: 600ms;
  --duration-slower: 1100ms;
  --duration-light: 1800ms;            /* the spotlight warming up */
  --ease-default: cubic-bezier(.22, .61, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* ---- component tokens ---- */
  --button-height: 52px;
  --button-padding: 0 28px;
  --input-height: 52px;
  --label-font: 600 var(--font-size-xs)/1.3 var(--font-family-body);
  --plinth-label-bg: #2A2622;
  --plinth-label-rule: var(--material-brass);
  --header-height: 76px;
  --focus-outline: 2px solid var(--color-border-focus);
}

/* ---- lights up: the house lights come on ---- */
:root[data-theme="light"] {
  color-scheme: light;
  --color-bg-primary: #E6DCCB;
  --color-bg-secondary: #EFE7DA;
  --color-bg-tertiary: #F6F1E8;
  --color-bg-inverse: #1B1918;

  --color-text-primary: #1E1B19;
  --color-text-secondary: #4D4540;
  --color-text-tertiary: #645B55;
  --color-text-inverse: #EEE7DC;
  --color-text-link: #066B43;

  --color-border-primary: #CDBFA9;
  --color-border-secondary: #D9CDBB;
  --color-border-focus: #7A5A2C;

  --color-accent-secondary: #755629;

  --color-status-success: #1E6B45;
  --color-status-warning: #7A5410;
  --color-status-error: #9E3B2C;
  --color-status-info: #2F5A86;

  --color-surface-overlay: rgb(30 27 25 / .55);
  --plinth-label-bg: #F3ECE0;
  --shadow-sm: 0 2px 6px rgb(60 45 30 / .14);
  --shadow-md: 0 10px 28px -8px rgb(60 45 30 / .22);
  --shadow-lg: 0 30px 60px -20px rgb(60 45 30 / .3);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-slow: 0ms; --duration-slower: 0ms; --duration-light: 0ms; }
}
