/* Tokens — the one place the site's colours, type and spacing are decided.
   Linked from every page, ahead of that page's own <style> block, so a page
   only has to say what makes it different.

   The look is "herbarium": warm paper white, hairline rules, no rounded
   corners anywhere, and a lot of air. Two faces do all the work:

     Fraunces (serif)      titles and quotations, nothing else
     Source Sans 3 (sans)  everything else — body prose, facts, labels,
                           buttons, both map cards, the edit form

   Both are self-hosted from /fonts/, so the site still works offline. */

:root {
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Paper and ink ------------------------------------------------------- */
  --paper: #faf8f3;        /* page background — warm, not blue-grey */
  --card-bg: #ffffff;      /* anything sitting on the paper */
  --ink: #23261f;
  --ink-soft: #4d5145;     /* secondary prose: species line, standfirsts */
  --muted: #7c7d6f;        /* metadata, captions */
  --faint: #9a9a8b;        /* section labels, the quietest text there is */

  /* Rules and edges ----------------------------------------------------- */
  --line: #e3e0d6;         /* hairline — the default border everywhere */
  --line-strong: #cfccbf;  /* a border that needs to be seen */
  --shadow: 0 1px 2px rgba(35, 38, 31, 0.07);  /* barely there, by design */

  /* Green, and the tints taken off it ----------------------------------- */
  --green: #3e5c3c;        /* links, buttons, confirmed pins */
  --on-green: #ffffff;
  --tint: #eaeee4;         /* filled chips, category pills */
  --tint-ink: #3b5238;
  --tint-soft: #f1f2ea;    /* girth blocks, tag pills, photo placeholders */

  /* Amber — the "not yet confirmed" / superseded register ---------------- */
  --amber-bg: #f6eed8;
  --amber-ink: #7a6220;
  --amber-line: #e0cf9f;

  /* Violet — reserved for AI provenance, and used nowhere else ----------- */
  --ai-bg: #ede4f7;
  --ai-ink: #5b3d85;
  --ai-line: #d8c8ec;

  /* Type ---------------------------------------------------------------- */
  --lab-size: 0.68rem;     /* the tracked uppercase section label */
  --lab-track: 0.12em;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Titles and quotations, and nothing else, are set in Fraunces. */
h1, h2, h3, h4, blockquote, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
}
h1 { font-weight: 500; letter-spacing: -0.01em; }

a { color: var(--green); }

/* The section label: small, tracked, uppercase, quiet. Used for the map
   card's sections, the blog filters and anywhere else a group of controls
   needs naming without shouting. */
.lab, .sectionlabel, .filterlabel {
  font-family: var(--sans);
  font-size: var(--lab-size);
  font-weight: 600;
  letter-spacing: var(--lab-track);
  text-transform: uppercase;
  color: var(--faint);
}
