/* CDSI site refresh — 2026-10-15. Loaded last on every page; overrides the inline styles.
   Goals: easier on the eyes (bigger, darker text), a bit more life (warm accent, depth). */
:root {
  --ink: #0f202b;
  --ink-soft: #2e3d48;
  --ink-faint: #4f5e69;
  --paper: #fcfaf6;
  --paper-soft: #f1efe7;
  --accent: #3f7a55;
  --accent-dark: #2a5a3c;
  --accent-light: #e1eee5;
  --warm: #b8732a;
  --warm-light: #f8ecdc;
  --shadow: 0 1px 2px rgba(15,32,43,.06), 0 6px 18px rgba(15,32,43,.06);
  --shadow-hover: 0 2px 4px rgba(15,32,43,.08), 0 12px 28px rgba(15,32,43,.10);
}
body { font-size: 18.5px; line-height: 1.72; }
@media (max-width: 760px) { body { font-size: 17.5px; } }

/* readable minimum for all the small grey description text */
.desc, .card p, .stat-card .desc, .principles li .desc, .artifact-card .desc,
.contact-card .loc, .lede, .section-head p, .meta, .meta * { color: var(--ink-soft); }
.principles li .desc, .stat-card .desc, .artifact-card .desc, .card p { font-size: 0.98rem !important; line-height: 1.6 !important; }
.lede { font-size: 1.2rem !important; line-height: 1.65 !important; }
nav.site a { font-size: 0.95rem; color: var(--ink); }
nav.site a:hover, nav.site a.active { color: var(--accent-dark); }

/* links read as links */
main a:not(.btn):not([class*=card]):not(.lib-card), .prose a {
  color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
main a:hover, .prose a:hover { color: var(--warm); }

/* warm accent on the small caps labels */
.eyebrow, .section-label { color: var(--warm) !important; }
.pill { background: #fff; border-color: var(--accent-light); color: var(--accent-dark); box-shadow: var(--shadow); }

/* hero: a little depth instead of flat cream */
section.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(63,122,85,.16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(184,115,42,.12), transparent 60%),
    var(--paper);
}
section.hero h1 { color: var(--ink); }
.hero-video video { border-radius: 14px; box-shadow: var(--shadow-hover); }

/* cards: white, lifted, with an accent edge */
.card, .stat-card:not(.dark-card), .principles li, .lib-card, .artifact-card, [class*="-card"]:not(.contact-card):not(.org-card):not(.dark-card) {
  background: #fff !important;
  box-shadow: var(--shadow);
  border-color: rgba(15,32,43,.07) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .stat-card:hover, .principles li:hover, .lib-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-hover);
}
.stat-card, .principles li { border-top: 3px solid var(--accent) !important; }
.alt-bg { background: var(--paper-soft); }

/* timeline (homepage "Where things stand") */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--accent-light); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--paper-soft);
}
.timeline li.next::before { background: #fff; border: 3px solid var(--warm); width: 9px; height: 9px; }
.timeline .when {
  display: block; font-family: "Helvetica Neue","Inter",system-ui,sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
}
.timeline li.next .when { color: var(--warm); }
.timeline .what { display: block; color: var(--ink); }
.timeline .what small { display: block; color: var(--ink-soft); font-size: .92rem; }

/* contact card rows */
.contact-card .mail-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid rgba(251,249,244,.2); padding: .45rem 0; }
.contact-card .mail-row a { border: 0; padding: 0; font-size: 1.05rem; }
.contact-card .mail-row span { font-family: "Helvetica Neue","Inter",system-ui,sans-serif; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(251,249,244,.6); }

/* footer email row */
footer.site .contact-row { font-size: .95rem; }
footer.site .contact-row a { color: var(--accent-dark) !important; font-weight: 600; }

/* papers: comfortable reading column */
.wrap-prose { max-width: 740px; }
.prose { font-size: 1.05em; }
.prose p, .prose li { color: #1d2c36; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 2.2em; }
.prose blockquote { border-left: 4px solid var(--warm); background: var(--warm-light); padding: .8rem 1.1rem; border-radius: 0 8px 8px 0; }

/* mobile: keep the menu visible (it was hidden on the homepage) */
@media (max-width: 760px) {
  nav.site { display: flex !important; flex-wrap: wrap; gap: .25rem 1rem; }
  nav.site a { margin-left: 0 !important; font-size: .95rem; }
  header.site .wrap { flex-wrap: wrap; row-gap: .5rem; }
}

/* fixes: dark tiles stay dark; links inside dark cards stay light */
.stat-card.dark-card { background: var(--ink) !important; border-top-color: var(--warm) !important; }
.stat-card.dark-card .desc { color: rgba(251,249,244,.8) !important; }
.contact-card a, main .contact-card a { color: var(--paper) !important; text-decoration: none; }
.contact-card a:hover { color: #cfe3d5 !important; }
.contact-card .loc { color: rgba(251,249,244,.65) !important; }
