@font-face {
  font-family: "David Libre";
  src: url("/media/david-libre-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "David Libre";
  src: url("/media/david-libre-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("/media/caladea-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("/media/caladea-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #182927;
  --paper: #f6f5ed;
  --white: #ffffff;
  --muted: #4c5d56;
  --lime: #d3f46b;
  --line: #b0b9a9;
  --moss: #315d42;
  --wash: #e9eddf;
  --alert: #743e29;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.55 "David Libre", Georgia, serif;
  overflow-wrap: break-word;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 4px;
}
button, select { font: inherit; }
button, select, label { font-size: 18px; }
[hidden] { display: none !important; }
h1, h2, h3, legend { font-family: "Caladea", Georgia, serif; }
h1 { font-size: 62px; line-height: 1.03; letter-spacing: -1.3px; font-weight: 400; margin: 20px 0 24px; }
h2 { font-size: 31px; line-height: 1.16; letter-spacing: -.25px; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 26px; line-height: 1.2; margin: 0 0 20px; }
p { margin: 0 0 16px; }

#skip-reading {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 22px;
  background: var(--lime);
  color: var(--ink);
  z-index: 10;
  min-height: 48px;
}
#skip-reading:focus { top: 16px; }
#side-index {
  width: 272px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--ink);
  color: var(--paper);
  padding: 36px 20px 30px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
#side-index > header { border-bottom: 1px solid #647267; padding: 0 10px 26px; }
#site-name {
  font: 400 32px/1.03 "Caladea", Georgia, serif;
  display: block;
  min-height: 48px;
  text-decoration: none;
  letter-spacing: -.35px;
  margin: 0 0 20px;
}
#side-index header p { font: 17px/1.35 "Caladea", Georgia, serif; color: var(--lime); margin: 0; }
#index-jump { display: none; }
#reading-index { margin-top: 28px; }
#reading-index h2 { font: 400 25px/1.2 "Caladea", Georgia, serif; padding: 0 10px; margin-bottom: 14px; color: #c7cfc1; }
#reading-index a {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  min-height: 46px;
  margin: 2px 0;
  border-radius: 8px;
  font: 400 17px/1.3 "Caladea", Georgia, serif;
  text-decoration: none;
}
#reading-index a[aria-current="page"] { background: var(--lime); color: var(--ink); }
#reading-index a:hover { background: #30443c; color: var(--white); }
#reading-index a[aria-current="page"]:hover { background: #e2ff92; color: var(--ink); }
#side-index a:focus-visible { outline-color: var(--lime); }
#reading-index:target { outline: 3px solid var(--lime); outline-offset: 7px; }

main { margin-left: 272px; min-width: 0; }
#breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 12px 58px;
  border-bottom: 1px solid var(--line);
  font: 18px/1.3 "Caladea", Georgia, serif;
}
#breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; }
#breadcrumbs > span:last-child { color: var(--muted); }
article { max-width: 1050px; margin: 0 auto; }
#entry-opening { padding: 44px 58px 42px; border-bottom: 1px solid var(--line); }
#entry-opening > div { max-width: 780px; }
[data-kicker] { font: 18px/1.35 "Caladea", Georgia, serif; color: var(--moss); margin: 0; }
[data-lead] { font-size: 24px; line-height: 1.4; max-width: 65ch; margin-bottom: 24px; }
[data-date] { font: 17px/1.35 "Caladea", Georgia, serif; color: var(--muted); margin: 0; }
#entry-body { max-width: 780px; padding: 44px 58px 56px; }
#entry-body > section { margin-bottom: 34px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
#entry-body > section p:last-child { margin-bottom: 0; }
#source-notes {
  border-left: 4px solid var(--moss);
  padding: 8px 0 8px 22px;
  margin: 10px 0 44px;
  color: var(--muted);
}
#source-notes h2 { font-size: 25px; color: var(--ink); }
#source-notes p { font-size: 18px; max-width: 65ch; }
#source-notes a, #next-reading a {
  min-height: 48px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 18px;
  color: var(--moss);
}
#source-notes a > span, #next-reading a > span { flex-shrink: 0; font-size: 24px; }
#next-reading h2 { font-size: 26px; }
#next-reading a { border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
#next-reading a:hover { color: var(--moss); }
#site-footer { margin-left: 272px; border-top: 1px solid var(--line); padding: 28px 58px 32px; font-size: 18px; }
#site-footer p, #site-footer > div { max-width: 664px; margin-right: auto; }
#site-footer > div { display: flex; flex-wrap: wrap; gap: 8px 28px; }
#site-footer a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 0; font-size: 18px; }

body[data-page="home"] #entry-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 52px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 7px solid var(--lime);
}
body[data-page="home"] h1 { font-size: 68px; max-width: 15ch; }
body[data-page="home"] [data-kicker] { color: var(--lime); }
body[data-page="home"] [data-date] { color: #c7cfc1; }
body[data-page="home"] [data-lead] { font-size: 23px; }
body[data-page="home"] #entry-body { max-width: 860px; }
body[data-page="home"] #entry-body > section { display: grid; grid-template-columns: 184px minmax(0,1fr); column-gap: 28px; }
body[data-page="home"] #entry-body > section > h2 { grid-row: 1 / span 8; font-size: 28px; padding-top: 4px; }

figure { font: 18px/1.35 "Caladea", Georgia, serif; margin: 34px 0 0; }
figcaption { font-size: 19px; font-weight: 700; margin-bottom: 22px; }
figure p { font-size: 17px; margin: 22px 0 0; }
#decision-map { align-self: center; margin: 0; }
#decision-map figcaption { color: var(--paper); font-weight: 400; max-width: 15ch; font-size: 25px; line-height: 1.15; }
#decision-map [data-hub] { width: 142px; height: 142px; border: 2px solid var(--lime); border-radius: 50%; display: grid; place-items: center; margin: 28px auto 0; background: #263d34; }
#decision-map [data-hub]::after { content: ""; position: absolute; }
#decision-map [data-branches] { display: flex; justify-content: center; gap: 12px; border-top: 1px solid #8da568; padding-top: 18px; margin-top: 20px; position: relative; }
#decision-map [data-branches]::before { content: ""; position: absolute; width: 1px; height: 20px; background: #8da568; top: -21px; left: 50%; }
#decision-map [data-branches] > span { display: flex; align-items: center; text-align: center; padding: 14px 10px; border: 1px solid #8da568; border-radius: 10px; width: 50%; min-height: 70px; }
#decision-map [data-destination] { margin: 20px auto 0; padding: 16px 12px; border-radius: 12px; text-align: center; background: var(--lime); color: var(--ink); position: relative; }
#decision-map [data-destination]::before { content: ""; position: absolute; width: 1px; height: 20px; background: #8da568; top: -20px; left: 50%; }
#decision-map p { color: #c7cfc1; text-align: center; }
#product-map, #visit-map, #cost-map { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--wash); max-width: 780px; }
#product-map > div, #visit-map > div, #cost-map > div { display: flex; align-items: stretch; gap: 20px; }
#product-map span, #visit-map span, #cost-map span { flex: 1; padding: 14px; background: var(--paper); border: 1px solid var(--moss); border-radius: 8px; text-align: center; display: grid; place-items: center; position: relative; }
#product-map span + span::before, #visit-map span + span::before { content: "→"; position: absolute; left: -18px; color: var(--moss); }
#cost-map span + span::before { content: "+"; position: absolute; left: -16px; color: var(--moss); }

#worksheet { background: var(--wash); padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
fieldset { border: 0; margin: 0; padding: 8px 0 0; min-inline-size: 0; }
legend { font-weight: 700; font-size: 24px; padding: 0; margin-bottom: 8px; }
label { display: block; margin: 20px 0 8px; font-family: "Caladea", Georgia, serif; }
select { display: block; width: 100%; min-height: 52px; border: 1px solid var(--moss); border-radius: 6px; padding: 12px; background: var(--white); color: var(--ink); }
button { min-height: 48px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--paper); cursor: pointer; margin: 18px 8px 0 0; font-family: "Caladea", Georgia, serif; }
button:hover { background: var(--moss); }
#copy-questions { background: var(--lime); color: var(--ink); }
#clear-choices { background: transparent; color: var(--ink); }
#question-sheet { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--moss); }
#worksheet-status { font-size: 17px; color: var(--muted); margin: 20px 0 0; }
body[data-page="stop-signs"] #entry-body > section:first-child { border: 2px solid var(--alert); border-radius: 12px; padding: 24px; background: #fff8ed; }
body[data-page="stop-signs"] #entry-body > section:first-child p:last-child { font-weight: 700; font-size: 25px; color: var(--alert); }

@media (max-width: 1150px) {
  #side-index { width: 248px; padding-left: 16px; padding-right: 12px; }
  main, #site-footer { margin-left: 248px; }
  #entry-opening, #entry-body { padding-left: 38px; padding-right: 38px; }
  #breadcrumbs, #site-footer { padding-left: 38px; padding-right: 38px; }
  body[data-page="home"] #entry-opening { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] h1 { max-width: 18ch; }
  #decision-map { max-width: 310px; }
  #decision-map figcaption { max-width: none; }
  body[data-page="home"] #entry-body > section { grid-template-columns: 1fr; }
  body[data-page="home"] #entry-body > section > h2 { grid-row: auto; }
}

@media (max-width: 800px) {
  body { display: flex; flex-direction: column; font-size: 20px; }
  #side-index { display: contents; }
  #side-index > header { order: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; background: var(--ink); color: var(--paper); padding: 22px 24px; }
  #site-name { font-size: 28px; margin: 0 0 8px; grid-column: 1; }
  #side-index header p { grid-column: 1; }
  #index-jump { display: flex; grid-column: 2; grid-row: 1 / span 2; align-items: center; max-width: 90px; min-height: 48px; padding: 12px 8px; font-size: 17px; line-height: 1.2; text-align: center; border: 1px solid #829779; border-radius: 8px; }
  main { order: 1; margin-left: 0; width: 100%; }
  #reading-index { order: 2; background: var(--ink); color: var(--paper); margin: 0; padding: 30px 24px; }
  #reading-index h2 { padding: 0; font-size: 25px; color: var(--paper); }
  #reading-index a { min-height: 48px; font-size: 18px; }
  #reading-index:target { outline: 0; }
  #site-footer { order: 3; margin-left: 0; padding: 26px 24px; }
  #entry-opening, #entry-body { padding-left: 24px; padding-right: 24px; }
  #entry-opening { padding-top: 32px; padding-bottom: 32px; }
  #entry-body { padding-top: 32px; padding-bottom: 36px; }
  #breadcrumbs { padding: 8px 24px; gap: 10px; font-size: 17px; }
  h1, body[data-page="home"] h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.65px; max-width: 19ch; }
  h2, body[data-page="home"] #entry-body > section > h2 { font-size: 28px; }
  [data-lead], body[data-page="home"] [data-lead] { font-size: 22px; }
  body[data-page="home"] #entry-opening { padding-top: 34px; padding-bottom: 34px; gap: 34px; }
  #decision-map { max-width: 320px; width: 100%; margin: 0 auto; }
  #decision-map figcaption { font-size: 25px; }
  #entry-body > section { padding-bottom: 26px; margin-bottom: 28px; }
  #product-map, #visit-map, #cost-map { padding: 22px 18px; }
  #product-map > div, #visit-map > div { flex-direction: column; gap: 24px; }
  #product-map span + span::before, #visit-map span + span::before { content: "↓"; left: calc(50% - 5px); top: -23px; }
  #cost-map > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  #cost-map span + span::before { content: none; }
  #worksheet { padding: 22px 18px; }
  select { font-size: 16px; padding: 12px 8px; }
  #source-notes { padding-left: 18px; }
  #site-footer > div { display: block; }
  #site-footer a { display: flex; width: fit-content; }
}

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

@media print {
  body { display: block; background: white; color: black; font-size: 17px; }
  #side-index, #skip-reading, #breadcrumbs, #next-reading, #site-footer, button { display: none !important; }
  main { margin-left: 0; }
  #entry-opening, body[data-page="home"] #entry-opening { background: white; color: black; border-bottom: 1px solid black; display: block; padding: 20px 0; }
  #entry-body { padding: 24px 0; max-width: 100%; }
  #entry-body > section, #question-sheet, figure { break-inside: avoid; }
  h1, body[data-page="home"] h1 { font-size: 36px; }
  #decision-map { display: none; }
  [data-kicker], [data-date], #source-notes, #source-notes a { color: black; }
}
