/*
  Conversant — site styles

  Colors follow the app's own design system (warm paper, ink, one oxblood accent).
  Type: Cormorant Garamond for display, EB Garamond for reading. Both are
  self-hosted under the SIL Open Font License (see /assets/fonts/).

  Sections:
    1. Fonts            5. Home page
    2. Colors and sizes 6. Legal and support pages
    3. Base             7. Footer
    4. Layout           8. Motion and print
*/

/* 1. Fonts ------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Georgia, resized to match each face, so text does not jump when the fonts arrive. */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 88.8%;
  ascent-override: 104.1%;
  descent-override: 32.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "EB Garamond Fallback";
  src: local("Georgia");
  size-adjust: 85.9%;
  ascent-override: 117.2%;
  descent-override: 34.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "EB Garamond Fallback";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 83.3%;
  ascent-override: 120.9%;
  descent-override: 35.8%;
  line-gap-override: 0%;
}

/* 2. Colors and sizes --------------------------------------------------- */

:root {
  color-scheme: light dark;

  --paper: #faf7f0;
  --paper-raised: #fffdf8;
  --ink: #1f1d1a;
  --ink-soft: #5e5850;
  --accent: #7a2a2e;
  --rule: #e3ddd2;
  --rule-strong: #cfc6b6;
  --island: #0e0d0b;

  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-text: "EB Garamond", "EB Garamond Fallback", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --col-gap: clamp(1rem, 0.4rem + 2vw, 2.5rem);
  --max: 78rem;
  --section: clamp(5rem, 2.5rem + 9vw, 11rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a17;
    --paper-raised: #27241f;
    --ink: #ede8de;
    --ink-soft: #a39c90;
    --accent: #d27a7d;
    --rule: #3a3631;
    --rule-strong: #4d4740;
  }
}

/* 3. Base --------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.1875rem, 1.08rem + 0.4vw, 1.375rem);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-synthesis: small-caps;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first allow-end last;
}

@media (prefers-color-scheme: dark) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

.label {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.11em;
}

.label--accent {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Visible marker for anything still to be confirmed before launch. */
.todo {
  padding: 0 0.25em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: inherit;
  font-style: italic;
}

/* 4. Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--col-gap);
}

@media (min-width: 52rem) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .grid > * {
    grid-column: 1 / -1;
  }
  .grid > .col-margin {
    grid-column: 1 / span 3;
  }
  .grid > .col-text {
    grid-column: 4 / span 7;
  }
  .grid > .col-wide {
    grid-column: 4 / -1;
  }
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  margin-right: -0.34em;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
}

.masthead nav a {
  font-size: 1.0625rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.11em;
  text-decoration-color: transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  text-decoration-color: currentColor;
}

.section {
  padding-block: var(--section) 0;
}

.section > .col-margin {
  margin-bottom: 1.25rem;
}

@media (min-width: 52rem) {
  .section > .col-margin {
    margin-bottom: 0;
    padding-top: 0.55rem;
  }
}

.section-title {
  margin-bottom: 0.5em;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.625rem);
}

/* 5. Home page ---------------------------------------------------------- */

/* Opening */
.hero {
  padding-block: clamp(3.5rem, 1rem + 11vw, 10rem) 0;
}

.hero__kicker {
  margin-bottom: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
}

.hero__title {
  margin-left: -0.04em;
  font-size: clamp(4.75rem, 2.2rem + 9vw, 10.5rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
}

.hero__dek {
  margin-top: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}

.dek {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
}

.hero__note {
  margin-top: 1.25rem;
}

@media (min-width: 52rem) {
  .hero > .hero__dek {
    grid-column: 6 / -1;
  }
}

@media (min-width: 72rem) {
  .hero > .hero__dek {
    grid-column: 7 / span 5;
  }
}

/* What it is */
.lede {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem);
  line-height: 1.24;
}

.lede + .lede {
  margin-top: 0.7em;
}

/* I–IV */
.chapters {
  padding-top: var(--section);
}

.chapter {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--rule);
}

.chapter:last-child {
  border-bottom: 1px solid var(--rule);
}

.chapter__mark {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.chapter__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
}

.chapter h2 {
  margin-bottom: 0.55em;
  font-size: clamp(2rem, 1.45rem + 2vw, 3.25rem);
}

.chapter p:last-child {
  margin-bottom: 0;
}

@media (min-width: 52rem) {
  .chapter__mark {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-top: 0.35rem;
  }
  .chapter__num {
    font-size: 2.75rem;
  }
}

/* Contents */
.contents {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.contents li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.contents__field {
  display: block;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.contents__title {
  display: block;
  font-style: italic;
}

.contents__leader {
  display: none;
}

.contents-note {
  margin-top: 1rem;
  font-size: 0.9em;
  font-style: italic;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .contents li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }
  .contents {
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .contents li {
    padding-block: 0.45rem;
    border-bottom: 0;
  }
  .contents__field,
  .contents__title {
    flex: none;
  }
  .contents__leader {
    display: block;
    flex: 1;
    min-width: 2rem;
    overflow: hidden;
    color: var(--rule-strong);
    white-space: nowrap;
  }
  .contents__leader::after {
    content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
    letter-spacing: 0.15em;
  }
}

/* The sample lesson page */
.excerpt__aside .label {
  margin-bottom: 0.9rem;
}

.excerpt__meta {
  margin: 0;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

.excerpt__meta + .excerpt__meta {
  margin-top: 1rem;
}

.page {
  position: relative;
  margin-top: 1.75rem;
  padding: clamp(1.75rem, 1rem + 4vw, 4.75rem) clamp(1.5rem, 0.5rem + 5.5vw, 6rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

/* A second sheet behind, suggesting a book rather than a card. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  transform: translate(0.5rem, 0.5rem);
}

.excerpt__page {
  position: relative;
  z-index: 0;
}

.page__running {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

@media (max-width: 39.99rem) {
  .page__running span:first-child {
    display: none;
  }
}

.page__title {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
  margin-bottom: 0.4em;
}

.page__dek {
  margin-bottom: 2.2em;
  font-style: italic;
  font-size: 1.12em;
  line-height: 1.4;
  color: var(--ink-soft);
}

.page__text p {
  margin-bottom: 0;
}

.page__text p + p {
  text-indent: 1.4em;
}

/* Three-line drop cap. Sized from the fonts' cap heights (Cormorant 0.625, EB Garamond 0.653)
   so the capital's top meets the first line's capitals and its foot sits on the third baseline. */
.dropcap::first-letter {
  float: left;
  margin: -0.114em 0.05em -0.14em -0.03em;
  font-family: var(--font-display);
  font-size: 6em;
  line-height: 1;
  color: var(--accent);
}

.leadin {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
}

.page__folio {
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
  text-align: center;
  font-variant-numeric: lining-nums;
  font-size: 0.9em;
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .excerpt > .excerpt__page {
    grid-column: 4 / span 8;
  }
  .page {
    margin-top: 0;
  }
  /* Justified, with careful hyphenation, only where the measure is wide enough. */
  .page__text p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
  }
}

/* Screens */
.plates {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 17rem);
  gap: 1.5rem;
  margin: 2.5rem calc(-1 * var(--gutter)) 0;
  padding: 0.25rem var(--gutter) 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.plates::-webkit-scrollbar {
  display: none;
}

.plate {
  margin: 0;
  scroll-snap-align: start;
}

.plate figcaption {
  margin-top: 1.25rem;
  line-height: 1.45;
}

.plate figcaption .label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
}

.plate figcaption span:last-child {
  font-style: italic;
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .plates {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--col-gap);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .plate {
    max-width: 18rem;
    justify-self: center;
  }
  .plate:nth-child(2) {
    margin-top: clamp(3rem, 6vw, 6rem);
  }
}

/* A drawn iPhone. Replace the placeholder inside .phone__screen with an <img> when
   real screenshots exist (see the note in index.html). */
.phone {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 3.4%;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 16% / 7.4%;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 26% 9% 8%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 13% / 6%;
  font-size: 5.2cqi;
  line-height: 1.35;
}

.phone__screen::before {
  content: "";
  position: absolute;
  top: 3.2%;
  left: 50%;
  width: 31%;
  height: 3.6%;
  border-radius: 999px;
  background: var(--island);
  transform: translateX(-50%);
}

.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-kicker {
  margin-bottom: 0.9em;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ph-title {
  margin-bottom: 0.4em;
  font-family: var(--font-display);
  font-size: 1.95em;
  line-height: 1.02;
}

.ph-dek {
  margin-bottom: 1.2em;
  font-style: italic;
  color: var(--ink-soft);
}

.ph-meta {
  margin-top: 1.2em;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.ph-line {
  display: block;
  height: 0.34em;
  margin: 0.62em 0;
  border-radius: 1px;
  background: var(--rule);
}

.w100 { width: 100%; }
.w96 { width: 96%; }
.w92 { width: 92%; }
.w88 { width: 88%; }
.w80 { width: 80%; }
.w64 { width: 64%; }
.w40 { width: 40%; }

.ph-rule {
  height: 1px;
  margin: 1.2em 0;
  background: var(--rule);
}

.ph-figure {
  display: flex;
  align-items: flex-end;
  gap: 7%;
  height: 22%;
  margin: 1.3em 0;
  padding: 7% 8% 0;
  border: 1px solid var(--rule);
}

.ph-bar {
  flex: 1;
  background: var(--rule-strong);
}

.ph-bar:nth-child(1) { height: 38%; }
.ph-bar:nth-child(2) { height: 62%; }
.ph-bar:nth-child(3) { height: 50%; }
.ph-bar:nth-child(4) { height: 84%; background: var(--accent); }
.ph-bar:nth-child(5) { height: 70%; }

.ph-title--small {
  font-size: 1.45em;
}

.ph-art {
  width: 72%;
  aspect-ratio: 1;
  margin: 0.2em auto 1.4em;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.8em;
  color: var(--accent);
}

.ph-progress {
  position: relative;
  height: 1px;
  margin: 1.6em 0 0.5em;
  background: var(--rule-strong);
}

.ph-progress::before {
  content: "";
  position: absolute;
  inset: 0 66% 0 0;
  background: var(--ink);
}

.ph-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 34%;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.ph-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-soft);
}

.ph-play {
  width: 3.2em;
  height: 3.2em;
  margin: 1.4em auto 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.ph-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.9em;
  border-color: transparent transparent transparent var(--ink);
  transform: translate(-50%, -50%);
}

/* Availability */
.store {
  display: grid;
  gap: 1.5rem;
}

.store__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 22.37%;
  border: 1px solid var(--rule);
}

.store h2 {
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.625rem);
}

.store p {
  margin: 0;
}

/* Reserved at the size of Apple's badge. Swap in the official badge at launch. */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 1.25rem 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 0.6rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.store-badge-img {
  height: 2.75rem;
  width: auto;
}

@media (min-width: 40rem) {
  .store {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
  }
  .store__icon {
    grid-row: 1 / span 3;
    margin-top: 0.4rem;
  }
}

/* 6. Legal and support pages ------------------------------------------- */

.doc-head {
  padding-block: clamp(3rem, 1.5rem + 7vw, 7rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

.doc-head h1 {
  font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  line-height: 0.98;
  margin-bottom: 0.3em;
}

.doc-head .col-margin {
  margin-bottom: 1rem;
}

.doc-meta {
  margin: 0;
  color: var(--ink-soft);
}

.doc-dates {
  font-size: 1.0625rem;
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.09em;
}

@media (min-width: 52rem) {
  .doc-head .col-margin {
    margin-bottom: 0;
    padding-top: 1.1rem;
  }
}

.notice {
  margin: 0 0 2.5rem;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}

.summary {
  margin: 0 0 3rem;
  padding-block: 1.75rem;
  border-block: 1px solid var(--rule);
}

.summary .label {
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.summary p:last-child {
  margin: 0;
  font-size: 1.15em;
  line-height: 1.45;
}

.toc {
  margin-bottom: 3rem;
}

.toc summary {
  cursor: pointer;
  list-style: none;
  padding-block: 0.6rem;
  border-block: 1px solid var(--rule);
  color: var(--accent);
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  float: right;
  font-variant-caps: normal;
  letter-spacing: 0;
}

.toc[open] summary::after {
  content: "\2212";
}

.toc ol {
  margin: 0;
  padding: 0.75rem 0 0;
  list-style: none;
  font-size: 0.92em;
  line-height: 1.35;
}

.toc li {
  margin: 0.45rem 0;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.toc a {
  text-decoration-color: transparent;
}

.toc a:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 64rem) {
  .doc-layout > .toc {
    grid-column: 1 / span 3;
    grid-row: 1 / span 20;
    align-self: start;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    margin-bottom: 0;
  }
  .toc summary {
    border-top: 0;
  }
  .toc[open] summary {
    pointer-events: none;
  }
  .toc summary::after,
  .toc[open] summary::after {
    content: none;
  }
}

@media (min-width: 52rem) and (max-width: 63.99rem) {
  .doc-layout > * {
    grid-column: 4 / span 8;
  }
}

.prose h2 {
  margin: 2.6em 0 0.65em;
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  scroll-margin-top: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2 .num {
  margin-right: 0.35em;
  color: var(--accent);
}

.prose h3 {
  margin: 2em 0 0.5em;
  font-family: var(--font-text);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.4;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 0 0 0.5em;
  padding-left: 1.4em;
}

.prose ul > li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
}

.prose ol {
  counter-reset: item;
}

.prose ol > li::before {
  counter-increment: item;
  content: "(" counter(item, lower-alpha) ")";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
}

.prose ol > li {
  padding-left: 1.9em;
}

/* Legal text that must be conspicuous: set in small capitals rather than shouted. */
.caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.035em;
  font-size: 1.04em;
}

.contact-card {
  margin: 0 0 3.5rem;
}

.contact-card .label {
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.contact-email {
  display: inline-block;
  margin-bottom: 0.6em;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.faq-group + .faq-group {
  margin-top: 3.5rem;
}

.faq-group > h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.11em;
  color: var(--accent);
}

.faq {
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.faq:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq h3 {
  margin-bottom: 0.45em;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

.faq p:last-child {
  margin-bottom: 0;
}

/* Not found */
.lost {
  padding-block: clamp(4rem, 2rem + 10vw, 10rem);
}

.lost h1 {
  font-size: clamp(3rem, 1.5rem + 6.5vw, 7rem);
  line-height: 0.98;
  margin-bottom: 0.45em;
}

.lost__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
}

/* 7. Footer ------------------------------------------------------------- */

.colophon {
  margin-top: var(--section);
  padding-bottom: 2.5rem;
}

.colophon__inner {
  row-gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.colophon .wordmark {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.colophon p {
  margin: 0;
}

.colophon__tagline {
  font-style: italic;
  color: var(--ink-soft);
}

.colophon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon li + li {
  margin-top: 0.3rem;
}

.colophon__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9em;
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .colophon__inner > .colophon__brand {
    grid-column: 1 / span 5;
  }
  .colophon__inner > .colophon__nav {
    grid-column: 7 / span 3;
  }
  .colophon__inner > .colophon__contact {
    grid-column: 10 / span 3;
  }
}

/* 8. Motion and print --------------------------------------------------- */

/* Sections below the fold fade up once as they arrive. site.js adds these
   classes only when the reader has not asked their device to reduce motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .is-pending {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  .is-pending.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --paper: #fff;
    --paper-raised: #fff;
    --ink: #000;
    --ink-soft: #333;
  }
  .skip-link,
  .masthead nav,
  .toc,
  .plates {
    display: none;
  }
  .is-pending {
    opacity: 1;
    transform: none;
  }
  a {
    text-decoration: none;
  }
}
