@font-face {
  font-family: "Question Nunito";
  src: url("/static/question-nunito.39184f4d01.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --ink: #30232b;
  --wine: #773454;
  --wine-deep: #60233f;
  --muted: #65585e;
  --rose: #eee1e7;
  --mount: #fffdf9;
  --rule: #c9b5bd;
  font-family: "Question Nunito", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0 0 7.8rem; }
body, button, input, textarea, select { font-family: "Question Nunito", Arial, sans-serif; }
button, input, textarea, select { font-size: 1rem; line-height: 1.4; }
button, select, input, textarea { color: var(--ink); }
button { cursor: pointer; }
button, input, select, textarea { border-radius: 0; }
[hidden] { display: none !important; }
::selection { background: #dfc4d0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
a { color: var(--wine-deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button:disabled { cursor: default; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.16; }
h1 { font-size: clamp(2.2rem, 4.7vw, 3.75rem); letter-spacing: -.035em; max-width: 17ch; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); letter-spacing: -.02em; max-width: 26ch; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p + p { margin-top: 1rem; }
main { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
[data-role="masthead"] { max-width: 1160px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
[data-role="book-name"] { display: inline-flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 850; text-decoration: none; min-height: 48px; color: var(--ink); }
[data-role="book-mark"] { display: inline-grid; place-items: center; border: 2px solid var(--wine); width: 30px; height: 36px; flex: 0 0 30px; }
[data-role="book-mark"]::after { content: ""; width: 12px; height: 12px; background: var(--wine); border-radius: 50%; }
[data-role="mast-note"] { color: var(--muted); font-size: max(16px, .94rem); }
[data-role="skip"] { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--mount); transform: translateY(-160%); }
[data-role="skip"]:focus { transform: none; }
[data-role="page-top"] { padding: 60px 0 42px; }
[data-role="eyebrow"] { color: var(--wine); font-size: 1rem; font-weight: 750; margin-bottom: 20px; }
[data-role="lead"] { color: var(--muted); font-size: 1.15rem; line-height: 1.55; margin-top: 24px; max-width: 58ch; }
[data-role="home-opening"] { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 50px; align-items: start; }
[data-role="home-opening"] h1 { max-width: 16ch; }
[data-role="answer-slip"] { padding: 26px 0 0; margin-top: 28px; border-top: 3px solid var(--wine); max-width: 62ch; }
[data-role="answer-slip"] strong { font-size: 1.05rem; display: block; margin-bottom: 9px; }
[data-role="answer-slip"] p { font-size: 1rem; }
[data-role="chapter"] { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 62px; padding: 44px 0; border-top: 1px solid var(--rule); }
[data-role="chapter-body"] { max-width: 68ch; min-width: 0; }
[data-role="chapter-body"] > h2 + p, [data-role="chapter-body"] > h3 + p { margin-top: 18px; }
[data-role="chapter-body"] > h3:not(:first-child) { margin-top: 32px; }
[data-role="margin-note"] { color: var(--muted); font-size: max(16px, .94rem); max-width: 20ch; padding-top: 4px; }
[data-role="margin-note"] strong { color: var(--wine); display: block; margin-bottom: 6px; font-size: 1rem; }
[data-role="chapter"] h2 { margin-bottom: 20px; }
[data-role="source-note"] { padding-top: 22px; margin-top: 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: max(16px, .94rem); }
[data-role="source-note"] > strong { display: block; color: var(--ink); }
[data-role="source-note"] a, [data-role="source-link"] { display: flex; width: fit-content; align-items: center; min-height: 46px; padding: 8px 0; }
[data-role="action"] { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; background: var(--wine); color: var(--mount); font-weight: 800; border: 2px solid var(--wine); text-decoration: none; margin-top: 26px; }
[data-role="action"]:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
[data-role="action"][data-quiet] { background: transparent; color: var(--wine-deep); }
[data-role="action"][data-quiet]:hover { background: var(--rose); }
[data-role="next-leaf"] { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 0; margin-top: 12px; border-top: 3px solid var(--wine); }
[data-role="next-leaf"] a { flex-shrink: 0; margin: 0; }
[data-role="footer"] { max-width: 1160px; margin: 45px auto 0; padding: 28px 32px; color: var(--muted); font-size: max(16px, .94rem); border-top: 1px solid var(--rule); }
[data-role="footer"] p { max-width: 72ch; }
[data-role="footer"] a { display: inline-flex; min-height: 46px; align-items: center; margin-top: 12px; }
[data-role="lost-page"] { max-width: 62ch; padding: 70px 0 40px; }
[data-role="lost-page"] h1 { max-width: 20ch; }

@media (max-width: 760px) {
  :root { font-size: 17px; }
  body { padding-bottom: 7.5rem; }
  main { padding: 0 22px; }
  [data-role="masthead"] { padding: 12px 22px; }
  [data-role="mast-note"] { display: none; }
  [data-role="home-opening"] { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
  [data-role="home-opening"] h1 { max-width: 17ch; }
  [data-role="page-top"] { padding: 34px 0; }
  [data-role="lead"] { font-size: 1.1rem; }
  [data-role="chapter"] { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  [data-role="margin-note"] { max-width: 58ch; }
  [data-role="margin-note"] strong { display: inline; margin-right: 8px; }
  [data-role="next-leaf"] { align-items: start; flex-direction: column; gap: 20px; }
  [data-role="footer"] { padding: 24px 22px; margin-top: 24px; }
}

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

@media print {
  :root { font-size: 12pt; background: white; color: black; }
  body { padding: 0; }
  main, [data-role="masthead"], [data-role="footer"] { max-width: none; padding-left: 0; padding-right: 0; }
  [data-role="skip"], [data-role="dock"], [data-role="next-leaf"], [data-role="action"], [data-role="footer"] a { display: none !important; }
  [data-role="chapter"] { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  [data-role="margin-note"] { max-width: none; }
  [data-role="page-top"] { padding: 20px 0; }
  h1 { font-size: 28pt; }
  h2 { font-size: 20pt; }
  h1, h2, h3 { break-after: avoid; }
  [data-role="source-note"] { font-size: 11pt; }
}
