/* wordle-hint-today.app · design tokens · D02 Highlighter (B)
   Source of truth for values. Decisions and reasons are in DESIGN.md.
   Light theme only. Font file: Instrument Sans latin variable WOFF2 (OFL), weights 400–700;
   point src at wherever the build serves it. */

@font-face {
  font-family: "Instrument Sans";
  src: url("./fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces */
  --surface: #ffffff;          /* page, rows, cards */
  --surface-sunk: #f4f7f7;     /* group heads, feedback strip, yesterday card, covered tile */
  --surface-open: #fbfcfc;     /* an opened hint row */

  /* Ink */
  --ink: #1e2328;              /* body text, headings, puzzle-number block, solved letters */
  --ink-muted: #57606a;        /* descriptions, captions, footer (6.2:1 on white) */
  --ink-on-accent: #ffffff;

  /* Lines */
  --border: #dfe4e6;           /* dividers, card and group edges (decorative) */
  --border-control: #7a8591;   /* covered tile / position glyph outline (3.7:1, a control edge) */
  --border-strong: #1e2328;    /* date stamp, vote buttons */

  /* Action: teal pen. Only on things you can press and on focus. */
  --accent: #0e6f73;           /* Reveal pills, primary button, links, focus ring (5.9:1 w/ white) */
  --accent-hover: #0a5659;
  --accent-soft: #e3f1f1;      /* category glyph tiles */
  --accent-on-solved: #bfe0e0; /* position numbers on a fully revealed (teal) tile */

  /* Signature: highlighter. Background only, never carries text contrast. */
  --mark: #ffe873;

  /* States, kept apart from brand */
  --state-success: #0a5659;    /* "Recorded" after a vote (same family as accent on purpose) */
  --state-error: #b3261e;      /* vote failed, retry (≈6.5:1 on white) */
  --state-error-soft: #fdecea;
  --state-notice: #8a5a00;     /* advance-puzzle / missing-day notes (≈5.9:1 on white, ≈5.5:1 on notice-soft) */
  --state-notice-soft: #fff6dc;

  /* Type */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --weight-regular: 400;
  --weight-medium: 600;
  --weight-bold: 700;

  --text-xs: 0.75rem;          /* 12 */
  --text-sm: 0.8125rem;        /* 13 · demo/notice line, footer */
  --text-label: 0.875rem;      /* 14 · row descriptions, group-head notes, res-note */
  --text-ui: 0.9375rem;        /* 15 · nav, pills, stamp, vote, group-head titles */
  --text-body: 1rem;           /* 16 */
  --text-row-title: 1.0625rem; /* 17 */
  --text-result: 1.125rem;     /* 18 · sentence results, yesterday meaning on its page */
  --text-h2: 1.375rem;         /* 22 */
  --text-result-big: 1.5rem;   /* 24 · short results: "3 vowels", "Starts with A" */
  --text-answer: 1.75rem;      /* 28 · revealed whole word */
  --text-h1: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  --text-tile: clamp(1.5rem, 1.1rem + 2vw, 1.875rem);
  --text-yday-tile: clamp(1.625rem, 1.2rem + 2.4vw, 2.375rem);

  --leading-tight: 1.08;       /* h1 */
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --tracking-h1: -0.02em;
  --tracking-answer: 0.1em;

  /* Spacing ladder */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;   /* page gutter on mobile, row padding */
  --space-5: 24px;   /* gutter on desktop, between result cards */
  --space-6: 40px;   /* between page sections; title top on mobile */
  --space-7: 56px;   /* title top on desktop */

  /* Size */
  --measure: 720px;            /* reading column below 1000px */
  --measure-wide: 760px;       /* reading column from 1000px */
  --header-h: 56px;
  --glyph: 40px;               /* category glyph in a hint row */
  --row-min: 72px;             /* whole hint row is the hit area */
  --target-min: 44px;
  --pill-min-h: 36px;          /* visual size; the row around it is the target */
  --button-h: 48px;
  --tile-max: 64px;            /* five tiles fit 320px at >=44px each */
  --tiles-max-w: 320px;

  /* Radius */
  --radius-sm: 8px;            /* nav hover, solved mini tiles */
  --radius-md: 10px;           /* glyphs, tiles, stamp, vote buttons */
  --radius-lg: 12px;           /* primary button, image, feedback strip */
  --radius-xl: 16px;           /* groups and result cards */
  --radius-pill: 999px;

  /* Borders */
  --border-w: 1px;
  --border-w-control: 1.5px;
  --border-w-tile: 2px;

  /* Focus */
  --focus-ring: 3px solid var(--accent);
  --focus-offset: 2px;
  --focus-offset-inset: -3px;  /* full-width rows clip an outside ring */

  /* Elevation: none. Separation is by border and sunk surface. */
  --shadow-none: none;

  /* Highlighter geometry */
  --mark-from: 38%;
  --mark-to: 92%;
  --mark-tile-bar: 7px;        /* inset bar on a peeked tile / yesterday-page tile */

  /* Motion */
  --dur-open: 180ms;           /* result panel and whole answer fade-in; off with reduced motion */
  --ease-open: ease-out;
  --open-shift: -3px;

  /* Breakpoints (reference; CSS custom properties can't drive media queries) */
  --bp-indent: 400px;          /* results indent to the title column */
  --bp-brand-name: 480px;      /* brand text appears beside the mark */
  --bp-desktop: 1000px;        /* wider gutter, 760px column, more top room */
}
