:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #292e28;
  --quiet: #525c50;
  --rule: #b7bcb0;
  --wash: #e8e9df;
  --moss: #3f533f;
  --clay: #634b39;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

p,
figure,
dl,
dd,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 20px;
  padding: 12px 20px;
  min-height: 48px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: 22px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.masthead-note {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
}

.hero {
  display: grid;
  gap: 40px;
  padding-block: 40px 44px;
}

.hero-text {
  min-width: 0;
}

.hero-label {
  max-width: 38ch;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
}

.hero-title {
  margin-block: 22px;
  font-size: clamp(36px, 7.8vw, 74px);
  font-weight: 440;
  letter-spacing: -0.045em;
  line-height: 1.08;
  overflow-wrap: normal;
}

.hero-copy {
  max-width: 47ch;
  font-size: 18px;
  line-height: 1.65;
}

.begin-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-top: 22px;
  border-bottom: 1px solid var(--moss);
  font-size: 17px;
  text-decoration: none;
}

.atmosphere {
  align-self: end;
  min-width: 0;
}

.atmosphere-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #dadcd0;
  color: var(--quiet);
  font-size: 16px;
}

.atmosphere-caption {
  padding-top: 12px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
}

.guide-layout {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--rule);
}

.contents-rail {
  min-width: 0;
  padding-block: 28px 12px;
}

.contents-label {
  padding-bottom: 18px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
}

.question-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.question-tab {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 14px 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.question-tab:hover,
.question-tab:focus-visible {
  background: var(--wash);
}

.guide-text {
  min-width: 0;
}

.chapter {
  padding-block: 44px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.chapter:target {
  border-top: 3px solid var(--moss);
}

.chapter-header {
  margin-bottom: 28px;
}

.chapter-label {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.chapter-title {
  max-width: 24ch;
  margin-block: 14px 20px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}

.chapter-open {
  font-size: 19px;
  line-height: 1.65;
}

.body-copy {
  margin-bottom: 18px;
  max-width: 68ch;
}

.margin-note {
  margin-block: 34px;
  padding-block: 4px;
  padding-left: 24px;
  border-left: 2px solid var(--clay);
  color: var(--clay);
  font-size: 23px;
  line-height: 1.45;
}

.chapter-recap {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.recap-label {
  margin-bottom: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
}

.recap-copy {
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.65;
}

.chapter-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-top: 16px;
  padding-block: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.subhead {
  margin-block: 30px 14px;
  font-size: 21px;
  font-weight: 550;
  line-height: 1.4;
}

.product-types {
  margin-block: 28px 34px;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.product-row {
  padding-block: 4px 14px;
}

.product-row + .product-row {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.product-row .subhead {
  margin-top: 12px;
}

.product-row .body-copy:last-child {
  margin-bottom: 4px;
}

.care-paths {
  margin-block: 28px;
}

.care-path {
  display: grid;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}

.path-label {
  color: var(--clay);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.path-copy {
  font-size: 17px;
}

.lookup-link {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin-block: 8px 18px;
  padding-block: 12px;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.price-note {
  margin-block: 30px;
  padding: 24px 20px;
  background: var(--wash);
  border-top: 2px solid var(--moss);
}

.price-label {
  margin-bottom: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.price-copy {
  margin-bottom: 20px;
  color: var(--moss);
  font-size: 23px;
  line-height: 1.4;
}

.price-note .body-copy:last-child {
  margin-bottom: 0;
}

.bill-table {
  width: 100%;
  margin-block: 18px 30px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.6;
}

.table-caption {
  padding-bottom: 16px;
  color: var(--quiet);
  font-size: 16px;
  text-align: left;
}

.bill-table th,
.bill-table td {
  padding: 16px 0;
  vertical-align: top;
  border-top: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

.bill-table th:first-child {
  width: 34%;
  padding-right: 18px;
}

.bill-table th {
  font-weight: 550;
  text-align: left;
}

.caution-list {
  margin-block: 18px 30px;
}

.caution-row {
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}

.caution-label {
  margin-bottom: 10px;
  color: var(--clay);
  font-family: var(--mono);
  font-size: 16px;
}

.caution-copy {
  font-size: 17px;
}

.urgent-note {
  margin-block: 30px;
  padding: 24px 20px;
  border: 1px solid var(--clay);
}

.urgent-title {
  margin-bottom: 16px;
  color: var(--clay);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.4;
}

.urgent-note .body-copy:last-child {
  margin-bottom: 0;
}

.visit-questions {
  margin: 0;
  padding-left: 24px;
}

.visit-questions li {
  padding-block: 8px;
  padding-left: 4px;
  font-size: 17px;
}

.reading-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.reading-row {
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}

.reading-label {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.reading-title {
  margin-block: 4px 8px;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.5;
}

.source-link {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding-block: 10px;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.reading-note {
  max-width: 65ch;
  font-size: 17px;
}

.page-footer {
  display: grid;
  gap: 24px;
  padding-block: 40px 30px;
}

.footer-copy {
  max-width: 65ch;
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.65;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  padding-block: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.missing-page {
  min-height: 62vh;
  padding-block: 60px;
  border-bottom: 1px solid var(--rule);
}

.missing-title {
  margin-block: 24px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 440;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

@media (min-width: 760px) {
  .site-shell {
    padding-inline: 40px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 64px;
  }

  .hero-title {
    font-size: clamp(42px, 5.1vw, 74px);
  }

  .question-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-text {
    max-width: 720px;
  }

  .chapter-title {
    font-size: 36px;
  }

  .care-path {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }

  .price-note,
  .urgent-note {
    padding: 28px 32px;
  }

  .price-copy {
    font-size: 26px;
  }

  .bill-table {
    font-size: 17px;
  }

  .page-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
  }
}

@media (min-width: 1080px) {
  body {
    font-size: 18px;
  }

  .hero {
    gap: 72px;
    padding-block: 80px 76px;
  }

  .guide-layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 80px;
  }

  .contents-rail {
    padding-top: 46px;
  }

  .question-nav {
    position: sticky;
    top: 32px;
  }

  .question-tabs {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
  }

  .question-tab {
    min-height: 64px;
    padding-inline: 16px 12px;
    border-left: 2px solid var(--rule);
    border-right: 0;
  }

  .question-tab:hover,
  .question-tab:focus-visible {
    border-left-color: var(--moss);
  }

  .chapter {
    padding-block: 64px;
  }

  .chapter-open {
    font-size: 21px;
  }

  .path-copy,
  .caution-copy,
  .reading-note,
  .visit-questions li {
    font-size: 18px;
  }

  .page-footer {
    padding-block: 46px;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .contents-rail,
  .skip-link,
  .begin-link,
  .chapter-next,
  .footer-link {
    display: none;
  }

  .guide-layout {
    display: block;
  }

  .chapter {
    padding-block: 24px;
  }

  .chapter-header,
  .product-row,
  .care-path,
  .caution-row,
  .reading-row,
  .urgent-note,
  .bill-table tr {
    break-inside: avoid;
  }
}
