:root {
  color-scheme: light;
  --paper: #faf7ef;
  --ink: #30273f;
  --muted: #5c5364;
  --purple: #624287;
  --lilac: #e3daf1;
  --peach: #f3d1c1;
  --mint: #d7e8dd;
  --yellow: #f0df88;
  --line: #bfb6c5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.125rem; line-height: 1.65; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; }
h1 { font-size: clamp(2.625rem, 4.8vw, 4.25rem); font-weight: 780; letter-spacing: -.055em; max-width: 15ch; }
h1 span { display: block; color: var(--purple); }
h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); font-weight: 730; letter-spacing: -.045em; max-width: 25ch; }
h3 { font-size: 1.5rem; font-weight: 710; letter-spacing: -.025em; }
p, dd { max-width: 66ch; }
p + p { margin-top: 1rem; }
h2 + p, h3 + p { margin-top: 1.25rem; }
p + h3 { margin-top: 2rem; }
a, button { font: inherit; min-height: 44px; min-width: 44px; }
a { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .25em; padding-block: .5rem; }
a:hover { color: var(--purple); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
[data-kicker] { font-size: 1rem; line-height: 1.5; font-weight: 650; letter-spacing: .035em; margin-bottom: 1rem; }
[data-lead] { font-size: 1.25rem; line-height: 1.55; margin-top: 1.75rem; max-width: 48ch; }

#skip { position: absolute; left: 24px; top: 12px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 20px; transform: translateY(-180%); border-radius: 8px; }
#skip:focus { transform: translateY(0); }
body > header, main, footer > div { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
body > header > a { font-size: 1rem; text-decoration: none; border: 1px solid var(--ink); border-radius: 50px; padding: 10px 20px; }
body > header > a:hover { background: var(--lilac); }
#wordmark { display: flex; align-items: center; gap: 16px; }
#wordmark p { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.4; }
#wordmark strong { font-size: 1.125rem; font-weight: 750; letter-spacing: -.02em; }
#mark { display: block; width: 34px; height: 34px; border: 8px solid var(--purple); border-radius: 50%; position: relative; flex-shrink: 0; }
#mark::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--yellow); border-radius: 50%; top: -10px; right: -12px; border: 2px solid var(--paper); }
#breadcrumb { margin-top: 28px; font-size: 1rem; }
#breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0; margin: 0; list-style: none; }
#breadcrumb li:last-child { display: flex; align-items: center; min-height: 44px; gap: 16px; }
#breadcrumb li:last-child::before { content: "/"; color: var(--muted); }
#opener { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 64px; padding-block: 68px 76px; }
#breadcrumb + #opener { padding-top: 36px; }
#geometry { width: 100%; aspect-ratio: 1; position: relative; background: var(--lilac); border-radius: 48% 48% 24px 24px; overflow: hidden; max-width: 350px; justify-self: end; }
#geometry i { display: block; position: absolute; }
#geometry i:nth-child(1) { width: 64%; height: 64%; border: 34px solid var(--purple); border-radius: 50%; top: 22%; left: -12%; }
#geometry i:nth-child(2) { width: 44%; height: 44%; border-radius: 50%; background: #eaa58e; top: 32%; right: 8%; box-shadow: inset -18px -14px 0 #d98778; }
#geometry i:nth-child(3) { width: 27%; height: 27%; border-radius: 50%; background: var(--yellow); top: 8%; right: 16%; }
#geometry i:nth-child(4) { width: 43%; height: 16%; background: #a8c9b1; border-radius: 18px; bottom: 6%; right: -4%; transform: rotate(-28deg); }
#geometry i:nth-child(5) { width: 12%; height: 12%; border-radius: 50%; background: var(--paper); top: 8%; left: 22%; }
main > section:not(#opener) { padding-block: 48px 60px; border-top: 1px solid var(--line); }
#word-and-product { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
#margin-note { background: var(--yellow); border-radius: 8px 42px 8px 8px; padding: 30px; margin-top: 12px; }
#margin-note h3 { font-size: 1.75rem; }
#margin-note p:last-child { font-size: 1.125rem; }
#product-types { margin-top: 32px; }
#product-types > div { display: grid; grid-template-columns: .7fr 1.7fr; gap: 48px; padding: 28px 0; border-top: 1px solid var(--line); }
#product-types dt { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; max-width: 15ch; }
#product-types dd { border-left: 5px solid var(--lilac); padding-left: 28px; }
#product-types > div:nth-child(2) dd { border-color: var(--mint); }
#product-types > div:nth-child(3) dd { border-color: var(--peach); }
#missouri-note { max-width: 76ch; }
#missouri-note a { margin-top: 16px; }
[data-recap] { margin-block: 12px 72px; padding: 36px 40px; background: var(--mint); border-radius: 12px 48px 12px 12px; }
[data-recap] h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); max-width: 36ch; }
[data-recap] a { margin-top: 20px; font-weight: 650; }

#comparison-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
#comparison-controls button { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 50px; padding: 10px 20px; font-weight: 650; }
#comparison-controls button:hover { background: var(--lilac); }
#comparison-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#comparison-status { margin-top: 12px; font-size: 1rem; color: var(--muted); }
#visit-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
#visit-comparison:not([data-show="both"]) { grid-template-columns: 1fr; max-width: 74ch; }
#visit-comparison article { background: var(--peach); padding: 32px; border-radius: 24px 24px 8px 8px; min-width: 0; }
#visit-comparison article:last-child { background: var(--lilac); }
#visit-comparison h3 { font-size: 1.75rem; }
#visit-comparison dl { margin-top: 24px; }
#visit-comparison dt { font-weight: 700; margin-top: 20px; }
#visit-comparison dd { margin-top: 6px; }
#visit-comparison dd p { margin: 0; }
#online-rules, #costs, #concerns, #pause { max-width: 76ch; }
#price-note { background: var(--yellow); margin-block: 24px; padding: 28px 32px; border-radius: 12px 32px 12px 12px; }
#price-note [data-kicker] { margin-bottom: 12px; }
#price-note p:nth-child(2) { font-size: 1.375rem; font-weight: 650; line-height: 1.5; }
body[data-chapter="two"] [data-recap] { background: var(--peach); }
#reading-list { list-style: none; margin: 32px 0 0; padding: 0; }
#reading-list li { display: grid; grid-template-columns: .9fr 1.4fr; gap: 48px; padding: 30px 0; border-top: 1px solid var(--line); }
#reading-list li > div:first-child { padding-left: 22px; border-left: 5px solid var(--peach); }
#reading-list li:nth-child(3n + 2) > div:first-child { border-color: var(--purple); }
#reading-list li:nth-child(3n) > div:first-child { border-color: #719780; }
#reading-list h3 { max-width: 20ch; }
#reading-list a { font-weight: 650; margin-bottom: 12px; }
#reading-list [data-kicker] { margin-bottom: 10px; }
#pause dt { font-weight: 700; margin-block: 24px 8px; }
#pause dd { padding-left: 22px; border-left: 4px solid var(--peach); }
#concerns a { margin-block: 8px 20px; }
body[data-chapter="three"] [data-recap] { background: var(--lilac); }
#return { margin-bottom: 60px; }

footer { background: var(--ink); color: var(--paper); padding-block: 56px 36px; border-radius: 32px 32px 0 0; }
footer h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); letter-spacing: -.05em; }
footer nav { margin-block: 32px 36px; }
footer nav ul { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; gap: 20px; }
footer nav li { min-width: 0; }
footer nav a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; color: var(--ink); background: var(--lilac); border-radius: 18px 18px 6px 6px; padding: 24px; text-decoration: none; font-size: 1rem; line-height: 1.5; border: 2px solid transparent; }
footer nav li:nth-child(2) a { background: var(--peach); }
footer nav li:nth-child(3) a { background: var(--mint); }
footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
footer nav a:focus-visible { outline-color: var(--yellow); }
footer nav a[aria-current="page"] { border-color: var(--paper); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--paper); }
footer nav strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 720; }
footer nav [data-kicker] { margin: 0; }
footer nav [data-current] { border-top: 1px solid var(--ink); margin-top: auto; padding-top: 10px; }
#footer-note { font-size: 1rem; max-width: 73ch; }
footer > div > a { font-size: 1rem; margin-top: 16px; }
footer > div > a:hover { color: var(--yellow); }
footer > div > a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 760px) {
  body > header, main, footer > div { width: calc(100% - 48px); }
  body > header { gap: 12px; padding-block: 22px; align-items: flex-start; }
  body > header > a { padding: 8px 14px; max-width: 145px; line-height: 1.3; }
  #wordmark { gap: 10px; }
  #wordmark p { max-width: 13ch; }
  #mark { width: 26px; height: 26px; border-width: 6px; margin-top: 5px; }
  #mark::after { width: 10px; height: 10px; }
  #opener { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 44px; }
  #geometry { max-width: 100%; aspect-ratio: 1.85; border-radius: 90px 90px 12px 12px; }
  #geometry i:nth-child(1) { width: 45%; height: 90%; border-width: 24px; top: 15%; left: 9%; }
  #geometry i:nth-child(2) { width: 28%; height: 53%; top: 40%; right: 19%; box-shadow: inset -12px -10px 0 #d98778; }
  #geometry i:nth-child(3) { width: 18%; height: 34%; top: 8%; right: 20%; }
  #geometry i:nth-child(4) { width: 31%; height: 22%; right: -3%; bottom: 8%; }
  #geometry i:nth-child(5) { width: 8%; height: 15%; top: 8%; left: 22%; }
  [data-lead] { font-size: 1.25rem; }
  main > section:not(#opener) { padding-block: 36px 40px; }
  #word-and-product { grid-template-columns: 1fr; gap: 20px; }
  #margin-note { padding: 24px; margin-top: 0; }
  #product-types > div { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  #product-types dt { max-width: none; }
  #product-types dd { padding-left: 18px; }
  [data-recap] { padding: 28px 24px; margin-block: 0 44px; border-top-right-radius: 32px; }
  #visit-comparison { grid-template-columns: 1fr; gap: 20px; }
  #visit-comparison article { padding: 24px; }
  #comparison-controls { gap: 8px; }
  #comparison-controls button { padding: 9px 14px; font-size: 1rem; }
  #price-note { padding: 24px; }
  #reading-list li { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  #reading-list li > div:last-child { padding-left: 22px; }
  #reading-list h3 { max-width: 25ch; }
  #reading-list a { margin-bottom: 8px; }
  footer { padding-block: 40px 28px; border-radius: 24px 24px 0 0; }
  footer nav ul { grid-template-columns: 1fr; gap: 16px; }
  footer nav a { padding: 24px; }
}

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

@media print {
  body { background: white; color: black; }
  #skip, #geometry, #comparison-controls, #comparison-status, header > a, footer > div > a { display: none !important; }
  #opener { display: block; padding-block: 24px; }
  #visit-comparison article[hidden] { display: block !important; }
  #visit-comparison, #word-and-product, #product-types > div, #reading-list li { display: block; }
  section, article, aside { break-inside: avoid; }
  footer { background: white; color: black; }
}
