/* nordic-calm.css — the "Nordic calm" look for the pilot's pages (Lab, Monitor, Activities, Routine, Report, the classic pages).
 * Loaded AFTER a page's own <style>: it only re-points the pilot's design tokens (--bg, --card, --ink, …), the font
 * and a few shapes. No layout or behaviour changes. Colours from the reference board; contrast checked (WCAG AA):
 * light ink 11.2:1, muted 5.3:1 on soft grounds; dark ink 14.5:1, muted 6.1:1 or more.
 * The font is self-hosted (vendor/fonts): no request to Google from anyone's device (GDPR). */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-next-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* warm snow · porcelain · deep forest · soft sage · nordic pine · natural linen · lingonberry */
  --bg: #F7F8F4; --card: #FFFFFF; --ink: #283B34; --muted: #556760; --line: #E3E6DF; --soft: #EEF1EC;
  --accent: #456858; --accent-soft: #E5EDE5;
  --ok: #3F6B4E; --ok-soft: #E5EDE5; --bad: #9C4234; --bad-soft: #F3E3DF; --warn: #6B5434; --warn-soft: #EEE8DE;
  --info: #3E6A86; --info-soft: #E4EDF2;
  /* chart series: muted, told apart by lightness as well as hue */
  --hr: #9C4234; --spo2: #3E6A86; --hrv: #6A6493; --stress: #9A7432;
  /* Monitor: steps and sleep phases (deep → light → REM → awake, darkest to lightest) */
  --steps: #456858; --deep: #2E4A5C; --light: #7E9FB6; --rem: #8E86B8; --awake: #C9A35E; --warn-bg: #EEE8DE; --warn-ink: #6B5434;
  /* Activities */
  --accent-ink: #FFFFFF; --warm: #8A5A42; --warm-soft: #EEE8DE; --gold: #9A7432; --gold-soft: #F2ECDD; --leaf: #4F7A55; --sky: #3E6A86; --danger: #9C4234; --danger-soft: #F3E3DF;
  /* Routine: the usual range and the night band */
  --base: #A5ADA8; --night: #EEF1EC;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141C18; --card: #1C2621; --ink: #E6ECE8; --muted: #A5B3AC; --line: #2C3933; --soft: #26322C;
  --accent: #9CC3B0; --accent-soft: #203A2E;
  --ok: #9CC3B0; --ok-soft: #203A2E; --bad: #E89A8C; --bad-soft: #3A2220; --warn: #E2C38A; --warn-soft: #33291A;
  --info: #9DC0D8; --info-soft: #1E2F3A;
  --hr: #E89A8C; --spo2: #9DC0D8; --hrv: #B9B3E0; --stress: #E2C38A;
  --steps: #9CC3B0; --deep: #4E7A96; --light: #9DC0D8; --rem: #B9B3E0; --awake: #E2C38A; --warn-bg: #33291A; --warn-ink: #E2C38A;
  --accent-ink: #141C18; --warm: #E0B092; --warm-soft: #33261E; --gold: #E2C38A; --gold-soft: #33291A; --leaf: #9CC3A0; --sky: #9DC0D8; --danger: #E89A8C; --danger-soft: #3A2220;
  --base: #5E6B65; --night: #1E2A25;
} }

body { font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
/* softer, calmer shapes */
.card { border-radius: 20px !important; }
button, select, input { border-radius: 12px; }
button.primary { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary { color: #141C18; } }
h2 { letter-spacing: .14em; }   /* small caps headings of the pilot pages; a page that styles its own h2 inline wins */
.big { font-weight: 500 !important; letter-spacing: -0.03em; }
.tile .v { font-weight: 500 !important; }
/* the wordmark: a filled pine dot instead of the ring outline */
.brand { font-weight: 500 !important; letter-spacing: -0.01em; }
.brand i { width: 10px !important; height: 10px !important; border: 0 !important; background: var(--accent); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
