/* At Ease with AI: theme.
   Everything another audience would change (colors, type, sizes, pictures) is in this one file.

   Text contrast, WCAG formula, 7:1 or better on every background used:
     ink #0b2f35        on paper 14.0, surface 14.3, tint 12.3, note 12.9, band 13.0, accent 8.5
     ink-soft #33474b   on paper 9.6, tint 8.4, note 8.9, band 8.9
     primary #0b4a54    on paper 9.7, surface 9.9, tint 8.5, note 9.0, band 9.0 (links, icons, labels)
     on-primary #ffffff on primary 9.9
   Stronger colors: black on white 21.0, white on black 21.0, black on yellow #ffe600 16.6.
   Control borders (border #5b6f73) are 5.2 on paper and 4.6 on tint, above the 3:1 needed.
   line-soft #c3d3d0 is only for card edges, which are not controls and carry no meaning. */

:root {
  /* Color */
  --paper: #fffdf8;
  --surface: #ffffff;
  --tint: #e3f1ef;
  --band: #edf6f3;        /* soft wash behind a page heading */
  --note: #fdf3dc;
  --ink: #0b2f35;
  --ink-soft: #33474b;
  --primary: #0b4a54;
  --on-primary: #ffffff;
  --accent: #f2c069;
  --border: #5b6f73;
  --line-soft: #c3d3d0;   /* card edges */
  --error: #7a1616;
  --focus: #0b2f35;
  --focus-halo: #f2c069;
  --top-line: var(--accent); /* gold rule under the header, as on the printed guides */

  /* Icons sit in a soft tinted circle, drawn in the primary color */
  --icon-bg: var(--tint);
  --icon-ink: var(--primary);

  /* Depth: a thin border and a soft line under cards, never a heavy shadow */
  --lift: 0 3px 0 rgba(11, 47, 53, 0.07);

  /* Pictures */
  --backdrop: url("backdrop.svg"); /* faint sunrise in the empty margin on wide screens */

  /* Type: system fonts, so nothing is fetched from another company */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: 1.25rem;        /* 20px body */
  --text-small: 1.0625rem;/* 17px, the smallest size used anywhere */
  --text-large: 1.5rem;
  --title: 2rem;
  --line: 1.6;
  --measure: 34rem;       /* comfortable line length */

  /* Size: 14 mm is about 53px. Buttons never go below this. */
  --target: 3.5rem;       /* 56px */
  --gap: 1rem;
  --radius: 0.75rem;
  --border-width: 2px;
  --icon: 1.5rem;         /* icon beside words in a button */
  --icon-circle: 4rem;    /* tinted circle behind a large icon */
  --icon-big: 2.5rem;     /* icon inside that circle */
}

/* Comfort settings. Each is an attribute on <html>, set from the Settings panel. */
:root[data-text="large"] {
  --text: 1.5rem;
  --text-small: 1.25rem;
  --text-large: 1.75rem;
  --title: 2.25rem;
  --measure: 30rem;
  --icon: 1.75rem;
}
:root[data-targets="large"] {
  --target: 4.5rem;       /* 72px */
  --gap: 1.5rem;
}
:root[data-contrast="high"] {
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #ffffff;
  --band: #ffffff;
  --note: #ffffff;
  --ink: #000000;
  --ink-soft: #000000;
  --primary: #000000;
  --on-primary: #ffffff;
  --accent: #ffe600;
  --border: #000000;
  --line-soft: #000000;
  --error: #000000;
  --focus: #000000;
  --focus-halo: #ffe600;
  --top-line: #000000;
  --border-width: 3px;
  --icon-bg: #ffffff;
  --icon-ink: #000000;
  --lift: none;
  --backdrop: none;
}
