/* Family Trails theme: the ONE place for fonts and colours. Loaded by the app (index.html)
   and every website page (tools/site.mjs) before their own CSS, so both always match.
   "Drawn Map" look (owner chose it 2026-11-12, from the hand-drawn trail map on the High Sand
   Creek website): cream paper, a hand-drawn map feel, sage and silt for land and water, clay
   for the route, the main button and the mystery's wax seals. Fraunces headings, Karla text,
   IBM Plex Mono for small map labels. Night is the same design on deep green.
   The app sets data-theme on <html> itself; website pages follow the phone's setting. */
@font-face{font-family:'Fraunces';src:url(/fonts/fraunces-latin.woff2) format('woff2');font-weight:600 800;font-display:swap}
@font-face{font-family:'Karla';src:url(/fonts/karla-latin.woff2) format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url(/fonts/plexmono-500-latin.woff2) format('woff2');font-weight:500;font-display:swap}

:root{
  --head:'Fraunces',Georgia,serif;
  --body:'Karla',ui-sans-serif,system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;

  --bg:#EDE4CC;          /* the page: warm sand; questions and text sit here */
  --card:#F7F1DF;        /* paper: answers, cards, buttons, the drawn map sheet */
  --surface:#E2D7BA;     /* quiet fill: chips, tracks */
  --line:#D2C6A8;
  --line-strong:#BDB295; /* dashed "drawn" edges and the press shadow under paper cards */
  --ink:#241F1A;
  --soft:#5E5743;

  --accent:#B95A39;      /* clay: the route, the one main button, wax seals */
  --accent-dk:#8E4026;
  --accent-text:#9E4A2C;
  --on-accent:#FFFFFF;
  --sage:#2F6E60;        /* land, ticks, map labels */
  --silt:#8FB6AC;        /* water */
  --lavender:#8B6BAF;

  /* the mystery: a paper case card with clay wax-seal letters */
  --panel:#F7F1DF; --panel-border:#BDB295; --panel-ink:#241F1A; --panel-soft:#5E5743; --panel-line:#BDB295;
  --gold:#B95A39; --gold-ink:#FFFFFF;

  --ok:#2F6E60; --ok-bg:#DCE5D3;
  --hz:#8E2F1C; --hz-bg:#F2D9CB;

  --map:#F7F1DF; --contour:#CFC3A3; --sea:#C3D6CD; --coast:#3A8272; --pin:#B95A39;

  --r-sm:10px; --r-md:16px; --r-lg:20px; --r-xl:24px;
  --sh:0 0 #0000;
  --sh-float:0 14px 30px -18px rgba(36,31,26,.45);
  --focus:#241F1A;
  color-scheme:light;
}
:root[data-theme=dark]{
  --bg:#1B2620; --card:#22302A; --surface:#2A3A33; --line:#3A4A41; --line-strong:#4E5C52;
  --ink:#EDE7D3; --soft:#B9AF95;
  --accent:#D9774E; --accent-dk:#9A4A2A; --accent-text:#E99A73;
  --sage:#6FB8A6; --silt:#46636A; --lavender:#B49BD6;
  --panel:#22302A; --panel-border:#4E5C52; --panel-ink:#EDE7D3; --panel-soft:#B9AF95; --panel-line:#4E5C52;
  --gold:#D9774E;
  --ok:#6FB8A6; --ok-bg:#1F3A31; --hz:#FFB8A3; --hz-bg:#3A1C14;
  --map:#22302A; --contour:#34463C; --sea:#2C4A4C; --coast:#5EA292; --pin:#D9774E;
  --sh-float:0 14px 30px -18px rgba(0,0,0,.8);
  --focus:#E99A73;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    --bg:#1B2620; --card:#22302A; --surface:#2A3A33; --line:#3A4A41; --line-strong:#4E5C52;
    --ink:#EDE7D3; --soft:#B9AF95;
    --accent:#D9774E; --accent-dk:#9A4A2A; --accent-text:#E99A73;
    --sage:#6FB8A6; --silt:#46636A; --lavender:#B49BD6;
    --panel:#22302A; --panel-border:#4E5C52; --panel-ink:#EDE7D3; --panel-soft:#B9AF95; --panel-line:#4E5C52;
    --gold:#D9774E;
    --ok:#6FB8A6; --ok-bg:#1F3A31; --hz:#FFB8A3; --hz-bg:#3A1C14;
    --map:#22302A; --contour:#34463C; --sea:#2C4A4C; --coast:#5EA292; --pin:#D9774E;
    --sh-float:0 14px 30px -18px rgba(0,0,0,.8);
    --focus:#E99A73;
    color-scheme:dark;
  }
}
