/* ============================================================================
   field-guide — admin theme.

   Token overrides only, per docs/ADMIN-STANDARD.md §3.1. No layout, no
   components, no state colour. Everything structural lives in
   shared/admin.css so all 17 admins behave identically.

   The family reads as a printed reference work: warm paper ground, deep
   woodland ink, serif display type, and near-square corners so cards read as
   pasted-up plates rather than app chrome.

   The manifest's #45664a arrives as --adm-tpl-accent, set inline on <body>,
   so `--set accent=#xxxxxx` retargets the admin as well as the public page.
   ========================================================================== */

/* ---------- Light (default) ------------------------------------------------ */

[data-adm-app] {
  /* Brand — chrome only: rail mark, active indicator, primary button. */
  --adm-brand: var(--adm-tpl-accent, #45664a);
  --adm-brand-ink: #ffffff;

  /* Surfaces — the guide's paper stock, one shade warmer than the page. */
  --adm-bg: #efe9d8;
  --adm-surface: #f9f5e9;
  --adm-surface-alt: #e8e1cd;
  --adm-border: #d9cfb6;
  --adm-border-strong: #bdb094;

  /* Text — woodland ink over paper. */
  --adm-text: #243128;
  --adm-text-muted: #59675d;
  --adm-text-faint: #8a8474;

  /* Shape — plate corners, not app corners. */
  --adm-radius: 4px;
  --adm-radius-sm: 3px;

  /* Type — serif display echoes the printed chapter headings. */
  --adm-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --adm-font-display: Georgia, 'Times New Roman', ui-serif, serif;
}

/* ---------- Dark ----------------------------------------------------------- */

[data-theme='dark'] [data-adm-app] {
  /* Lift the fern accent so it survives against a night-woodland ground. */
  --adm-brand: color-mix(in srgb, var(--adm-tpl-accent, #45664a) 62%, #ffffff);
  --adm-brand-ink: #131a14;

  --adm-bg: #191f1a;
  --adm-surface: #212922;
  --adm-surface-alt: #29322a;
  --adm-border: #39443a;
  --adm-border-strong: #4d5a4e;

  --adm-text: #edf0e6;
  --adm-text-muted: #a4b0a3;
  --adm-text-faint: #7d8a7d;
}
