/* The look values every page reads, declared once: linked first, before atmosphere.css, by the
 * lesson page (player.html) and the site's pages (_base.html). COPIED from the old app's
 * web/static/css/atmosphere.css tokens (only what these pages read), with the study page's
 * --lav-* bridge (web/templates/study_session.html:16-33) and the level picker's and known-words
 * page's dark-glass inks. No token here has two values, but --safe-bottom on Firefox (the last
 * rule). */
:root {
  /* colours */
  --primary: #4A4878;
  --primary-soft: #6A68A0;
  --primary-tint: rgba(74, 72, 120, 0.08);
  --gold: #d4a64a;
  --learn-accent: #3D8B7A;
  --ink: #484668;
  --ink-soft: #504E68;
  --ink-muted: #7E7C94;
  --ink-faint: #A8A6B8;
  --stone: #627B9A;
  --stone-light: #7E96B2;
  --rule: rgba(74, 72, 120, 0.12);
  --bg: #ffffff;
  --coral-tint: rgba(236,149,114,0.12);
  --dusk-base: #41395f; /* under the translucent dusk tint, so no white shows first */

  /* the home's action glyphs */
  --act-review: #9f2256;
  --act-audio: #22749f;
  --act-learn: #3D8B7A;
  --act-reading: #7a4d93;
  --act-deep: #d4a64a;

  /* type */
  --font-display: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-en: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif;

  /* motion and corners */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --fs-eyebrow: 11px;
  --fs-caption: 13px;
  --fs-sm:      14px;
  --fs-body:    16px;
  --fs-lead:    18px;
  --fs-h3:      22px;
  --fs-h2:      28px;
  --fs-h1:      34px;
  --fs-display: 42px;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* study_session.html's bridge, so phaseb.css rules copy verbatim */
  --lav-display: var(--font-display);
  --lav-ui: var(--font-en);
  --lav-jp: var(--font-jp);
  --lav-ink: var(--ink);
  --lav-ink-soft: var(--ink-soft);
  --lav-ink-muted: var(--ink-muted);
  --lav-purple: var(--primary);
  --lav-purple-soft: var(--primary-soft);
  --lav-purple-tint: var(--primary-tint);
  --lav-green: #3e9963;
  --lav-green-soft: #7bc8a3;
  --lav-green-tint: #dff1e3;
  --lav-panel: #ffffff;
  --lav-panel-soft: #faf8ff;
  --lav-hairline: rgba(74,72,120,0.12);
  --lav-hairline-soft: rgba(74,72,120,0.06);

  /* the level picker's dark glass (site-level.css) */
  --cal-ink: rgba(230,225,245,0.95);
  --cal-ink-muted: rgba(190,185,215,0.78);
  --cal-ink-faint: rgba(170,165,198,0.62);
  --cal-rule: rgba(255,255,255,0.08);
  --cal-accent: #ec9572;

  /* the known-words page's dark glass (site-known-words.css) */
  --kw-ink: rgba(230,225,245,0.95);
  --kw-ink-soft: rgba(198,193,222,0.82);
  --kw-ink-muted: rgba(190,185,215,0.78);
  --kw-rule: rgba(255,255,255,0.12);
  --kw-glass: rgba(10,13,32,0.5);
  --kw-remove: #ec9572;
}

/* Firefox for Android counts its navigation bar twice (atmosphere.css:131-140, aag-2236). */
@supports (-moz-appearance: none) {
  :root { --safe-bottom: 0px; }
}
