@font-face {
  font-family: "STIX Desk";
  src: url("../media/stix-two-text-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f0e2;
  --outside: #e8e1d2;
  --ink: #26392f;
  --quiet: #555b4d;
  --green: #234439;
  --rust: #843d29;
  --rule: #b6ac95;
  --sage: #dce2d1;
  --pale: #efe6d4;
}

* { box-sizing: border-box; }
html { background: var(--outside); font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "STIX Desk", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button { font: inherit; }
a { color: var(--green); text-underline-offset: 0.19em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
p, h1, h2, ul, figure { margin: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: -120px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  background: var(--green);
  color: var(--paper);
  font-size: 18px;
}
.skip-link:focus { top: 16px; color: var(--paper); }
.desk-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 52px;
  width: calc(100% - 96px);
  max-width: 1320px;
  margin: 48px auto;
  align-items: start;
}
.desk-shell__paper {
  min-width: 0;
  background: var(--paper);
  padding: 30px 44px 0;
  border-top: 5px double var(--green);
  border-bottom: 5px double var(--green);
}
.side-index { position: sticky; top: 32px; min-width: 0; }
.side-index__name {
  display: block;
  width: fit-content;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 0 0;
  color: var(--green);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.07;
  text-decoration: none;
  letter-spacing: -0.025em;
}
.side-index__name-rule {
  display: block;
  width: 46px;
  margin: 22px 0 18px;
  border-bottom: 3px solid var(--rust);
}
.side-index__purpose {
  max-width: 18ch;
  margin-bottom: 34px;
  color: var(--quiet);
  font-size: 18px;
  line-height: 1.35;
}
.side-index__list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.side-index__item { border-bottom: 1px solid var(--rule); }
.side-index__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 13px;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.side-index__link:hover { border-left-color: var(--rust); background: var(--paper); }
.side-index__link--current {
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  border-left-color: var(--green);
}
.side-index__link--current:hover { background: var(--green); color: var(--paper); border-left-color: var(--paper); }
.side-index__mobile { display: none; }
.side-index__tail {
  margin-top: 34px;
  padding-left: 16px;
  border-left: 1px solid var(--rust);
  font-size: 18px;
  color: var(--quiet);
}
.running-head { display: flex; align-items: center; gap: 18px; min-height: 48px; margin-bottom: 32px; }
.running-head__label {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.035em;
  color: var(--rust);
}
.running-head__rule { flex: 1; min-width: 10px; border-top: 1px solid var(--rule); }
.word-toggle {
  min-height: 48px;
  min-width: 48px;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.word-toggle:hover, .word-toggle[aria-pressed="true"] { background: var(--sage); }
.desk-header { margin-bottom: 44px; }
.desk-header--with-place { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 34px; align-items: start; }
.desk-header__copy { min-width: 0; }
.desk-header__title {
  max-width: 22ch;
  margin: 0 0 24px;
  font-size: 62px;
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--green);
}
.desk-header__intro { max-width: 64ch; font-size: 23px; line-height: 1.48; }
.desk-header__frame {
  max-width: 54ch;
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--rust);
  font-size: 19px;
  line-height: 1.45;
}
.place-note { margin: 10px 0 0; }
.place-note__frame { padding: 9px; border: 1px solid var(--rule); background: var(--pale); }
.place-note__image { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; background: var(--sage); color: var(--ink); font-size: 18px; }
.place-note__caption { margin-top: 13px; font-size: 17px; line-height: 1.4; color: var(--quiet); }
.word-help { margin: 0 0 36px; padding: 0 18px; border: 1px solid var(--rule); background: var(--pale); }
.word-help__summary { min-height: 48px; padding: 12px 0; font-size: 18px; line-height: 1.3; cursor: pointer; }
.word-help__body { max-width: 68ch; padding: 4px 0 18px; }
.word-help__text { margin-bottom: 10px; font-size: 19px; }
.word-help__text:last-child { margin-bottom: 0; }
.desk-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0 36px;
  border-top: 1px solid var(--rule);
}
.desk-section__heading, .desk-section__body { min-width: 0; }
.desk-section__title { font-size: 27px; font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; }
.desk-section__body { max-width: 68ch; }
.desk-section__prose { margin-bottom: 18px; }
.desk-section__prose:last-child { margin-bottom: 0; }
.desk-section__list { padding-left: 25px; margin: 20px 0 18px; }
.desk-section__item { padding-left: 4px; margin: 0 0 10px; }
.desk-section__item::marker { color: var(--rust); font-size: 0.9em; }
.desk-link, .next-desk__link, .route-list__link, .desk-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 100%;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 0;
  font-weight: 550;
  line-height: 1.35;
  text-decoration-thickness: 1px;
}
.desk-link__arrow { flex: 0 0 auto; }
.source-note {
  margin-top: 24px;
  padding: 17px 0 0 18px;
  border-left: 2px solid var(--rust);
  color: var(--quiet);
}
.source-note__text { max-width: 62ch; margin-bottom: 8px; font-size: 17px; line-height: 1.5; }
.source-note__links { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.source-note__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  min-width: 48px;
  max-width: 100%;
  padding: 10px 0;
  color: var(--green);
  font-size: 17px;
  line-height: 1.35;
}
.source-note__arrow { flex: 0 0 auto; }
.route-list { list-style: none; padding: 0; margin-top: 20px; }
.route-list__item { padding: 10px 0 18px; border-top: 1px dashed var(--rule); }
.route-list__link { width: 100%; font-size: 22px; }
.route-list__text { max-width: 60ch; font-size: 19px; }
.next-desk { padding: 22px 0 32px; border-top: 2px solid var(--green); }
.next-desk__link { min-height: 52px; font-size: 22px; }
.garden-note { max-width: 640px; margin: 8px 0 38px auto; padding: 10px; border: 1px solid var(--rule); }
.garden-note__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sage); color: var(--ink); font-size: 18px; }
.garden-note__caption { margin-top: 12px; font-size: 17px; line-height: 1.4; color: var(--quiet); }
.desk-footer { padding: 28px 0 30px; border-top: 5px double var(--green); }
.desk-footer__voice { max-width: 66ch; font-size: 18px; line-height: 1.5; color: var(--quiet); }
.desk-footer__links { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 12px; }
.desk-footer__link { font-size: 17px; }

@media (max-width: 1180px) {
  .desk-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; width: calc(100% - 64px); }
  .desk-shell__paper { padding-inline: 30px; }
  .desk-header--with-place { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
  .desk-header__title { font-size: 54px; }
  .desk-section { grid-template-columns: 148px minmax(0, 1fr); gap: 25px; }
  .desk-section__title { font-size: 25px; }
}
@media (max-width: 930px) {
  .desk-shell { grid-template-columns: 178px minmax(0, 1fr); gap: 24px; width: calc(100% - 40px); }
  .desk-shell__paper { padding-inline: 25px; }
  .desk-header--with-place { display: block; }
  .place-note { max-width: 240px; margin-top: 26px; }
  .desk-section { display: block; }
  .desk-section__heading { margin-bottom: 19px; }
  .running-head { flex-wrap: wrap; gap: 12px; }
  .running-head__rule { min-width: 20px; }
  .word-toggle { flex-basis: auto; }
}
@media (max-width: 720px) {
  body { font-size: 19px; }
  .desk-shell { display: block; width: auto; margin: 0; }
  .side-index { position: static; padding: 24px 24px 20px; border-bottom: 1px solid var(--rule); }
  .side-index__name { padding: 0; font-size: 29px; }
  .side-index__name br { display: none; }
  .side-index__name-rule { display: none; }
  .side-index__purpose { max-width: none; margin: 5px 0 17px; font-size: 17px; }
  .side-index__desktop, .side-index__tail { display: none; }
  .side-index__mobile { display: block; border: 1px solid var(--green); }
  .side-index__summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 10px 14px; font-size: 18px; cursor: pointer; list-style: none; }
  .side-index__summary::-webkit-details-marker { display: none; }
  .side-index__mobile[open] .side-index__summary { border-bottom: 1px solid var(--green); }
  .side-index__mobile-nav { padding: 10px 12px 12px; }
  .side-index__list { border-top: none; }
  .side-index__link { min-height: 50px; font-size: 18px; }
  .desk-shell__paper { padding: 18px 24px 0; border-top: none; border-bottom: none; }
  .running-head { min-height: 48px; margin-bottom: 24px; gap: 12px; }
  .running-head__label { font-size: 16px; }
  .word-toggle { padding: 9px 11px; }
  .desk-header { margin-bottom: 28px; }
  .desk-header__title { max-width: 21ch; font-size: 42px; margin-bottom: 22px; line-height: 1.08; }
  .desk-header__intro { font-size: 21px; line-height: 1.43; }
  .desk-header__frame { font-size: 18px; padding-left: 13px; }
  .place-note { max-width: none; margin-top: 27px; }
  .place-note__frame { padding: 8px; }
  .place-note__image { aspect-ratio: 5 / 4; object-position: center 52%; }
  .place-note__caption { font-size: 17px; }
  .word-help { margin-bottom: 28px; padding-inline: 14px; }
  .word-help__text { font-size: 19px; }
  .desk-section { padding: 28px 0 30px; }
  .desk-section__title { font-size: 29px; }
  .desk-section__heading { margin-bottom: 18px; }
  .desk-section__list { padding-left: 23px; }
  .source-note { padding-left: 15px; }
  .source-note__text, .source-note__link { font-size: 17px; }
  .route-list__link, .next-desk__link { font-size: 21px; }
  .garden-note { margin-top: 6px; max-width: none; padding: 8px; }
  .desk-footer { padding-block: 24px; }
  .desk-footer__links { display: block; margin-top: 12px; }
  .desk-footer__link { display: flex; min-height: 50px; margin-bottom: 4px; }
}
@media (max-width: 410px) {
  .side-index { padding-inline: 18px; }
  .desk-shell__paper { padding-inline: 18px; }
  .desk-header__title { font-size: 39px; }
  .running-head { column-gap: 9px; }
  .running-head__rule { display: none; }
  .word-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  html, body { background: white; color: black; }
  .desk-shell { display: block; width: auto; margin: 0; }
  .desk-shell__paper { padding: 0; background: white; }
  .side-index, .word-toggle, .skip-link { display: none; }
  .desk-header__title { font-size: 36px; }
  .desk-section { break-inside: avoid; }
}
