/* kopermail.com, one stylesheet, no build step.
   Palette: warm paper, ink, copper. Copper is the only colour, the rest is grey. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-sans-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-sans-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d8;
  --ink: #1b1714;
  --muted: #5d544c;
  --line: rgb(27 23 20 / 0.14);
  --line-strong: rgb(27 23 20 / 0.32);
  --copper: #c0652e;
  --copper-ink: #9a4718;       /* copper dark enough for small text on paper */
  --on-copper: #fffaf4;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Plex", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace;

  --text: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --h1: clamp(2.75rem, 1.4rem + 5.4vw, 6.25rem);
  --h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --section: clamp(5rem, 3.5rem + 6vw, 10rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --slow: 700ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161412;
    --paper-2: #1f1c19;
    --ink: #efe8de;
    --muted: #a99e92;
    --line: rgb(239 232 222 / 0.13);
    --line-strong: rgb(239 232 222 / 0.3);
    --copper: #e08550;
    --copper-ink: #ec9a68;
    --on-copper: #1b1410;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text)/1.65 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; color: var(--copper-ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--copper); color: var(--on-copper); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.kicker {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin: 0 0 1.5rem;
}
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 38ch; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--copper-ink); color: var(--on-copper);
  padding: 0.95rem 1.5rem;
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--copper-ink);
  transition: background var(--fast) ease, transform var(--fast) ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: baseline; }
.link-arrow::after { content: "\2192"; transition: transform var(--fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── top bar ── */
.top { border-bottom: 1px solid var(--line); }
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 500 1.35rem/1 var(--serif); letter-spacing: -0.01em; }
.brand:hover { color: inherit; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.nav__cta { border: 1px solid var(--line-strong); padding: 0.45rem 0.9rem; }
.nav__cta:hover { border-color: var(--copper-ink); text-decoration: none !important; }
/* about is the 6th item, too much for a tablet in portrait. It is in the footer anyway */
@media (max-width: 820px) { .nav__wide { display: none; } }
@media (max-width: 560px) {
  .nav a:not(.nav__cta):not([href="/guide"]) { display: none; }
}

/* ── home: hero ── */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 2rem + 5vw, 7rem) var(--gutter) var(--section);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero h1 { font-size: var(--h1); font-variation-settings: "opsz" 144; font-weight: 340; margin-bottom: 2rem; }
.hero h1 em { font-style: italic; color: var(--copper); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin: 2.25rem 0 1.5rem; }
.hero__meta { font-size: 0.85rem; color: var(--muted); }
.hero__shot {
  margin: 4.5rem calc(-1 * var(--gutter)) 0 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  position: relative;
  animation: rise var(--slow) var(--ease) both;
}
.hero__shot::before {
  /* the copper rule that sticks out of the screenshot, top left */
  content: ""; position: absolute; left: -1px; top: -1px; width: 38%; height: 3px; background: var(--copper);
}
@media (min-width: 1360px) {
  .hero__shot { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter) + 2rem); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__shot { margin: 1rem calc(-1 * var(--gutter)) 0; border-left: 0; border-right: 0; }
}

.strip { border-block: 1px solid var(--line); }
.strip ul {
  list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 1.1rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 0.4rem 0; justify-content: space-between;
  font: 400 clamp(1rem, 0.9rem + 0.5vw, 1.35rem)/1.3 var(--serif); font-style: italic; color: var(--muted);
}
.strip li + li::before { content: "/"; margin: 0 clamp(0.6rem, 1.5vw, 1.5rem); color: var(--line-strong); font-style: normal; }

/* ── sections ── */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--h2); font-variation-settings: "opsz" 96; font-weight: 360; }

.features, .privacy, .download, .honest {
  max-width: var(--wrap); margin: 0 auto; padding: var(--section) var(--gutter) 0;
}
.rows {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem);
}
.row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem;
  padding: 2rem 0 2.5rem; border-top: 1px solid var(--line);
  transition: border-color var(--fast) ease;
}
.row:hover { border-top-color: var(--copper); }
.row__n { font: 300 2.4rem/1 var(--serif); font-variation-settings: "opsz" 72; color: var(--copper); }
.row h3 { font-size: var(--h3); margin-bottom: 0.6rem; font-weight: 500; }
.row p { color: var(--muted); margin: 0; max-width: 44ch; }
/* every second row a bit lower, so the two columns do not read as a table */
.row:nth-child(even) { transform: translateY(2.5rem); }
/* odd number of rows: the last one gets the full width in stead of a hole on the right */
.row:last-child:nth-child(odd) { grid-column: 1 / -1; margin-top: 2.5rem; }
.row:last-child:nth-child(odd) p { max-width: 72ch; }
@media (max-width: 820px) {
  .row:last-child:nth-child(odd) { margin-top: 0; }
  .rows { grid-template-columns: 1fr; }
  .row:nth-child(even) { transform: none; }
}

.duo {
  max-width: var(--wrap); margin: 0 auto; padding: calc(var(--section) + 2rem) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.duo__shot { order: -1; margin: 0 0 0 calc(-1 * var(--gutter)); border: 1px solid var(--line-strong); border-left: 0; }
.duo__text h2 { font-size: var(--h2); font-weight: 360; margin-bottom: 1.5rem; }
.duo__text p { color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo__shot { order: 0; margin: 0 calc(-1 * var(--gutter)); border-right: 0; }
}

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.facts div { border-top: 1px solid var(--ink); padding: 1.1rem 0 2.25rem; }
.facts dt { font-weight: 600; margin-bottom: 0.4rem; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.download { padding-bottom: 1rem; }
.download__note { color: var(--muted); max-width: 52ch; margin-top: 1.25rem; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.dl__group h3 { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink); }
.dl__group ul { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.dl__group a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding var(--fast) var(--ease), color var(--fast) ease;
}
.dl__group a:hover { color: var(--copper-ink); padding-left: 0.4rem; }
.dl__group small { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.download__all { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; }
.download__sums { font-size: 0.85rem; color: var(--muted); }

.honest { padding-bottom: var(--section); }
.honest > * { max-width: 46rem; }
.honest h2 { font-size: var(--h3); font-weight: 500; margin-bottom: 1rem; }
.honest ul { color: var(--muted); padding-left: 1.1rem; margin: 0 0 1rem; }
.honest p { color: var(--muted); }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot__in {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem;
}
.foot__mark { display: flex; gap: 1rem; align-items: center; }
.foot__mark p { margin: 0; font: italic 400 1.2rem/1.3 var(--serif); max-width: 22ch; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 2.5rem; font-size: 0.95rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__small { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) { .foot__in { grid-template-columns: 1fr; } }

/* ── guide: index ── */
.guide-intro { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter) 3rem; }
.guide-intro h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); font-weight: 340; font-variation-settings: "opsz" 144; max-width: 14ch; margin-bottom: 1.75rem; }
.guide-intro .lede { max-width: 44ch; }
.about { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter) clamp(3rem, 2rem + 4vw, 6rem); }
.about__intro h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); font-weight: 340; font-variation-settings: "opsz" 144; max-width: 14ch; margin-bottom: 1.75rem; }
.about__intro .lede { max-width: 44ch; margin-bottom: 2.5rem; }
.about__body { max-width: 46rem; }
/* first heading sits right under the intro or next to it, no extra gap */
.about__body > h2:first-child { margin-top: 0; }
@media (min-width: 1000px) {
  .about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .about__intro { position: sticky; top: 7rem; }
  .about__intro h1 { font-size: clamp(2.5rem, 1rem + 3.4vw, 4.2rem); }
  .about__body > h2:first-child { border-top: 0; padding-top: 0.4rem; }
}
.chapters {
  list-style: none; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) var(--section);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem);
}
.chapters a {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.15rem 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.chapters a:hover { border-top-color: var(--copper); color: inherit; }
.chapters a:hover .chapters__t { color: var(--copper-ink); }
.chapters__n { grid-row: span 2; font: 300 1.6rem/1.1 var(--serif); color: var(--copper); }
.chapters__t { font: 400 1.45rem/1.2 var(--serif); letter-spacing: -0.01em; transition: color var(--fast) ease; }
.chapters__s { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }

/* ── guide: search ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search { position: relative; max-width: 34rem; }
.guide-intro .search { margin-top: 2.25rem; }
.doc__side .search { margin-bottom: 1.75rem; }
.search__input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 0; padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  transition: border-color var(--fast) ease;
}
.search__input::placeholder { color: var(--muted); }
.search__input:hover { border-color: var(--ink); }
.search__input:focus { outline: none; border-color: var(--copper); box-shadow: inset 0 -2px 0 var(--copper); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__key {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  font: 500 0.75rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-strong); padding: 0.2rem 0.4rem;
  pointer-events: none; transition: opacity var(--fast) ease;
}
/* the hint only while the box is empty and not in use */
.search:focus-within .search__key, .search__input:not(:placeholder-shown) ~ .search__key { opacity: 0; }
.search__panel {
  position: absolute; z-index: 30; top: calc(100% - 1px); left: 0; width: max(100%, 26rem); max-width: calc(100vw - 2 * var(--gutter));
  background: var(--paper); border: 1px solid var(--ink); max-height: min(70vh, 32rem); overflow-y: auto;
  animation: search-in var(--fast) ease-out;
}
@keyframes search-in { from { opacity: 0; transform: translateY(-4px); } }
.search__list { list-style: none; margin: 0; padding: 0; }
.search__item + .search__item { border-top: 1px solid var(--line); }
.search__item a { display: block; padding: 0.8rem 0.95rem; text-decoration: none; color: var(--ink); border-left: 2px solid transparent; }
.search__item[aria-selected="true"] a { background: var(--paper-2); border-left-color: var(--copper); }
.search__where, .results__where { display: block; font-size: 0.78rem; font-weight: 600; color: var(--copper-ink); margin-bottom: 0.25rem; letter-spacing: 0.01em; }
.search__text { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.search__none { margin: 0; padding: 0.9rem 0.95rem; font-size: 0.9rem; color: var(--muted); }
.search mark, .results mark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -0.35em 0 rgb(192 101 46 / 0.28); }
.results { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.results__count { color: var(--muted); max-width: 60ch; }
.results__list { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 46rem; }
.results__list li { border-top: 1px solid var(--line); }
.results__list a { display: block; padding: 1.25rem 0; text-decoration: none; color: var(--ink); }
.results__list a:hover .results__where { text-decoration: underline; }
.results__text { display: block; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .search__key { display: none; } }
@media (prefers-reduced-motion: reduce) { .search__panel { animation: none; } }

/* ── guide: chapter ── */
.doc {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
}
.doc__side { padding-top: 3rem; }
.doc__back { display: inline-block; font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; color: var(--muted); }
.doc__back::before { content: "\2190  "; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.toc a { display: flex; gap: 0.75rem; padding: 0.42rem 0; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
.toc__n { font-variant-numeric: tabular-nums; color: var(--copper-ink); width: 1.4rem; flex: none; }
.toc--wide { position: sticky; top: 1.5rem; }
.toc--narrow { display: none; }
.toc--narrow summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; }
.toc--narrow summary::after { content: "+"; font: 400 1.4rem/1 var(--serif); color: var(--copper); }
.toc--narrow[open] summary::after { content: "\2212"; }
.toc--narrow summary::-webkit-details-marker { display: none; }

.doc__body { padding: 3rem 0 var(--section); min-width: 0; max-width: 46rem; }
.doc__head h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.25rem); font-weight: 340; font-variation-settings: "opsz" 144; margin-bottom: 1.25rem; }
.doc__head .lede { margin-bottom: 2.5rem; }
.onpage { border-block: 1px solid var(--line); padding: 1.1rem 0 1.25rem; margin-bottom: 1rem; }
.onpage p { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.onpage ul { list-style: none; margin: 0; padding: 0; columns: 2 14rem; column-gap: 2rem; font-size: 0.95rem; }
.onpage li { break-inside: avoid; padding: 0.15rem 0; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc__side { padding-top: 1.5rem; border-bottom: 1px solid var(--line); }
  .doc__back { margin-bottom: 0.25rem; }
  .toc--wide { display: none; }
  .toc--narrow { display: block; }
  .toc--narrow ol { padding-bottom: 1rem; }
  .doc__body { padding-top: 2.25rem; }
}

/* the markdown */
.prose { font-size: 1.0625rem; }
.prose h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 400;
  margin: 4rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.prose h3 { font: 600 1.1rem/1.3 var(--sans); letter-spacing: 0; margin: 2.25rem 0 0.75rem; scroll-margin-top: 1.5rem; }
.prose p, .prose li { max-width: 64ch; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--copper-ink); }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05em;
  font: 500 1.25rem/1.4 var(--serif); color: var(--copper);
}
.prose strong { font-weight: 600; }
.prose code, .prose kbd { font: 0.88em/1 var(--mono); }
.prose code { background: var(--paper-2); padding: 0.15em 0.35em; border: 1px solid var(--line); }
.prose pre { background: var(--paper-2); border: 1px solid var(--line); padding: 1rem 1.25rem; overflow-x: auto; margin: 0 0 1.5rem; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; line-height: 1.6; }
.prose blockquote {
  margin: 1.75rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--copper); background: var(--paper-2);
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.6rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--ink); }
.shot { margin: 1.75rem 0 2.25rem; }
.shot picture { display: block; border: 1px solid var(--line-strong); background: var(--paper-2); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; padding-left: 0.9rem; border-left: 1px solid var(--copper); }
@media (min-width: 1200px) {
  /* screenshots may run wider than the text column */
  .shot { margin-right: -6rem; }
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4.5rem; border-top: 1px solid var(--ink); }
.pager a { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.25rem 0; text-decoration: none; font: 400 1.3rem/1.25 var(--serif); }
.pager small { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager__next { text-align: right; align-items: flex-end; }
.pager a:hover { color: var(--copper-ink); }

/* ── errors ── */
.oops { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 3rem + 6vw, 9rem) var(--gutter) var(--section); }
.oops__code { font: 300 clamp(5rem, 3rem + 10vw, 11rem)/0.9 var(--serif); color: var(--copper); margin-bottom: 1.5rem; }
.oops h1 { font-size: var(--h2); font-weight: 360; margin-bottom: 1.25rem; }
.oops__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem; }

/* ── motion ── */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.hero__text > * { animation: fade var(--slow) var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: 60ms; }
.hero__text > :nth-child(3) { animation-delay: 120ms; }
.hero__text > :nth-child(n+4) { animation-delay: 180ms; }
/* only transform, an opacity start of 0 would hold back the largest paint */
/* screenshots open bigger on a click, pure :target so no script needed */
.zoom-open { display: block; cursor: zoom-in; }
.zoom-open img { transition: filter var(--fast, 150ms) ease; }
.zoom-open:hover img { filter: brightness(1.04); }
.zoom-open:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 4px; }
[id^="shot-"] { scroll-margin-top: 6rem; }
.zoom { display: none; }
.zoom:target {
  display: block; position: fixed; inset: 0; z-index: 100;
  background: rgb(14 12 10 / 0.92);
  animation: zoom-show 160ms ease-out both;
}
.zoom__close {
  display: grid; place-items: center; width: 100%; height: 100%;
  padding: clamp(0.75rem, 3vw, 3rem); cursor: zoom-out; text-decoration: none;
}
.zoom__close img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 6rem);
  border: 1px solid rgb(244 239 230 / 0.25); background: var(--paper-2);
}
.zoom__x {
  position: fixed; top: 1rem; right: 1rem; color: #f4efe6; font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgb(244 239 230 / 0.45); padding: 0.4rem 0.85rem;
}
.zoom__close:hover .zoom__x, .zoom__close:focus-visible .zoom__x { border-color: #f4efe6; }
@keyframes zoom-show { from { opacity: 0; transform: scale(0.985); } }

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

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

@media print {
  .top, .foot, .doc__side, .pager, .onpage { display: none; }
  .doc { display: block; }
  body { background: #fff; color: #000; }
}
