/* rankcairn.com. One stylesheet for every page, no build step.

   The app's own colours: its light theme's cool neutrals for the page, its dark
   theme for the product shots and the closing band, and its purple, the same
   value the app uses on a light surface, spent sparingly on the mark, the main
   buttons, links and small marks. Solid colour only: no gradients and no glow.
   No dashes in any copy, the same rule as the app. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/schibsted-grotesk-latin.woff2') format('woff2'); }
/* the wordmark only, so the logo is the app's logo letter for letter */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2'); }

:root {
  /* the app's light theme: --ink, --raised2, --body and --mute in index.css */
  --paper: #F5F6F8;
  --paper-deep: #EEF0F5;
  --card: #FFFFFF;
  --ink: #14161D;
  --ink-2: #393D49;
  --mute: #5F6577;          /* 5.4:1 on paper */
  --line: #E0E3EA;
  --line-soft: #E8EAF0;
  /* the app's light-theme accent; white on it is 6.1:1 */
  --accent: #6544E0;        /* 5.6:1 on paper */
  --accent-deep: #5134C4;
  --accent-wash: #EDE9FC;
  --accent-light: #B4A8FF;  /* on the dark band, 8.9:1 */
  /* the app's dark theme: --ink, --line, --body and --mute */
  --night: #101117;
  --night-line: #24262E;
  --night-text: #C9CCD6;
  --night-mute: #8A90A0;

  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --text: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(104px, 12vw, 176px);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* the grain is a tile on the page itself rather than a fixed layer over it:
   nothing to composite on scroll, and nothing between a reader and a click */
body {
  margin: 0; background: var(--paper) url('img/grain.png'); color: var(--ink-2);
  font: 400 17px/1.6 var(--text); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
main { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type */
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }
.display, h1, h2 { font-family: var(--display); font-optical-sizing: auto; }
h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; letter-spacing: -.028em; }
h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -.024em; }
h1 em, h2 em { font-style: italic; font-weight: 300; letter-spacing: -.02em; }
h3 { font: 600 18px/1.35 var(--text); letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--mute); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 14px/1 var(--text); color: var(--accent); letter-spacing: 0;
}
/* a single stone, the mark's smallest unit */
.kicker::before { content: ''; width: 13px; height: 7px; border-radius: 50%; background: currentColor; }
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--text); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2A2E3A; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.arrow { display: inline-block; transition: transform .18s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; height: 48px;
  font: 500 15.5px/1 var(--text); color: var(--ink); text-decoration: none;
}
.text-link:hover { color: var(--accent); }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent;
  transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  font: 600 21px/1 'Space Grotesk', var(--text); letter-spacing: -.015em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-end > a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-end > a:not(.btn):hover { color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-end { gap: 14px; } .nav .btn-sm { padding: 0 12px; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(64px, 9vw, 128px) 0 0; position: relative; }
.hero .contours { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1;
  background: url('img/contours.svg') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%); }
.hero h1 { margin-top: 24px; }
.hero .lead { margin-top: 26px; max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Above 1100px the copy takes a fixed column and the screenshot runs past the
   right edge of the page. The image keeps its own width rather than the
   column's, so a wider window shows more of the product, never a smaller one. */
/* `clip` and not `hidden`: it trims the screenshot at the window's edge without
   making the hero a scroll box, so the note card below it still shows */
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-art { position: relative; margin: 0; }
.hero-art .shot { border-radius: var(--radius); }
.hero-note {
  position: absolute; z-index: 2; left: -28px; bottom: -34px; width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 17px;
  box-shadow: 0 1px 2px rgb(20 22 29 / .05), 0 18px 40px -24px rgb(20 22 29 / .35);
  font-size: 14.5px; line-height: 1.5; color: var(--mute);
}
.hero-note b { color: var(--ink); font-weight: 600; }
.hero-note .marks { display: flex; gap: 5px; margin-bottom: 10px; }
.hero-note .marks span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 600 11px/1 var(--text); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (min-width: 1100px) {
  .hero { padding-top: clamp(48px, 6vh, 80px); }
  .hero-grid { grid-template-columns: 470px minmax(0, 1fr); gap: 64px; align-items: center;
    min-height: min(680px, calc(100vh - 72px - 96px)); }
  .hero h1 { font-size: clamp(54px, 4.6vw, 70px); }
  .hero-art .shot { width: 980px; max-width: none; border-top-right-radius: 0; border-bottom-right-radius: 0; }
}
@media (max-width: 1099px) {
  .hero { padding-top: 40px; }
  .hero-grid { gap: 40px; }
  /* the left of the dashboard, large enough to read, rather than all of it too small to */
  .hero-art .shot { aspect-ratio: 1.12; }
  .hero-art .shot img { width: 168%; max-width: none; }
  .hero-note { position: relative; left: auto; bottom: auto; width: auto; margin: -28px 16px 0; }
}

/* ------------------------------------------------------------------ figures */
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #0F1014;
  box-shadow: 0 0 0 1px rgb(22 24 28 / .12), 0 1px 2px rgb(22 24 28 / .05), 0 28px 56px -30px rgb(20 22 29 / .32);
}
.shot.light { background: #fff; }
.shot img { width: 100%; }
.figure { position: relative; }
/* numbered pins over a screenshot, explained in the captions beneath */
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 650 13px/1 var(--text);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px rgb(22 24 28 / .5), 0 0 0 6px rgb(245 246 248 / .22);
}
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; margin-top: 30px; }
.cap { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--mute); }
.cap b { color: var(--ink); font-weight: 600; }
.cap .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 650 13px/1 var(--text); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 860px) {
  .caps { grid-template-columns: 1fr; gap: 16px; }
  .pin { width: 22px; height: 22px; font-size: 11px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.spread { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; }
.spread .kicker { grid-column: 1 / -1; margin-bottom: -6px; }
.spread .lead { justify-self: start; }
.spread + .figure, .spread + .shot { margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; gap: 22px; } }

.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; max-width: 58ch; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; }
.points li::before { content: ''; width: 11px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; }
.points b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ the loop */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.step { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 14px 26px;
  display: flex; flex-direction: column; }
/* one shape for all three, taken from the task drawer's own proportions */
.step .crop { border-radius: 10px; overflow: hidden; aspect-ratio: 660 / 562; background: #0F1014;
  box-shadow: 0 0 0 1px rgb(22 24 28 / .1); }
.step .crop.light { background: #fff; }
.step .crop img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step .crop.fit img { object-fit: contain; object-position: center top; }
.step .num { margin: 24px 12px 0; font: italic 300 30px/1 var(--display); color: var(--accent); }
.step h3 { margin: 12px 12px 0; }
.step p { margin: 10px 12px 0; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
@media (max-width: 960px) { .loop { grid-template-columns: 1fr; max-width: 560px; } }

/* ------------------------------------------------------------------ compositions */
.layered { position: relative; }
.layered .inset { position: absolute; right: 3%; bottom: -12%; width: 46%; }
.portal-pair { position: relative; padding-right: 12%; }
.portal-pair .phone {
  position: absolute; right: 0; bottom: -8%; width: 23%; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(22 24 28 / .14), 0 0 0 7px #1C1E22, 0 0 0 8px rgb(22 24 28 / .4), 0 30px 60px -28px rgb(20 22 29 / .38);
}
@media (max-width: 760px) {
  .layered .inset { position: static; width: 100%; margin-top: 16px; }
  .portal-pair { padding-right: 0; }
  .portal-pair .phone { position: relative; right: auto; bottom: auto; width: 58%; margin: 28px auto 0; }
}

.report { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px; align-items: center;
  margin-top: clamp(96px, 10vw, 150px); }
.pages { position: relative; height: clamp(420px, 46vw, 620px); }
.page { position: absolute; width: 62%; background: #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(22 24 28 / .1), 0 24px 50px -26px rgb(20 22 29 / .34); }
.page.p3 { left: 0; top: 8%; transform: rotate(-2.4deg); }
.page.p1 { right: 2%; top: 0; transform: rotate(1.6deg); }
/* the rankings row borrows the report's grid with a narrower text column */
.report.ranks { margin-top: clamp(48px, 6vw, 80px); align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 900px) {
  .report, .report.ranks { grid-template-columns: 1fr; }
  .pages { height: clamp(380px, 110vw, 560px); }
}

/* ------------------------------------------------------------------ the rest of it */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line); }
.more > div { padding: 30px 32px 34px 0; border-bottom: 1px solid var(--line); }
.more > div:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.more h3 { font-size: 17px; }
.more p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
@media (max-width: 900px) {
  .more { grid-template-columns: 1fr 1fr; }
  .more > div, .more > div:not(:nth-child(3n + 1)) { padding: 26px 22px 28px 0; border-left: 0; }
  .more > div:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .more { grid-template-columns: 1fr; }
  .more > div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

.gbp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 80px; align-items: center; }
@media (max-width: 900px) { .gbp { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: clamp(48px, 6vw, 72px); }
.trust > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.trust p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; gap: 30px; } }

.next { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 24px 40px;
  padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: baseline; }
.next .label { font: italic 300 26px/1.1 var(--display); color: var(--ink); }
.next h3 { font-size: 16px; }
.next p { margin-top: 6px; font-size: 14.5px; color: var(--mute); line-height: 1.5; }
@media (max-width: 900px) { .next { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ the note */
.note { max-width: 700px; margin: 0 auto; }
.note .kicker { margin-bottom: 28px; }
.note p { font: 400 clamp(20px, 2vw, 23px)/1.55 var(--display); color: var(--ink); letter-spacing: -.005em; }
.note p + p { margin-top: 22px; }
.sign { margin-top: 34px; display: flex; align-items: baseline; gap: 14px; }
.sign .name { font: italic 400 32px/1 var(--display); color: var(--ink); }
.sign .role { font-size: 14.5px; color: var(--mute); }

/* ------------------------------------------------------------------ access, on night */
.night { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.night::before { content: ''; position: absolute; inset: 0; background: url('img/contours.svg') center / cover no-repeat;
  filter: invert(1); opacity: .5; pointer-events: none; }
.night > * { position: relative; }
.night h2, .night h3 { color: #F5F6F8; }
/* top and bottom only: `.wrap` owns the sides */
.access { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 88px;
  padding-top: var(--section); padding-bottom: var(--section); align-items: start; }
.access .lead { color: var(--night-text); margin-top: 26px; }
.access .kicker { color: var(--accent-light); margin-bottom: 26px; }
.access .aside { margin-top: 34px; font-size: 15px; color: var(--night-mute); line-height: 1.6; }
.access .aside a { color: #F5F6F8; }
@media (max-width: 900px) { .access { grid-template-columns: 1fr; } }

.form { background: var(--paper); color: var(--ink-2); border-radius: 18px; padding: clamp(24px, 3vw, 36px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field:first-child, .row .field { margin-top: 0; }
.row + .field, .row + .row, .field + .row { margin-top: 18px; }
.field label, .field legend { font: 500 14px/1.3 var(--text); color: var(--ink); padding: 0; }
.field .opt { color: var(--mute); font-weight: 400; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 400 16px/1.2 var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #8B91A0; }
.input:hover { border-color: #C3C8D4; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(101 68 224 / .18); }
fieldset.field { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; font-size: 14.5px; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.choice input:hover + span { border-color: #C3C8D4; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-deep); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-end .small { max-width: 34ch; }
.form-msg { margin-top: 16px; font-size: 15px; line-height: 1.5; }
.form-msg.err { color: #C4453A; }
.done { padding: 12px 4px; }
.done h3 { font: 400 32px/1.1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.done p { margin-top: 14px; color: var(--ink-2); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--night-line); padding: 56px 0 64px; font-size: 14.5px; color: var(--night-mute); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 36px 48px; align-items: start; }
.foot .brand { color: #F5F6F8; }
.foot .tag { margin-top: 14px; max-width: 34ch; line-height: 1.55; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; }
.foot nav a { text-decoration: none; color: var(--night-text); }
.foot nav a:hover { color: #fff; }
.foot .legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ legal pages */
.doc { padding: clamp(56px, 7vw, 96px) 0 var(--section); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; justify-content: center; }
.doc h1 { font-size: clamp(42px, 5vw, 64px); }
.doc .meta { margin-top: 18px; color: var(--mute); font-size: 15px; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; }
.toc li::before { content: counter(t); color: var(--mute); font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.prose { counter-reset: s; }
.prose .short { margin: 40px 0 8px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; }
.prose .short h2 { font-size: 26px; counter-increment: none; }
.prose .short h2::before { content: none; }
.prose .short ul { margin: 14px 0 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 64px; counter-increment: s; scroll-margin-top: 96px; }
.prose h2::before { content: counter(s) '.'; display: inline-block; min-width: 1.6em; color: var(--mute); font-style: italic; font-weight: 300; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; }
.prose p { margin-top: 16px; }
.prose ul { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.prose .quote { margin-top: 18px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--card); color: var(--ink); }
.todo { background: #FFE9A8; color: #5A4300; padding: 0 4px; border-radius: 3px; }
@media (max-width: 960px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* ------------------------------------------------------------------ 404 */
.lost { min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 64px 0; position: relative; }
.lost .contours { position: absolute; inset: 0; z-index: -1; background: url('img/contours.svg') center / cover no-repeat; opacity: .9; }
.lost p { margin: 20px auto 0; max-width: 40ch; }
.lost .btn { margin-top: 34px; }

/* ------------------------------------------------------------------ motion */
/* revealed only when the script is running, so nothing is ever hidden from a reader without it */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .arrow, .btn, .input { transition: none; }
}
