/* The Archer and The Arrow: brand tokens and base type.
   Load the fonts with the <link> in html/head-snippet.html. */

:root {
  /* Core palette */
  --taa-navy: #1F2B3D;        /* Archer Navy: text, logo ink, headings */
  --taa-gold: #A87B2F;        /* Arrow Gold: the arrow, rules, icons, large display text */
  --taa-vellum: #F7F2E8;      /* Vellum: page background */

  /* Supporting */
  --taa-gold-deep: #7A561C;   /* Deep Gold: gold for links and small text on light */
  --taa-slate: #55606F;       /* Slate: captions, secondary text */
  --taa-rule: #D9CFBC;        /* Rule: hairlines and borders (decorative only) */

  /* Dark set */
  --taa-night: #141B26;       /* Night: dark background */
  --taa-cream: #EDE6D6;       /* Cream: text and logo ink on dark */
  --taa-gold-bright: #C99A4A; /* Bright Gold: the arrow and links on dark */
  --taa-mist: #A9AFB8;        /* Mist: secondary text on dark */

  /* Roles (light) */
  --color-bg: var(--taa-vellum);
  --color-text: var(--taa-navy);
  --color-muted: var(--taa-slate);
  --color-accent: var(--taa-gold);
  --color-link: var(--taa-gold-deep);
  --color-rule: var(--taa-rule);

  /* Type */
  --font-heading: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label: "Cinzel", "EB Garamond", serif;

  --text-base: 1.1875rem;     /* 19px */
  --leading-body: 1.6;
  --measure: 66ch;
  --tracking-label: 0.18em;
}

/* Dark mode follows the reader's system setting unless the page sets data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: var(--taa-night);
    --color-text: var(--taa-cream);
    --color-muted: var(--taa-mist);
    --color-accent: var(--taa-gold-bright);
    --color-link: var(--taa-gold-bright);
    --color-rule: #2C3646;
  }
}
:root[data-theme="dark"] {
  --color-bg: var(--taa-night);
  --color-text: var(--taa-cream);
  --color-muted: var(--taa-mist);
  --color-accent: var(--taa-gold-bright);
  --color-link: var(--taa-gold-bright);
  --color-rule: #2C3646;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
main, article { max-width: var(--measure); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

a { color: var(--color-link); text-underline-offset: 0.18em; }
hr { border: 0; border-top: 1px solid var(--color-rule); }
small, figcaption, .muted { color: var(--color-muted); }

/* Eyebrow labels and Summa citations, used sparingly */
.label, .cite {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Logo in the header: height sets the size; keep at least 44px tall */
.site-logo img { height: 56px; width: auto; display: block; }
