:root {
  color-scheme: light;
  --ink: #263e49;
  --muted-ink: #49616d;
  --blue: #2c5870;
  --desktop: #d8e7ee;
  --paper: #fffefb;
  --edge: #acc0c9;
  --rose: #f4ded7;
  --yellow: #f6e9b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--desktop);
  color: var(--ink);
  font-family: "Trebuchet MS", "Lucida Grande", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #78541f;
  outline-offset: 4px;
}
::selection { color: #213e4d; background: #f3d995; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 20px;
  background: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 12px;
  z-index: 20;
  transform: translateY(-180%);
  min-height: 44px;
}
.skip-link:focus { transform: none; }
.workspace {
  display: grid;
  grid-template-columns: 252px minmax(0, 920px);
  gap: clamp(28px, 4vw, 66px);
  max-width: 1324px;
  margin: 0 auto;
  padding: 42px 36px 54px;
  align-items: start;
}
.side-index {
  position: sticky;
  top: 26px;
  max-height: calc(100dvh - 52px);
  overflow-y: auto;
  padding: 0 8px 12px 2px;
  scrollbar-width: thin;
  scrollbar-color: #819eae var(--desktop);
}
.desk-name {
  display: block;
  min-height: 44px;
  padding: 2px 10px 12px 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  color: #244c62;
  text-decoration: none;
}
.desk-name-city { display: block; font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.index-heading { margin: 14px 0 8px; color: var(--muted-ink); font-size: 17px; font-weight: 400; }
.index-links { display: grid; gap: 7px; }
.index-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 7px 15px;
  background: #f2f6f8;
  color: #2e4f62;
  border: 1px solid #b1c6d0;
  border-bottom: 3px solid #a5bdc9;
  border-radius: 9px 19px 19px 9px;
  box-shadow: inset 0 2px 0 #ffffff, 0 2px 2px #68839312;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.index-link:hover { background: #ffffff; border-color: #688d9f; }
.index-link[aria-current="page"] {
  color: #ffffff;
  background: #2c5870;
  border-color: #21465a;
  box-shadow: inset 0 2px 0 #4a768b, 0 2px 3px #58748220;
}
.index-pocket {
  margin: 22px 4px 0 0;
  padding: 15px 16px;
  border: 2px solid #9bb5c2;
  border-top-color: #eef6fa;
  border-radius: 3px 3px 22px 22px;
  color: #395566;
  font-size: 16px;
  box-shadow: inset 0 -2px 0 #c1d7e2, 0 3px 5px #5874820a;
}
.mobile-desk { display: none; }
.page-column { min-width: 0; }
.paper-sheet {
  position: relative;
  padding: 55px clamp(30px, 4.5vw, 68px) 40px;
  background: var(--paper);
  border: 1px solid #bbcbd0;
  border-bottom: 4px solid #c4cfd0;
  border-radius: 5px 26px 9px 8px;
  box-shadow: 0 14px 32px #42647616, 5px 6px 0 -1px #f0f3ef, 6px 7px 0 #b1c4cb;
}
.paper-clip {
  position: absolute;
  width: 23px;
  height: 69px;
  top: -17px;
  right: 44px;
  border: 4px solid #78909c;
  border-radius: 13px;
  box-shadow: 1px 1px 0 #ffffff, 2px 3px 3px #2e536a24, inset 1px 1px 0 #ffffff;
  transform: rotate(8deg);
}
.paper-clip::after {
  content: "";
  position: absolute;
  inset: 9px 4px -4px 4px;
  border: 3px solid #78909c;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}
.guide-label { margin: 0 0 22px; color: var(--muted-ink); font-size: 17px; line-height: 1.45; max-width: 38ch; }
.page-title { margin: 0; color: #284f62; font-size: clamp(38px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; max-width: 21ch; overflow-wrap: break-word; }
.home-title { font-size: clamp(40px, 3.8vw, 55px); max-width: 20ch; }
.page-intro { font-size: 21px; line-height: 1.55; margin: 25px 0 0; max-width: 57ch; }
.opening-note {
  display: inline-block;
  max-width: 100%;
  margin: 28px 0 10px;
  padding: 9px 17px;
  color: #56491f;
  background: var(--yellow);
  border-radius: 3px 10px 9px 3px;
  box-shadow: 2px 3px 0 #a88f4219;
  font-size: 17px;
  line-height: 1.5;
  transform: rotate(-1deg);
}
.collage-mount {
  width: min(100%, 400px);
  margin: 26px 0 12px auto;
  padding: 12px;
  background: #e8d4ce;
  border: 1px solid #d3b9ae;
  border-radius: 3px 19px 5px 4px;
  box-shadow: 4px 6px 0 #c1cecd55;
  transform: rotate(1.5deg);
}
.collage-image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 2px 11px 2px 2px; }
.collage-fallback { position: relative; display: block; width: 100%; height: 100%; background: #e9f0ef; overflow: hidden; }
.collage-paper { position: absolute; display: block; width: 43%; height: 67%; left: 17%; top: 15%; background: #fffef6; box-shadow: 4px 6px 0 #42647620; transform: rotate(-13deg); }
.collage-circle { position: absolute; display: block; width: 34%; aspect-ratio: 1; right: 11%; top: 12%; border-radius: 50%; background: #e8baaa; box-shadow: 2px 4px 0 #42647617; }
.collage-tab { position: absolute; display: block; width: 38%; height: 29%; right: 17%; bottom: 11%; background: #8bafbf; border-radius: 1px 28px 1px 1px; transform: rotate(9deg); box-shadow: 3px 3px 0 #42647620; }
.collage-fold { position: absolute; display: block; width: 26%; height: 12%; left: 8%; bottom: 15%; background: #ead999; transform: rotate(-5deg); }
.answer-body { max-width: 65ch; margin-top: 40px; }
.answer-section { margin-top: 37px; }
.answer-section:first-child { margin-top: 0; }
.section-title { margin: 0 0 12px; color: #284f62; font-size: 28px; line-height: 1.25; letter-spacing: -.018em; }
.answer-paragraph { margin: 0 0 17px; font-size: 18px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; vertical-align: baseline; min-height: 44px; min-width: 44px; max-width: 100%; padding: 4px 2px; line-height: 1.5; white-space: normal; }
.next-question { margin: 44px 0 4px; padding: 24px 25px; background: #e6eef2; border-radius: 5px 24px 17px 5px; border: 1px solid #c1d2da; box-shadow: inset 0 2px 0 #f8fcfd; }
.next-caption { margin: 0 0 5px; font-size: 16px; color: var(--muted-ink); }
.next-link { display: inline-flex; align-items: center; gap: 20px; min-width: 44px; min-height: 48px; color: #284f62; font-size: 22px; line-height: 1.3; font-weight: 700; }
.next-arrow { font-size: 26px; text-decoration: none; }
.desk-footer { padding: 27px 10px 0; color: #3e5b6a; }
.footer-description { margin: 0; font-size: 16px; line-height: 1.6; max-width: 68ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 9px; }
.footer-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; font-size: 16px; }
.reading-track { position: fixed; top: 0; left: 0; width: 100%; height: 5px; appearance: none; border: 0; background: #bfd3dd; color: #46758b; z-index: 15; }
.reading-track::-webkit-progress-bar { background: #bfd3dd; }
.reading-track::-webkit-progress-value { background: #46758b; }
.reading-track::-moz-progress-bar { background: #46758b; }
.reading-track[hidden] { display: none; }

@media (min-width: 1100px) {
  .home-opening { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: center; }
  .home-opening .guide-label, .home-opening .page-title { grid-column: 1 / -1; }
  .home-opening .page-intro { grid-column: 1 / -1; }
  .home-opening .opening-note { grid-column: 1; margin: 24px 0 0; }
  .home-opening .collage-mount { grid-column: 2; margin: 24px 0 0; width: 100%; }
}

@media (max-width: 860px) {
  .workspace { display: block; max-width: 760px; padding: 18px 20px 35px; }
  .side-index { display: none; }
  .mobile-desk { display: block; padding: 19px 23px 3px; background: #c5dce7; border-bottom: 2px solid #aac3d0; }
  .mobile-name { display: block; min-height: 44px; max-width: fit-content; font-size: 19px; font-weight: 700; text-decoration: none; line-height: 1.3; color: #294f63; }
  .mobile-index { margin: 0 auto 9px; max-width: 700px; }
  .mobile-summary { min-height: 44px; padding: 7px 0; font-size: 16px; color: #2e5266; cursor: pointer; }
  .mobile-index .index-links { padding: 8px 0 16px; }
  .paper-sheet { padding: 39px 29px 29px; border-radius: 4px 23px 7px 6px; }
  .paper-clip { right: 28px; height: 56px; width: 20px; border-width: 3px; top: -12px; }
  .paper-clip::after { border-width: 2px; }
  .page-title { font-size: 39px; max-width: 23ch; }
  .page-intro { font-size: 20px; }
  .collage-mount { max-width: 320px; margin-top: 24px; }
  .answer-body { margin-top: 33px; }
}

@media (max-width: 460px) {
  .workspace { padding: 15px 14px 32px; }
  .paper-sheet { padding: 35px 23px 25px; }
  .guide-label { max-width: 28ch; margin-bottom: 23px; font-size: 16px; }
  .page-title { font-size: 36px; line-height: 1.14; letter-spacing: -.03em; }
  .page-intro { margin-top: 21px; font-size: 19px; line-height: 1.6; }
  .opening-note { margin-top: 24px; padding: 10px 12px; font-size: 16px; }
  .collage-mount { max-width: 245px; padding: 9px; margin-top: 22px; }
  .section-title { font-size: 25px; }
  .answer-section { margin-top: 31px; }
  .answer-paragraph { font-size: 18px; line-height: 1.7; }
  .text-link { padding-top: 6px; padding-bottom: 6px; }
  .next-question { margin-top: 33px; padding: 18px; }
  .next-link { font-size: 20px; gap: 12px; }
  .desk-footer { padding-left: 8px; padding-right: 8px; }
}

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

@media print {
  body { background: #ffffff; color: #000000; }
  .workspace { display: block; padding: 0; }
  .side-index, .mobile-desk, .reading-track, .skip-link, .next-question, .footer-links, .paper-clip { display: none; }
  .paper-sheet { border: 0; box-shadow: none; padding: 0; }
  .text-link { min-height: 0; display: inline; padding: 0; color: #000000; }
  .answer-body { max-width: none; }
}
