:root {
  --needle-deep: #163b32;
  --sand-shell: #f5f0e4;
  --rain-glass: #dcebed;
  --roof-copper: #9b482f;
  --ink-cone: #17221f;
  --paper-clear: #fffdf8;
  --moss-quiet: #5c6c64;
  --sun-thread: #e7c96a;
  --pine-shadow: rgba(22, 59, 50, .14);
  --panel-radius: 1rem;
  --control-radius: .625rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-cone);
  background: var(--paper-clear);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}
a { color: #235b68; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { color: var(--roof-copper); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun-thread);
  outline-offset: 4px;
  border-radius: .25rem;
}
.skip-pine {
  position: fixed;
  inset: .6rem auto auto .6rem;
  transform: translateY(-180%);
  z-index: 20;
  padding: .7rem 1rem;
  color: white;
  background: var(--needle-deep);
}
.skip-pine:focus { transform: none; }
.pines-cap {
  background: var(--needle-deep);
  color: white;
  box-shadow: 0 5px 20px var(--pine-shadow);
}
.cap-wrap, .trail-width, .roots-directory, .page-grove {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}
.cap-wrap { padding: 1.1rem 0 .8rem; }
.place-line { margin: 0; font-size: .95rem; color: #dce9e4; }
.site-name {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: white;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .01em;
}
.pines-nav { display: flex; flex-wrap: wrap; gap: .25rem .7rem; margin-top: .55rem; }
.pines-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .25rem .45rem;
  color: white;
  font-size: .95rem;
  font-weight: 700;
}
.pines-nav a[aria-current] { color: var(--sun-thread); text-decoration-thickness: .18em; }
.trail-width { padding-top: 1rem; }
.trail-width ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .94rem; }
.trail-width li + li::before { content: "/"; margin-right: .4rem; color: var(--moss-quiet); }
.trail-width a { display: inline-flex; min-height: 44px; align-items: center; }
.page-grove { padding: clamp(1.5rem, 4vw, 4rem) 0 4rem; }
.hero-canopy { max-width: 64rem; padding-bottom: 1.25rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--roof-copper); font-size: .93rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { margin: 0 0 1rem; max-width: 20ch; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
body:not(.short-screen) main > .hero-canopy:first-child h1 { max-width: 20ch; }
body:not(.short-screen) main > .hero-canopy:first-child .answer-first { max-width: 62ch; }
body:has(.home-fork[aria-label="Choose your situation"]) h1 { max-width: 18ch; font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { margin: 2.5rem 0 .8rem; font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
h3 { margin: 1.8rem 0 .45rem; font-size: 1.25rem; }
.answer-first { max-width: 66ch; margin: 0; font-size: clamp(1.12rem, 2vw, 1.35rem); }
.page-grove:has(> .action-door) { display: flex; flex-direction: column; }
.page-grove > .hero-canopy:has(+ .action-door) { display: contents; }
.page-grove > .hero-canopy:has(+ .action-door) .eyebrow { order: 1; }
.page-grove > .hero-canopy:has(+ .action-door) h1 { order: 2; }
.page-grove > .action-door { order: 3; }
.page-grove > .hero-canopy:has(+ .action-door) .answer-first { order: 4; margin-bottom: 1.25rem; }
.page-grove > .reading-grid { order: 5; }
.action-door {
  max-width: 66rem;
  margin: .25rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--needle-deep);
  border-radius: var(--panel-radius);
  color: white;
  background: var(--needle-deep);
}
.action-door strong { display: block; margin-bottom: .25rem; }
.official-door {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: .65rem;
  padding: .55rem .9rem;
  border: 2px solid var(--sun-thread);
  border-radius: var(--control-radius);
  color: var(--needle-deep);
  background: var(--sun-thread);
  font-weight: 800;
  text-decoration: none;
}
.official-door:hover { border-color: white; color: white; background: transparent; }
.home-fork {
  display: grid;
  gap: .75rem;
  margin: 1.6rem 0 2.4rem;
  padding: 0;
  list-style: none;
}
.home-fork a {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  gap: .75rem;
  border: 1px solid #b7c3bd;
  border-radius: var(--control-radius);
  color: var(--ink-cone);
  background: #f8f7f2;
  font-weight: 800;
  text-decoration: none;
}
.home-fork a:hover { background: #eadfc7; }
.home-fork strong, .home-fork small { display: block; }
.home-fork strong { font-size: 1.2rem; line-height: 1.3; }
.home-fork small { margin-top: .2rem; font-size: 1rem; font-weight: 500; line-height: 1.45; }
.home-fork li:first-child a { border-color: var(--needle-deep); color: white; background: var(--needle-deep); }
.home-fork li:first-child a:hover { background: #235b68; }
.record-canopy { display: grid; gap: 1rem; margin: 1.6rem 0 3rem; }
.record-canopy section { padding: clamp(1.15rem, 3vw, 1.6rem); border: 1px solid #cad3ce; border-top: 4px solid #7f9d94; border-radius: var(--panel-radius); background: #f1f6f3; }
.record-canopy section:nth-child(2) { border-color: #d5c6a4; border-top-color: #a56b41; background: #fbf5e8; }
.record-canopy section:nth-child(3) { border-color: #abc9cf; border-top-color: #397382; background: #edf7f8; }
.panel-mark { width: 40px; height: 40px; margin-bottom: .5rem; }
.record-canopy h2 { margin-top: 0; font-size: 1.75rem; }
.route-list { margin: .8rem 0 0; padding: 0; list-style: none; }
.route-list li { padding: .8rem 0; border-bottom: 1px solid rgba(23,34,31,.18); }
.route-list li:last-child { border-bottom: 0; }
.route-list a { display: flex; min-height: 44px; align-items: center; font-weight: 800; }
.route-list small { display: block; margin-top: .1rem; color: var(--moss-quiet); font-size: 1rem; line-height: 1.45; }
.route-list li:first-child a { font-size: 1.08rem; }
.storm-now { display: grid; gap: 1rem; margin: 0 0 2.8rem; padding: 1.2rem; border-radius: var(--panel-radius); color: white; background: var(--needle-deep); }
.storm-now h2 { margin: 0; font-size: 1.45rem; }
.storm-now p { margin: .35rem 0 0; }
.storm-now a { display: inline-flex; min-height: 48px; align-items: center; color: #f5dc87; font-weight: 800; }
.reading-grid { display: grid; gap: 2rem; }
.reading-column { max-width: 66ch; }
.support-rail { align-self: start; padding: 1.2rem; border-radius: var(--panel-radius); background: var(--sand-shell); }
.support-rail h2 { margin-top: 0; font-size: 1.35rem; }
.support-rail a { display: flex; min-height: 44px; align-items: center; }
.on-page { margin: 1.2rem 0 2rem; padding: 1rem 1.2rem; border-radius: var(--panel-radius); background: #edf3ef; }
.on-page strong { display: block; }
.on-page ul { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.on-page a { display: inline-flex; min-height: 44px; align-items: center; }
.numbered-path { padding-left: 1.7rem; }
.numbered-path li { padding: .3rem 0 1.1rem .45rem; }
.numbered-path li::marker { color: var(--roof-copper); font-weight: 900; }
.fact-note { padding: 1rem 1.1rem; border: 1px solid #c5b995; border-radius: 1rem; background: #fffaf0; }
.context-boundary {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--panel-radius);
  background: #f2f6f3;
}
.context-boundary > h2 { margin-bottom: .35rem; }
.context-intro { margin-top: 0; color: var(--moss-quiet); font-weight: 700; }
.context-grid { display: grid; gap: 0; margin-top: 1.2rem; }
.context-grid section { padding: 1rem 0; border-top: 1px solid #b9c9c1; }
.context-grid section:last-child { padding-bottom: 0; }
.context-grid h3 { margin-top: 0; font-size: 1.3rem; }
.context-grid p:last-child { margin-bottom: 0; }
.context-takeaway { font-size: 1.08rem; font-weight: 750; }
.context-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
.context-facts span { padding: .7rem; border-radius: .6rem; text-align: center; background: #edf3ef; }
.context-facts strong { display: block; color: var(--needle-deep); font-size: clamp(1.45rem, 3vw, 1.75rem); line-height: 1.1; }
.context-grid details { margin-top: 1rem; }
.context-grid summary { min-height: 44px; padding: .55rem 0; cursor: pointer; color: #235b68; font-weight: 800; }
.context-next { display: flex; min-height: 48px; align-items: center; justify-content: center; margin: .8rem 0; padding: .55rem .8rem; border-radius: var(--control-radius); color: white; background: var(--needle-deep); font-weight: 800; text-align: center; text-decoration: none; }
.context-next:hover { color: var(--needle-deep); background: var(--sun-thread); }
.comparison-wrap { margin: 1.4rem 0 2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem; border-bottom: 1px solid #b7c3bd; text-align: left; vertical-align: top; }
th { color: white; background: var(--needle-deep); }
.review-stamp { margin-top: 2.5rem; color: var(--moss-quiet); font-size: .96rem; }
.source-roots { margin-top: 3rem; padding-top: 1.2rem; border-top: 2px solid #cad8d2; }
.source-roots h2 { margin-top: 0; font-size: 1.5rem; }
.source-roots li { margin: .65rem 0; overflow-wrap: anywhere; }
.sky-window { padding: 1.2rem; border-radius: var(--panel-radius); background: var(--needle-deep); color: white; }
.sky-window h2 { margin-top: 0; font-size: 1.45rem; }
.sky-window a { color: #f5dc87; }
.sky-periods { display: grid; gap: .65rem; padding: 0; list-style: none; }
.sky-periods li { padding: .7rem; border-radius: .7rem; background: rgba(255,255,255,.1); }
.questions-stack dt { margin-top: 1.5rem; font-weight: 900; font-size: 1.12rem; }
.questions-stack dd { margin: .35rem 0 0; }
.roots-directory { display: grid; gap: 1.5rem; padding: 2.5rem 0; }
.roots-foot { background: var(--needle-deep); color: #edf5f1; }
.roots-foot h2 { margin: 0 0 .45rem; color: white; font-size: 1.15rem; }
.roots-foot ul { margin: 0; padding: 0; list-style: none; }
.roots-foot a { display: flex; min-height: 44px; align-items: center; color: white; }
.roots-caveat { font-size: .95rem; color: #d2dfd9; }
.short-screen { min-height: 100svh; display: flex; flex-direction: column; }
.short-screen main { flex: 1; }

@media (min-width: 44rem) {
  .cap-wrap { display: grid; grid-template-columns: minmax(15rem, 1fr) auto; gap: 1rem; align-items: end; }
  .pines-nav { justify-content: end; margin: 0; }
  .home-fork { grid-template-columns: repeat(3, 1fr); }
  .storm-now { grid-template-columns: 1fr auto; align-items: center; }
  .record-canopy { grid-template-columns: 1.1fr .9fr; }
  .record-canopy section:last-child { grid-column: 1 / -1; }
  .roots-directory { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 66.25rem) {
  .record-canopy { grid-template-columns: 1.15fr .85fr 1fr; }
  .record-canopy section:last-child { grid-column: auto; }
  .reading-grid { grid-template-columns: minmax(0, 67ch) minmax(16rem, 1fr); gap: clamp(3rem, 7vw, 7rem); }
  .support-rail { position: sticky; top: 1.5rem; }
  .context-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .context-grid section { padding: .25rem 1.35rem; border-top: 0; border-left: 1px solid #b9c9c1; }
  .context-grid section:first-child { padding-left: 0; border-left: 0; }
  .context-grid section:last-child { padding-right: 0; }
}

@media (max-width: 39.99rem) {
  body { font-size: 16px; }
  a { display: inline-flex; min-height: 44px; align-items: center; }
  .cap-wrap { padding: .55rem 0; }
  .site-name { font-size: 1.25rem; }
  .place-line { font-size: .82rem; line-height: 1.35; }
  .page-grove { padding-top: 1.35rem; }
  .hero-canopy { padding-bottom: .85rem; }
  h1, body:has(.home-fork[aria-label="Choose your situation"]) h1 { max-width: 20ch; font-size: clamp(2rem, 9vw, 2.25rem); line-height: 1.08; }
  .answer-first { font-size: 1.08rem; }
  .action-door { margin-top: 0; padding: 1rem; }
  .official-door { width: 100%; justify-content: center; text-align: center; }
  .pines-nav { flex-wrap: wrap; gap: .1rem .35rem; margin-top: .25rem; }
  .pines-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .25rem .45rem; border: 0; font-size: 1rem; line-height: 1.2; }
  .record-canopy section { min-height: 0; }
  .record-canopy h2 { font-size: 1.55rem; }
  .panel-mark { width: 32px; height: 32px; }
  .context-facts { grid-template-columns: 1fr; }
  .short-screen .page-grove { padding-bottom: 2.5rem; }
  .short-screen .hero-canopy { padding-bottom: .6rem; }
  .short-screen .home-fork { margin: .75rem 0 1.5rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-bottom: .85rem; padding: .7rem; border: 1px solid #b7c3bd; border-radius: .8rem; }
  td { display: grid; grid-template-columns: minmax(7rem, .75fr) 1.25fr; gap: .7rem; padding: .45rem 0; border: 0; }
  td::before { content: attr(data-pine-heading); font-weight: 900; }
}
