/* A warm reading room: old-style type, rose ink, and botanical windows. */
:root {
  color-scheme: light;
  --cream: #fbf4e8;
  --paper: #fffcf6;
  --ink: #332d29;
  --muted: #65554f;
  --rose: #94424d;
  --rose-deep: #78333f;
  --blush: #efd3cc;
  --salmon: #f1d1c5;
  --petal: #f5e6dc;
  --line: #d5bcb2;
  --font: 'Iowan Old Style', 'Hoefler Text', 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --arch: 6rem 6rem 0 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.1875rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a, button, input, textarea { -webkit-tap-highlight-color: #efd3cc; }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 5px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 400; text-wrap: balance; }
p { max-width: 68ch; text-wrap: pretty; }
::selection { color: var(--ink); background: var(--blush); }

.skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 10; display: flex; align-items: center; min-height: 44px; padding: .7rem 1rem; color: var(--paper); background: var(--rose-deep); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.masthead { border-top: 5px solid var(--rose); border-bottom: 1px solid var(--line); }
.masthead__inner { width: min(100% - 2.5rem, 1240px); margin: auto; padding-block: .8rem .6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; }
.masthead__brand { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: .9rem; min-height: 68px; margin-bottom: .45rem; color: var(--ink); font-size: 1.5rem; line-height: 1.06; text-decoration: none; font-weight: 400; }
.masthead__leaf { display: block; width: 24px; height: 37px; border: 2px solid var(--rose); border-radius: 100% 0 100% 0; transform: rotate(-25deg); position: relative; }
.masthead__leaf::after { content: ''; position: absolute; background: var(--rose); height: 37px; width: 2px; top: 3px; left: 11px; transform: rotate(27deg); }
.masthead__links { display: flex; flex-wrap: wrap; gap: 0 .9rem; align-items: center; justify-content: center; }
.masthead__link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .3rem .2rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.masthead__link:hover, .masthead__link[aria-current] { color: var(--rose-deep); text-decoration: underline; }

.main { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.eyebrow, .route-card__label, .next-page__label { color: var(--rose-deep); font-size: 1.125rem; font-weight: 400; line-height: 1.4; font-variant-caps: all-small-caps; font-synthesis: none; letter-spacing: normal; }
.hero { padding: 2.5rem 0; }
.hero h1 { max-width: 24ch; margin-top: 1rem; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; }
.hero--home h1 { font-size: clamp(2.65rem, 6vw, 4.5rem); max-width: 17ch; }
.hero__deck { margin-top: 1.4rem; max-width: 54ch; color: var(--muted); font-size: 1.25rem; line-height: 1.55; }
.hero--home .hero__deck { max-width: 41ch; }
.hero__actions { margin-top: 1.75rem; display: flex; align-items: flex-start; flex-wrap: wrap; gap: .6rem 1.5rem; }
.button { border: 2px solid transparent; border-radius: 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .65rem 1.15rem; text-decoration: none; font-size: 1.125rem; line-height: 1.4; }
.button--lime { background: var(--rose); color: var(--paper); }
.button--lime:hover:not(:disabled) { background: var(--rose-deep); }
.button--quiet { border-color: var(--rose); color: var(--rose-deep); background: var(--paper); }
.button--quiet:hover:not(:disabled) { background: var(--blush); }
.hero__text-link { display: inline-flex; gap: .7rem; align-items: center; min-height: 52px; margin-top: .9rem; }
.hero__actions .hero__text-link { margin-top: 0; }
.hero > .paper-scene { margin: 2rem auto 0; }

/* The existing collage sits in a small doorway; the rest of the page stays light. */
.paper-scene { isolation: isolate; position: relative; overflow: hidden; background: var(--salmon); border: 0; border-radius: 50% 50% 0 0 / 37% 37% 0 0; aspect-ratio: 4 / 5; width: 100%; max-width: 390px; }
.paper-scene__craft { position: absolute; inset: 0; overflow: hidden; background: var(--salmon); }
.paper-scene__orb { position: absolute; width: 57%; height: 46%; top: 14%; left: 31%; border-radius: 50%; background: #ce938d; }
.paper-scene__sheet { position: absolute; display: block; }
.paper-scene__sheet--back { inset: 24% 17% 7% 10%; transform: rotate(-12deg); background: #e4b1a3; clip-path: polygon(3% 2%, 92% 0, 100% 96%, 1% 100%, 4% 93%, 0 77%, 3% 58%, 0 32%); }
.paper-scene__sheet--front { inset: 28% 12% 12% 19%; transform: rotate(8deg); background: var(--paper); clip-path: polygon(0 1%, 95% 0, 100% 12%, 97% 25%, 100% 56%, 97% 83%, 100% 100%, 3% 96%, 1% 67%); }
.paper-scene__stem { position: absolute; width: 2px; height: 70%; left: 49%; top: 21%; transform: rotate(27deg); background: var(--rose); }
.paper-scene__leaf { position: absolute; background: var(--petal); border: 2px solid var(--rose); border-radius: 90% 0 90% 0; }
.paper-scene__leaf::after { content: ''; position: absolute; width: 70%; height: 1px; background: var(--rose); top: 52%; left: 15%; transform: rotate(-27deg); }
.paper-scene__leaf--a { width: 32%; height: 19%; left: 21%; top: 25%; transform: rotate(24deg); }
.paper-scene__leaf--b { width: 31%; height: 21%; left: 49%; top: 43%; transform: rotate(9deg); background: #d99d91; }
.paper-scene__leaf--c { width: 30%; height: 19%; left: 15%; top: 59%; transform: rotate(31deg); }
.paper-scene__leaf--d { width: 27%; height: 16%; left: 52%; top: 17%; transform: rotate(-12deg); background: #e4b1a3; }
.paper-scene__image { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.paper-scene__image--ready { visibility: visible; }
.paper-scene__caption { z-index: 3; position: absolute; bottom: 0; left: 0; right: 0; padding: .7rem 1rem; background: var(--paper); color: var(--muted); border-radius: 0; font-size: 1.0625rem; text-align: center; font-style: italic; }
.paper-scene--compact { aspect-ratio: 4 / 5; max-width: 300px; margin-inline: auto; }
.paper-scene--leaf .paper-scene__sheet--front { transform: rotate(-5deg); }
.paper-scene--leaf .paper-scene__orb { background: #e4b1a3; width: 51%; left: 8%; top: 7%; }
.paper-scene--path .paper-scene__sheet--front { inset: 13% 34% 6% 28%; transform: rotate(27deg); }

.myth { display: grid; background: var(--blush); border: 0; border-radius: var(--arch); overflow: hidden; scroll-margin-top: 1.5rem; }
.myth__belief, .myth__answer { padding: 2.5rem 1.6rem 1.8rem; }
.myth__belief { background: var(--blush); }
.myth__statement { margin-top: .75rem; font-size: 1.5rem; line-height: 1.4; max-width: 28ch; }
.myth__answer { color: var(--ink); background: var(--petal); }
.myth__answer h2 { font-size: 1.9rem; line-height: 1.25; max-width: 30ch; margin-top: .7rem; }

.reading-layout { padding-top: 3rem; display: grid; gap: 2rem; }
.reading { min-width: 0; }
.reading__section { margin-bottom: 2.5rem; max-width: 68ch; }
.reading__section h2, .evidence h2, .question-tool h2 { font-size: 1.9rem; line-height: 1.25; margin-bottom: .9rem; }
.reading__section p + p { margin-top: .85rem; }
.reading__value { font-family: var(--font); font-variant-numeric: lining-nums tabular-nums; }
.note-link { color: var(--rose-deep); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: .2rem; border-radius: 50%; background: var(--petal); vertical-align: middle; font: italic 1.125rem/1.4 var(--font); text-decoration: underline; }
.note-link:hover { background: var(--blush); }
.margin-note { align-self: start; min-width: 0; }
.margin-note__copy { border-radius: 4rem 4rem 0 0; background: var(--petal); padding: 2.5rem 1.5rem 1.75rem; }
.margin-note > .paper-scene + .margin-note__copy { margin-top: 1.5rem; }
.margin-note__mark { font-size: 2rem; line-height: 1; color: var(--rose); }
.margin-note h2 { font-size: 1.5rem; line-height: 1.3; margin-top: .8rem; }
.margin-note p { margin-top: .75rem; color: var(--muted); }
.margin-note__link { display: flex; align-items: center; min-height: 44px; margin-top: .7rem; }

.routes { padding-block: 2rem 3rem; }
.routes__heading { max-width: 46ch; margin-bottom: 1.75rem; }
.routes h2 { font-size: 2.4rem; line-height: 1.2; margin-top: .7rem; }
.routes__heading::before, .evidence::before { content: '❧'; display: block; color: var(--rose); font-size: 2.5rem; line-height: 1.3; margin-bottom: .7rem; }
.routes__grid { display: grid; gap: 1.25rem; }
.route-card { display: flex; flex-direction: column; min-width: 0; min-height: 235px; padding: 2.5rem 1.5rem 1.5rem; border: 0; border-radius: 4rem 4rem 0 0; text-decoration: none; color: var(--ink); background: var(--petal); }
.route-card h3 { max-width: 25ch; margin-top: .9rem; font-size: 1.5rem; line-height: 1.3; }
.route-card__action { margin-top: auto; padding-top: 1.5rem; font-size: 1.125rem; display: flex; justify-content: space-between; gap: .5rem; color: var(--rose-deep); text-decoration: underline; text-underline-offset: .22em; }
.route-card:hover { background: var(--blush); }
.route-card--start, .route-card--questions { background: var(--salmon); }
.route-card--start:hover, .route-card--questions:hover { background: var(--blush); }

.question-tool { max-width: 68ch; margin-block: 2rem; padding: 2.5rem 1.25rem 1.5rem; background: var(--petal); border: 0; border-radius: var(--arch); }
.question-tool__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.question-tool__check { width: 44px; height: 44px; margin: .3rem 0 0; accent-color: var(--rose); cursor: pointer; }
.question-tool__label { display: block; min-height: 44px; padding-block: .25rem; font-size: 1.1875rem; line-height: 1.5; color: var(--rose-deep); cursor: pointer; }
.question-tool__label span { display: block; margin-top: .4rem; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
.question-tool__copy p { margin-top: .6rem; color: var(--muted); }
.question-tool__check:checked + .question-tool__copy .question-tool__label { color: var(--rose-deep); }
.question-tool__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.question-tool__status { margin-top: 1rem; color: var(--muted); }
.question-tool__fallback { margin-top: 1rem; }
.question-tool__fallback label { display: block; margin-bottom: .6rem; }
.question-tool__text { width: 100%; min-height: 12rem; border: 2px solid var(--rose); border-radius: 0; padding: .8rem; color: var(--ink); background: var(--paper); line-height: 1.6; resize: vertical; }

.evidence { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.evidence h2 { margin-top: .65rem; }
.evidence__notes { display: grid; }
.evidence__note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.evidence__key { align-self: center; color: var(--rose-deep); font: italic 1.1875rem/1.5 var(--font); }
.evidence__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding-block: .8rem; font-size: 1.125rem; }
.evidence__link > span { flex-shrink: 0; }
.evidence__link:hover { color: var(--rose); }
.evidence__citation { display: flex; align-items: center; min-height: 52px; padding-block: .8rem; font-size: 1.125rem; }
.next-page { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 88px; padding: 1.5rem 0; margin-block: 2rem 3rem; border-top: 1px solid var(--line); text-decoration: none; }
.next-page__title { display: block; font-size: 1.65rem; line-height: 1.3; margin-top: .4rem; text-decoration: underline; }
.next-page__arrow { font-size: 2rem; color: var(--rose); flex-shrink: 0; }

.footer { border-top: 0; background: var(--salmon); }
.footer__inner { width: min(100% - 2.5rem, 1180px); margin-inline: auto; padding-block: 2.5rem; display: grid; gap: 1.5rem; }
.footer__name { font-size: 1.6rem; color: var(--ink); margin-bottom: .7rem; }
.footer__intro p:last-child { max-width: 38ch; color: var(--muted); font-size: 1.125rem; }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; }
.footer__link { display: flex; align-items: center; min-height: 44px; padding-block: .3rem; font-size: 1.125rem; }
.footer__link:hover { color: var(--rose); }

@media (min-width: 640px) {
  .main, .footer__inner { width: min(100% - 4rem, 1180px); }
  .masthead__inner { width: min(100% - 4rem, 1240px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead__links { gap: 0 1rem; }
  .hero { padding-top: 3.5rem; }
  .hero--home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 2rem; align-items: center; padding-bottom: 3rem; }
  .hero > .paper-scene { margin-top: 0; justify-self: end; }
  .myth { grid-template-columns: 1fr 1fr; }
  .myth__belief, .myth__answer { padding: 3rem 2rem 2rem; }
  .routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-card--start { grid-column: span 2; }
  .question-tool { padding: 3rem 2rem 2rem; }
  .footer__inner { grid-template-columns: 1fr 1.5fr; gap: 3rem; }
}

@media (min-width: 1000px) {
  .masthead__inner { padding-block: 1rem; grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); align-items: center; }
  .masthead__brand { grid-column: 2; grid-row: 1; margin-bottom: 0; font-size: 1.65rem; }
  .masthead__links--left { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 1.5rem; }
  .masthead__links--right { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 1.5rem; }
  .hero { padding-block: 4rem 3rem; }
  .hero--home { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 4.5rem; padding-block: 3rem; }
  .hero--home .hero__deck { font-size: 1.375rem; }
  .hero--home .paper-scene { margin: .5rem 0; }
  .reading-layout { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 5rem; padding-top: 4rem; }
  .margin-note { position: sticky; top: 2rem; }
  .routes__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-card { min-height: 265px; }
  .route-card--start, .route-card--cost, .route-card--questions, .route-card--sources { grid-column: span 2; }
  .route-card--cost { background: var(--salmon); }
  .routes { padding-block: 2.5rem 2rem; }
  .footer__inner { grid-template-columns: 1fr 1.65fr; padding-block: 3rem; gap: 5rem; }
  .footer__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media print {
  body { background: white; color: #332d29; }
  .masthead, .margin-note, .footer, .hero__text-link, .question-tool__actions, .next-page, .skip-link, .paper-scene { display: none; }
  .main { width: 100%; }
  .hero { padding-block: 0 1rem; }
  .reading-layout { display: block; padding-top: 1.5rem; }
  .myth { grid-template-columns: 1fr 1fr; }
  .myth__belief, .myth__answer { color: #332d29; background: #fbf4e8; }
  .eyebrow, .hero__deck, .question-tool__label, .question-tool__copy p, .question-tool__status, .question-tool__label span { color: #332d29; }
  .note-link { color: #332d29; background: none; }
  .question-tool { background: white; }
  .question-tool__item, .reading__section, .evidence__note { break-inside: avoid; }
}
