/* Neo: First Light */
:root {
  --paper: #F7F2E8;
  --card: #FFFDF8;
  --ink: #1E2629;
  --ink-soft: #3A4549;
  --ink-mute: #5B6468;
  --rule: #E4DCCB;
  --coral: #B8462A;
  --coral-deep: #8F3520;
  --sun-1: #F2DCC4;
  --sun-2: #EEC7A3;
  --sun-3: #E5A37C;
  --sun-4: #C9603D;
  --night-text: #F7F2E8;
  --night-soft: #C9C2B4;
  --night-line: #5C6A6E;
  --night-dash: #9AA4A6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 96px;
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--coral-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.jump {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--night-text);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.jump:focus { transform: none; color: var(--night-text); }

.frame { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.sig { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; }
.sig:hover { color: var(--ink); }
.sig-mark { width: 34px; height: 22px; flex: none; }
.sig-word { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.5px; line-height: 1; }
.routes-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.routes-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: 17px;
  border-bottom: 2px solid transparent;
}
.routes-link:hover { color: var(--coral-deep); }
.routes-link[aria-current="page"] { border-bottom-color: var(--coral); }
.routes-start {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
}
.routes-start:hover { background: var(--ink); color: var(--night-text); }
.opener {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.opener svg { width: 18px; height: 14px; }

/* home: first light */
.dawn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.dawn-copy { display: flex; flex-direction: column; gap: 28px; }
.dawn-tag, .leaf-kicker {
  margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--coral);
}
.dawn-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 1.02; letter-spacing: -1.5px; }
.dawn-lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ink-soft); max-width: 560px; }
.promise-intro { display: block; margin-top: 8px; font-size: 16px; line-height: 1.45; }
.dawn-lede .promise-intro { margin-top: 0; }
.promise-referral { display: block; font-size: 16px; line-height: 1.5; }
.dawn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.dawn-art { display: flex; justify-content: center; }
.tag-short { display: none; }
.dawn-art img { width: 560px; }

.go-coral {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 30px;
  text-align: center; line-height: 1.25;
  background: var(--coral); color: #FFFFFF; border-radius: 999px; text-decoration: none; font-size: 18px; font-weight: 600;
}
.go-coral:hover { background: var(--coral-deep); color: #FFFFFF; }
.go-line { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 600; color: var(--ink); }
.go-line:hover { color: var(--coral-deep); }

.ramp { list-style: none; margin: 0; padding: 0 0 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ramp-step {
  padding: 32px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ramp-num { font-family: var(--serif); font-size: 44px; color: var(--coral); line-height: 1; }
.ramp-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
.ramp-text { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.ramp-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.ramp-link:hover { color: var(--coral-deep); }
.ramp-short, .lede-short { display: none; }

.goalband {
  margin: 0 var(--gutter); padding: 48px 56px; background: var(--ink); color: var(--night-text);
  border-radius: 28px; display: flex; flex-direction: column; gap: 24px;
}
.goalband-shell { max-width: 1440px; margin: 0 auto; }
.goalband-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.goalband-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; }
.goalband-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--night-soft); max-width: 440px; }
.goalband-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.goalpill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--night-line); border-radius: 999px; color: var(--night-text); text-decoration: none; font-size: 17px;
}
.goalpill:hover { border-color: var(--night-text); color: var(--night-text); background: #2A3438; }
.goalpill-all { border-style: dashed; border-color: var(--night-dash); display: none; }
.goalband-foot { margin: 0; font-size: 16px; line-height: 1.5; color: var(--night-soft); display: none; }

.firstreads { padding-top: 64px; display: flex; flex-direction: column; gap: 28px; }
.firstreads-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; }
.firstreads-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.read-tile {
  padding: 28px 0 8px; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; height: 100%;
}
.read-tile:hover { color: var(--ink); border-top-color: var(--coral); }
.read-tile:hover .read-name { color: var(--coral-deep); }
.read-min { font-size: 15px; color: var(--ink-mute); }
.read-name { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.read-blurb { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

.closer { margin-top: 72px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.closer-title { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; }
.closer-text p { margin: 0 0 14px; color: var(--ink-soft); }
.closer-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-mute); }
.closer-text p.closer-note { color: var(--ink-mute); }
.closer-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.closer-facts li { padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; font-size: 17px; line-height: 1.5; }

/* guide pages */
.leaf-top { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; }
.leaf-top-copy { display: flex; flex-direction: column; gap: 18px; }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; color: var(--ink-mute); }
.trail li { display: inline-flex; align-items: center; gap: 10px; }
.trail li + li::before { content: "/"; color: var(--ink-mute); }
.trail a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-soft); }
.leaf-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.05; letter-spacing: -1.2px; max-width: 16ch; }
.leaf-stand { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ink-soft); max-width: 40rem; }
.leaf-meta { margin: 0; font-size: 16px; color: var(--ink-mute); }
.leaf-art img { width: 320px; }
.horizon { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.horizon-dots { border: 0; border-top: 2px dotted var(--ink-mute); width: 70%; margin: 10px auto 0; }

.leaf-grid { display: grid; grid-template-columns: 260px minmax(0, var(--measure)); gap: 72px; padding-top: 48px; padding-bottom: 32px; justify-content: start; }
.leaf-grid-solo { grid-template-columns: minmax(0, var(--measure)); }
.onpage { position: sticky; top: 24px; align-self: start; }
.onpage-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); }
.onpage ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.onpage a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 16px; line-height: 1.35; }
.onpage a:hover { color: var(--coral-deep); border-left-color: var(--coral); }

.reading > :first-child { margin-top: 0; }
.reading h2 { margin: 56px 0 16px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; letter-spacing: -0.4px; scroll-margin-top: 24px; }
.reading h3 { margin: 32px 0 10px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.reading p { margin: 0 0 18px; }
.reading ul, .reading ol { margin: 0 0 20px; padding-left: 1.3em; }
.reading li { margin: 0 0 10px; padding-left: 4px; }
.reading ul li::marker { color: var(--coral); }
.reading ol li::marker { color: var(--coral); font-weight: 600; }
.reading strong { font-weight: 600; }
.reading a { padding: 11px 1px; }

.plain { margin: 0 0 40px; padding: 28px 32px; background: var(--sun-1); border-radius: 22px; }
.plain-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
.reading .plain-title { margin-top: 0; }
.plain p:last-child { margin-bottom: 0; }
.plain a { color: var(--coral-deep); }

.aside-note { margin: 28px 0; padding: 22px 26px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--sun-4); border-radius: 14px; }
.aside-note-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.aside-note p:last-child { margin-bottom: 0; }

.pair { margin: 28px 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair-side { padding: 22px 22px 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; }
.pair-side-b { border-style: dashed; border-color: var(--ink-mute); background: var(--paper); }
.pair-head { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.pair dl { margin: 0; }
.pair dt { font-size: 14px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-mute); }
.pair dd { margin: 2px 0 16px; font-size: 17px; line-height: 1.5; }

.handoff { margin: 48px 0 24px; padding: 36px; background: var(--ink); color: var(--night-text); border-radius: 24px; }
.handoff-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--night-text); }
.reading .handoff-title { margin-top: 0; }
.handoff p { color: var(--night-text); }
.handoff p a:not(.go-coral), .handoff p a:not(.go-coral):hover { color: var(--night-text); text-decoration: underline; }
.handoff-act { margin: 22px 0 14px; }
.handoff .handoff-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--night-soft); }
.reading .handoff a.go-coral { padding: 10px 30px; }

.sourcelist { margin: 56px 0 8px; padding-top: 24px; border-top: 2px solid var(--ink); }
.sourcelist-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.reading .sourcelist-title { margin-top: 0; }
.sourcelist ol { margin: 0; padding-left: 1.4em; }
.sourcelist li { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.sourcelist a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font-weight: 600; }
.sourcelist-pub { display: block; font-size: 16px; color: var(--ink-mute); }

.goalrows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.goalrow { padding: 26px 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; }
.goalrow-name { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.reading .goalrow-name { margin-top: 0; }
.goalrow p { margin: 0 0 8px; }
.goalrow-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.reading .goalrow-go { padding: 0; }
.disclose { margin: 0 0 20px; padding: 14px 18px; border: 1px dashed var(--ink-mute); border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

.gloss dt { margin-top: 20px; font-weight: 600; font-size: 19px; }
.gloss dd { margin: 4px 0 0; }

.lost { padding-top: 72px; padding-bottom: 72px; max-width: 48rem; }
.lost-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* colophon */
.colophon { margin-top: 72px; border-top: 1px solid var(--rule); background: var(--paper); }
.colophon-in { padding-top: 40px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.colophon-line { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--ink); max-width: 30rem; }
.colophon-fine p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--ink-mute); }
.colophon-links { grid-column: 1 / -1; list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.colophon-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 16px; }
.colophon-links a:hover { color: var(--coral-deep); }

/* mid widths */
@media (max-width: 1240px) {
  :root { --gutter: 48px; }
  .dawn-h1 { font-size: 62px; }
  .leaf-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .routes-list { gap: 20px; }
}

@media (max-width: 1080px) {
  .opener { display: inline-flex; }
  .routes { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .menu-open .routes { display: block; }
  .routes-list { flex-direction: column; align-items: stretch; gap: 0; }
  .routes-link { display: flex; min-height: 52px; border-bottom: 1px solid var(--rule); font-size: 18px; }
  .routes-link[aria-current="page"] { border-bottom-color: var(--coral); }
  .routes-start { display: flex; justify-content: center; margin-top: 16px; min-height: 52px; }
  .dawn { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dawn-art img { width: 440px; }
  .ramp, .firstreads-grid { grid-template-columns: minmax(0, 1fr); }
  .leaf-top { grid-template-columns: minmax(0, 1fr); }
  .leaf-art { display: none; }
  .leaf-grid { grid-template-columns: minmax(0, 1fr); }
  .onpage { display: none; }
  .closer { grid-template-columns: minmax(0, 1fr); }
  .colophon-in { grid-template-columns: minmax(0, 1fr); }
}

/* phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .topbar-in { min-height: 64px; }
  .sig { gap: 8px; }
  .sig-mark { width: 28px; height: 18px; }
  .sig-word { font-size: 26px; }
  .dawn { padding-top: 24px; padding-bottom: 20px; gap: 16px; }
  .dawn-copy { gap: 16px; }
  .dawn-tag, .leaf-kicker { font-size: 13px; letter-spacing: 1px; }
  .dawn-h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.8px; }
  .dawn-lede { font-size: 17px; line-height: 1.5; }
  .dawn-acts { flex-direction: column; align-items: stretch; gap: 8px; }
  .dawn-acts .go-coral { min-height: 52px; font-size: 17px; }
  .dawn-acts .go-line { justify-content: center; font-size: 17px; }
  .dawn-art { display: none; }
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .ramp { padding-bottom: 20px; gap: 10px; }
  .ramp-step { border-radius: 16px; }
  .ramp-title { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.45; }
  .ramp-text { font-size: 16px; line-height: 1.45; color: var(--ink); }
  .ramp-step { display: block; padding: 12px 16px; }
  .ramp-num { display: inline; font-size: 24px; margin-right: 10px; vertical-align: -2px; }
  .ramp-title, .ramp-text { display: inline; }
  .ramp-title { margin-right: 4px; }
  .ramp-link { display: inline; padding: 11px 8px; margin: 0 -8px; }
  .ramp-long, .lede-long, .h1-lead { display: none; }
  .ramp-short, .lede-short { display: inline; }
  .lede-short { display: block; }
  .closer .go-coral, .handoff .go-coral { display: flex; width: 100%; font-size: 17px; }
  .goalband { margin: 0 12px; padding: 22px 16px; border-radius: 22px; gap: 14px; }
  .goalband-head { display: block; }
  .goalband-title { font-size: 28px; }
  .goalband-note { display: none; }
  .goalband-foot { display: block; font-size: 16px; }
  .goalband-pills { gap: 8px; }
  .goalpill { min-height: 44px; padding: 0 16px; font-size: 16px; }
  .goalpill-tail { display: none; }
  .goalband-pills .goal-desk { display: none; }
  .goalpill-all { display: inline-flex; }
  .firstreads { padding-top: 32px; gap: 18px; }
  .firstreads-title { font-size: 28px; }
  .firstreads-grid { gap: 18px; }
  .read-tile { padding-top: 16px; gap: 6px; }
  .read-min { font-size: 14px; }
  .read-name { font-size: 24px; line-height: 1.2; }
  .read-blurb { display: none; }
  .closer { margin-top: 40px; padding-top: 36px; padding-bottom: 36px; gap: 24px; }
  .closer-title { font-size: 30px; }
  .leaf-top { padding-top: 16px; padding-bottom: 28px; }
  .leaf-h1 { font-size: 40px; letter-spacing: -0.8px; }
  .leaf-stand { font-size: 18px; }
  .leaf-grid { padding-top: 32px; }
  .reading h2 { font-size: 29px; margin-top: 44px; }
  .plain { padding: 22px 20px; border-radius: 18px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .handoff { padding: 26px 20px; border-radius: 20px; }
  .handoff-title { font-size: 26px; }
  .handoff .go-coral { display: flex; }
  .goalrow { padding: 20px; }
  .colophon { margin-top: 48px; }
  .colophon-line { font-size: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .jump { transition: transform 0.15s ease; }
}
