@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
  --ink: #26383a;
  --muted: #526568;
  --paper: #ffffff;
  --warm: #fdf6e3;
  --aqua: #a8dadc;
  --sky: #87ceeb;
  --lavender: #e6e6fa;
  --mint: #98fb98;
  --tan: #d2b48c;
  --line: #d6dddd;
  --soft-line: #e0e0e0;
  --shadow: 0 2px 8px rgb(38 56 58 / 8%);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --measure: 72ch;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(38vw, 34rem);
  height: min(38vw, 34rem);
  border-radius: 50%;
  content: "";
  opacity: 0.28;
  pointer-events: none;
}

body::before {
  top: -18rem;
  right: -10rem;
  background: var(--lavender);
}

body::after {
  bottom: -22rem;
  left: -12rem;
  background: var(--aqua);
}

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

a {
  color: #175e73;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0c4658;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  margin-block: 0 0.75rem;
  font-family: Lora, Georgia, serif;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

p,
li,
dt,
dd,
small,
footer,
summary,
select {
  font-size: 1rem;
}

p {
  margin-block: 0 1rem;
}

ul,
ol {
  padding-inline-start: 1.3rem;
}

li + li {
  margin-top: 0.55rem;
}

button,
.button,
select {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font: 600 1rem/1.2 "Source Serif 4", Georgia, serif;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid #4f8f9b;
  background: var(--aqua);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}

.button:hover {
  background: #96ced1;
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-1px);
}

.eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  color: #446568;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  max-width: 1280px;
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.side-index {
  padding: 1.5rem 1.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.side-index details {
  position: sticky;
  top: 1.5rem;
}

.side-index summary {
  display: none;
  min-height: 44px;
  cursor: pointer;
}

.side-index nav {
  display: grid;
  gap: 0.2rem;
}

.site-name {
  display: block;
  min-height: 44px;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-family: Lora, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.side-index nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  color: #334d50;
  text-decoration: none;
}

.side-index nav a:hover,
.side-index nav a[aria-current="page"] {
  background: var(--warm);
  color: var(--ink);
}

.side-index .nav-label {
  margin: 1rem 0 0.35rem;
  color: #637679;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-frame {
  min-width: 0;
  padding: 1.5rem 0 0 3rem;
}

main {
  overflow: clip;
}

main > section,
main > header {
  margin-block-end: clamp(4rem, 8vw, 8rem);
}

.hero-grid,
.zigzag {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(16rem, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 28rem;
}

.hero-grid h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-grid .lede,
.front-matter .lede {
  color: #3f5759;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.front-matter {
  padding: clamp(2.5rem, 7vw, 6rem) 0 0;
}

.front-matter h1 {
  font-size: clamp(2.25rem, 4vw, 2.5rem);
}

.collage {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 32rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--warm);
  box-shadow: var(--shadow);
}

.collage::before,
.collage::after {
  position: absolute;
  z-index: -1;
  border-radius: var(--radius-lg);
  content: "";
}

.collage::before {
  inset: -0.8rem 1.6rem 0.8rem -1rem;
  background: var(--lavender);
  transform: rotate(-2deg);
}

.collage::after {
  inset: 1.5rem -0.8rem -0.8rem 2rem;
  background: var(--aqua);
  transform: rotate(2deg);
}

.collage img {
  width: 100%;
  border-radius: var(--radius);
}

.jump-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 2rem 0 3rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.jump-menu strong {
  padding-inline: 0.35rem;
}

.jump-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--warm);
  text-decoration: none;
}

.jump-menu select {
  display: none;
  width: 100%;
  padding-inline: 0.75rem 2.2rem;
  border: 1px solid #839a9d;
  background: #fff;
  color: var(--ink);
}

.checklist,
.path-list,
.route-list,
.question-sheet {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.path-list li,
.question-sheet li {
  position: relative;
  margin: 0;
  padding: 1.05rem 1rem 1.05rem 3.2rem;
  border-bottom: 1px solid var(--line);
}

.checklist li::before,
.question-sheet li::before {
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid #578e93;
  border-radius: 0.35rem;
  content: "";
}

.path-list {
  counter-reset: path;
}

.path-list li {
  counter-increment: path;
}

.path-list li::before {
  position: absolute;
  top: 0.9rem;
  left: 0.65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  content: counter(path);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.checklist strong,
.path-list strong,
.question-sheet strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: Lora, Georgia, serif;
}

.route-list {
  display: grid;
  gap: 1rem;
}

.route-list li,
.route-card,
.note,
.cost-row {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.route-list li:nth-child(2n),
.route-card:nth-child(2n) {
  background: var(--warm);
}

.note {
  border-left: 6px solid var(--aqua);
  background: #f7fcfc;
}

.note.warm {
  border-left-color: var(--tan);
  background: var(--warm);
}

.note.safety {
  border-left-color: #5cae69;
  background: #f0fff0;
}

.note > :last-child,
.route-card > :last-child {
  margin-bottom: 0;
}

.zigzag:nth-of-type(even) > :first-child {
  order: 2;
}

.route-cards,
.cost-stack {
  display: grid;
  gap: 1rem;
}

.cost-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.cost-row strong {
  font-family: Lora, Georgia, serif;
}

.source-notes {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.source-notes li {
  margin-bottom: 0.75rem;
}

.source-notes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.next-route {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 4rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lavender);
}

.next-route a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: #526568;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

footer a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.technical {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95rem;
}

@media (min-width: 861px) {
  .side-index details:not([open]) > .site-name {
    display: block;
  }

  .side-index details:not([open]) > nav {
    display: grid;
  }
}

@media (max-width: 860px) {
  .site-shell {
    display: block;
    padding-inline: 1rem;
  }

  .side-index {
    position: relative;
    z-index: 5;
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
  }

  .side-index details {
    position: static;
  }

  .side-index summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    font-weight: 600;
  }

  .side-index summary::-webkit-details-marker {
    display: none;
  }

  .side-index summary::after {
    content: "+";
    font-family: ui-monospace, monospace;
  }

  .side-index details[open] summary::after {
    content: "−";
  }

  .side-index .site-name {
    margin: 0.6rem 0 0.2rem;
  }

  .page-frame {
    padding: 0;
  }

  .hero-grid,
  .zigzag {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-grid {
    padding-top: 2.5rem;
  }

  .zigzag:nth-of-type(even) > :first-child {
    order: 0;
  }
}

@media (max-width: 640px) {
  .js .jump-menu a {
    display: none;
  }

  .js .jump-menu select {
    display: block;
  }

  .jump-menu strong {
    width: 100%;
  }

  .cost-row {
    grid-template-columns: 1fr;
  }

  .next-route {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main > header,
  main > section {
    animation: settle 420ms ease-out both;
  }

  main > section:nth-of-type(2) {
    animation-delay: 80ms;
  }

  main > section:nth-of-type(3) {
    animation-delay: 160ms;
  }

  body::before,
  body::after {
    animation: breathe 12s ease-in-out infinite alternate;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes breathe {
  to {
    transform: translate3d(0, 12px, 0) scale(1.03);
  }
}

@media print {
  .side-index,
  .jump-menu,
  .next-route,
  footer nav,
  .collage {
    display: none;
  }

  .site-shell,
  .hero-grid,
  .zigzag {
    display: block;
  }

  .page-frame {
    padding: 0;
  }

  body {
    color: var(--ink);
  }
}
