/* Shared foundation for the homepage and the reading pages.
   A cool light-grey page with white cards, near-black ink and bold, tightly set system type.
   Buttons are rounded rectangles: black for the main action, grey for the quiet one.
   Sizes are in rem so the layout follows the reader's text size. Only display type is tightened;
   body text keeps the font's own spacing. */
:root {
  color-scheme: light;
  --bg: #eeeff1;
  --surface: #fff;
  --raised: #fff;
  --chip: #e2e3e6;
  --chip-hover: #d8d9dd;
  --ink: #030303;
  --ink-soft: #4a4d52;
  --muted: #63676e;
  /* Large type only (the second tone of a headline). */
  --dim: #80838a;
  --hairline: rgb(3 3 3 / 12%);
  --link: #06c;
  --accent: #007aff;
  --button-bg: #030303;
  --button-bg-hover: #2c2c2e;
  --button-ink: #f7f8f9;
  --button-shadow: 0 0.875rem 1.875rem -0.625rem rgb(3 3 3 / 45%);
  --card-shadow: 0 1.5rem 3rem -1.75rem rgb(3 3 3 / 18%);
  --menu-material: rgb(255 255 255 / 88%);
  --menu-shadow: 0 1.25rem 3rem -0.75rem rgb(3 3 3 / 28%), 0 0 0 1px rgb(3 3 3 / 8%);
  --press: rgb(3 3 3 / 6%);
  --ghost: #dadbdf;
  --focus: #0071e3;
  --selection-bg: #0071e3;
  --selection-text: #fff;
  /* Capped in vw so enlarged text does not eat a narrow screen's width. */
  --gutter: min(1.5rem, 6vw);
  --wide: 77.5rem;
  --column: 60rem;
  /* Two curves, as on getcanopy.pro: --ease settles things that arrive (quick start, long gentle stop);
     --ease-soft changes a state (light/dark, a colour, a card) slow in and slow out. */
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0.14, 0.22, 1);
  /* Springs for anything that moves (never for colour or opacity). Without linear() they fall back to
     curves with a similar overshoot. */
  --spring: cubic-bezier(0.22, 1.02, 0.36, 1);
  --snappy: cubic-bezier(0.3, 1.25, 0.5, 1);
  --display-tracking: -0.05em;
  --headline-tracking: -0.03em;
}
/* Damped springs, sampled from x(t) = 1 − e^(−ζωt)(cos ω_d t + ζω/ω_d sin ω_d t), the model behind SwiftUI's
   spring(response:dampingFraction:). Each curve is sampled over its own settling time; use it at about
   that duration. --spring barely overshoots (1%) for cards, devices and entrances; --snappy overshoots
   5% for small controls: the Light/Dark thumb, toggles, the Explore mark, hover lifts. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* spring: response 0.6 s, damping 0.82, 900 ms, peak 1.011, residual 0.0004 */
    --spring: linear(0, 0.0244, 0.0857, 0.1692, 0.2641, 0.3623, 0.4582, 0.5482, 0.6301, 0.7027, 0.7657, 0.8192, 0.8638, 0.9004, 0.9298, 0.953, 0.971, 0.9845, 0.9944, 1.0013, 1.006, 1.0089, 1.0105, 1.0111, 1.011, 1.0104, 1.0095, 1.0085, 1.0074, 1.0063, 1.0053, 1.0044, 1.0035, 1.0028, 1.0022, 1.0016, 1.0012, 1.0009, 1.0006, 1.0004, 1);
    /* snappy: response 0.42 s, damping 0.68, 700 ms, peak 1.054, residual 0.0012 */
    --snappy: linear(0, 0.0304, 0.1072, 0.2123, 0.331, 0.4525, 0.569, 0.6754, 0.7684, 0.8469, 0.9107, 0.9604, 0.9976, 1.0237, 1.0407, 1.0502, 1.054, 1.0536, 1.0502, 1.045, 1.0387, 1.0321, 1.0257, 1.0197, 1.0143, 1.0098, 1.006, 1.0031, 1.0008, 0.9992, 0.9981, 0.9974, 0.9971, 0.9971, 0.9972, 0.9974, 0.9978, 0.9981, 0.9985, 0.9988, 1);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0e0e10;
    --surface: #1b1b1d;
    --raised: #55555a;
    --chip: #2a2a2d;
    --chip-hover: #36363a;
    --ink: #f5f5f7;
    --ink-soft: #c7c7cc;
    --muted: #98989f;
    --dim: #7c7c83;
    --hairline: rgb(255 255 255 / 14%);
    --link: #2997ff;
    --accent: #0a84ff;
    --button-bg: #f5f5f7;
    --button-bg-hover: #fff;
    --button-ink: #030303;
    --button-shadow: none;
    --card-shadow: none;
    --menu-material: rgb(38 38 40 / 90%);
    --menu-shadow: 0 1.25rem 3rem -0.75rem rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 12%);
    --press: rgb(255 255 255 / 10%);
    --ghost: #1f1f22;
    --focus: #2997ff;
  }
}
:root[data-theme="dark"],
:root:not([data-theme])[data-system-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e10;
  --surface: #1b1b1d;
  --raised: #55555a;
  --chip: #2a2a2d;
  --chip-hover: #36363a;
  --ink: #f5f5f7;
  --ink-soft: #c7c7cc;
  --muted: #98989f;
  --dim: #7c7c83;
  --hairline: rgb(255 255 255 / 14%);
  --link: #2997ff;
  --accent: #0a84ff;
  --button-bg: #f5f5f7;
  --button-bg-hover: #fff;
  --button-ink: #030303;
  --button-shadow: none;
  --card-shadow: none;
  --menu-material: rgb(38 38 40 / 90%);
  --menu-shadow: 0 1.25rem 3rem -0.75rem rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 12%);
  --press: rgb(255 255 255 / 10%);
  --ghost: #1f1f22;
  --focus: #2997ff;
}
/* Negative tracking suits Latin display type; CJK glyphs keep their own spacing. */
:root:lang(ja), :root:lang(ko), :root:lang(zh-Hans) { --display-tracking: 0em; --headline-tracking: 0em; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Reflow at 200% text: no root-scaled minimum width may widen the viewport. */
body {
  display: flex;
  min-width: 0;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
figure, p, h1, h2, h3, ul, ol, dl { margin-top: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-block: 1.5rem 2rem; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--column)); margin-inline: auto; }
.glyph { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed;
  z-index: 40;
  top: 0.5rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 61.25rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* Header: the app icon and name only. It scrolls away with the page. */
.site-header { position: relative; z-index: 30; padding-top: 1.75rem; }
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: min(calc(100% - 2 * var(--gutter)), var(--wide));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  margin-inline-end: auto;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
:root:lang(ja) .brand, :root:lang(ko) .brand, :root:lang(zh-Hans) .brand { letter-spacing: -0.02em; }
.brand-icon { display: block; flex: none; }
.brand-icon img { width: 2.5rem; height: 2.5rem; border-radius: 22.5%; box-shadow: 0 0.5rem 1rem -0.5rem rgb(3 3 3 / 30%), 0 0 0 1px var(--hairline); }

/* Native, static language navigation remains available without scripts.
   It sits in the footer and opens upward; the menu floats over the page as a heavier material. */
.language-picker { position: relative; color: var(--ink); font-size: 0.875rem; line-height: 1.34; text-align: start; }
.language-picker summary {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  transition: background-color 200ms ease, transform 600ms var(--snappy);
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary { background: var(--chip); color: var(--ink); }
.language-picker summary:active { transform: scale(0.94); transition-duration: 80ms; }
.language-globe { width: 1.25rem; height: 1.25rem; flex: none; }
.language-label, .language-current { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: -0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  width: max-content;
  min-width: min(21rem, calc(100vw - 2 * var(--gutter)));
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 0.5rem;
  border-radius: 1.125rem;
  background: var(--menu-material);
  box-shadow: var(--menu-shadow);
  /* A menu taller than the space below the header scrolls inside itself. */
  max-height: min(31rem, calc(100svh - 6rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Opens from the globe that triggered it. */
  transform-origin: calc(100% - 1.875rem) 0;
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
}
.language-picker[open] .language-menu { animation: menu-in 700ms var(--snappy) both; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.9); } 40% { opacity: 1; } }
/* Inner radius = menu radius (18px) − padding (8px). */
.language-menu a { display: flex; min-width: 0; min-height: 2.75rem; align-items: center; padding: 0.5rem 0.75rem; border-radius: 0.625rem; font-weight: 500; text-decoration: none; }
.language-menu a:active { background: var(--press); }
.language-menu a[aria-current] { font-weight: 700; }

/* Actions: a black pill and a grey one beside it. Feedback starts on press, not on release. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0; }
.quiet-button {
  display: inline-flex;
  max-width: 100%;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.375rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 300ms ease, transform 600ms var(--snappy);
}
/* The download button is our own (not Apple's badge and no Apple logo): black in light, white in dark and in the
   black band, with an arrow that drops into its tray on hover and when the button comes into view. */
.store-button {
  display: inline-flex;
  flex: none;
  max-width: 100%;
  min-height: 3.125rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.375rem 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms ease, transform 600ms var(--snappy);
}
.store-button .glyph { width: 1.25rem; height: 1.25rem; flex: none; stroke-width: 2.1; }
.store-button .i-arrow { transform-box: view-box; }
.quiet-button { background: var(--chip); color: var(--ink); }
a.store-button:active, a.quiet-button:active { transform: scale(0.97); transition-duration: 80ms; }
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  .brand:hover, .language-menu a:hover, .quiet-button:hover, .footer-links a:hover { text-decoration: none; }
  .store-button:hover { background: var(--button-bg-hover); text-decoration: none; }
  .store-button:hover, .quiet-button:hover { transform: translateY(-1px); }
  .quiet-button:hover { background: var(--chip-hover); }
  .summary-cards li:hover { transform: translateY(-0.25rem); }
  .policy-section summary:hover .policy-mark { background: var(--chip-hover); }
  .language-picker summary:hover { background: var(--chip); color: var(--ink); }
  .language-menu a:hover { background: var(--press); }
}

/* Reading pages: a bold title, then the text in one quiet column. */
.page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.page-intro h1 { max-width: 100%; margin: 0; font-size: clamp(2.5rem, 1.6rem + 4vw, 3.4375rem); letter-spacing: var(--headline-tracking); overflow-wrap: anywhere; }
html:lang(ko) .page-intro h1 { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) .page-intro h1 { font-size: clamp(1.75rem, 5.2vw, 3rem); }
/* Flex items do not shrink below their longest word unless the word may break. */
.page-intro > * { max-width: 100%; overflow-wrap: anywhere; }
.page-intro .lead { max-width: min(36rem, 100%); margin: 1.25rem auto 0; color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem); font-weight: 500; line-height: 1.35; }
.policy-meta { order: 2; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.875rem; }
.content-section-inner { width: min(calc(100% - 2 * var(--gutter)), 43.25rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.prose { min-width: 0; color: var(--ink-soft); font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose address { margin-bottom: 1.25rem; }
.prose p, .prose li, .prose address { overflow-wrap: anywhere; }
.prose address { font-style: normal; }
.prose h2 { margin: 3.5rem 0 0.75rem; color: var(--ink); font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
:root:lang(ja) .prose h2, :root:lang(ko) .prose h2, :root:lang(zh-Hans) .prose h2 { letter-spacing: 0; }
.prose li + li { margin-top: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose a { color: var(--link); text-decoration: underline; }
/* Privacy Policy: every section is a native disclosure between hairlines. The round mark is a plus
   that turns into a cross when its section is open. */
.policy { border-top: 1px solid var(--hairline); }
.policy-section { border-bottom: 1px solid var(--hairline); }
.policy-section summary { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; cursor: pointer; list-style: none; }
.policy-section summary::-webkit-details-marker { display: none; }
.policy-section summary:focus-visible { border-radius: 0.5rem; }
.prose .policy-section h2 { min-width: 0; margin: 0; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem); line-height: 1.25; }
.policy-mark { position: relative; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--chip); transition: background-color 200ms ease; }
.policy-mark::before, .policy-mark::after { position: absolute; top: 50%; left: 50%; width: 0.75rem; height: 0.125rem; margin: -0.0625rem 0 0 -0.375rem; border-radius: 0.0625rem; background: var(--ink); content: ""; transition: transform 460ms var(--ease); }
.policy-mark::after { transform: rotate(90deg); }
/* The two strokes turn inside the circle, so the mark itself never grows past its box. */
.policy-section[open] .policy-mark::before { transform: rotate(45deg); }
.policy-section[open] .policy-mark::after { transform: rotate(135deg); }
.policy-body { padding-bottom: 0.75rem; }
.policy-body > :last-child { margin-bottom: 1.25rem; }

/* About: four facts as white cards between the title and the text. */
.summary { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.summary-cards li { min-width: 0; padding: 1.5rem 1.25rem; border-radius: 1.25rem; background: var(--surface); box-shadow: var(--card-shadow); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; transition: transform 700ms var(--snappy); }
.summary-cards .glyph { width: 1.75rem; height: 1.75rem; margin-bottom: 1rem; color: var(--accent); }
.summary-cards h2 { margin: 0; font-size: 1rem; line-height: 1.25; }
.summary-cards p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
/* Addresses and links inside a card are never hyphenated. */
.summary-cards a { color: var(--link); -webkit-hyphens: none; hyphens: none; text-decoration: underline; }
/* A page that ends with its cards (Support) keeps the room the text column would have had. */
.summary-last { flex: 1; padding-bottom: clamp(5rem, 10vw, 8rem); }

/* Entrances. site.js marks blocks that start below the window as pending and releases them, a few
   at a time, as they scroll into view: they fade in and rise. Only opacity and transform move, so the
   compositor does the work and no blur is painted on any device. A block that is in view when the
   page opens is never hidden, and without scripts nothing is. The attributes are removed once a
   block has settled. "heavy" (devices) tips up from below, like a screen standing up. */
[data-reveal] { transition: opacity 800ms var(--ease-soft), transform 900ms var(--spring); }
[data-reveal="pending"] { opacity: 0; transform: translateY(1.625rem); transition: none; }
[data-reveal="pending"][data-reveal-kind="heavy"] { transform: perspective(75rem) translateY(5rem) rotateX(14deg) scale(0.92); transform-origin: 50% 100%; }
[data-reveal="pending"][data-reveal-kind="rise"] { transform: translateY(40%); }
[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }
[data-reveal][data-delay="5"] { transition-delay: 400ms; }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* Icon motions, each a second or less. site.js adds .play when an icon scrolls into view and when
   its tile is pointed at. Lines draw (pathLength is 1), dots pop, the bulb lights, the eraser rubs. */
.glyph .i-slash, .glyph .i-line { stroke-dasharray: 1; }
.glyph .i-glow, .glyph .i-ring { opacity: 0; }
.glyph .i-body, .glyph .i-dot, .glyph .i-rubber, .glyph .i-ring { transform-box: fill-box; transform-origin: center; }
.glyph .i-pencil { transform-box: view-box; transform-origin: 17% 83%; }
@media (prefers-reduced-motion: no-preference) {
  .glyph.play .i-slash { animation: i-draw 560ms 140ms var(--ease) backwards; }
  .glyph.play .i-body { animation: i-press 620ms var(--ease); }
  .glyph.play .i-line { animation: i-draw 700ms 120ms var(--ease) backwards; }
  .glyph.play[data-icon="bars"] .i-line:nth-child(2) { animation-delay: 190ms; }
  .glyph.play[data-icon="bars"] .i-line:nth-child(3) { animation-delay: 260ms; }
  .glyph.play[data-icon="bars"] .i-line:nth-child(4) { animation-delay: 330ms; }
  .glyph.play[data-icon="bars"] .i-line:nth-child(5) { animation-delay: 400ms; }
  .glyph.play .i-dot { animation: i-pop 460ms var(--ease) backwards; }
  .glyph.play .i-dot:nth-child(3n + 2) { animation-delay: 70ms; }
  .glyph.play .i-dot:nth-child(3n) { animation-delay: 140ms; }
  .glyph.play .i-dot:nth-child(n + 4) { animation-duration: 520ms; }
  .glyph.play .i-dot:nth-child(n + 7) { animation-duration: 580ms; }
  .glyph.play .i-glow { animation: i-glow 1000ms ease; }
  .glyph.play .i-rubber { animation: i-rub 760ms var(--ease); }
  .glyph.play .i-pencil { animation: i-write 760ms var(--ease); }
  .glyph.play[data-icon="grid"] .i-line:nth-of-type(2) { animation-delay: 190ms; }
  .glyph.play[data-icon="grid"] .i-line:nth-of-type(3) { animation-delay: 260ms; }
  .glyph.play[data-icon="grid"] .i-line:nth-of-type(4) { animation-delay: 330ms; }
  .glyph.play .i-ring { animation: i-ring 700ms 120ms var(--ease) backwards; }
  .glyph.play .i-plane { animation: i-fly 900ms var(--ease-soft); }
  .glyph.play .i-arrow { animation: i-drop 720ms var(--ease-soft); }
  @keyframes i-drop { 40% { opacity: 0; transform: translateY(0.4rem); } 41% { opacity: 0; transform: translateY(-0.45rem); } }
  @keyframes i-ring { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
  @keyframes i-fly { 45% { opacity: 0; transform: translate(0.35rem, -0.35rem); } 46% { opacity: 0; transform: translate(-0.35rem, 0.35rem); } }
  @keyframes i-draw { from { stroke-dashoffset: 1; } }
  @keyframes i-press { 35% { transform: scale(0.88); } }
  @keyframes i-pop { from { opacity: 0; transform: scale(0.2); } }
  @keyframes i-glow { 40% { opacity: 0.38; } }
  @keyframes i-rub { 25% { transform: translate(-0.1rem, 0.03rem); } 55% { transform: translate(0.08rem, -0.02rem); } 80% { transform: translate(-0.04rem, 0); } }
  @keyframes i-write { 30% { transform: rotate(-9deg); } 65% { transform: rotate(5deg); } }
  @keyframes arrow-nudge { 40% { transform: translateY(0.14rem); } }
  /* Page load on the reading pages: header, title, cards and text come into focus in that order. */
  .site-header-inner > * { animation: blur-in 800ms var(--ease) backwards; }
  .page-intro > *, .summary-cards li, .content-section { animation: blur-in 900ms var(--ease) backwards; }
  .page-intro > :nth-child(1) { animation-delay: 60ms; }
  .page-intro > :nth-child(2) { animation-delay: 140ms; }
  .page-intro > :nth-child(3) { animation-delay: 220ms; }
  .summary-cards li:nth-child(1) { animation-delay: 260ms; }
  .summary-cards li:nth-child(2) { animation-delay: 330ms; }
  .summary-cards li:nth-child(3) { animation-delay: 400ms; }
  .summary-cards li:nth-child(4) { animation-delay: 470ms; }
  .content-section { animation-delay: 420ms; }
  /* A section's text comes into focus when it opens. */
  .policy-section[open] .policy-body { animation: blur-in 520ms var(--ease) backwards; }
  /* Kept under its old name; it no longer blurs, which was costly on large blocks. */
  @keyframes blur-in { from { opacity: 0; transform: translateY(0.875rem); } }
}

/* Footer: the page links as grey pills, the small print, then the name once more, very large and fading out. */
.site-footer { overflow: hidden; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; width: min(calc(100% - 2 * var(--gutter)), var(--column)); margin-inline: auto; padding-top: 2.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease, transform 600ms var(--snappy);
}
.footer-links a[aria-current="page"] { color: var(--ink); }
.footer-links a:active { transform: scale(0.96); transition-duration: 80ms; }
.footer-notes { margin-top: 1.5rem; }
.footer-notes p { margin-bottom: 0.25rem; overflow-wrap: anywhere; }
.footer-notes .footer-trademarks { max-width: 40rem; margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.45; overflow-wrap: normal; }
/* A real button, styled like the footer's other small text. */
.appearance-button {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.appearance-button[hidden] { display: none !important; }
.appearance-button span { min-width: 0; overflow-wrap: anywhere; }
.appearance-icon { width: 1rem; line-height: 1; text-align: center; }
/* The language menu and the Appearance button share one line in the footer; the menu opens upward. */
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 1rem; }
.footer-tools .appearance-button { margin-top: 0; }
.site-footer .language-picker summary { width: auto; height: auto; min-height: 2.75rem; gap: 0.375rem; padding-inline: 0.75rem; border-radius: 61.25rem; font-weight: 600; }
.site-footer .language-current { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.site-footer .language-menu { top: auto; right: auto; bottom: calc(100% + 0.5rem); left: 50%; translate: -50% 0; transform-origin: 50% 100%; }

/* Decorative repeat of the name: cropped by the footer's lower edge and fading toward it. */
.footer-ghost {
  height: 0.56em;
  margin: 2.5rem 0 0;
  color: var(--ghost);
  font-size: min(17.5rem, 23.5vw);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(#000, transparent 92%);
  mask-image: linear-gradient(#000, transparent 92%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
@media (hover: hover) {
  .footer-links a:hover { background: var(--chip-hover); color: var(--ink); }
  .appearance-button:hover { background: var(--press); }
}

@media (max-width: 40rem) {
  .site-header { padding-top: 1.25rem; }
  /* On narrow screens the menu spans the footer instead of hanging off its button. */
  .language-picker { position: static; }
  .site-header-inner { position: relative; }
  .language-menu { right: 0; left: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); width: auto; min-width: 0; max-width: none; transform-origin: calc(100% - 5rem) 0; }
  .prose h2 { margin-top: 2.75rem; }
}
@media (max-width: 52rem) {
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On a phone the cards run one under another, so long words are not broken across narrow columns. */
@media (max-width: 30rem) {
  .summary-cards { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .summary-cards li { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Translucent layers become solid when the reader asks for less transparency or more contrast. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .language-menu { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3f4247; --dim: #4a4d52; --ink-soft: #030303; --hairline: #6b6f76; --link: #004f9e; }
  :root[data-theme="dark"],
  :root:not([data-theme])[data-system-theme="dark"] { --muted: #d2d2d7; --dim: #c7c7cc; --ink-soft: #f5f5f7; --hairline: #a1a1a6; --link: #6cb6ff; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --muted: #d2d2d7; --dim: #c7c7cc; --ink-soft: #f5f5f7; --hairline: #a1a1a6; --link: #6cb6ff; }
}
