/* themes.css — three design directions as token overrides.
   Chosen by SITE.theme (site-config.js); preview another with ?theme=geodes|journal|instrument.
   After the user picks one, the other two can be deleted. */

/* A. GEODES institutional — crisp, Roboto, solid moss-green header band like geodes.umd.edu */
html[data-theme="geodes"] {
  --hdr-bg: #496d1f;
  --hdr-ink: #ffffff;
  --hdr-rule: #3a5718;
  --nav-active: #ffffff;
}
html[data-theme="geodes"] .nav__list a[aria-current="page"] { border-bottom-color: #fff; color: #fff; font-weight: 700; }
html[data-theme="geodes"] .motion-toggle { border-color: rgba(255,255,255,.7); }
html[data-theme="geodes"] .site-header :focus-visible { outline-color: #fff; }
html[data-theme="geodes"] .section-head { border-bottom-color: var(--c-accent); }
html[data-theme="geodes"] .section-head h2 { color: var(--c-accent); }
/* four-world stripe under the header: Earth, ice, Moon, Mars (hard stops, not a blend) */
html[data-theme="geodes"] .site-header { border-bottom: 0; }
html[data-theme="geodes"] .site-header::after { content: ""; display: block; height: 6px;
  background: linear-gradient(to right, var(--t-earth-line) 0 14.3%, var(--t-moon-line) 14.3% 28.6%, var(--t-mars-line) 28.6% 42.9%,
    var(--t-ice-line) 42.9% 57.1%, var(--t-analog-line) 57.1% 71.4%, var(--t-asteroid-line) 71.4% 85.7%, var(--t-instrument-line) 85.7% 100%); }
html[data-theme="geodes"] .site-footer { border-top: 0; box-shadow: inset 0 3px 0 var(--t-earth); }

/* B. Journal — editorial: warm paper, serif text, hairline double rules */
html[data-theme="journal"] {
  --c-bg: #fbfaf6;
  --c-surface: #f3f1ea;
  --c-ink: #1f1d1a;
  --c-ink-2: #48443d;
  --c-muted: #5d584f;
  --c-rule: #d9d4c7;
  --c-rule-strong: #1f1d1a;
  --c-accent-soft: #e8ecdd;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-head: "Source Serif 4", Georgia, serif;
  --head-weight: 600;
  --lh: 1.65;
  --hdr-bg: #fbfaf6;
  --hdr-ink: #1f1d1a;
  --hdr-rule: #1f1d1a;
  --nav-active: #496d1f;
  --w-text: 40rem;
}
html[data-theme="journal"] .site-header { border-bottom: 0; box-shadow: none; }
html[data-theme="journal"] .site-header::after { content: ""; display: block; height: 4px; border-top: 1px solid #1f1d1a; border-bottom: 1px solid #1f1d1a; max-width: var(--w-page); margin: 0 auto; }
html[data-theme="journal"] .brand__name { font-size: var(--fs-5); font-weight: 600; }
html[data-theme="journal"] .nav__list a, html[data-theme="journal"] .btn, html[data-theme="journal"] .tag,
html[data-theme="journal"] .stat__label, html[data-theme="journal"] .filters, html[data-theme="journal"] .motion-toggle { font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; }
html[data-theme="journal"] .hero__thesis { font-family: var(--f-serif); font-style: normal; }
html[data-theme="journal"] .card { border-top: 1px solid var(--c-rule-strong); }
html[data-theme="journal"] .stats { border-top: 1px solid var(--c-rule-strong); border-bottom: 1px solid var(--c-rule-strong); }
html[data-theme="journal"] .stat__value { font-weight: 600; }
html[data-theme="journal"] .site-footer { border-top: 1px solid var(--c-rule-strong); }

/* C. Instrument — drawn from the field: chart-paper ground, graphite ink, condensed labels, green trace */
html[data-theme="instrument"] {
  --c-bg: #f8f7f2;
  --c-surface: #efeee6;
  --c-ink: #22241f;
  --c-ink-2: #44473f;
  --c-muted: #5a5d54;
  --c-rule: #cfd0c5;
  --c-rule-strong: #22241f;
  --f-body: "IBM Plex Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --f-head: "IBM Plex Sans Condensed", "Roboto Condensed", Arial, sans-serif;
  --head-weight: 600;
  --hdr-bg: #22241f;
  --hdr-ink: #f8f7f2;
  --hdr-rule: #496d1f;
  --nav-active: #c5d9a6;
  --fig-fill: #ecece3;
}
html[data-theme="instrument"] .site-header { border-bottom-width: 4px; }
html[data-theme="instrument"] .site-header :focus-visible { outline-color: #f2b66d; }
html[data-theme="instrument"] .motion-toggle { border-color: rgba(248,247,242,.6); }
html[data-theme="instrument"] .hero {
  background-color: var(--c-bg);
  background-image:
    linear-gradient(to right, rgba(73,109,31,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(73,109,31,.07) 1px, transparent 1px);
  background-size: 16px 16px;
  border-bottom: 2px solid var(--c-rule-strong);
}
html[data-theme="instrument"] .section-head { border-bottom: 2px solid var(--c-rule-strong); }
html[data-theme="instrument"] .section-head h2::before { content: attr(data-num); color: var(--c-accent); margin-right: .5em; }
html[data-theme="instrument"] .card { border-top: 0; border-left: 2px solid var(--c-accent); padding: 0 0 0 var(--s-3); }
html[data-theme="instrument"] .stat__value { color: var(--c-accent-ink); }
html[data-theme="instrument"] .figure img, html[data-theme="instrument"] .figure svg { border-color: var(--c-rule-strong); }
