/* ===========================================================
   Foundations of Life: visual system
   Palette: taken from the official logo (Oct 2026)
            forest green, soil brown, sun yellow, water blue
   Type: Newsreader (serif body) + Bricolage Grotesque (display)
         + IBM Plex Mono (labels/data)
   Tone: editorial, document-like, footnoted, no decorative
   illustration. Photography placeholders only.
   =========================================================== */

:root {
  /* Forest green: structure, headers, headings */
  --forest-950: #223120;
  --forest-900: #2b3d27;
  --forest-800: #33482e;
  --forest-700: #3a5131;
  --forest-500: #5d7354;
  --forest-200: #d3dccb;

  /* Paper: matches the logo's ground */
  --paper: #fbf8f1;
  --paper-dim: #f1ebdc;

  /* Sun yellow: accents on dark ground only */
  --sun-500: #f1c340;
  --sun-400: #f6d36c;

  /* Soil brown: accents on light ground */
  --soil-500: #844a1d;
  --soil-400: #a0612f;

  /* Water blue: links and secondary emphasis */
  --water-600: #2c6683;
  --water-500: #3a7a9a;

  --ink: #1c2219;
  --ink-soft: #4d5648;

  --font-serif: "Newsreader", Georgia, serif;
  --font-display: "Bricolage Grotesque", "Newsreader", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.doc-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--forest-950);
  color: var(--forest-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--sun-500);
}

.doc-strip__label { color: var(--sun-400); font-weight: 500; }
.doc-strip__meta { opacity: 0.75; }
.doc-strip__meta--right { margin-left: auto; }

.site-header {
  background: var(--forest-900);
  border-bottom: 1px solid var(--forest-700);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.site-nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav__emblem {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.site-nav__links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest-200);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav__links a:hover { color: var(--sun-400); }

.site-nav__links a.is-active {
  color: var(--sun-400);
  border-bottom-color: var(--sun-500);
}

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.hero {
  padding: 88px 0 56px;
  max-width: 900px;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--water-600);
  margin: 0 0 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest-950);
  margin: 0 0 28px;
}

.hero--with-emblem {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 300px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero__emblem {
  width: 100%;
  height: auto;
  display: block;
}

.hero__lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0;
}

.plate { padding: 24px 0 72px; }

.plate__frame {
  border: 1px solid var(--forest-700);
  background: var(--forest-900);
}

.plate__placeholder {
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
  background:
    repeating-linear-gradient(135deg, rgba(241,195,64,0.09) 0px, rgba(241,195,64,0.09) 1px, transparent 1px, transparent 14px);
}

.plate__placeholder-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sun-400);
}

.plate__placeholder-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--forest-200);
  max-width: 40ch;
}

.plate__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--forest-700);
  background: var(--paper-dim);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-500);
  border-top: 1px solid var(--forest-700);
  padding-top: 14px;
  margin: 0 0 36px;
}

.pillars { padding: 56px 0; }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.pillar__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--soil-500);
  margin-bottom: 10px;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--forest-950);
  margin: 0 0 12px;
}

.pillar__body {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0;
}

.pillar-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pillar-link:hover .pillar__title { color: var(--water-600); }

.thesis { padding: 56px 0 40px; max-width: var(--measure); }

.thesis__statement {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--water-600);
  border-left: 3px solid var(--water-600);
  padding-left: 24px;
  margin: 0 0 28px;
}

.thesis__body {
  color: var(--ink);
  margin: 0;
}

.text-link {
  color: var(--water-600);
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--water-500); }

.contact-info {
  max-width: var(--measure);
  margin: 0;
}

.contact-info__row {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--forest-700);
}

.contact-info__row:last-child { border-bottom: 1px solid var(--forest-700); }

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-500);
  width: 120px;
  flex-shrink: 0;
  margin: 0;
}

.contact-info dd {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.footnote-ref a, .footnote-back {
  color: var(--soil-500);
  text-decoration: none;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6em;
  vertical-align: super;
}

.footnotes {
  border-top: 1px solid var(--forest-700);
  padding: 24px 0 80px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.footnotes ol { padding-left: 18px; margin: 0; }
.footnotes li { margin-bottom: 6px; }

.library-doc {
  max-width: 820px;
  padding: 8px 0 80px;
}

.library-doc p {
  margin: 0 0 20px;
  color: var(--ink);
}

.library-doc .doc-meta { margin: 28px 0 40px; }

.doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest-950);
  margin: 0 0 10px;
}

.doc-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--water-600);
  margin: 0 0 28px;
}

.doc-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  color: var(--forest-950);
  border-top: 1px solid var(--forest-700);
  padding-top: 32px;
  margin: 48px 0 18px;
}

.doc-h2:first-of-type { margin-top: 0; }

.doc-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--water-600);
  margin: 30px 0 12px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 28px;
  font-size: 14.5px;
}

.doc-table th, .doc-table td {
  border: 1px solid var(--forest-700);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-500);
  background: var(--paper-dim);
}

.doc-table td { color: var(--ink-soft); }

.library-doc .references {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  margin: 0;
}

.library-doc .references li { margin-bottom: 8px; }

.site-footer {
  background: var(--forest-950);
  color: var(--forest-200);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.site-footer__row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .doc-strip__meta:not(.doc-strip__meta--right) { display: none; }
  .hero { padding-top: 56px; }
  .hero--with-emblem { grid-template-columns: 1fr; }
  .hero__emblem-wrap { order: -1; width: 168px; }
  .site-nav__emblem { width: 40px; height: 40px; }
}

a:focus-visible {
  outline: 2px solid var(--sun-500);
  outline-offset: 3px;
}
