/* brightloopapps.com tokens. Every colour, face, size and space on the site
 * comes from here. Daylight paper, night-navy ink, one marigold "bright point"
 * (decorative only, never text) and one blue for links and focus. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-var.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
/* Breza's own display face, used only inside the phone so it looks like the app. */
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --color-paper: oklch(97.2% 0.009 240);
  --color-paper-2: oklch(93.6% 0.016 240);
  --color-rule: oklch(86% 0.018 245);
  --color-ink: oklch(23% 0.05 262);
  --color-ink-2: oklch(44% 0.04 258);
  --color-link: oklch(47% 0.17 262);
  --color-focus: oklch(47% 0.17 262);
  --color-sun: oklch(82% 0.165 78);

  --font-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-breza: 'Instrument Serif', Georgia, serif;

  /* Breza's light theme (theme/brand.ts, theme/tokens.ts), for the phone only. */
  --breza-canvas: #FAF4EC;
  --breza-cream: #FFFBF4;
  --breza-ink: #2A1F18;
  --breza-ink-2: #5C4B3D;
  --breza-muted: #8E7A68;
  --breza-hairline: #E8DCC8;
  --breza-terracotta: #C97B5F;
  --breza-warm: #F8E6D6;

  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --text-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  --text-hero: clamp(2.6rem, 6.6vw + 0.75rem, 7.25rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  --rule-hair: 1px solid var(--color-rule);
  --radius-icon: 22%;
  --phone-bezel: oklch(19% 0.025 262);
  --radius-focus: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 1100ms;

  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-paper: oklch(18% 0.035 262);
    --color-paper-2: oklch(22% 0.04 262);
    --color-rule: oklch(31% 0.04 262);
    --color-ink: oklch(95% 0.01 240);
    --color-ink-2: oklch(78% 0.03 250);
    --color-link: oklch(79% 0.09 255);
    --color-focus: oklch(79% 0.09 255);
    --color-sun: oklch(84% 0.15 80);
  }
}
