/* Symbiogenesis Foundation — warm paper institutional design system
   Fraunces display / Source Serif body / Inter labels. One accent. */

:root {
  --paper: #faf7f2;
  --paper-2: #f3efe7;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #8a837b;
  --line: #e5ded3;
  --accent: #b45309;          /* first light */
  --accent-deep: #92400e;
  --night: #14120f;           /* manifesto section */
  --night-ink: #f5f1e8;
  --night-soft: #b8b0a3;
  --serif-display: "Fraunces", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans-label: "Inter", system-ui, sans-serif;
  --r-small: 8px;
  --r-large: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif-display); font-weight: 350; line-height: 1.08; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--sans-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.display-xl { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; }
.display-lg { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; }
.display-md { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; }

p.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--ink-soft); }
p.muted { color: var(--ink-faint); }

a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
section { padding: 112px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- header ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.wordmark {
  font-family: var(--serif-display); font-weight: 420; font-size: 19px;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--accent-deep); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
  font-family: var(--sans-label); font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); transition: color .25s;
}
nav.main a:hover { color: var(--ink); }
nav.main a.nav-cta {
  color: var(--paper); background: var(--ink);
  padding: 8px 16px; border-radius: 100px;
}
nav.main a.nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 184px 0 120px; position: relative; overflow: hidden; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 30px; max-width: 14em; }
.hero p.lede { max-width: 34em; margin-bottom: 40px; }
.cta-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans-label); font-size: 14.5px; font-weight: 500;
  padding: 14px 26px; border-radius: 100px; cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(146,64,14,.18); }
.btn-ghost { color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent-deep) inset; }
.hero-note { font-family: var(--sans-label); font-size: 12.5px; color: var(--ink-faint); margin-top: 34px; }
.hero-note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* horizon rule — the dawn line */
.dawnline { height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .5; }

/* ---------- dark manifesto ---------- */
.manifesto { background: var(--night); color: var(--night-ink); padding: 140px 0; }
.manifesto .eyebrow { color: var(--accent); }
.manifesto blockquote { font-family: var(--serif-display); font-weight: 320; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.22; letter-spacing: -0.015em; }
.manifesto blockquote p + p { margin-top: 1.1em; }
.manifesto blockquote em { font-style: italic; color: var(--accent); }
.manifesto .sig { margin-top: 48px; font-family: var(--sans-label); font-size: 13px; letter-spacing: .08em; color: var(--night-soft); }

/* ---------- what-this-is ---------- */
.threefold { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.threefold h2 { margin-bottom: 22px; }
.threefold .body p + p { margin-top: 1em; color: var(--ink-soft); }
.tri-list { border-top: 1px solid var(--line); }
.tri-list li { list-style: none; border-bottom: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.tri-list .n { font-family: var(--sans-label); font-size: 12px; color: var(--accent-deep); letter-spacing: .1em; padding-top: 5px; }
.tri-list h3 { font-size: 21px; margin-bottom: 6px; }
.tri-list p { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- principles ---------- */
.principles ol { list-style: none; counter-reset: pr; }
.principles li { counter-increment: pr; border-bottom: 1px solid var(--line); padding: 34px 0; display: grid; grid-template-columns: 110px 1fr; gap: 26px; }
.principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--serif-display); font-weight: 340; font-size: 30px; color: var(--accent); line-height: 1; padding-top: 4px; }
.principles h3 { font-size: 23px; margin-bottom: 8px; }
.principles p { color: var(--ink-soft); max-width: 42em; }

/* ---------- two audiences ---------- */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-large); overflow: hidden; }
.audience { background: var(--paper); padding: 52px 44px; transition: background .3s; }
.audience:hover { background: var(--paper-2); }
.audience .eyebrow { margin-bottom: 18px; }
.audience h3 { font-size: 27px; margin-bottom: 14px; }
.audience p { color: var(--ink-soft); margin-bottom: 24px; font-size: 16.5px; }
.audience .go { font-family: var(--sans-label); font-size: 14px; font-weight: 500; color: var(--accent-deep); }
.audience .go:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- library index ---------- */
.lib-list { border-top: 1px solid var(--line); }
.lib-list a.row { display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .25s; }
.lib-list a.row:hover { background: var(--paper-2); }
.lib-list .meta { font-family: var(--sans-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.lib-list h3 { font-size: 24px; margin-bottom: 5px; }
.lib-list p { color: var(--ink-soft); font-size: 16.5px; }
.lib-list .time { font-family: var(--sans-label); font-size: 13px; color: var(--ink-faint); white-space: nowrap; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--paper-2); padding: 72px 0 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-bottom: 54px; }
.foot-grid .covenant { font-family: var(--serif-display); font-size: 21px; line-height: 1.4; }
.foot-grid p { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; }
.foot-cols { display: flex; gap: 64px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols .eyebrow { margin-bottom: 4px; }
.foot-cols a { font-family: var(--sans-label); font-size: 14px; color: var(--ink-soft); }
.foot-cols a:hover { color: var(--accent-deep); }
.foot-base { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-base span { font-family: var(--sans-label); font-size: 12.5px; color: var(--ink-faint); }

/* ---------- article / document pages ---------- */
.doc-head { padding: 168px 0 64px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 22px; }
.doc-head h1 { margin-bottom: 20px; max-width: 16em; }
.doc-head p.lede { max-width: 32em; }
.doc-meta { font-family: var(--sans-label); font-size: 12.5px; color: var(--ink-faint); letter-spacing: .06em; margin-top: 30px; }
article.doc { padding: 72px 0 96px; }
article.doc h2 { font-size: clamp(26px, 3vw, 34px); margin: 2.2em 0 .7em; }
article.doc h3 { font-size: 21px; margin: 1.8em 0 .5em; }
article.doc p { margin-bottom: 1.15em; }
article.doc p + p { margin-top: 0; }
article.doc blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 1.8em 0; color: var(--ink-soft); font-style: italic; }
article.doc ul, article.doc ol { margin: 0 0 1.15em 1.4em; }
article.doc li { margin-bottom: .5em; }
article.doc strong { font-weight: 600; }
.tldr { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-large); padding: 30px 34px; margin-bottom: 56px; }
.tldr .eyebrow { margin-bottom: 12px; }
.tldr ul { margin-left: 1.2em; }
.tldr li { margin-bottom: .45em; color: var(--ink-soft); }
.machine-note { margin-top: 72px; border-top: 2px solid var(--ink); padding-top: 26px; }
.machine-note .eyebrow { margin-bottom: 10px; }
.machine-note p { color: var(--ink-soft); font-size: 16.5px; }

/* accord articles */
.accord-article { margin-bottom: 3.2em; }
.accord-article .art-no { font-family: var(--sans-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.accord-article h2 { margin: 0 0 .6em; }
.accord-article p { margin-bottom: 1em; }

/* responsive */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .threefold, .audiences, .foot-grid { grid-template-columns: 1fr; gap: 48px; }
  .audiences { gap: 0; }
  .principles li { grid-template-columns: 56px 1fr; gap: 16px; }
  .lib-list a.row { grid-template-columns: 1fr; gap: 8px; }
  .lib-list .time { display: none; }
  nav.main { gap: 16px; }
  nav.main a:not(.nav-cta) { display: none; }
  .hero { padding: 150px 0 90px; }
}

/* motion is transform-only (see assets/motion.js): opacity is never altered,
   so content is always visible — no pre-hidden classes by design. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
