@charset "UTF-8";

/* Base rules plus a small sheet of layout utilities. */
:root {
  color-scheme: light;
  --paper: #faf8f4;
  --white: #ffffff;
  --ink: #30243b;
  --muted: #65596f;
  --plum: #4b176b;
  --violet: #7020a0;
  --lilac: #eee5fa;
  --line: #d9cce2;
  --lime: #e1efb8;
  --focus: #20102e;
  font-family: "Segoe UI", "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
main, aside, section, article, div { min-width: 0; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
h1 { max-width: 19ch; font-size: clamp(2.25rem, 3.8vw, 3.75rem); color: var(--plum); }
h2, .u-answer-group > .u-pair > div > h3, #compare > h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 1rem; }
h3, h4 { font-size: 1.25rem; margin-bottom: .7rem; }
p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .7rem; }
a { color: var(--plum); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a, button, summary { min-height: 44px; }
a { display: inline-flex; align-items: center; padding: .5rem 0; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
button { font: inherit; color: var(--plum); background: var(--white); border: 1px solid var(--plum); border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; }
button[aria-pressed="true"] { background: var(--plum); color: var(--white); }
button:hover { box-shadow: 0 0 0 2px var(--plum); }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
abbr { text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

.u-flex { display: flex; align-items: center; gap: 1rem; }
.u-between { justify-content: space-between; }
.u-wrap { flex-wrap: wrap; }
.u-grid { display: grid; gap: 1rem; }
.u-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-pair { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2.5rem; }
.u-stack > * + * { margin-top: 1rem; }
.u-label { font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: .04em; color: var(--plum); }
.u-muted { color: var(--muted); }
.u-callout { padding: 1.5rem; border-left: 4px solid var(--violet); background: var(--lilac); border-radius: 0 1.5rem 1.5rem 0; }
.u-skip { position: fixed; z-index: 3; inset: .6rem auto auto .6rem; transform: translateY(-180%); background: var(--white); padding: .8rem 1.2rem; }
.u-skip:focus { transform: translateY(0); }

#masthead { max-width: 90rem; margin: auto; padding: 1rem 2.25rem; border-bottom: 1px solid var(--line); }
#masthead > a:first-child { font-size: 1.5rem; font-weight: 600; letter-spacing: -.06em; text-decoration: none; }
#masthead > a:last-child { font-size: 1rem; gap: 1rem; }
#layout { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 3rem; max-width: 90rem; margin: auto; padding: 2rem 2.25rem 0; }
#answer { grid-column: 2; grid-row: 1; padding-bottom: 3rem; }
#desk-index { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: .25rem .75rem 1rem 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#desk-index h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: .03em; line-height: 1.5; margin: 0 0 1rem; }
#desk-index nav > p { color: var(--muted); font-size: 1rem; margin: 1.2rem 0 .25rem; }
#desk-index nav > p:first-of-type { margin-top: 0; }
#desk-index ul { list-style: none; padding: 0; }
#desk-index li { margin: .1rem 0; }
#desk-index a { width: 100%; padding: .6rem .75rem; font-size: 1rem; line-height: 1.35; border-radius: .6rem; text-decoration: none; border-left: 3px solid transparent; }
#desk-index a:hover { background: var(--lilac); }
#desk-index a[aria-current="page"] { background: var(--plum); color: var(--white); border-left-color: var(--lime); }
#desk-index > a { margin-top: 1.25rem; border-top: 1px solid var(--line); border-radius: 0; padding-left: .75rem; }

main > nav { font-size: 1rem; color: var(--muted); margin: -.25rem 0 1.5rem; }
main > nav ol { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; list-style: none; padding: 0; }
main > nav li { margin: 0; }
main > nav li + li::before { content: "/"; padding-right: .75rem; color: var(--muted); }
article > header { padding: 1.5rem 0 2.25rem; border-bottom: 1px solid var(--line); }
article > header > p:first-child { margin-bottom: 1rem; }
article > header > p:last-child { margin-top: 1.4rem; max-width: 63ch; font-size: 1.1875rem; line-height: 1.6; }
article > section, .u-answer-group > section { margin-top: 2.75rem; }
article .u-pair > div:first-child { max-width: 66ch; }
.u-pair > aside { align-self: start; padding-top: .3rem; color: var(--muted); }
aside dl { border-top: 2px solid var(--violet); padding-top: .8rem; }
dt { font-size: 1rem; font-weight: 600; color: var(--plum); }
dd { font-size: 1rem; margin: .35rem 0 1rem; line-height: 1.55; }
article > section:last-child { margin-bottom: 0; }

#opening { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 1.5rem; align-items: center; background: var(--lilac); padding: 2.5rem; border-radius: 2rem 2rem 5rem 2rem; overflow: hidden; }
#opening h1 { max-width: 16ch; }
#opening p:first-child { margin-bottom: 1.2rem; }
#opening h1 + p { max-width: 42ch; margin-top: 1.3rem; font-size: 1.1875rem; }
#shape { height: 18rem; position: relative; margin: 0; isolation: isolate; }
#shape::before { content: ""; position: absolute; width: 12.5rem; height: 12.5rem; left: .6rem; top: 1rem; border: 2.8rem solid var(--violet); border-radius: 50%; transform: rotate(-20deg); }
#shape::after { content: ""; position: absolute; width: 8rem; height: 8rem; right: 0; bottom: .5rem; border-radius: 2rem 0 2rem 0; background: var(--lime); transform: rotate(-14deg); z-index: -1; }
#shape i { position: absolute; display: block; width: 5rem; height: 1.1rem; bottom: 2.6rem; left: 0; background: var(--plum); border-radius: .55rem; transform: rotate(-14deg); }
#at-a-glance { margin-top: 1.5rem; }
#at-a-glance > div { background: var(--white); border-radius: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); }
#at-a-glance h2 { font-size: 1.25rem; }
#questions { margin-top: 3rem; }
#questions > p { color: var(--muted); margin-bottom: 1.5rem; max-width: 60ch; }
#questions h2 { margin-bottom: .8rem; }
#questions > div > section { padding-top: 1.3rem; border-top: 2px solid var(--plum); }
#questions ul { padding: 0; list-style: none; }
#questions li { margin: 0; border-bottom: 1px solid var(--line); }
#questions a { width: 100%; justify-content: space-between; gap: 1rem; padding: 1rem 0; line-height: 1.45; }
#questions a > span:first-child { max-width: 39ch; }
#questions a > span:last-child { flex: 0 0 auto; text-decoration: none; }

#compare { padding: 1.6rem; background: var(--lilac); border-radius: 1.5rem; }
#compare > :is(h2, h3) { max-width: 28ch; }
#compare > div[role="group"] { margin: 1.4rem 0; gap: .6rem; }
#compare > div.u-grid { margin-top: 1.5rem; }
#compare section { background: var(--white); padding: 1.4rem; border-radius: 1rem; }
#compare section > p + p { margin-top: .8rem; }
#compare > p { margin-top: 1rem; font-size: 1rem; color: var(--muted); }
#compare > div.u-grid:has(> section[hidden]) { grid-template-columns: minmax(0, 1fr); }

#source-box { background: var(--white); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.5rem; margin-top: 3rem; }
#source-box h2 { font-size: 1.25rem; margin-bottom: .4rem; }
#source-box > p { color: var(--muted); font-size: 1rem; }
#source-box ul { padding: 0; list-style: none; margin-top: .7rem; }
#source-box li { margin: 0; }
#source-box a { font-size: 1rem; min-height: 48px; width: 100%; gap: 1rem; line-height: 1.45; }
#source-box a > span:last-child { margin-left: auto; flex: 0 0 auto; }
#continue { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.3rem; }
#continue a { max-width: 40ch; gap: .8rem; line-height: 1.45; padding: .6rem 0; }
body > footer { border-top: 1px solid var(--line); margin: 0 auto; max-width: 90rem; padding: 1.75rem 2.25rem 2.5rem; }
footer p { font-size: 1rem; max-width: 72ch; }
footer a { font-size: 1rem; margin-top: .7rem; }

@media (max-width: 72rem) {
  #layout { gap: 2rem; grid-template-columns: 12.75rem minmax(0, 1fr); }
  .u-pair { grid-template-columns: minmax(0, 1fr) 10rem; gap: 1.5rem; }
  #opening { grid-template-columns: minmax(0, 1fr) 10rem; padding: 2rem; }
  #shape { transform: scale(.75); transform-origin: center; }
}
@media (max-width: 58rem) {
  #masthead { padding: .7rem 1.25rem; }
  #masthead > a:first-child { font-size: 1.3125rem; }
  #layout { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 0; gap: 0; }
  #desk-index { position: static; max-height: none; width: 100%; overflow: visible; padding: 1.75rem 0 2rem; border-top: 2px solid var(--plum); }
  #desk-index nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; }
  #desk-index nav > p { grid-column: 1 / -1; margin: .75rem 0 0; }
  #desk-index nav > ul { display: contents; }
  #desk-index li { min-width: 0; }
  #desk-index a { min-height: 48px; }
  #answer { padding-bottom: 2.5rem; }
  body > footer { padding: 1.5rem 1.25rem 2rem; }
  #opening { grid-template-columns: minmax(0, 1fr) 11rem; }
  .u-pair { grid-template-columns: minmax(0, 1fr) 11rem; }
}
@media (max-width: 40rem) {
  .u-two, .u-pair { grid-template-columns: minmax(0, 1fr); }
  .u-pair { gap: 1.1rem; }
  h1 { font-size: 2.5rem; }
  #opening { grid-template-columns: minmax(0, 1fr); padding: 1.6rem; border-radius: 1.5rem 1.5rem 3rem 1.5rem; position: relative; }
  #opening h1 { font-size: 2.5rem; }
  #shape { display: none; }
  #opening::after { content: ""; width: 4rem; height: 4rem; border: 1rem solid var(--violet); border-radius: 50%; margin: .2rem 0 0 auto; }
  #at-a-glance > div { padding: 1.3rem; }
  article > section, .u-answer-group > section { margin-top: 2.25rem; }
  .u-pair > aside { padding: .9rem 1.1rem .1rem; background: var(--lilac); border-radius: 1rem; }
  aside dl { border-top: 0; padding-top: 0; }
  dd:last-child { margin-bottom: .7rem; }
  #compare { padding: 1.25rem; }
  #compare section { padding: 1.2rem; }
  #continue { align-items: stretch; flex-direction: column; gap: .25rem; }
  #continue a { max-width: none; }
  #desk-index nav { column-gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  #masthead, #desk-index, #continue, .u-skip, #compare > div[role="group"], body > footer > a { display: none; }
  body { background: white; color: black; }
  #layout { display: block; padding: 0; }
  #answer { padding: 0; }
  [data-substance][hidden] { display: block !important; }
  #compare > div.u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { break-inside: avoid; }
}
