@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --paper: #f5f2e9;
  --card: #faf8f0;
  --ink: #243127;
  --quiet: #53604f;
  --olive: #455a42;
  --wash: #e8ebdf;
  --rule: #bdc4b4;
  --dark: #293d2e;
  --cream: #f7f4e9;
  --sand: #efe4ce;
  --heading-font: 'Libre Baskerville', 'Baskerville', 'Palatino Linotype', serif;
  --reading-font: 'Source Serif 4', 'Georgia', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px / 1.65 var(--reading-font);
  overflow-wrap: break-word;
}
::selection { background: #d5dcc8; color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 5px;
  border-radius: 2px;
}
h1, h2, .section-title, h4, p, ul, figure { margin: 0; }
h1, .section-title, h4 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(35px, 8.8vw, 62px); letter-spacing: -1.4px; }
h1 em { color: var(--olive); font-weight: 400; }
.section-title { font-size: 32px; letter-spacing: -.7px; max-width: 24ch; }
h4 { font-size: 23px; letter-spacing: -.2px; }
p + p { margin-top: 16px; }
img { display: block; max-width: 100%; }
button, summary, a { -webkit-tap-highlight-color: #d6decb; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 5;
  transform: translateY(-150%);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
}
.skip-link:focus { transform: translateY(0); }
.masthead, .opening, .guide-layout, .site-footer {
  width: min(100% - 40px, 1248px);
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  border-bottom: 1px solid var(--rule);
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.guide-mark {
  font: 400 32px / 1 var(--heading-font);
  letter-spacing: 1px;
  color: var(--olive);
}
.masthead-note { display: none; font-size: 16px; color: var(--quiet); }
.opening { padding-block: 40px 44px; }
.eyebrow, .section-label, .conversation-label, .example-label, .evidence-kind {
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.eyebrow { margin-bottom: 18px; }
.opening-intro { margin-top: 24px; font-size: 20px; line-height: 1.55; }
.opening-copy > p { max-width: 58ch; }
.opening-copy > p:last-of-type { margin-top: 16px; }
.opening-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.primary-link:hover { background: var(--olive); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  font-size: 17px;
}
.opening-photo { margin-top: 32px; }
.photo-frame {
  position: relative;
  aspect-ratio: 896 / 720;
  background: #d9ddcc;
  border: 1px solid #c4cbbb;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; color: var(--quiet); font-size: 16px; }
.opening-photo figcaption { font-size: 16px; line-height: 1.5; color: var(--quiet); padding-top: 10px; }
.guide-layout { border-top: 1px solid var(--rule); }
.contents-rail { padding-top: 24px; }
.contents-menu { border-top: 2px solid var(--olive); border-bottom: 1px solid var(--rule); }
.contents-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  min-height: 58px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
}
.contents-menu summary::-webkit-details-marker { display: none; }
.menu-sign { position: relative; flex: 0 0 18px; height: 18px; }
.menu-sign::before, .menu-sign::after { content: ''; position: absolute; top: 8px; left: 1px; width: 16px; height: 2px; background: var(--olive); }
.menu-sign::after { transform: rotate(90deg); }
.contents-menu[open] .menu-sign::after { transform: rotate(0); }
.contents-menu nav { padding-bottom: 14px; }
.contents-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
.contents-link > span:last-child { color: var(--olive); }
.contents-link:hover, .contents-link[aria-current="location"] { color: var(--olive); }
.contents-link[aria-current="location"] { font-weight: 700; }
.rail-note, .rail-back { display: none; }
.guide-section { padding-block: 46px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.guide-section > .section-title { margin-block: 12px 24px; }
.guide-section > p, .guide-section > .section-label { max-width: 65ch; }
.guide-section > h4 { margin-block: 30px 16px; }
.guide-section > .source-link { margin-top: 12px; }
.section-label { color: var(--olive); }
.treatment-notes { margin-block: 28px; border-top: 1px solid var(--rule); }
.treatment-note { position: relative; padding: 26px 0 26px 20px; border-bottom: 1px solid var(--rule); }
.treatment-note::before { content: ''; position: absolute; left: 0; top: 30px; height: 18px; width: 3px; background: var(--olive); }
.treatment-note h4 { margin-bottom: 16px; }
.treatment-note p, .check-note p, .visit-path p { max-width: 65ch; }
.conversation { margin-block: 32px; background: var(--wash); padding: 26px 22px; border-left: 3px solid var(--olive); }
.conversation-label { color: var(--olive); }
.conversation-question { font: 400 25px / 1.45 var(--heading-font); letter-spacing: -.35px; margin-top: 12px; text-wrap: balance; }
.conversation p:last-child:not(.conversation-question) { margin-top: 18px; }
.conversation-short { padding-block: 26px; }
.check-notes { margin-block: 28px; }
.check-note { padding: 25px 22px; border: 1px solid var(--rule); background: var(--card); }
.check-note + .check-note { margin-top: 16px; }
.check-note h4 { margin-bottom: 16px; }
.source-link, .end-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.5;
  padding-block: 10px;
}
.check-note .source-link { margin-top: 18px; }
.visit-path { margin-block: 32px; }
.visit-path > div { padding: 20px 0 20px 22px; border-left: 1px solid var(--rule); }
.visit-path > div + div { border-top: 1px solid var(--rule); }
.visit-path h4 { font-size: 21px; margin-bottom: 12px; }
.cost-example { margin-block: 28px; padding: 28px 24px; background: var(--dark); color: var(--cream); }
.cost-example .example-label { color: #d4dfcb; }
.cost-example h4 { margin-block: 16px 20px; font-size: 27px; }
.cost-example .price-sentence { font-size: 23px; line-height: 1.55; }
.cost-example p:not(.example-label, .price-sentence) { font-size: 18px; }
.cost-source {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  font-size: 17px;
  padding-block: 12px;
  line-height: 1.5;
  margin-top: 16px;
}
.cost-source:focus-visible { outline-color: var(--cream); }
.coverage-note { padding-top: 26px; }
.coverage-note h4 { margin-bottom: 16px; }
.coverage-note .source-link { margin-top: 14px; }
.label-note { margin-block: 28px; padding: 26px 22px; border: 1px solid var(--rule); background: var(--card); }
.label-note h4 { margin-bottom: 18px; }
.caution-list { padding-left: 22px; margin-bottom: 22px; }
.caution-list li { padding-left: 4px; }
.caution-list li + li { margin-top: 16px; }
.caution-list li::marker { color: var(--olive); }
.urgent-note { margin-block: 28px; background: var(--sand); border-top: 2px solid #88764d; padding: 26px 22px; }
.urgent-note h4 { margin-bottom: 16px; }
.urgent-note .source-link { margin-top: 16px; }
.question-list { margin-block: 26px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.question-list li { position: relative; border-bottom: 1px solid var(--rule); padding: 20px 8px 20px 30px; font-size: 20px; line-height: 1.55; }
.question-list li::before { content: '↳'; position: absolute; left: 0; top: 20px; color: var(--olive); }
.closing-thought { color: var(--olive); font-size: 22px; line-height: 1.55; }
.evidence-section { border-bottom: 0; }
.evidence-grid { display: grid; gap: 16px; margin-block: 28px 18px; }
.evidence-card { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--card); padding: 24px 22px; min-width: 0; }
.evidence-kind { font-size: 16px; }
.evidence-card h4 { margin-block: 14px 16px; font-size: 22px; }
.evidence-card > p:not(.evidence-kind) { font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.evidence-card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 16px; line-height: 1.5; margin-top: auto; border-top: 1px solid var(--rule); padding-top: 12px; }
.evidence-card a > span { flex-shrink: 0; }
.end-link { margin-top: 12px; }
.site-footer { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--rule); padding-block: 30px 38px; font-size: 16px; line-height: 1.6; }
.site-footer p { max-width: 60ch; }
.site-footer a { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; align-self: flex-start; font-size: 16px; padding-block: 10px; }
.missing-page { min-height: 100svh; display: flex; flex-direction: column; }
.missing-copy { width: min(100% - 40px, 760px); margin: auto; padding-block: 64px; }
.missing-copy h1 { margin-bottom: 24px; font-size: clamp(36px, 8vw, 60px); }
.missing-copy .primary-link { margin-top: 28px; }

@media (min-width: 640px) {
  .masthead, .opening, .guide-layout, .site-footer { width: min(100% - 80px, 1248px); }
  .masthead-note { display: block; }
  .opening { padding-block: 52px; }
  .section-title { font-size: 39px; }
  .opening-photo { max-width: 520px; }
  .photo-frame { aspect-ratio: 896 / 860; }
  .guide-section { padding-block: 56px; }
  .conversation { padding: 30px 32px; }
  .conversation-question { font-size: 29px; }
  .treatment-note { padding-left: 28px; }
  .check-note, .label-note, .urgent-note { padding: 28px; }
  .cost-example { padding: 32px; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .masthead { min-height: 104px; }
  .opening { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 64px; }
  .opening-photo { margin: 0 0 0 auto; width: 100%; max-width: 354px; }
  .photo-frame { aspect-ratio: 896 / 1088; }
  h1 { font-size: clamp(44px, 4.3vw, 64px); line-height: 1.23; letter-spacing: -1.7px; }
  .opening-intro { font-size: 21px; margin-top: 28px; }
  .opening-links { margin-top: 30px; }
  .guide-layout { display: grid; grid-template-columns: 248px minmax(0, 768px); justify-content: space-between; gap: 56px; align-items: start; }
  .contents-rail { position: sticky; top: 30px; padding-top: 42px; }
  .contents-menu { border-top-width: 2px; }
  .contents-menu summary { font-size: 20px; padding-block: 20px; }
  .contents-link { padding-block: 14px; min-height: 56px; }
  .rail-note { display: block; margin-top: 30px; color: var(--quiet); font-size: 18px; font-style: italic; line-height: 1.65; }
  .rail-back { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; margin-top: 18px; font-size: 16px; padding-block: 10px; }
  .guide-section { padding-block: 64px; }
  .guide-section:first-child { padding-top: 42px; }
  .section-title { font-size: 42px; }
  .treatment-note { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 24px; padding-block: 28px; }
  .treatment-note h4 { grid-row: 1 / 6; font-size: 23px; margin: 0; }
  .treatment-note p { grid-column: 2; }
  .treatment-note p + p { margin-top: 14px; }
  .check-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .check-note { display: flex; flex-direction: column; padding: 26px 24px; }
  .check-note + .check-note { margin-top: 0; }
  .check-note .source-link { margin-top: auto; padding-top: 18px; }
  .cost-example { padding: 36px; }
  .cost-example .price-sentence { max-width: 36ch; font-size: 28px; }
  .evidence-card { padding: 26px 24px; }
  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding-block: 36px 42px; }
  .site-footer a { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
