/* SupperTime website. One stylesheet, no build step.
   Colour tokens mirror src/index.css (docs/ROADMAP.md section 4.1) as hex. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --ink: #1F1B17;
  --ink-muted: #5E564E;
  --ground: #F4F0EA;
  --surface: #FFFFFF;
  --surface-2: #F1EDE7;
  --fill: #EAE4DB;
  --fill-strong: #DED6CB;
  --line: #E7E1D9;
  --line-strong: #CFC7BC;
  --accent: #2D6B45;
  --accent-hover: #25593A;
  --accent-press: #1F4C31;
  --on-accent: #FFFFFF;
  --accent-tint: #DDEBDF;
  --accent-ink: #1F5032;
  --warn: #8A4512;
  --warn-tint: #F6E8D6;
  /* Muted text on the inverted band (background --ink). */
  --band-muted: #DED6CB;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --r-ctl: 14px;
  --r-card: 18px;
  --r-lg: 24px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 96px;

  --gutter: 20px;
  --container: 1120px;
  --section-gap: clamp(56px, 4rem + 3vw, 96px);
  --header-h: 112px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-ctl: 180ms;
  --t-enter: 450ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EEE8;
    --ink-muted: #BCB2A8;
    --ground: #25221F;
    --surface: #302C28;
    --surface-2: #3A3631;
    --fill: #3F3A35;
    --fill-strong: #4C4640;
    --line: #423D37;
    --line-strong: #5B544D;
    --accent: #6BB083;
    --accent-hover: #7DBD94;
    --accent-press: #8EC8A2;
    --on-accent: #0F2318;
    --accent-tint: #2F4A39;
    --accent-ink: #B5DEC1;
    --warn: #E5B26E;
    --warn-tint: #45331E;
    --band-muted: #5E564E;
  }
}

/* The header becomes one row at 720px; below that the links wrap under the logo. */
@media (min-width: 720px) {
  :root { --header-h: 72px; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip, not hidden: it does not create a scroll container, so the sticky header keeps working. */
  overflow-x: clip;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }

code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

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

::selection { background: var(--accent-tint); color: var(--accent-ink); }

[id] { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }

[hidden] { display: none !important; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.placeholder {
  background: var(--warn-tint);
  color: var(--warn);
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--s-4);
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--r-ctl);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline-color: var(--accent); }

main:focus { outline: none; }

/* ---------- Header ---------- */

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 250ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s-4);
  row-gap: 0;
  padding-block: var(--s-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-ctl);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.site-nav { order: 3; flex-basis: 100%; }
.header-cta { order: 2; margin-left: auto; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-ctl) var(--ease);
}
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { text-decoration-color: currentColor; }
@media (hover: hover) {
  .nav-links a:hover { text-decoration-color: currentColor; }
}

@media (min-width: 720px) {
  .header-inner { padding-block: var(--s-3); flex-wrap: nowrap; column-gap: var(--s-5); }
  .brand img { width: 40px; height: 40px; border-radius: 12px; }
  .brand-name { font-size: 1.3125rem; }
  .site-nav { order: 2; flex-basis: auto; margin-left: auto; }
  .header-cta { order: 3; margin-left: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r-ctl);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-ctl) var(--ease),
    color var(--t-ctl) var(--ease),
    opacity var(--t-ctl) var(--ease),
    transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-lg { min-height: 52px; }
.btn-compact { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-small { min-height: 44px; padding: 0 var(--s-4); font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }

.btn-fill { background: var(--fill); color: var(--ink); }
.btn-fill:active { background: var(--fill-strong); }

.btn-band { background: var(--ground); color: var(--ink); }
.btn-band:active { background: var(--fill-strong); }

@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-fill:hover { background: var(--fill-strong); }
  .btn-band:hover { background: var(--fill); }
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* ---------- Sections and shared type ---------- */

.section { padding-bottom: var(--section-gap); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 640px;
  margin-bottom: var(--s-5);
}

.eyebrow {
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lede { color: var(--ink-muted); max-width: 62ch; }

.meta {
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.card-lg { border-radius: var(--r-lg); }

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.media {
  position: relative;
  background: var(--surface-2);
  border-radius: var(--r-ctl);
  overflow: hidden;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--ink);
  color: var(--ground);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: var(--s-7);
  align-items: center;
  padding-top: clamp(24px, 1rem + 3vw, 56px);
  padding-bottom: var(--section-gap);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-lede {
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  width: 100%;
}

.hero-note { color: var(--ink-muted); font-size: 0.8125rem; }

.hero-card {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card .media { aspect-ratio: 4 / 3; }
.hero-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6px 6px;
}
.hero-card .label { color: var(--ink-muted); font-size: 0.8125rem; font-weight: 500; }
.hero-card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-card .caption { color: var(--ink-muted); font-size: 0.875rem; }

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7) 64px; }
}

/* ---------- Steps (five tabs) ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.step-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.step-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* A hairline after each tab name reads as one track from step to step. */
.step-mark::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-strong);
  margin-left: var(--s-1);
}
.step:last-child .step-mark::after { display: none; }

.step p:last-child { color: var(--ink-muted); font-size: 0.875rem; }

@media (min-width: 560px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1120px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps > .step:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Household and AI images ---------- */

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--s-4);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(20px, 1rem + 1vw, 28px);
}
.feature-card h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.feature-card > p:not(.eyebrow) { color: var(--ink-muted); }

.mini-list {
  margin: var(--s-1) 0 0;
  padding: 14px var(--s-4);
  list-style: none;
  background: var(--surface-2);
  border-radius: var(--r-ctl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}
.mini-list li { display: flex; align-items: center; gap: 10px; }
.mini-box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
}
.mini-box.is-checked { background: var(--accent); border-color: var(--accent); }
.mini-done { color: var(--ink-muted); text-decoration: line-through; }

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--s-1);
}
.image-pair .media { aspect-ratio: 1 / 1; }

/* ---------- Download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.download-grid > .card { border-radius: var(--r-lg); }

@media (min-width: 640px) {
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .download-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
  .download-card { grid-column: auto; }
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.build-head { display: flex; flex-direction: column; gap: var(--s-1); }
.build-title {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.note {
  background: var(--warn-tint);
  color: var(--warn);
  border-radius: var(--r-ctl);
  padding: var(--s-3) 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
/* Same colour as the note's text, which is checked against its tint. */
.note a { color: inherit; font-weight: 600; text-decoration: underline; }

.file-details {
  background: var(--surface-2);
  border-radius: var(--r-ctl);
}
.file-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-ctl);
}
.file-details summary::-webkit-details-marker { display: none; }
.chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  transition: transform 200ms var(--ease);
}
.file-details[open] .chevron { transform: rotate(180deg); }
.file-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 0 14px 14px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.file-body p { overflow-wrap: anywhere; }
.sha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}
.sha-row p { flex: 1 1 200px; min-width: 0; }
.sha-row code { color: var(--ink); font-size: 0.75rem; }

.panel-title {
  font-size: 1.1875rem;
  line-height: 1.25;
  margin-bottom: var(--s-3);
}

.install-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
}
.install-steps li::marker { color: var(--accent-ink); font-weight: 600; }

.changes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.change {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.change:first-child { padding-top: 0; }
.change:last-child { border-bottom: 0; padding-bottom: 0; }
.change-line {
  display: flex;
  align-items: baseline;
  gap: var(--s-2) var(--s-3);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.change-subject { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.change-hash {
  flex: none;
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.change .when { color: var(--ink-muted); font-size: 0.8125rem; }
.changes-more { margin-top: var(--s-3); }

/* Loading state: tone blocks sized by the placeholder text itself, no shimmer. */
.sk-row { display: none; }
.js .sk-row { display: flex; }
.js .is-loading .sk {
  color: transparent;
  background: var(--fill);
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  user-select: none;
}

/* ---------- Privacy band (inverted in both themes) ---------- */

.band {
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--r-lg);
  padding: clamp(28px, 1.25rem + 2vw, 40px) clamp(22px, 1rem + 2vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5) var(--s-7);
}
.band-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.band .eyebrow { color: var(--band-muted); }
.band h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.band p:not(.eyebrow) { color: var(--band-muted); max-width: 60ch; }
.band :focus-visible { outline-color: var(--ground); }

@media (max-width: 479px) {
  .band .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { padding-bottom: max(var(--s-7), env(safe-area-inset-bottom)); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) 28px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--accent-ink);
  font-weight: 500;
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 68ch;
  padding-top: clamp(24px, 1rem + 3vw, 56px);
  padding-bottom: var(--section-gap);
}
.doc-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.doc h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.doc .updated { color: var(--ink-muted); }

.toc {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-7);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: var(--s-1);
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc li::marker { color: var(--ink-muted); }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.prose { line-height: 1.65; }
.prose section + section { margin-top: var(--s-7); }
.prose h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}
.prose p + p,
.prose p + ul,
.prose ul + p { margin-top: var(--s-4); }
.prose ul { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: var(--s-3); }
.prose strong { font-weight: 600; }

/* ---------- Motion (progressive enhancement) ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in {
    animation: rise var(--t-enter) var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .hero-in:nth-child(2) { --i: 1; }
  .hero-in:nth-child(3) { --i: 2; }
  .hero-in:nth-child(4) { --i: 3; }
  .hero-in:nth-child(5) { --i: 4; }
  .hero-card.hero-in { --i: 3; }

  .js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
  }
  .js .reveal {
    transition:
      opacity var(--t-enter) var(--ease),
      transform var(--t-enter) var(--ease);
    transition-delay: calc(var(--stagger, 0) * 60ms);
  }
  .stagger > .reveal:nth-child(2) { --stagger: 1; }
  .stagger > .reveal:nth-child(3) { --stagger: 2; }
  .stagger > .reveal:nth-child(4) { --stagger: 3; }
  .stagger > .reveal:nth-child(5) { --stagger: 4; }

  .is-loaded .fade-in { animation: fade 250ms var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --ink: #000000;
    --ink-muted: #000000;
    --ground: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #FFFFFF;
    --accent-ink: #000000;
    --band-muted: #000000;
  }
  body { background: #FFFFFF; color: #000000; }
  .skip-link,
  .site-nav,
  .header-cta,
  .btn,
  .hero-actions,
  .chevron,
  .changes-more { display: none !important; }
  .site-header { position: static; border: 0; }
  .card,
  .hero-card,
  .toc,
  .band { background: #FFFFFF; color: #000000; border: 1px solid #000000; }
  .reveal,
  .hero-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .pill { background: #FFFFFF; color: #000000; border: 1px solid #000000; }
  .placeholder { background: #FFFFFF; color: #000000; outline: 1px solid #000000; }
  a { color: #000000; }
  .section, .doc { padding-bottom: 24px; }
}
