:root {
  color-scheme: light;
  --canvas: #eeecfa;
  --ink: #302c45;
  --muted: #59536c;
  --purple: #62539a;
  --purple-deep: #514181;
  --white: #fffefa;
  --lavender: #ded9f3;
  --mint: #e3efe7;
  --line: #cec8df;
  font-family: "Segoe UI", "Trebuchet MS", "Lucida Grande", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; }
[hidden] { display: none !important; }
html:not(.has-js) .js-only { display: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.2vw, 4.7rem); font-weight: 700; letter-spacing: -.045em; }
h2, .note-title { font-size: clamp(1.8rem, 3.1vw, 2.65rem); font-weight: 700; letter-spacing: -.035em; }
h3, h4 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
a { color: var(--purple-deep); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
svg, img { display: block; max-width: 100%; }
img { height: auto; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }
.u-grid { display: grid; }
.u-flex { display: flex; }
.u-between { justify-content: space-between; }
.u-center { align-items: center; }
.u-wrap { flex-wrap: wrap; }
.u-gap { gap: 1rem; }
.u-stack > * + * { margin-top: 1rem; }
.u-round { border-radius: 2rem; }
.u-pill { border-radius: 100vmax; }
.skip-link { position: absolute; left: 1rem; top: .5rem; transform: translateY(-180%); z-index: 10; padding: .7rem 1rem; background: var(--white); min-height: 48px; }
.skip-link:focus { transform: none; }
.page-header, main, .directory { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.page-header { padding-block: 1.3rem 1.5rem; }
.notebook-name { gap: .7rem; min-height: 48px; text-decoration: none; font-weight: 700; color: var(--ink); }
.notebook-mark { width: 28px; height: 33px; border: 3px solid var(--purple); border-radius: 4px 10px 10px 4px; background: var(--white); position: relative; }
.notebook-mark::before { content: ""; position: absolute; width: 3px; height: 27px; background: var(--purple); left: 4px; top: 0; }
.directory-link, .start-link, .back-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 1.1rem; text-decoration: none; font-weight: 700; }
.directory-link { background: var(--lavender); color: var(--ink); }
.hero { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; padding: 2.8rem 3.1rem 2.5rem; background: var(--white); border-radius: 2.5rem 2.5rem 5.5rem 2.5rem; }
.hero-copy { padding-block: .3rem 1rem; }
.guide-label { display: inline-block; padding: .25rem .85rem; font-size: 16px; background: var(--mint); color: #3c5a4a; }
.hero-copy h1 { margin-top: 1.35rem; max-width: 9ch; }
.hero-deck { font-size: 1.4rem; line-height: 1.4; margin-top: 1.3rem; }
.hero-intro { max-width: 40ch; color: var(--muted); }
.hero-copy .start-link { margin-top: 1.6rem; background: var(--purple); color: white; }
.start-link:hover { background: var(--purple-deep); }
.hero-art { align-self: center; min-width: 0; }
.illustration { position: relative; width: 100%; aspect-ratio: 640 / 576; background: #ebe7f8; overflow: hidden; }
.illustration-fallback { width: 100%; height: 100%; }
.illustration-fallback svg { width: 100%; height: 100%; }
.central-illustration { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { font-size: 16px; text-align: center; color: var(--muted); }
.guide-layout { grid-template-columns: 252px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); padding: 4.6rem 2.2rem 0 0; align-items: start; }
.contents { align-self: stretch; }
.contents-inner { position: sticky; top: 1.5rem; padding: 1.5rem 1.1rem; border-radius: 1.6rem; background: #e0dcf2; }
.rail-heading { font-size: 1.2rem; letter-spacing: -.025em; padding-inline: .55rem; }
.rail-links { gap: .3rem; }
.rail-links a { display: flex; justify-content: space-between; gap: .5rem; align-items: center; min-height: 48px; padding: .5rem .6rem; font-size: 16px; line-height: 1.35; text-decoration: none; border-radius: 13px; color: #4f446f; }
.rail-links a:hover, .rail-links a:focus-visible { background: #f6f4ff; }
.rail-links a span { font-size: 1.2rem; }
.word-toggle { font-size: 16px; min-height: 48px; padding: .5rem .85rem; color: var(--purple-deep); border: 2px solid #9f93c4; background: var(--white); width: 100%; }
.word-toggle[aria-pressed="false"] { background: #e0dcf2; }
.notebook-body { min-width: 0; max-width: 740px; }
.note-section { padding-block: 0 3.8rem; }
.note-section + .note-section, .note-group + .note-group > .note-section:first-child, .note-group + .note-section { padding-top: 3.8rem; border-top: 2px solid var(--line); }
.section-tab { line-height: inherit; letter-spacing: normal; text-wrap: wrap; color: var(--purple-deep); font-size: 16px; font-weight: 700; }
.note-section .note-title { margin-top: .7rem; margin-bottom: 1.4rem; max-width: 22ch; }
.note-section .note-subhead { margin-top: 2.2rem; margin-bottom: .6rem; }
.note-section .note-subhead + p { margin-top: .65rem; }
.notebook-body p { max-width: 68ch; }
.section-lead { font-size: 1.15rem; line-height: 1.55; }
.word-note { padding: .85rem 1rem; border-left: 4px solid #a394cb; background: #e4dff3; border-radius: 0 18px 18px 0; font-size: 17px; color: #514269; }
.source-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; line-height: 1.4; padding-block: .2rem; text-decoration-skip-ink: auto; vertical-align: baseline; }
.attribution { font-size: 16px; color: var(--muted); }
.budget-note, .question-note, .caution-note { padding-inline: 2rem; }
.note-section.budget-note { background: var(--mint); border-top: 0; padding-top: 2.2rem; padding-bottom: 2.4rem; margin-block: .3rem 3.8rem; }
.budget-note .section-tab { color: #3f6350; }
.budget-note .word-note { background: #d4e6dc; border-color: #6e9c82; color: #35543f; }
.note-section.question-note { background: #e0dcf2; border-top: 0; padding-top: 2.2rem; padding-bottom: 2.4rem; margin-bottom: 3.8rem; }
.note-section.caution-note { background: var(--white); border-top: 0; padding-top: 2.2rem; padding-bottom: 2.4rem; margin-bottom: 4.5rem; }
.directory { margin-bottom: 2.5rem; padding: 2.8rem; background: #d9d2ef; }
.directory h2 { max-width: 17ch; font-size: 2.3rem; }
.directory-top { align-items: flex-start; }
.back-link { background: var(--white); color: var(--purple-deep); font-size: 16px; }
.directory-grid { grid-template-columns: 1fr 1fr; gap: .4rem 2rem; margin-block: 1.7rem 2.2rem; }
.directory-grid a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .65rem .85rem; border-radius: 13px; text-decoration: none; color: #493d68; font-size: 17px; }
.directory-grid a:hover, .directory-grid a:focus-visible { background: #ece7fb; }
.footer-line { max-width: 68ch; font-size: 16px; color: #514865; border-top: 2px solid #bbb0d9; padding-top: 1.3rem; }
@media (min-width: 1500px) { :root { font-size: 19px; } }
@media (max-width: 1050px) {
  .page-header, main, .directory { width: calc(100% - 48px); }
  .hero { padding: 2.4rem; gap: 1.5rem; }
  .guide-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 2rem; padding-right: 0; }
  .contents-inner { padding-inline: .7rem; }
  .budget-note, .question-note, .caution-note { padding-inline: 1.5rem; }
}
@media (max-width: 760px) {
  :root { font-size: 18px; }
  .page-header, main, .directory { width: calc(100% - 32px); }
  .page-header { padding-block: .85rem 1rem; gap: .45rem; }
  .notebook-name { font-size: 16px; gap: .5rem; }
  .notebook-mark { width: 23px; height: 28px; }
  .notebook-mark::before { height: 22px; }
  .directory-link { font-size: 16px; padding: .4rem .7rem; gap: .5rem; }
  .hero { grid-template-columns: 1fr; padding: 1.7rem 1.3rem 1.5rem; gap: 1.5rem; border-radius: 1.8rem 1.8rem 3.5rem 1.8rem; }
  h1 { font-size: clamp(2.5rem, 11vw, 3.7rem); }
  .hero-copy h1 { max-width: 11ch; margin-top: 1rem; }
  .hero-deck { font-size: 1.22rem; }
  .hero-intro { font-size: 17px; }
  .guide-label { padding-inline: .6rem; font-size: 16px; }
  .hero-copy .start-link { margin-top: 1.25rem; }
  .hero-art { width: 100%; }
  .illustration { aspect-ratio: 1.5; border-radius: 1.5rem; }
  .hero-art figcaption { margin-top: .5rem; }
  .guide-layout { grid-template-columns: 1fr; gap: 2.8rem; padding-top: 2rem; }
  .contents-inner { position: static; padding: 1.15rem 1rem; }
  .rail-links { grid-template-columns: 1fr 1fr; gap: .3rem .8rem; }
  .rail-links a { min-height: 52px; }
  .word-toggle { width: auto; min-width: 154px; margin-left: .55rem; }
  .notebook-body { padding-inline: .5rem; }
  h2, .note-title { font-size: 1.9rem; }
  h3, h4 { font-size: 1.27rem; }
  .note-section { padding-bottom: 2.7rem; }
  .note-section + .note-section, .note-group + .note-group > .note-section:first-child, .note-group + .note-section { padding-top: 2.7rem; }
  .note-section .note-subhead { margin-top: 1.8rem; }
  .note-section.budget-note, .note-section.question-note { margin-bottom: 2.7rem; }
  .budget-note, .question-note, .caution-note { padding-inline: 1.1rem; margin-inline: -.2rem; border-radius: 1.5rem; }
  .source-link { overflow-wrap: anywhere; }
  .directory { padding: 1.5rem 1.2rem; border-radius: 1.8rem; margin-bottom: 1rem; }
  .directory h2 { font-size: 2rem; }
  .directory-grid { grid-template-columns: 1fr; gap: .25rem; margin-block: 1rem 1.5rem; }
  .directory-grid a { padding-inline: .45rem; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root { background: white; color: black; font-size: 12pt; }
  .page-header, main, .directory { width: 100%; }
  .page-header, .contents, .hero-art, .directory-grid, .back-link, .start-link, .skip-link { display: none; }
  .hero, .guide-layout { display: block; padding: 0; background: white; }
  .hero { margin-bottom: 2rem; }
  .hero-copy h1 { max-width: none; font-size: 32pt; }
  .notebook-body { max-width: none; }
  .note-section { break-inside: auto; }
  h2, h3, h4 { break-after: avoid; }
  .directory { background: white; padding: 1rem 0; }
}
