:root {
  color-scheme: light;
  --paper: #f2eedf;
  --ink: #2a241b;
  --pink: #e1a4c2;
  --lemon: #d6dd63;
  --blush: #e8c9b6;
  --sage: #b7c7a8;
  --muted: #625546;
  --line: #b9ac98;
  --body-font: "Optima", "Candara", "Segoe UI", "Trebuchet MS", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.6; }
main, section, article, header, nav, footer, aside, div { min-width: 0; }
a { color: inherit; text-underline-offset: 0.23em; text-decoration-thickness: 1px; }
a:hover { opacity: 0.78; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; opacity: 1; }
main:focus { outline: none; }
::selection { background: var(--lemon); color: var(--ink); }
p { max-width: 72ch; margin: 0 0 1.1rem; }
h1, h2, h3 { font-family: var(--display-font); font-weight: 700; line-height: 1.13; }
h1 { font-size: 2.25rem; letter-spacing: -0.025em; margin: 1rem 0 1.4rem; }
h2, .guide-section > h3 { font-size: 1.875rem; letter-spacing: -0.02em; margin: 0 0 1.3rem; max-width: 24ch; }
h3 { font-size: 1.65rem; margin: 0 0 1rem; }
li, a, figcaption { font-size: 1rem; }
.eyebrow { font-size: 1rem; font-weight: 500; margin-bottom: 1.2rem; }
.technical-value { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 1em; white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 20; min-height: 44px; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .page-shell, .site-footer { width: min(calc(100% - 3rem), 1224px); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.site-name { display: flex; align-items: center; gap: 1rem; min-height: 44px; text-decoration: none; }
.name-place { font-family: var(--display-font); font-weight: 700; font-size: 2rem; line-height: 1; }
.name-purpose { border-left: 1px solid var(--line); padding-left: 1rem; font-size: 1rem; line-height: 1.2; }
.header-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.header-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.header-links a:hover { text-decoration: underline; }
.home-hero { padding-block: 2.5rem 2.7rem; display: grid; gap: 2.7rem; }
.guide-tag { display: block; width: fit-content; margin-bottom: 0.5rem; padding: 0.15rem 0.6rem; background: var(--sage); }
.home-hero h1 { font-size: clamp(2.5rem, 10.2vw, 4rem); margin-block: 1rem 1.5rem; line-height: 1.07; letter-spacing: -0.035em; }
.hero-intro { font-size: 1.125rem; line-height: 1.6; max-width: 43ch; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.3rem; margin-block: 1.5rem 2rem; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; min-width: 44px; padding: 0.7rem 1rem; background: var(--ink); color: var(--paper); text-decoration: none; }
.text-link, .source-link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; min-width: 44px; max-width: 100%; padding-block: 0.45rem; font-size: 1rem; }
.text-link { font-weight: 500; }
.source-link { color: var(--muted); margin-left: 0.2em; }
.source-link:hover { opacity: 1; text-decoration-thickness: 2px; }
.source-link span, .text-link span, .primary-link span { flex: 0 0 auto; }
.hero-note { border-top: 1px solid var(--line); padding-top: 1.3rem; max-width: 55ch; }
.hero-note .eyebrow { margin-bottom: 0.5rem; }
.hero-note p:last-child { margin-bottom: 0; }
.hero-visual { display: grid; align-content: center; }
.paper-study { position: relative; isolation: isolate; aspect-ratio: 1.06; overflow: hidden; background: var(--blush); border: 1px solid var(--ink); }
.study-grid { position: absolute; inset: 8%; border: 1px solid rgb(42 36 27 / 30%); }
.study-grid::before, .study-grid::after { content: ""; position: absolute; background: rgb(42 36 27 / 25%); }
.study-grid::before { width: 1px; top: 0; bottom: 0; left: 50%; }
.study-grid::after { height: 1px; left: 0; right: 0; top: 50%; }
.study-arch { position: absolute; width: 54%; height: 72%; left: 13%; bottom: 13%; background: var(--sage); border-radius: 50% 50% 0 0; border: 1px solid var(--ink); }
.study-disc { position: absolute; width: 35%; aspect-ratio: 1; left: 6%; top: 18%; border-radius: 50%; background: var(--lemon); border: 1px solid var(--ink); }
.study-square { position: absolute; width: 47%; height: 41%; bottom: 10%; right: 6%; background: var(--pink); border: 1px solid var(--ink); transform: rotate(-7deg); }
.study-ring { position: absolute; width: 37%; aspect-ratio: 1; right: 9%; top: 14%; border: 1px solid var(--ink); border-radius: 50%; }
.study-ring::after { content: ""; position: absolute; inset: 14%; border: 1px solid var(--ink); border-radius: 50%; }
.study-line { position: absolute; height: 1px; width: 67%; right: 0; bottom: 29%; background: var(--ink); transform: rotate(-33deg); transform-origin: right; }
.study-caption { max-width: none; text-align: right; color: var(--muted); margin-block: 1rem 0; }
.anchor-rail { display: flex; flex-wrap: wrap; gap: 0 0.4rem; align-items: center; border-block: 1px solid var(--line); padding-block: 0.55rem; background: var(--paper); }
.rail-label { font-size: 1rem; font-weight: 500; margin-right: 0.6rem; }
.anchor-rail a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; text-decoration: none; padding: 0.5rem 0.7rem; }
.anchor-rail a:hover { background: var(--sage); opacity: 1; }
.guide-section { margin-block: 3rem; scroll-margin-top: 1.5rem; }
.reading-list { padding-left: 1.25rem; margin-block: 1.1rem 1.5rem; max-width: 70ch; }
.reading-list li { padding-left: 0.4rem; margin-block: 0.65rem; }
.reading-list li::marker { color: var(--ink); }
.rule-row { display: grid; gap: 1.2rem; border-top: 1px solid var(--line); padding: 2rem 0; }
.row-heading { display: flex; align-items: flex-start; gap: 0.85rem; }
.row-heading h3 { max-width: 18ch; }
.row-marker { display: block; flex: 0 0 auto; width: 24px; height: 24px; margin-top: 0.15rem; background: var(--sage); border: 1px solid var(--ink); border-radius: 50% 50% 0 0; }
.rule-row:nth-child(2) .row-marker { background: var(--blush); border-radius: 50%; }
.rule-row:nth-child(3) .row-marker { background: var(--lemon); border-radius: 0; }
.row-copy p { margin-bottom: 0.6rem; }
.row-copy .reading-list { margin-top: 0.6rem; }
.topic-index { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--ink); }
.topic-index li { border-bottom: 1px solid var(--line); }
.topic-index li:nth-child(even) { background: rgb(183 199 168 / 20%); }
.topic-index a { position: relative; display: grid; gap: 0.55rem; text-decoration: none; min-height: 88px; padding: 1.25rem 2.9rem 1.25rem 1rem; }
.topic-title { font-family: var(--display-font); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.topic-description { font-size: 1rem; max-width: 58ch; }
.topic-arrow { position: absolute; right: 1rem; top: 1.3rem; font-size: 1.2rem; }
.sage-note, .blush-note, .lemon-note { padding: 1.75rem 1.4rem; border: 1px solid var(--ink); }
.sage-note { background: var(--sage); }
.blush-note { background: var(--blush); }
.lemon-note { background: var(--lemon); }
.page-intro { display: grid; gap: 1.5rem; padding-block: 2.7rem 2.4rem; }
.page-intro .eyebrow { margin: 0; color: var(--muted); }
.page-lead { font-size: 1.125rem; max-width: 60ch; margin-bottom: 0; }
.chapter-study { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; height: 50px; }
.chapter-study span { display: block; width: 40px; height: 40px; border: 1px solid var(--ink); }
.chapter-study span:first-child { background: var(--sage); border-radius: 50% 50% 0 0; }
.chapter-study span:nth-child(2) { background: var(--pink); border-radius: 50%; }
.chapter-study span:last-child { background: var(--lemon); transform: rotate(8deg); margin-inline: 0.2rem; }
.reading-column { max-width: 72ch; margin-inline: auto; }
.reading-column .guide-section + .guide-section { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.reading-column .guide-section.sage-note, .reading-column .guide-section.blush-note, .reading-column .guide-section.lemon-note { border: 1px solid var(--ink); padding-top: 1.75rem; }
.reading-next { margin-block: 3.5rem 4rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.reading-next .eyebrow { color: var(--muted); margin-bottom: 0.25rem; }
.next-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; min-width: 44px; padding-block: 0.65rem; font-size: 1.125rem; max-width: 100%; }
.official-link-list { list-style: none; margin-block: 0.75rem 1.5rem; padding: 0; }
.official-link-list li { margin-block: 0.2rem; }
.source-index { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.source-index li { border-top: 1px solid var(--line); }
.source-index li:last-child { border-bottom: 1px solid var(--line); }
.source-index a { position: relative; display: grid; gap: 0.35rem; padding: 1.2rem 2rem 1.2rem 0; min-height: 70px; text-decoration: none; }
.source-title { text-decoration: underline; text-underline-offset: 0.23em; font-weight: 500; }
.source-purpose { font-size: 1rem; }
.source-arrow { position: absolute; right: 0; top: 1.2rem; }
.recovery-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer { border-top: 1px solid var(--ink); padding-block: 2rem 2.5rem; display: grid; gap: 1rem; }
.site-footer p { font-size: 1rem; max-width: 58ch; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 0.65rem; font-size: 1rem; }

@media (min-width: 700px) {
  .site-header, .page-shell, .site-footer { width: min(calc(100% - 5rem), 1224px); }
  .site-header { padding-block: 1.6rem; }
  .header-links { gap: 1.5rem; }
  .guide-tag { display: inline-block; margin-right: 0.5rem; margin-bottom: 0; }
  .home-hero { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; padding-block: 4rem; align-items: start; }
  .home-hero h1 { font-size: 3.5rem; }
  .hero-visual { padding-top: 0.7rem; }
  .anchor-rail { gap: 0 0.7rem; }
  .guide-section { margin-block: 4rem; }
  .rule-row { grid-template-columns: 0.8fr 1.4fr; gap: 3rem; padding-block: 2.5rem; }
  .topic-index a { grid-template-columns: 0.9fr 1.4fr; align-items: center; gap: 2rem; padding: 1.6rem 4rem 1.6rem 1.5rem; }
  .topic-arrow { top: 1.6rem; right: 1.5rem; }
  .sage-note, .blush-note, .lemon-note { padding: 2.5rem; }
  .page-intro { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding-block: 3.7rem 3rem; }
  .page-intro h1 { max-width: 26ch; }
  .chapter-study { height: auto; padding-bottom: 0.25rem; gap: 0.9rem; }
  .chapter-study span { height: 54px; width: 54px; }
  .reading-column { padding-top: 0.1rem; }
  .reading-column .guide-section.sage-note, .reading-column .guide-section.blush-note, .reading-column .guide-section.lemon-note { padding: 2.5rem; }
  .site-footer { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 3rem; padding-block: 2.5rem 3rem; }
  .footer-links { justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .home-hero { gap: 5rem; }
  .home-hero h1 { font-size: 4rem; }
  .name-place { font-size: 2.4rem; }
  .hero-visual { padding-top: 0; }
  .rule-row { grid-template-columns: 0.85fr 1.55fr; gap: 6rem; }
  .row-heading h3 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .skip-link, .header-links, .anchor-rail, .hero-visual, .chapter-study, .reading-next { display: none; }
  body { background: white; }
  .site-header, .page-shell, .site-footer { width: 100%; }
  .home-hero, .rule-row, .page-intro, .site-footer { display: block; }
  .reading-column { max-width: 72ch; }
  .guide-section { break-inside: avoid; margin-block: 2rem; }
}
