/* Rollcall's site: the app's Memory Book, on the web. Tokens mirror Rollcall/Views/Theme.swift. */
:root {
  color-scheme: light dark;
  --paper: #f4ecdf;
  --card: #fbf6ee;
  --ink: #2b221b;
  --ink2: #6e5f52;
  --hair: #e2d6c5;
  --clay: #ac4a2e;          /* text and marks, 4.5:1 on paper */
  --clay-fill: #ad4b31;     /* buttons and the bookcloth field */
  --on-clay: #fff8f0;
  --mat: #ffffff;
  --mat-ink: #5a4a3d;
  --tape: rgba(236, 222, 190, .88);
  --well: #e6dbcb;
  --cloth: #ad4b31;
  --cloth-ink: #fff8f0;
  --cloth-ink2: #f6d9c9;
  --shadow: 60, 40, 20;
  --grain-opacity: .05;

  --serif: "Iowan Old Style", "Iowan Old Style BT", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --wide: 1140px;
  --measure: 66ch;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1714;
    --card: #27201b;
    --ink: #f2e9dd;
    --ink2: #b4a696;
    --hair: #3b322b;
    --clay: #e58a6b;
    --mat: #efe6d8;
    --tape: rgba(205, 190, 156, .82);
    --well: #332a24;
    --cloth: #7a321f;
    --cloth-ink2: #efcbb8;
    --shadow: 0, 0, 0;
    --grain-opacity: .07;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--clay);
  accent-color: var(--clay-fill);
}
body::after { /* a faint paper grain, drawn inline */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  opacity: var(--grain-opacity);
}
::selection { background: color-mix(in srgb, var(--clay) 26%, transparent); color: inherit; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, var(--clay) 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; font: 600 .95rem var(--sans); box-shadow: 0 4px 14px rgba(var(--shadow), .2); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* Masthead and footer */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 2px rgba(var(--shadow), .18), 0 3px 8px rgba(var(--shadow), .12); }
.masthead nav { display: flex; gap: clamp(14px, 3vw, 26px); font: 500 .95rem/1 var(--sans); }
.masthead nav a { color: var(--ink2); text-decoration: none; padding-block: 10px; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 7px; }

.site-foot { border-top: 1px solid var(--hair); margin-top: clamp(56px, 9vw, 96px); padding-block: 28px 40px; font: 400 .9rem/1.5 var(--sans); color: var(--ink2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--ink2); }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { font-size: 1.05rem; }
.site-foot .brand img { width: 24px; height: 24px; border-radius: 6px; }

/* Prints: a screen of the app as a taped, matted photo */
.print {
  --w: 300px;
  --tilt: -2deg;
  position: relative;
  width: var(--w);
  max-width: 100%;
  margin: 0;
  padding: 11px 11px 0;
  background: var(--mat);
  box-shadow: 0 1px 1px rgba(var(--shadow), .16), 0 9px 24px rgba(var(--shadow), .24), 0 22px 46px -18px rgba(var(--shadow), .3);
  transform: rotate(var(--tilt));
}
.print::before { /* tape */
  content: ""; position: absolute; left: 50%; top: -13px; width: 96px; height: 28px; margin-left: -48px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(var(--shadow), .08);
  transform: rotate(-3deg);
  z-index: 2;
}
.print .screen {
  position: relative;
  aspect-ratio: 480 / 1044;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * .07);
  background: var(--well);
}
.print .screen > img, .print .screen > video { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { font: italic 400 .95rem/1.35 var(--serif); color: var(--mat-ink); padding: 11px 4px 13px; text-align: center; text-wrap: balance; }

/* Buttons and the signup form */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--clay-fill); color: var(--on-clay);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 1px rgba(var(--shadow), .14), 0 4px 10px -2px rgba(var(--shadow), .22);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.button:hover { background: #9c4029; }
.button:active { transform: translateY(1px) scale(.98); }
.button:focus-visible { outline-offset: 3px; }

.signup { max-width: 470px; }
.signup label.lead { display: block; font: 600 .95rem/1.3 var(--sans); color: var(--ink); margin-bottom: 10px; }
.signup .row { display: flex; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--hair); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(var(--shadow), .06); transition: border-color .2s, box-shadow .2s; }
.signup .row:focus-within { border-color: color-mix(in srgb, var(--clay) 70%, var(--hair)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 18%, transparent); }
.signup input[type=email] {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 8px 0 16px; border: 0; background: transparent;
  color: var(--ink); font: 400 1.0625rem/1 var(--sans); border-radius: 999px;
}
.signup input[type=email]::placeholder { color: color-mix(in srgb, var(--ink2) 88%, transparent); }
.signup input[type=email]:focus { outline: none; }
.signup .button { flex: none; min-height: 44px; padding: 0 20px; }
.signup .fine { font: 400 .875rem/1.45 var(--sans); color: var(--ink2); margin: 10px 2px 0; }
.signup .fine a { color: inherit; }
.notice { font: 600 .95rem/1.4 var(--sans); color: var(--clay); background: color-mix(in srgb, var(--clay) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--clay) 35%, transparent); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0; }
.store .soon { display: inline-flex; align-items: center; gap: 10px; font: 500 .9rem/1.3 var(--sans); color: var(--ink2); }
.store .soon svg { width: 22px; height: 22px; flex: none; color: var(--clay); }
.store .badge img { height: 48px; width: auto; }

/* Landing page */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(8px, 2vw, 24px) clamp(56px, 8vw, 96px); }
.questions { font-size: clamp(2rem, 1.2rem + 2.9vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .45em; hanging-punctuation: first; }
.questions span { display: block; }
.questions span + span { margin-top: .22em; }
.questions em { font-style: normal; color: var(--clay); }
.lede { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink2); max-width: 34em; margin: 0 0 22px; }
.lede b { color: var(--ink); font-weight: 700; }
.hero-print { justify-self: center; position: relative; }
.hero-print .print { --w: clamp(220px, 21vw, 268px); --tilt: 2.2deg; }
.hero-print .note { position: absolute; right: calc(100% + 18px); bottom: 110px; width: 140px; transform: rotate(-4deg); font: italic 400 .95rem/1.3 var(--serif); color: var(--ink2); text-align: right; }
.hero-print .sample-tag { font: 400 .8rem/1.3 var(--sans); color: var(--ink2); text-align: center; margin: 22px 0 0; }
.hero-print .note svg { width: 54px; height: 30px; margin: 4px 0 0 auto; color: var(--clay); }

.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem); margin-bottom: .35em; }
.section-head p { color: var(--ink2); font-size: 1.15rem; margin: 0; }

/* The index */
.index { padding-block: clamp(40px, 7vw, 88px); }
.index-book { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.index-page { background: var(--card); border: 1px solid var(--hair); border-radius: 4px; padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(18px, 3vw, 32px); box-shadow: 0 1px 1px rgba(var(--shadow), .06), 0 14px 36px -20px rgba(var(--shadow), .3); }
.index-page h3 { font: 700 1.6rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li + li { border-top: 1px dotted color-mix(in srgb, var(--ink2) 35%, transparent); }
.entry {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 14px; width: 100%;
  padding: 13px 10px 13px 12px; margin: 0 -10px 0 -12px; width: calc(100% + 22px);
  background: none; border: 0; border-radius: 8px; color: var(--ink); text-align: left; cursor: pointer;
  font: 400 1.125rem/1.35 var(--serif);
  transition: background-color .2s;
}
.entry:hover { background: color-mix(in srgb, var(--clay) 6%, transparent); }
.entry .term b { font-weight: 700; }
.entry .page { font-style: italic; color: var(--clay); text-align: right; white-space: nowrap; font-size: 1rem; }
.entry[aria-pressed="true"] { background: color-mix(in srgb, var(--clay) 11%, transparent); }
.entry[aria-pressed="true"] .term::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; background: var(--clay); vertical-align: .18em; }
.index-page .sample { font: 400 .85rem/1.45 var(--sans); color: var(--ink2); margin: 16px 0 0; }

.answer { position: sticky; top: 24px; display: grid; justify-items: center; gap: 30px; padding-top: 4px; }
.answer .print { --w: clamp(200px, 18vw, 232px); --tilt: -1.6deg; }
.answer blockquote { margin: 0; max-width: 24rem; min-height: 7.5em; font: 400 1.15rem/1.5 var(--serif); color: var(--ink); text-align: left; }
.answer blockquote p { margin: 0; }
.answer blockquote footer { font: 500 .85rem/1.4 var(--sans); color: var(--ink2); margin-top: 8px; }
.answer blockquote .asked { display: block; font: italic 400 1rem/1.4 var(--serif); color: var(--clay); margin-bottom: 8px; }

/* Search vs. remember */
.versus { padding-block: clamp(40px, 7vw, 88px); }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.slip { border-radius: 4px; padding: clamp(22px, 3.5vw, 36px); }
.slip h3 { font: 700 1.35rem/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.slip.search h3 { color: var(--ink2); font-weight: 400; font-style: italic; }
.slip .typed { display: flex; align-items: center; gap: 10px; font: 400 1.05rem/1.3 var(--sans); padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.slip .typed svg { width: 18px; height: 18px; flex: none; }
.slip p:last-child { margin: 0; }
.slip.search { border: 1px dashed color-mix(in srgb, var(--ink2) 45%, transparent); color: var(--ink2); }
.slip.search .typed { background: color-mix(in srgb, var(--ink2) 9%, transparent); color: var(--ink2); }
.slip.search p { font-size: 1.15rem; }
.slip.ask { background: var(--card); border: 1px solid var(--hair); box-shadow: 0 14px 36px -20px rgba(var(--shadow), .3); }
.slip.ask .typed { background: var(--clay-fill); color: var(--on-clay); border-radius: 18px 18px 6px 18px; margin-left: auto; width: fit-content; max-width: 100%; }
.slip.ask p { font-size: 1.2rem; line-height: 1.5; }
.slip.ask p:has(+ .proofs) { margin-bottom: 0; }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); gap: 14px clamp(10px, 2vw, 18px); list-style: none; margin: 24px 0 0; padding: 0; align-items: start; }
.proofs li { padding: 6px 6px 0; background: var(--mat); box-shadow: 0 1px 1px rgba(var(--shadow), .14), 0 6px 16px rgba(var(--shadow), .2); transform: rotate(var(--t, -2deg)); }
.proofs li:nth-child(2) { --t: 1.6deg; margin-top: 6px; }
.proofs li:nth-child(3) { --t: -.8deg; }
.proofs img { display: block; width: 100%; height: auto; aspect-ratio: 120 / 104; object-fit: cover; }
.proofs span { display: block; font: italic 400 .82rem/1.2 var(--serif); color: var(--mat-ink); text-align: center; padding: 6px 0 7px; }
@media (max-width: 380px) { .proofs { gap: 12px 8px; } .proofs li { padding: 5px 5px 0; } .proofs span { font-size: .68rem; white-space: nowrap; } }

/* Privacy, plainly */
.privacy { padding-block: clamp(40px, 7vw, 88px); }
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ledger > div { padding: 22px clamp(0px, 2vw, 28px) 8px 0; }
.ledger > div + div { border-left: 1px solid var(--hair); padding-left: clamp(18px, 2.4vw, 28px); }
.ledger h3 { font-size: 1.3rem; margin-bottom: 12px; }
.ledger h3 small { display: block; font: 500 .85rem/1.3 var(--sans); color: var(--ink2); letter-spacing: 0; margin-top: 6px; }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 1.04rem; line-height: 1.5; }
.ledger li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--clay); }
.ledger .never li::before { border-radius: 0; border: 0; height: 1.5px; width: 9px; top: .78em; background: var(--clay); }
.privacy .more { margin-top: 18px; font: 500 1rem/1.4 var(--sans); }

/* FAQ */
.faq { padding-block: clamp(40px, 7vw, 88px); }
.faq-list { max-width: 46rem; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font: 700 1.2rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq summary:hover { color: var(--clay); }
.faq details > div { padding: 0 2px 20px; color: var(--ink2); max-width: var(--measure); }
.faq details > div p:last-child { margin-bottom: 0; }

/* The close: a clay cloth field */
.cover {
  margin-top: clamp(40px, 7vw, 88px);
  background: var(--cloth);
  color: var(--cloth-ink);
  padding-block: clamp(56px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.cover-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
.cover h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.02em; color: var(--cloth-ink); }
.cover h2 em { font-style: normal; font-weight: 400; }
.cover p.sub { color: var(--cloth-ink2); font-size: 1.2rem; margin: .7em 0 0; max-width: 28em; }
.cover .signup label.lead { color: var(--cloth-ink); }
.cover .signup .row { background: rgba(255, 248, 240, .97); border-color: transparent; }
.cover .signup input[type=email] { color: #2b221b; }
.cover .signup input[type=email]::placeholder { color: #6e5f52; }
.cover .signup .button { background: #2b221b; color: #fff8f0; box-shadow: none; }
.cover .signup .button:hover { background: #46382c; }
.cover .signup .fine, .cover .store .soon { color: var(--cloth-ink2); }
.cover .store .soon svg { color: var(--cloth-ink); }
.cover .notice { color: #fff8f0; background: rgba(0, 0, 0, .18); border-color: rgba(255, 248, 240, .3); }
.cover a { color: inherit; }
.cover :focus-visible { outline-color: var(--cloth-ink); }
.cover + .site-foot { margin-top: 0; border-top: 0; }

/* Reading pages: privacy, terms, support, thanks */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: clamp(20px, 4vw, 48px) 0; }
.doc.has-toc { grid-template-columns: 210px minmax(0, var(--measure)); justify-content: start; column-gap: clamp(32px, 6vw, 88px); }
.doc-head { grid-column: 1 / -1; max-width: var(--measure); }
.doc.has-toc .doc-head { grid-column: 2; }
.doc-head h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 14px; }
.doc-head .meta { font: 400 .95rem/1.5 var(--sans); color: var(--ink2); margin: 0; }
.toc { grid-row: 2; font: 400 .92rem/1.4 var(--sans); }
.toc nav { position: sticky; top: 28px; }
.toc p { font: italic 400 1.1rem/1.2 var(--serif); color: var(--ink2); margin: 2px 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--clay); }
.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.65; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .55em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--clay); }
.prose .short {
  font-size: 1.22rem; line-height: 1.55; background: var(--card); border: 1px solid var(--hair); border-radius: 4px;
  padding: clamp(20px, 3vw, 30px); margin: 0 0 2.2em; box-shadow: 0 14px 36px -24px rgba(var(--shadow), .3); position: relative;
}
.prose .short::before { content: ""; position: absolute; left: 28px; top: -12px; width: 80px; height: 24px; background: var(--tape); transform: rotate(-2.5deg); }
.prose table { width: 100%; border-collapse: collapse; margin: .4em 0 1.4em; font-size: 1rem; line-height: 1.5; }
.prose th { font: 600 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); text-align: left; padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); }
.prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); }
.prose td:first-child { width: 55%; }
.doc-foot { max-width: var(--measure); margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--hair); font: 400 1rem/1.5 var(--sans); color: var(--ink2); }
.doc.has-toc .prose, .doc.has-toc .doc-foot { grid-column: 2; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: var(--card); border: 1px solid var(--hair); border-radius: 4px; padding: clamp(20px, 3vw, 28px); margin: 0 0 2.4em; box-shadow: 0 14px 36px -24px rgba(var(--shadow), .3); }
.contact p { margin: 0; flex: 1 1 260px; }
.qa > h2 { font: 700 1.6rem/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 .2em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.qa h3 { font-size: 1.25rem; margin: 0; padding-top: 1.1em; }
.qa h3 + p { margin: .35em 0 0; padding-bottom: 1.1em; border-bottom: 1px solid var(--hair); }

.thanks { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(32px, 6vw, 80px) 0; }
.thanks h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 18px; }
.thanks p { font-size: 1.25rem; color: var(--ink2); max-width: 30em; }
.thanks .print { --w: 220px; --tilt: 3deg; }

/* Narrower screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-print { justify-self: center; }
  .hero-print .note { display: none; }
  .index-book { grid-template-columns: 1fr; }
  .answer { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 24px; padding: 6px 0 26px; }
  .answer blockquote { min-height: 0; }
  .answer .print { --w: clamp(150px, 30vw, 210px); margin-top: 14px; }
  .versus-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger > div + div { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
  .cover-inner { grid-template-columns: 1fr; }
  .doc.has-toc { grid-template-columns: minmax(0, 1fr); }
  .doc.has-toc .doc-head, .doc.has-toc .prose, .doc.has-toc .doc-foot { grid-column: 1; }
  .toc { grid-row: auto; }
  .toc nav { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .toc a { border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; margin: 0; background: var(--card); }
  .toc a:hover { border-color: var(--clay); }
  .thanks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { padding-block: 16px; }
  .masthead nav { gap: 16px; font-size: .9rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 28px; height: 28px; }
  .answer { grid-template-columns: 1fr; justify-items: center; gap: 26px; }
  .answer .print { --w: min(220px, 62vw); }
  .entry { grid-template-columns: 1fr; gap: 2px; }
  .entry .page { text-align: left; white-space: normal; }
  .signup .row { flex-direction: column; border-radius: 18px; padding: 6px; }
  .signup input[type=email] { padding: 0 12px; }
  .signup .button { width: 100%; }
  .prose td:first-child { width: auto; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose tr:first-child { display: none; }
  .prose td { padding: 0; border: 0; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .prose td + td { color: var(--ink2); margin-top: 4px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  body::after, .masthead nav, .site-foot nav, .toc { display: none; }
  body { background: #fff; color: #000; }
}
