/* December Finisher — shared design tokens. Theme: "Daylight".
   Imported by both the participant app (styles.css) and the admin panel (admin.css).

   A typeset training log in daylight: warm paper surfaces, near-black ink for type,
   one confident accent (cobalt) for action and progress, pine for the weekly tier,
   amber for the monthly tier. AA contrast throughout (ratios noted against --ink-950).

   The names are semantic slots, not literal colours:
     --ink-*   surface scale, page background -> strongest border (light paper tones)
     --ember   primary action / progress / daily tier        (cobalt)
     --frost   weekly tier                                    (pine)
     --gold    monthly tier, 1st place, streak flame          (amber)
   Text on an accent fill uses var(--ink-800) (near-white on cobalt = 7.7:1, on pine = 6.5:1);
   on the amber fill use var(--text) (4.9:1).
   The *-wash tokens are solid tints, not rgba: a translucent cobalt goes grey on warm paper.
   Dark "scoreboard" fills (ticker tiles, selected segment, 1st-place block) use
   background: var(--text); color: var(--ink-950). */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Surfaces (paper scale) */
  --ink-950: #f5f0e6;      /* page background — warm paper */
  --ink-900: #fbf8f1;      /* raised background / tab bar */
  --ink-800: #fffdf8;      /* card, sheet, input */
  --ink-700: #ede6d8;      /* sunken: segmented track, locked row, future day */
  --ink-600: #d9d0be;      /* hairlines, dividers */
  --ink-500: #8e8573;      /* strong border, unticked checkbox, disabled (3.2:1) */

  /* Text (ink) */
  --text: #17160f;         /* primary — 16.0:1 */
  --text-2: #4a463c;       /* secondary — 8.3:1 */
  --text-3: #6a6558;       /* tertiary / captions — 5.1:1 */

  /* Accents */
  --ember: #2438dc;        /* cobalt: primary action, progress, daily tier — 6.9:1 */
  --ember-hi: #4458ee;     /* hover / highlights */
  --ember-lo: #1626a6;     /* pressed */
  --ember-wash: #e3e6f8;   /* solid cool tint (cobalt at ~10% reads grey on warm paper) */
  --frost: #14694f;        /* pine: weekly tier — 5.8:1 */
  --frost-wash: #dcebe1;   /* solid tints: translucent washes go grey on warm paper */
  --gold: #b87800;         /* amber: monthly tier fills, 1st place, flame — 3.2:1 (graphics, large numerals) */
  --gold-wash: #f4e6c4;
  --gold-ink: #7d5200;     /* amber for small text on paper — 6.0:1 */
  --silver: #8c9197;
  --bronze: #96552f;
  --ok: #156b3a;           /* success / saved — 5.8:1 (5.3:1 on --ok-wash) */
  --ok-wash: #dcebe1;
  --danger: #b3261e;       /* errors, destructive only — 5.8:1 */
  --danger-wash: #f6dfd9;

  /* Calendar heat scale and text on dark fills */
  --heat-1: #cbcbe4;       /* calendar intensity steps: cobalt at 20 / 45 / 72 % on paper; */
  --heat-2: #979de1;       /* step 4 is --ember. Steps 1-2 take --text numerals, 3-4 take --ink-800 */
  --heat-3: #5f6bdf;
  --on-dark-2: #b9b3a2;    /* secondary label on a var(--text) "scoreboard" fill — 7.9:1 */

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & rhythm */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
  --tap: 48px;             /* minimum touch target */
  --shadow: 0 1px 2px rgba(60, 48, 20, 0.06), 0 10px 28px rgba(60, 48, 20, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
