/* ============================================
   OnePulse web theme
   Fonts and color tokens shared by every page under landing/.
   Pages served at nested or rewritten paths (auth/, the open.html
   fallback) link it as /theme.css; font urls resolve from here.
   ============================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --bg: #FAF8F3;
  --surface: #F5F0E8;
  --card: #FFFDF9;
  --ink: #2C3135;
  --ink-soft: #5F686E;
  --line: #E8E2D5;
  --accent: #5C6B47;
  --button: #5C6B47;
  --button-ink: #FAF8F3;
  --badge: #2C3135;
  --badge-ink: #FAF8F3;
  --shadow: 44, 49, 53;
  --mark-filter: none;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', serif;

  /* One radius rule: anything you tap is a pill, panels are 20px,
     phone screens keep the device's own corner. */
  --radius-pill: 999px;
  --radius-panel: 20px;
  --radius-phone: 13% / 6%;

  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The legal pages carry their own light-only colors. */
:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F2226;
    --surface: #272B30;
    --card: #2E3338;
    --ink: #F1ECE1;
    --ink-soft: #B5B0A8;
    --line: #3A3F45;
    --accent: #A9B894;
    --badge: #F1ECE1;
    --badge-ink: #1F2226;
    --shadow: 0, 0, 0;
    --mark-filter: brightness(1.75);
  }
}
