/* Beanbook website
 *
 * Paper, ink, and one teal rule -- the palette of the app (app/ui/theme/Colour.kt), turned
 * up for a page whose job is to be remembered. A ledger is ink on ruled paper, so the page
 * is a ruled sheet with a double margin rule; headings are underlined the way an accountant
 * underlines a total; terracotta marks only what is not finished yet.
 *
 * Type: Archivo (OFL, variable weight and width) for display, Roboto for prose, Roboto Mono
 * for figures and Beancount source. All self-hosted; the site makes no third-party request.
 */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("assets/fonts/roboto-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;
  --paper: #f3f5f2;
  --paper-2: #e9eee9;
  --sheet: #ffffff;
  --ink: #16201e;
  --ink-2: #44534e;
  --rule: #0b5f5b;
  --rule-soft: rgba(11, 95, 91, .16);
  --ruling: rgba(11, 95, 91, .075);
  --hair: #c3cdc7;
  --wash: #b9e7e2;
  --on-wash: #002b28;
  --pending: #9a4c2e;
  --pending-wash: #ffdbcd;
  --on-pending-wash: #3a1004;
  --warn: #a02a20;
  --warn-wash: #ffdad5;
  --on-warn-wash: #410003;
  --slab: #16201e;
  --slab-ink: #edf1ee;
  --slab-2: #b2c4be;
  --slab-accent: #6fd3ca;
  --cover: #0b5f5b;
  --cover-ink: #ffffff;
  --cover-accent: #b9e7e2;
  --shadow: rgba(11, 95, 91, .28);

  --display: "Archivo", "Roboto", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --width: 76rem;
  --line: 2rem; /* one ruled line of the sheet */
  --ease-out: cubic-bezier(.05, .7, .1, 1);
  --ease-snap: cubic-bezier(.3, 1.5, .5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d1211;
    --paper-2: #141b19;
    --sheet: #18201e;
    --ink: #e2e8e5;
    --ink-2: #b2beb9;
    --rule: #6fd3ca;
    --rule-soft: rgba(111, 211, 202, .18);
    --ruling: rgba(111, 211, 202, .055);
    --hair: #34413e;
    --wash: #0a4a46;
    --on-wash: #cdf1ec;
    --pending: #ffb59b;
    --pending-wash: #75331c;
    --on-pending-wash: #ffdbcd;
    --warn: #ffb4ab;
    --warn-wash: #5e1c16;
    --on-warn-wash: #ffdad5;
    --slab: #0a4a46;
    --slab-ink: #e8f4f1;
    --slab-2: #b9e7e2;
    --slab-accent: #9ff0e6;
    --cover: #6fd3ca;
    --cover-ink: #00332f;
    --cover-accent: #00332f;
    --shadow: rgba(111, 211, 202, .22);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1211;
  --paper-2: #141b19;
  --sheet: #18201e;
  --ink: #e2e8e5;
  --ink-2: #b2beb9;
  --rule: #6fd3ca;
  --rule-soft: rgba(111, 211, 202, .18);
  --ruling: rgba(111, 211, 202, .055);
  --hair: #34413e;
  --wash: #0a4a46;
  --on-wash: #cdf1ec;
  --pending: #ffb59b;
  --pending-wash: #75331c;
  --on-pending-wash: #ffdbcd;
  --warn: #ffb4ab;
  --warn-wash: #5e1c16;
  --on-warn-wash: #ffdad5;
  --slab: #0a4a46;
  --slab-ink: #e8f4f1;
  --slab-2: #b9e7e2;
  --slab-accent: #9ff0e6;
  --cover: #6fd3ca;
  --cover-ink: #00332f;
  --cover-accent: #00332f;
  --shadow: rgba(111, 211, 202, .22);
}

/* ---------------------------------------------------------------- base */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  /* The ruled sheet. Faint enough to sit under text, present enough to be paper. */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--ruling) calc(var(--line) - 1px) var(--line));
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* The ledger's double margin rule, down the whole page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 max(.375rem, calc(var(--gutter) * .45));
  width: 5px;
  border-inline: 1px solid var(--rule);
  opacity: .38;
  pointer-events: none;
  z-index: 0;
}
img, svg { max-width: 100%; }
a { color: var(--rule); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
code {
  font-family: var(--mono);
  font-size: .88em;
  overflow-wrap: anywhere;
  padding: .05em .3em;
  border-radius: 4px;
  background: var(--rule-soft);
}
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); }
h3 { font-family: var(--display); font-weight: 650; font-stretch: 105%; font-size: 1.3rem; line-height: 1.25; margin-bottom: .5rem; }
p { max-width: 66ch; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 50;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--rule); outline-offset: 3px; border-radius: 4px; }

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

main, .site-footer, .site-header { position: relative; z-index: 1; }
.shell { width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--gutter); }
.shell > *, .shell { min-width: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px double var(--rule);
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, var(--width));
  min-height: 4.25rem;
  margin-inline: auto;
  padding: .5rem var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 2.25rem; height: 2.25rem; transition: transform .5s var(--ease-snap); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.primary-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; min-width: 0; }
.nav-link {
  position: relative;
  padding: .55rem .7rem;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
/* A ledger tab: the current page is marked by a heavy teal rule beneath, the others draw
   one in on hover. */
.nav-link::after {
  content: "";
  position: absolute;
  left: .7rem; right: .7rem; bottom: .15rem;
  height: 3px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); height: 5px; }

.theme-toggle {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .4s var(--ease-snap), background-color .2s;
}
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { background: var(--rule-soft); transform: rotate(-25deg); }
.theme-toggle:focus-visible { border-radius: 999px; }
.theme-icon { width: 1.25rem; height: 1.25rem; display: none; }
.theme-toggle .theme-icon-system { display: block; }
.theme-toggle[data-theme-mode="light"] .theme-icon-system,
.theme-toggle[data-theme-mode="dark"] .theme-icon-system { display: none; }
.theme-toggle[data-theme-mode="light"] .theme-icon-light { display: block; }
.theme-toggle[data-theme-mode="dark"] .theme-icon-dark { display: block; }

/* ---------------------------------------------------------------- type */

/* The account path above a page title: Beancount's own name syntax, not a label. */
.folio {
  margin: 0 0 1.25rem;
  color: var(--rule);
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: 0;
}
.folio::before { content: ""; display: inline-block; width: 2.5rem; height: 2px; margin-right: .6rem; vertical-align: middle; background: currentColor; }

.display {
  font-weight: 850;
  font-stretch: 116%;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.035em;
}
.display-sub { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.display .w { display: inline-block; }

h2 {
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.025em;
}
/* The total rule: a double underline, the accountant's mark for a figure that is final. */
.total { display: inline-block; padding-bottom: .8rem; margin-bottom: 1.5rem; position: relative; }
.total::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: min(100%, 7rem);
  height: 9px;
  border-block: 3px solid var(--rule);
  transform-origin: left;
}

.lede {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}
.muted { color: var(--ink-2); }

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s;
}
.button-filled { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--rule); }
.button-outlined { background: var(--paper); color: var(--ink); box-shadow: 5px 5px 0 var(--rule-soft); }
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--rule); text-decoration: none; }
.button:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--rule); }
.button:focus-visible { border-radius: 10px; }
.cover .button-filled { background: var(--cover-ink); color: var(--cover); border-color: var(--cover-ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, .28); }
.cover .button-outlined { background: transparent; color: var(--cover-ink); border-color: var(--cover-ink); box-shadow: none; }
.cover .button:hover { box-shadow: 7px 7px 0 rgba(0, 0, 0, .28); }
.cover :focus-visible { outline-color: var(--cover-ink); }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}
.hero-page { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-page .lede { max-width: 40rem; }

/* The slip: a ledger card with a teal band, a torn perforated foot and a hard shadow. */
.slip {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--sheet);
  color: var(--ink);
  border-top: 8px solid var(--rule);
  box-shadow: 12px 12px 0 var(--shadow);
  transform: rotate(1.4deg);
}
.slip::after {
  /* perforated tear along the bottom edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 10px;
  background: radial-gradient(circle at 8px 10px, transparent 5px, var(--sheet) 5.5px) 0 0 / 16px 10px repeat-x;
}
.slip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem .6rem;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .8rem;
}
.slip-code {
  margin: 0;
  padding: 1rem 1.25rem 1.1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(.78rem, 1.15vw, .95rem);
  line-height: var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--rule-soft) calc(var(--line) - 1px) var(--line));
  background-position: 0 1rem;
}
.slip-code code { display: block; padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.slip-code .ln { display: block; width: max-content; white-space: pre; }
.slip-code .k { color: var(--rule); font-weight: 400; }
.slip-code .c { color: var(--ink-2); }
.slip-code .s { color: var(--pending); }
.slip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
  padding: .9rem 1.25rem 1.4rem;
  border-top: 1px solid var(--hair);
}
.tally { display: grid; gap: .1rem; }
.tally-label { color: var(--ink-2); font-size: .85rem; }
.tally-value {
  font-family: var(--mono);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  border-bottom: 4px double var(--rule);
  padding-bottom: .15rem;
  transition: color .3s;
}
.tally-value.is-pending { color: var(--pending); border-bottom-color: var(--pending); }

/* The stamp. Interventions are round; this is the loudest one on the site. */
.stamp {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  margin: -.5rem -.25rem -.5rem 0;
  border: 4px double var(--rule);
  border-radius: 50%;
  color: var(--rule);
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 112%;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  transform: rotate(-14deg);
  background: radial-gradient(circle, transparent 58%, var(--rule-soft) 59% 61%, transparent 62%);
}
.stamp-pending { border-color: var(--pending); color: var(--pending); background: radial-gradient(circle, transparent 58%, rgba(154, 76, 46, .16) 59% 61%, transparent 62%); }
.stamp-wide { background: none; white-space: nowrap; width: auto; height: auto; padding: .7rem 1.2rem; border-radius: 14px; font-size: clamp(1.4rem, 3vw, 2rem); transform: rotate(-4deg); }

/* The engine versions, set as a ruled row of figures. */
.versions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-block: 3px double var(--rule);
}
.versions div { padding: 1rem 1rem 1.1rem; border-left: 1px solid var(--hair); min-width: 0; }
.versions div:first-child { border-left: 0; padding-left: 0; }
.versions dt { color: var(--ink-2); font-size: .9rem; }
.versions dd { margin: .15rem 0 0; font-family: var(--mono); font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -.03em; }
.versions-note { margin: .9rem 0 0; color: var(--ink-2); max-width: 60ch; }

/* ---------------------------------------------------------------- the tape */

/* An adding-machine tape of Beancount's own directives. Decorative; aria-hidden. */
.tape {
  position: relative;
  overflow: hidden;
  margin-block: clamp(2rem, 5vw, 3.5rem) 0;
  padding-block: .9rem;
  background: var(--rule);
  color: var(--paper);
  transform: rotate(-1.2deg);
  width: 104%;
  margin-left: -2%;
}
.tape-track { display: flex; width: max-content; }
.tape-track span {
  padding-inline: 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  white-space: nowrap;
}
.tape-track span:nth-child(even) { font-family: var(--mono); font-weight: 400; font-size: clamp(1rem, 2.1vw, 1.5rem); opacity: .85; }

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tint { background: var(--paper-2); }
/* A sheet torn along its top edge. */
.torn::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 10px;
  background: radial-gradient(circle at 9px 0, transparent 6px, var(--paper-2) 6.5px) 0 0 / 18px 10px repeat-x;
}
.slab { background: var(--slab); color: var(--slab-ink); }
.slab h2, .slab h3 { color: var(--slab-ink); }
.slab .total::after { border-color: var(--slab-accent); }
.slab a { color: var(--slab-accent); }
.slab :focus-visible { outline-color: var(--slab-accent); }
.cover { background: var(--cover); color: var(--cover-ink); overflow: hidden; }
.cover h2 { color: var(--cover-ink); font-size: clamp(2.2rem, 6vw, 4.6rem); }
.cover .total::after { border-color: var(--cover-accent); }
.cover p { font-size: 1.15rem; }
.cover code { background: rgba(0, 0, 0, .18); }

.section-header { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-header p { color: var(--ink-2); margin: 0; font-size: 1.1rem; }
.slab .section-header p { color: var(--slab-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split > :first-child { position: sticky; top: 6rem; }
.split p:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- ledger rows */

/* Data is square: points that belong together sit as ruled rows of one page, not as cards. */
.rows { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(9rem, 2.5fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hair);
  isolation: isolate;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  background: var(--rule-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.row:hover::before, .row:focus-within::before { transform: scaleX(1); }
.row h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.row p { margin: 0; color: var(--ink-2); }
.row .row-link { font-weight: 500; white-space: nowrap; }
.rows-2 .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.slab .rows { border-top-color: var(--slab-accent); }
.slab .row { border-bottom-color: rgba(255, 255, 255, .18); }
.slab .row p { color: var(--slab-2); }

/* ---------------------------------------------------------------- tiles */

/* Index cards: square corners, a teal band across the top, a hard shadow. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-top: 6px solid var(--rule);
  box-shadow: 8px 8px 0 var(--rule-soft);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--shadow); }
.tile p { margin: 0; color: var(--ink-2); }
.tile p + p { margin-top: .75rem; }
.tile-key { background: var(--wash); border-color: var(--wash); border-top-color: var(--rule); color: var(--on-wash); }
.tile-key h3, .tile-key p { color: var(--on-wash); }
.tile-key a { color: var(--on-wash); }
.tile-ink { background: var(--slab); border-color: var(--slab); border-top-color: var(--slab-accent); }
.tile-ink h3 { color: var(--slab-ink); }
.tile-ink p { color: var(--slab-2); }
.tile-ink a { color: var(--slab-accent); }
.tile-ink :focus-visible { outline-color: var(--slab-accent); }
.tile h3 code { background: none; padding: 0; font-size: .95em; }
.tile:nth-child(even) { transform: translateY(1.25rem); }
.tile:nth-child(even):hover { transform: translate(-3px, calc(1.25rem - 3px)); }
.tiles-3 .tile:nth-child(even) { transform: none; }
.tiles-3 .tile:nth-child(even):hover { transform: translate(-3px, -3px); }
.tiles + .callout, .tiles + .actions { margin-top: 3rem; }

/* ---------------------------------------------------------------- figures */

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.figure { padding: .5rem clamp(1rem, 3vw, 2.5rem) .5rem; border-left: 1px solid rgba(255, 255, 255, .2); min-width: 0; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure strong {
  display: block;
  color: var(--slab-accent);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.figure .figure-unit { display: block; margin-top: .6rem; font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--slab-ink); }
.figure > span:last-child { display: block; margin-top: .35rem; color: var(--slab-2); }

/* Odometer digits, built by site.js over the real figure (which stays for screen readers). */
.reel { display: inline-flex; overflow: hidden; height: .9em; vertical-align: top; }
.reel-col { display: flex; flex-direction: column; }
.reel-col > span { display: block; height: .9em; line-height: .9; }

/* ---------------------------------------------------------------- screenshots */

/* Real captures of the app. Portrait screens stepped down the page like entries in a column,
   each on a sheet with the photo-album corners the page used for its placeholders. */
.shots-header { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.shots-header > h2, .shots-header > p { flex: 1 1 100%; max-width: 46rem; }
.shots-theme {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet);
}
.shots-theme[hidden] { display: none; }
.shots-theme-label { padding: 0 .5rem 0 .6rem; color: var(--ink-2); font-size: .95rem; }
.shots-theme button {
  min-height: 44px; min-width: 4.5rem; padding: 0 1rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.shots-theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.shots-theme button:focus-visible { border-radius: 999px; }

.shots {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0; padding: 0 0 3rem; list-style: none; align-items: start;
}
.shot { margin-top: calc(var(--i) * 1.4rem); perspective: 1400px; }
.shot-open { display: block; color: inherit; text-decoration: none; border-radius: 18px; }
.shot-open:hover { text-decoration: none; }
.shot-card {
  position: relative; display: block;
  padding: 6px; border: 1px solid var(--hair); border-radius: 18px;
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--rule-soft);
  transform-style: preserve-3d;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.shot-card::before, .shot-card::after {
  content: ""; position: absolute; width: 1.5rem; height: 1.5rem; border: 4px solid var(--rule); pointer-events: none;
}
.shot-card::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.shot-card::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.shot-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 12px; background: var(--paper); backface-visibility: hidden;
}
.shot-text { display: grid; gap: .2rem; padding: 1rem .25rem 0; }
.shot-text strong { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.2rem; line-height: 1.15; }
.shot-text > span:not(.shot-cue) { color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.shot-cue {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem;
  color: var(--rule); font-weight: 700; font-size: .9rem;
}
html:not(.js) .shot-cue { display: none; }
.shot-cue::before { content: "+"; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 2px solid currentColor; border-radius: 50%; font-size: .85rem; line-height: 1; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shot-open:hover .shot-card { transform: translateY(-5px); box-shadow: 11px 13px 0 var(--shadow); }
  .shot-open:hover .shot-cue { text-decoration: underline; text-underline-offset: 3px; }
}
.shot-open:focus-visible { outline: none; }
.shot-open:focus-visible .shot-card { outline: 3px solid var(--rule); outline-offset: 5px; }

/* The one turn-over: out to edge-on, the face changes, back in. Transform and opacity only. */
.shot-card.is-turning-out { animation: shot-out .18s cubic-bezier(.4, 0, 1, 1) both; }
.shot-card.is-turning-in { animation: shot-in .22s cubic-bezier(0, 0, .2, 1) both; }
@keyframes shot-out { from { transform: rotateY(0); } to { transform: rotateY(90deg); } }
@keyframes shot-in { from { transform: rotateY(-90deg); } to { transform: rotateY(0); } }

/* ---------------------------------------------------------------- screenshot dialog */

.dialog-open, .dialog-open body { overflow: hidden; }
.shot-dialog {
  width: min(64rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; border: 0; border-top: 8px solid var(--rule); border-radius: 6px;
  background: var(--sheet); color: var(--ink);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .35);
}
.shot-dialog::backdrop { background: rgba(10, 18, 17, .78); }
.shot-dialog-inner { display: grid; gap: 1.25rem; padding: clamp(1rem, 3vw, 2rem); }
.shot-dialog-head { position: relative; padding-right: 3.5rem; }
.shot-dialog-head h2 { margin: .1rem 0 .4rem; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.shot-dialog-head p { margin: 0; color: var(--ink-2); max-width: 44rem; }
.shot-dialog-count { font-family: var(--mono); font-size: .85rem; }
.shot-close {
  position: absolute; top: 0; right: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sheet); color: var(--ink); cursor: pointer;
}
.shot-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; }
.shot-close:focus-visible { border-radius: 50%; }

.shot-dialog-body { position: relative; display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
.shot-figure { position: relative; margin: 0; padding: 8px; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); }
.shot-figure img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; max-height: calc(100dvh - 16rem); object-fit: contain; }
.shot-marker {
  /* A dot on the component, from which the line to its note starts. */
  position: absolute; z-index: 2;
  width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem;
  border-radius: 50%; background: var(--pending);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.shot-marker span { display: none; }
/* Beside the screenshot the line alone points at the component; the dot is only for a narrow
   screen, where there are no lines. */
@media (min-width: 56rem) { .shot-marker { display: none; } }
.shot-notes { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: note; display: grid; gap: 1rem; }
.shot-notes li { counter-increment: note; display: grid; grid-template-columns: 1.6rem 1fr; column-gap: .75rem; row-gap: .15rem; }
.shot-notes li::before {
  content: counter(note); grid-row: span 2; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pending); color: #fff; font: 700 .8rem/1 var(--mono);
}
.shot-notes strong { font-weight: 700; }
.shot-notes span { color: var(--ink-2); line-height: 1.45; }
.shot-leaders { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.shot-leaders polyline { fill: none; stroke: var(--pending); stroke-width: 1.5; stroke-linejoin: round; }
.shot-leaders .halo { stroke: rgba(255, 255, 255, .7); stroke-width: 4; }

@media (min-width: 56rem) {
  /* Beside the screenshot, each note at the height of what it points to. */
  .shot-notes { display: block; align-self: stretch; }
  .shot-notes li { position: absolute; left: 0; right: 0; }
}
@media (max-width: 55.99rem) {
  /* No lines on a narrow screen: a numbered dot on the component, and the list below. */
  .shot-marker { width: 1.2rem; height: 1.2rem; margin: -.6rem 0 0 -.6rem; }
  .shot-marker span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font: 700 .65rem/1 var(--mono); }
  .shot-dialog-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .shot-figure { width: min(20rem, 100%); justify-self: center; }
}
.shot-dialog-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shot-dialog-nav button:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- report tree */

.tree { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: clamp(1rem, 1.6vw, 1.15rem); columns: 2; column-gap: 3rem; }
.tree li { position: relative; padding: .45rem 0 .45rem 2.2rem; break-inside: avoid; border-bottom: 1px dashed var(--hair); }
.tree li::before { content: ""; position: absolute; left: .4rem; top: 0; bottom: 50%; width: 1.2rem; border-left: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.tree-root { margin: 0 0 .75rem; font-family: var(--mono); font-size: 1.15rem; color: var(--rule); }

/* ---------------------------------------------------------------- receipt */

.scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.receipt { width: 100%; max-width: 22rem; height: auto; margin-inline: auto; display: block; overflow: visible; }
.receipt .paper { fill: var(--sheet); stroke: var(--hair); stroke-width: 1.5; }
.receipt .bar { fill: var(--ink); opacity: .72; }
.receipt .bar-soft { fill: var(--ink-2); opacity: .45; }
.receipt .dbl { stroke: var(--ink); stroke-width: 2; }
.receipt .corner { fill: none; stroke: var(--rule); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.receipt .beam { fill: var(--rule); opacity: 0; }
.receipt .link-tag rect { fill: var(--rule); }
.receipt .link-tag text { fill: var(--paper); font-family: var(--mono); font-size: 15px; }

/* ---------------------------------------------------------------- callouts */

.callout {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--rule);
  border-left-width: 10px;
  border-radius: 14px;
  background: var(--sheet);
}
.callout p { margin: .4rem 0 0; color: var(--ink-2); }
.callout strong { font-family: var(--display); font-weight: 750; font-stretch: 106%; font-size: 1.15rem; }
.callout-warning { border-color: var(--warn); background: var(--warn-wash); color: var(--on-warn-wash); }
.callout-warning p, .callout-warning strong { color: var(--on-warn-wash); }
.callout-pending { border-color: var(--pending); background: var(--pending-wash); color: var(--on-pending-wash); }
.callout-pending p, .callout-pending strong { color: var(--on-pending-wash); }

/* ---------------------------------------------------------------- table */

.table-wrap { max-width: 100%; overflow-x: auto; background: var(--sheet); border-top: 8px solid var(--rule); box-shadow: 12px 12px 0 var(--rule-soft); }
table { width: 100%; min-width: 40rem; border-collapse: collapse; }
th, td { padding: 1.05rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
thead th { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.3rem; border-bottom: 3px double var(--rule); }
tbody th { font-weight: 500; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: var(--rule-soft); }
tbody tr:last-child > * { border-bottom: 0; }
.check { color: var(--rule); font-weight: 700; }
.check::before { content: "\2713\00a0"; }

/* ---------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.25rem 6rem;
  min-height: 5rem;
  max-width: 50rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.35rem;
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  border: 3px solid var(--rule);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--rule);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.9rem;
  z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: calc(2rem - 2px); top: 3.5rem; bottom: -.25rem; width: 4px; background: repeating-linear-gradient(to bottom, var(--rule) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: .2rem; font-family: var(--display); font-weight: 750; font-stretch: 108%; font-size: 1.35rem; color: var(--ink); }
.steps li { color: var(--ink-2); }

/* ---------------------------------------------------------------- prose */

.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 3.5rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.prose h3 { margin-top: 2.25rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .6rem; }
.prose li::marker { color: var(--rule); }
.reading { max-width: 48rem; }

.faq h3 { padding-top: 1.5rem; border-top: 1px solid var(--hair); margin-top: 1.5rem; }
.faq h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* The zero on the privacy page. */
.zero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.zero .zero-figure {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(8rem, 26vw, 19rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--slab-accent);
}
.zero div p { margin: .5rem 0 0; color: var(--slab-2); font-size: 1.15rem; }
.zero h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ---------------------------------------------------------------- footer */

.site-footer { padding-block: 3.5rem 0; background: var(--slab); color: var(--slab-2); overflow: hidden; border-top: 6px double var(--slab-accent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.footer-grid p { margin: 0 0 .5rem; max-width: 60ch; }
.footer-grid strong { color: var(--slab-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: var(--slab-ink); }
.site-footer :focus-visible { outline-color: var(--slab-accent); }
.wordmark {
  display: block;
  margin: 2.5rem 0 -.18em;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: min(14.2vw, 11.6rem);
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px var(--slab-accent);
  opacity: .55;
  user-select: none;
}


/* ---------------------------------------------------------------- page parts */

.section-lede { color: var(--ink-2); font-size: 1.1rem; }
.slab .section-lede { color: var(--slab-2); }
.slab .receipt .corner { stroke: var(--slab-accent); }
.slab .receipt .beam, .slab .receipt .link-tag rect { fill: var(--slab-accent); }
.slab .receipt .link-tag text { fill: var(--slab); }
.slab .callout { background: transparent; border-color: var(--slab-accent); }
.slab .callout strong { color: var(--slab-ink); }
.slab .callout p { color: var(--slab-2); }
.slab .figures + .callout { margin-top: 3rem; }
.slab code { background: rgba(255, 255, 255, .12); color: var(--slab-ink); }
.figures-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-single { grid-template-columns: minmax(0, 1fr); }
.hero-single .display { max-width: 16ch; }
.status-card { position: relative; padding-top: 2.5rem; }
.status-card .stamp { position: absolute; top: 0; right: 1rem; z-index: 2; background: var(--paper); }
.status-card .callout { margin: 0; padding: 2rem 1.75rem 1.75rem; }
.status-card .callout strong { font-size: 1.5rem; }
.stamp-follow { margin-top: 1.75rem; }
.tiles-stack { grid-template-columns: 1fr; }
.tiles-stack .tile:nth-child(even), .tiles-stack .tile:nth-child(even):hover { transform: none; }
.tiles-note { margin: .5rem 0 0; }
.prose h2.total { margin-bottom: 1rem; }

/* ---------------------------------------------------------------- motion */

/* Every animated state below is only reached with JavaScript on and motion allowed. Without
   either, each element simply sits in its final state, which is also what the HTML says. */
@media (prefers-reduced-motion: no-preference) {
  .js .display .w > span { display: inline-block; animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
  .js .display .w { overflow: clip; overflow-clip-margin: .2em; padding-bottom: .06em; margin-bottom: -.06em; }
  @keyframes rise { from { transform: translateY(110%); } }

  .js .slip-drop { animation: drop 1s var(--ease-snap) .25s both; }
  @keyframes drop { from { opacity: 0; transform: translateY(-3rem) rotate(-6deg); } }

  .js .slip.is-typing .ln { animation: type calc(var(--n) * 32ms) steps(var(--n), end) var(--d) both; }
  @keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  .js .slip.is-typing .stamp { opacity: 0; }
  .js .slip.is-balanced .stamp { animation: thud .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  .js .slip.is-balanced { animation: jolt .35s ease .12s; }
  @keyframes thud { from { opacity: 0; transform: rotate(-30deg) scale(2.6); } 70% { opacity: 1; } }
  @keyframes jolt { 30% { transform: rotate(.4deg) translateY(3px); } }

  .tape-track { animation: tape 48s linear infinite; }
  .tape:hover .tape-track { animation-play-state: paused; }
  @keyframes tape { to { transform: translateX(-50%); } }

  .js [data-in] .total::after, .js .total[data-in]::after { transform: scaleX(0); transition: transform .8s var(--ease-out) .15s; }
  .js [data-in].is-in .total::after, .js .total[data-in].is-in::after { transform: scaleX(1); }

  .js .reel-col { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 180ms); }

  .js .receipt .corner { transition: transform .7s var(--ease-snap); }
  .js .scan:not(.is-in) .corner-tl { transform: translate(-34px, -34px); }
  .js .scan:not(.is-in) .corner-tr { transform: translate(34px, -34px); }
  .js .scan:not(.is-in) .corner-bl { transform: translate(-34px, 34px); }
  .js .scan:not(.is-in) .corner-br { transform: translate(34px, 34px); }
  .js .scan:not(.is-in) .receipt .corner { opacity: .35; }
  .js .scan.is-in .corner-tr { transition-delay: .08s; }
  .js .scan.is-in .corner-br { transition-delay: .16s; }
  .js .scan.is-in .corner-bl { transition-delay: .24s; }
  .js .receipt .beam { opacity: 0; }
  .js .scan.is-in .receipt .beam { animation: beam 1.3s ease-in-out .55s both; }
  @keyframes beam { 0% { opacity: .35; transform: translateY(0); } 100% { opacity: 0; transform: translateY(400px); } }
  .js .scan:not(.is-in) .link-tag { opacity: 0; transform: translateX(-20px); }
  .js .receipt .link-tag { transition: opacity .4s ease 1.6s, transform .5s var(--ease-snap) 1.6s; }
  .js .scan:not(.is-in) .receipt-body { transform: rotate(-5deg) translateY(12px); }
  .js .receipt .receipt-body { transition: transform .8s var(--ease-snap); transform-origin: 50% 50%; transform-box: fill-box; }

  .js .stamp[data-in]:not(.is-in) { opacity: 0; transform: rotate(-30deg) scale(2.2); }
  .js .stamp[data-in] { transition: opacity .25s ease, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
  .js .stamp-wide[data-in].is-in { transform: rotate(-4deg); }

  .js .zero-figure[data-in]:not(.is-in) { transform: scale(.4) rotate(-20deg); opacity: 0; }
  .js .zero-figure[data-in] { transition: transform 1s var(--ease-snap), opacity .4s ease; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 62rem) {
  .nav-shell { flex-wrap: wrap; row-gap: .25rem; }
  .primary-nav { order: 3; width: 100%; margin-left: -.7rem; flex-wrap: wrap; }
  .theme-toggle { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero .slip { max-width: 34rem; }
  .versions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .versions div:nth-child(4) { border-left: 0; padding-left: 0; }
  .versions div:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shot { margin-top: 0; }
  .shot:nth-child(3n + 2) { margin-top: 1.4rem; }
  .shot:nth-child(3n) { margin-top: 2.8rem; }
  .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  /* One row to swipe through, each screen large enough to read. */
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(68vw, 17rem);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 12px 12px 1.5rem; margin: 0 -12px;
  }
  .shot, .shot:nth-child(3n + 2), .shot:nth-child(3n) { margin-top: 0; scroll-snap-align: start; }
  .site-header { position: static; }
  body { font-size: 1rem; }
  .nav-link { padding: .45rem .55rem; font-size: .92rem; }
  .nav-link::after { left: .55rem; right: .55rem; }
  .primary-nav { margin-left: -.55rem; gap: 0; }
  .split, .scan, .zero { grid-template-columns: 1fr; }
  .split > :first-child { position: static; }
  .row, .rows-2 .row { grid-template-columns: 1fr; gap: .5rem; }
  .tiles, .tiles-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .tile:nth-child(even), .tile:nth-child(even):hover { transform: none; }
  .figures { grid-template-columns: 1fr; }
  .figure, .figure:first-child { border-left: 0; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .figure:first-child { border-top: 0; }
  .tree { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .slip { transform: rotate(.6deg); box-shadow: 8px 8px 0 var(--shadow); }
  .steps li { padding-left: 4.5rem; }
  .steps li::before { width: 3.25rem; height: 3.25rem; font-size: 1.5rem; }
  .steps li::after { left: calc(1.625rem - 2px); top: 3rem; }
}

@media (max-width: 30rem) {
  .versions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .versions div { padding-inline: .75rem 0; }
  .versions div:nth-child(4) { border-left: 1px solid var(--hair); padding-left: .75rem; }
  .versions div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .versions div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .slip-head span:last-child { display: none; }
  .stamp { width: 5.2rem; height: 5.2rem; font-size: .88rem; }
  .stamp-wide { width: auto; height: auto; font-size: 1.25rem; }
  .tally-value { font-size: 1.3rem; }
  .brand-mark { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-card { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; }
  body::before, .tape, .theme-toggle, .wordmark { display: none !important; }
  .site-header { position: static; }
}

/* GitHub and email links, in the header and the footer */
.social-links { display: inline-flex; flex: 0 0 auto; gap: .35rem; }
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color .2s, transform .3s var(--ease-snap);
}
.social-links a:hover { background: var(--rule-soft); transform: translateY(-2px); }
.social-links svg { width: 1.4rem; height: 1.4rem; }
.social-links-footer { grid-column: 2; justify-self: end; margin-top: -.5rem; }
@media (max-width: 48rem) { .social-links-footer { grid-column: 1; justify-self: start; margin-top: 0; } }
.social-links-footer a { color: var(--slab-ink); }
.social-links-footer a:hover { background: rgba(255, 255, 255, .12); }
@media print { .social-links { display: none !important; } }

/* Three icons and the theme toggle share the header's first row on a phone. */
@media (max-width: 30rem) {
  .social-links { gap: 0; }
  .social-links a { width: 2.1rem; height: 2.1rem; }
  .social-links svg { width: 1.25rem; height: 1.25rem; }
}

/* Early-development note on the home page */
.notice-wrap { padding-top: clamp(1rem, 2.5vw, 1.75rem); }
.notice {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--rule);
  border-radius: 4px;
  padding: .9rem 1.2rem 1rem;
}
.notice .folio { margin: 0 0 .35rem; }
.notice p:last-child { margin: 0; max-width: 62rem; color: var(--ink-2); }
.notice a { color: var(--rule); text-decoration: underline; text-underline-offset: 2px; }
