:root {
  --ink: #14213d;
  --ink-2: #3b4664;
  --muted: #6b7489;
  --bg: #fbf8f3;
  --bg-alt: #f3ede3;
  --card: #ffffff;
  --line: #e4dccd;
  --sun: #e8813a;
  --sun-2: #f4b860;
  --sun-soft: #fdebd9;
  --radius: 14px;
  --display: "Source Serif 4", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ede3;
    --ink-2: #cdd3e0;
    --muted: #949cb0;
    --bg: #0f1729;
    --bg-alt: #141e34;
    --card: #19243d;
    --line: #2a3654;
    --sun-soft: #3a2a1f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sun); margin: 0 0 .6rem; }
button { font: inherit; cursor: pointer; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { text-decoration: none; font-size: .93rem; color: var(--ink-2); }
.nav nav a:hover { color: var(--sun); }
.nav-cta { background: var(--ink); color: var(--bg) !important; padding: 7px 14px; border-radius: 999px; }
@media (max-width: 560px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.sun { position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 40% 60%, var(--sun-2), var(--sun) 55%, transparent 72%); opacity: .35; filter: blur(4px); animation: rise 2.4s ease-out both; }
@keyframes rise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: .35; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.02em; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--sun); font-size: .6em; margin-top: .35em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 620px; margin: 1.4rem 0 2.2rem; }

.lens { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; max-width: 760px; box-shadow: 0 10px 30px -18px rgba(20,33,61,.35); }
.lens-label { margin: 0 0 .7rem; font-weight: 600; }
.lens-options, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lens-options button, .filters button { border: 1px solid var(--line); background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; font-size: .92rem; transition: all .15s; }
.lens-options button:hover, .filters button:hover { border-color: var(--sun); color: var(--ink); }
.lens-options button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lens-pitch { margin: .9rem 0 0; color: var(--ink-2); min-height: 1.6em; }

.stats { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 760px; }
.stats li { border-left: 3px solid var(--sun); padding: 2px 0 2px 14px; }
.stats strong { display: block; font-family: var(--display); font-size: 1.9rem; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }

/* Timeline */
.filters { margin-bottom: 2rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.entry { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; transition: border-color .2s, box-shadow .2s; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.entry::before { content: ""; position: absolute; left: -31px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.entry.is-relevant { border-color: var(--sun); box-shadow: 0 8px 26px -16px var(--sun); }
.entry.is-relevant::before { border-color: var(--sun); background: var(--sun); }
.meta { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; font-size: .82rem; }
.tag { background: var(--sun-soft); color: var(--sun); font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.years { color: var(--muted); }
.entry h3 .org { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.entry p { margin: .5rem 0 0; color: var(--ink-2); }
.more { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--sun); font-weight: 600; font-size: .9rem; }
.details { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); }
.details li { margin-bottom: 4px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.principles article, .life article, .open article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { font-family: var(--display); color: var(--sun); font-size: 1.4rem; }
.principles h3 { margin: .4rem 0 .5rem; }
.principles p, .life p, .open p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.sub { margin: 2.6rem 0 1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .93rem; }

/* Life */
.life { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.icon { font-size: 1.8rem; }
.life h3 { margin: .5rem 0 .4rem; }

/* Connect */
.connect { background: var(--ink); color: var(--bg); }
.connect h2 { color: var(--bg); }
.open { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.connect .open article { background: transparent; border-color: color-mix(in srgb, var(--bg) 25%, transparent); }
.connect .open h3 { margin-bottom: .4rem; color: var(--sun-2); }
.connect .open p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.connect-actions { margin-top: 2.4rem; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; background: var(--sun); color: #fff; font-weight: 600; padding: 13px 24px; border-radius: 999px; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); color: var(--bg); }

.footer { padding: 26px 0; font-size: .85rem; color: var(--muted); }

/* Draft content: dashed outline so unfinished items are easy to spot */
.is-draft { outline: 2px dashed #c9a227; outline-offset: 3px; position: relative; }
.is-draft::after { content: "Draft"; position: absolute; top: -10px; right: 12px; background: #c9a227; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
