:root {
  color-scheme: light;
  --wash: #eaf2e6;
  --ink: #293c2d;
  --fern: #285f3a;
  --leaf: #39794d;
  --cream: #fffdf2;
  --mint: #d6e6cf;
  --peach: #f1d7bb;
  --shadow: #bdcdb7;
  --book-face: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--book-face);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; font: inherit; color: var(--ink); }
a {
  color: var(--fern);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
  min-height: 44px;
}
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible { outline: 3px solid var(--fern); outline-offset: 5px; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 8.9vw, 4.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 5vw, 2.3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.85rem; }
ul { padding-left: 1.25rem; margin: 1rem 0 1.3rem; }
li { padding-left: 0.25rem; margin-bottom: 0.65rem; }
dl { margin: 0; }
dd { margin: 0; }
figure { margin: 0; }
figcaption { font-size: 1rem; line-height: 1.5; margin-top: 1rem; max-width: 40ch; }
[class$="-skip"] {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  z-index: 5;
  background: var(--cream);
  padding: 0.7rem 1.2rem;
}
[class$="-skip"]:focus { transform: translateY(0); }
[class$="-binding"] {
  margin: auto;
  max-width: 84rem;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
[class$="-home-tab"], [class$="-directory-jump"] {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  padding: 0.6rem 0;
}
[class$="-home-tab"] { font-weight: 700; text-decoration: none; }
[class$="-home-tab"]::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1.4rem;
  margin-right: 0.6rem;
  border-radius: 0.7rem 0.7rem 0 0;
  background: var(--leaf);
  box-shadow: 3px 3px 0 var(--shadow);
}
[class$="-reading"] { width: min(100% - 2.3rem, 70rem); margin: auto; padding-bottom: 3rem; }
[class$="-chapter-opening"] { max-width: 49rem; margin: 2.2rem auto 1.65rem; }
[class$="-chapter-opening"] h1 { font-size: clamp(2.45rem, 7.9vw, 4.2rem); }
[class$="-tab"] {
  display: table;
  background: var(--mint);
  padding: 0.45rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  border-radius: 1rem 1rem 0 0;
}
[class$="-opener"] { font-size: 1.25rem; max-width: 49rem; margin: 0 auto 2rem; line-height: 1.55; }
[class$="-reading"] > p:not([class$="-opener"]),
[class$="-reading"] > [class$="-paper-link"],
[class$="-reading"] > [class$="-word-slip"],
[class$="-reading"] > section:not([class$="-cover"]):not([class$="-question-spread"]),
[class$="-reading"] > aside,
[class$="-reading"] > figure { max-width: 44rem; margin-left: auto; margin-right: auto; }
[class$="-passage"] { margin-top: 3rem; margin-bottom: 2.75rem; }
[class$="-word-slip"] {
  background: var(--cream);
  padding: 2rem 1.4rem 1.5rem;
  border-radius: 3.6rem 3.6rem 0 0;
  box-shadow: 0.4rem 0.45rem 0 var(--shadow);
  margin-top: 2.1rem;
  margin-bottom: 2rem;
}
[class$="-word-slip"] dt { font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.7rem; }
[class$="-word-slip"] dd { line-height: 1.55; }
[class$="-paper-link"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: fit-content;
  max-width: 100%;
  background: var(--fern);
  color: var(--cream);
  padding: 0.8rem 1.1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0.9rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
[class$="-paper-link"]:hover { background: #255737; text-decoration: underline; }
[class$="-paper-link"] span { flex: none; }
[class$="-pocket-recap"] {
  padding: 2.5rem 1.5rem 1.4rem;
  margin-top: 3.5rem;
  margin-bottom: 3.4rem;
  background: var(--mint);
  border-radius: 4.5rem 4.5rem 0 0;
  position: relative;
}
[class$="-pocket-recap"]::before {
  content: "";
  display: block;
  width: 4.4rem;
  height: 0.65rem;
  background: var(--leaf);
  position: absolute;
  top: -0.65rem;
  left: calc(50% - 2.2rem);
}
[class$="-pocket-recap"] h2 { font-size: 1.5rem; }
[class$="-pocket-recap"] p { margin-bottom: 0.25rem; }
[class$="-chapter-notes"] { margin-top: 3rem; }
[class$="-chapter-notes"] h2 { font-size: 1.55rem; margin-bottom: 0.9rem; }
[class$="-chapter-notes"] ul { list-style: none; padding: 0; margin: 0; }
[class$="-chapter-notes"] li { padding: 0; margin: 0; }
[class$="-chapter-notes"] a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}
[class$="-collage"] { margin-top: 2.4rem; margin-bottom: 2.7rem; }
[class$="-paper-stage"] {
  background: #c9dfc0;
  border-radius: 45% 45% 0 0;
  box-shadow: 0.6rem 0.65rem 0 #dce7d5;
  overflow: hidden;
}
[class$="-paper-stage"] img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; padding: 0; }
.open-cover { margin: 1.9rem 0 3.8rem; }
.open-cover-copy { padding-top: 0.5rem; }
.open-cover h1 { max-width: 13ch; margin-bottom: 1.4rem; }
.open-arrival { font-size: 1.125rem; line-height: 1.55; max-width: 51ch; }
.open-cover-copy > p:not(.open-tab):not(.open-arrival) { max-width: 47ch; }
.open-cover .open-collage { width: min(100% - 1.5rem, 26rem); margin: 2.1rem auto 0; }
.open-cover .open-paper-stage { border-radius: 50% 50% 0 0; background: #bad4ad; }
.open-cover img { aspect-ratio: 6 / 7; }
.open-question-spread { margin: 3rem 0; }
.open-question-spread > h2 { max-width: 24ch; }
.open-question-tabs { display: grid; gap: 1.9rem; }
.open-question-tabs article {
  padding: 2.5rem 1.4rem 1.1rem;
  background: var(--cream);
  border-radius: 4.3rem 4.3rem 0 0;
  box-shadow: 0.4rem 0.5rem 0 var(--shadow);
}
.open-question-tabs article:nth-child(2) { background: #d5e5cf; }
.open-question-tabs article:nth-child(3) { background: #f4e6d4; }
.open-question-tabs h3 { font-size: 1.7rem; }
.open-question-tabs p { max-width: 25ch; }
.open-question-tabs a { width: 100%; }
.check-record-steps { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.check-record-steps > li { background: var(--cream); margin: 0 0 2rem; padding: 2.6rem 1.45rem 1.1rem; border-radius: 3.8rem 3.8rem 0 0; box-shadow: 0.45rem 0.45rem 0 var(--shadow); }
.check-record-steps h3 { font-size: 1.5rem; }
.budget-bill-notes { display: grid; gap: 0.4rem 1.5rem; }
.budget-bill-notes dt { font-weight: 700; margin-top: 0.75rem; font-size: 1.2rem; }
.budget-bill-notes dd { margin-bottom: 0.75rem; }
.caution-urgent-slip { background: var(--peach); padding: 2.8rem 1.4rem 1.25rem; margin-top: 3rem; margin-bottom: 3rem; border-radius: 4.3rem 4.3rem 0 0; }
[class$="-back-cover"] {
  background: #d6e6cf;
  padding: 3.3rem 1.15rem 2rem;
  margin-top: 2.4rem;
  border-radius: 4.5rem 4.5rem 0 0;
}
[class$="-directory-title"], [class$="-directory"], [class$="-colophon"], [class$="-back-top"] { max-width: 70rem; margin-left: auto; margin-right: auto; }
[class$="-directory-title"] .open-tab, [class$="-directory-title"] [class$="-tab"] { padding-left: 0; background: transparent; }
[class$="-directory"] { display: grid; gap: 1.7rem; margin-top: 2rem; margin-bottom: 2.3rem; }
[class$="-directory-group"] h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
[class$="-directory"] ul { padding: 0; list-style: none; margin: 0; }
[class$="-directory"] li { padding: 0; margin: 0; }
[class$="-directory"] a { display: flex; align-items: center; width: fit-content; max-width: 100%; padding: 0.7rem 0; font-size: 1.0625rem; line-height: 1.45; }
[class$="-directory"] a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 0.15em; }
[class$="-colophon"] { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 1.1rem; }
[class$="-back-top"] { display: block; font-size: 1rem; padding: 0.8rem 0; }

@media (min-width: 44rem) {
  body { font-size: 1.25rem; }
  [class$="-binding"] { padding: 1.5rem 2rem; }
  [class$="-reading"] { width: min(100% - 5rem, 70rem); padding-bottom: 4.5rem; }
  [class$="-chapter-opening"] { margin-top: 3.5rem; margin-bottom: 2rem; }
  [class$="-opener"] { font-size: 1.4rem; }
  [class$="-word-slip"] { padding: 2.6rem 2.7rem 2rem; border-radius: 5rem 5rem 0 0; }
  [class$="-word-slip"] dt { font-size: 1.8rem; }
  [class$="-pocket-recap"] { padding: 3.2rem 2.9rem 2.3rem; }
  [class$="-pocket-recap"] h2 { max-width: 27ch; font-size: 1.8rem; }
  .open-question-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
  .open-question-tabs article { display: flex; flex-direction: column; }
  .open-question-tabs a { margin-top: auto; }
  .open-question-tabs p { font-size: 1.125rem; }
  .budget-bill-notes { grid-template-columns: 11rem 1fr; }
  .budget-bill-notes dd { margin-top: 0.75rem; }
  .check-record-steps > li { padding: 2.7rem 2.5rem 1.6rem; }
  .caution-urgent-slip { padding: 3.4rem 2.9rem 2rem; }
  [class$="-back-cover"] { padding: 4.5rem 2.5rem 2.5rem; border-radius: 7rem 7rem 0 0; }
  [class$="-directory"] { grid-template-columns: 1.1fr 1.1fr 1fr; gap: 2rem; }
}

@media (min-width: 62rem) {
  .open-cover { display: grid; grid-template-columns: 1.25fr 0.8fr; align-items: start; gap: 4rem; margin: 3rem 0 5rem; }
  .open-cover h1 { font-size: clamp(3.5rem, 5vw, 4.5rem); max-width: 13.4ch; }
  .open-cover-copy { padding-top: 0; }
  .open-cover .open-collage { width: 100%; margin-top: 2.6rem; }
  .open-cover .open-arrival { font-size: 1.19rem; }
  .open-cover-copy > p:not(.open-tab):not(.open-arrival) { font-size: 1.125rem; }
  .open-question-tabs article { padding: 3.5rem 1.9rem 1.4rem; }
  .open-question-tabs article:nth-child(2) { transform: translateY(1.2rem); }
  .open-question-tabs article:nth-child(3) { transform: translateY(-0.4rem); }
  .open-question-spread { padding-top: 1rem; padding-bottom: 2rem; }
  .open-question-spread > h2 { font-size: 2.5rem; margin-bottom: 2.5rem; }
}

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

@media print {
  body { background: white; color: #111; font-size: 12pt; }
  [class$="-binding"], [class$="-back-cover"], [class$="-skip"] { display: none; }
  [class$="-reading"] { width: 100%; }
  [class$="-collage"] { break-inside: avoid; }
  a { color: inherit; }
}
