/* Headroom. System type on purpose: every visitor is on a Mac, and the page should read like part of it.
   White and cool grey, ink text, one blue. Green and red appear only where the app itself uses them. */
:root {
  --ink: #131a26;
  --ink-2: #4b5565;
  --ink-3: #6b7585;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --line: #dde2ea;
  --blue: #0a66ff;
  --blue-press: #0852cc;
  --desk: #dfe5ec;
  /* The app's own colours, as macOS draws them in light mode. */
  --mac-window: #ececec;
  --mac-rule: #d5d5d5;
  --mac-track: #cccccc;
  --mac-text: rgba(0, 0, 0, 0.85);
  --mac-text-2: rgba(0, 0, 0, 0.5);
  --mac-blue: #007aff;
  --mac-red: #ff3b30;
  --mac-green: #28cd41;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-press); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.9em; background: var(--mist); padding: 0.12em 0.36em; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-weight: 650; font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 20; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Top bar */
.top {
  max-width: var(--wide); margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mark { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.015em; font-size: 1.0625rem; }
.mark:hover { color: var(--ink); }
.top__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.75rem); font-size: 0.9375rem; }
.top__link { color: var(--ink-2); text-decoration: none; }
.top__link:hover, .top__link[aria-current] { color: var(--ink); }
.top__link:hover { text-decoration: underline; }
@media (max-width: 760px) { .top__link:not(.top__link--keep) { display: none; } }

/* The one button */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; padding: 0.85rem 1.4rem; border-radius: 10px;
}
.btn:hover { background: var(--blue-press); color: #fff; }
.btn--small { padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.9375rem; }

/* Hero: the words, then a slice of a Mac desktop */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero h1 { max-width: 18ch; }
.lede { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 38rem; margin-top: 1.5rem; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 2rem; }
.get-row__free { font-size: 1.0625rem; line-height: 1.4; max-width: 24rem; }
.get-row__free b { font-weight: 650; display: block; }
.get-row__free span { color: var(--ink-2); }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); margin-top: 1.1rem; max-width: 44rem; }

.scene-wrap { max-width: calc(var(--wide) + 4rem); margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; padding: 0 var(--gutter); }
.scene {
  position: relative; height: 690px; overflow: hidden; border-radius: 14px;
  background: var(--desk); border: 1px solid #cdd4dd;
  font-family: var(--sans); color: var(--mac-text);
}
.scene__wall { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.scene__live { display: none; }
.scene.is-live + .scene__note .scene__live { display: inline; }
.scene__note { font-size: 0.875rem; color: var(--ink-3); margin-top: 0.8rem; max-width: 46rem; }

/* The menu bar */
.mbar {
  position: absolute; top: 0; left: 0; right: 0; height: 28px; padding: 0 14px 0 18px;
  display: flex; align-items: center; background: rgba(250, 251, 253, 0.82);
  font-size: 13px; line-height: 1; color: #1c1c1e; white-space: nowrap; z-index: 2;
}
.mbar__menus { display: flex; gap: 20px; }
.mbar__menus b { font-weight: 700; }
.mbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mbar__it { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 5px; }
.mbar__it svg { display: block; }
.mbar__it--on { background: rgba(0, 0, 0, 0.12); font-variant-numeric: tabular-nums; margin-right: 96px; }
.mbar__clock { font-variant-numeric: tabular-nums; }

/* A light Terminal window. Its buttons are grey because Headroom's panel has the focus. */
.win {
  position: absolute; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.28), 0 18px 44px rgba(20, 30, 50, 0.2), 0 3px 9px rgba(20, 30, 50, 0.1);
}
.win__bar { height: 28px; background: #f1f1f1; border-bottom: 1px solid #dcdcdc; display: flex; align-items: center; justify-content: center; position: relative; font-size: 13px; font-weight: 700; color: #b0b0b0; }
.win__lights { position: absolute; left: 10px; top: 8px; display: flex; gap: 8px; }
.win__lights i { width: 12px; height: 12px; border-radius: 50%; background: #d6d6d6; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.term { left: 48px; top: 96px; width: 560px; }
.term__body { margin: 0; padding: 10px 14px 14px; font: 12px/1.5 var(--mono); color: #24292f; white-space: pre-wrap; background: #fff; border-radius: 0; overflow: hidden; }
.term__body .dim { color: #7a828e; }
.term__body .ok { color: #1f9d3a; }
.term__body .stop { color: #d92d20; }
.term__body .in { display: block; border-top: 1px solid #c9ced6; border-bottom: 1px solid #c9ced6; padding: 3px 0; margin-top: 8px; }
.term__cur { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #7a828e; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Headroom's panel, redrawn to the app's own measurements (Views.swift): 384 pt wide. */
.hr-panel {
  width: 384px; background: var(--mac-window); border-radius: 10px; color: var(--mac-text);
  font: 12px/1.25 var(--sans); text-align: left; position: relative; -webkit-font-smoothing: antialiased;
}
.scene .hr-panel {
  position: absolute; top: 32px; right: 74px; z-index: 3;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(20, 30, 50, 0.24), 0 2px 8px rgba(20, 30, 50, 0.12);
}
.hr-panel button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; text-align: left; }
.hr-summary { padding: 10px 14px; font-size: 12px; line-height: 15px; border-bottom: 1px solid var(--mac-rule); white-space: pre-wrap; margin: 0; }
.hr-row { padding: 10px 14px; border-bottom: 1px solid var(--mac-rule); }
.hr-head { display: block; width: 100%; border-radius: 4px; }
.hr-top { display: flex; align-items: center; gap: 7px; height: 16px; }
.hr-dot { width: 9px; height: 9px; margin: 0 0.5px; border-radius: 50%; flex: none; background: var(--mac-green); }
.hr-dot--out { background: var(--mac-red); }
.hr-dot--part { background: linear-gradient(90deg, var(--mac-red) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--mac-red); }
.hr-email { font-size: 13px; font-weight: 600; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-status { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 1px; }
.is-red { color: var(--mac-red); }
.hr-chev { flex: none; margin-left: 2px; color: var(--mac-text-2); transition: transform 0.15s ease; }
.hr-row.is-open .hr-chev { transform: rotate(90deg); }
.hr-meters { display: flex; gap: 14px; padding-left: 17px; margin-top: 7px; height: 14px; }
.hr-m { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.hr-m__l { color: var(--mac-text-2); white-space: nowrap; }
.hr-m__p { font-weight: 500; font-variant-numeric: tabular-nums; }
.hr-bar { flex: 1 1 auto; min-width: 0; height: 5px; border-radius: 3px; background: var(--mac-track); overflow: hidden; display: block; }
.hr-bar i { display: block; height: 100%; min-width: 5px; border-radius: 3px; background: var(--mac-blue); }
.hr-bar.is-red i { background: var(--mac-red); }
.hr-detail { padding-left: 17px; margin-top: 7px; }
.hr-d + .hr-d { margin-top: 6px; }
.hr-d__row { display: flex; align-items: center; gap: 8px; height: 15px; }
.hr-d__t { width: 80px; flex: none; white-space: nowrap; }
.hr-d__p { width: 72px; flex: none; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.hr-d__r { margin-top: 3px; padding-left: 88px; font-size: 11px; line-height: 14px; color: var(--mac-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-line { margin-top: 7px; font-size: 11px; line-height: 14px; color: var(--mac-text-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.hr-panel .hr-link { display: inline-block; margin-top: 6px; font-size: 11px; line-height: 14px; color: var(--mac-blue); border-radius: 3px; }
.hr-off { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-bottom: 1px solid var(--mac-rule); color: var(--mac-text-2); font-size: 11px; }
.hr-off svg { flex: none; }
.hr-off__email { font-size: 12px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-panel .hr-off .hr-link { margin-top: 0; }
.hr-foot { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 11px; line-height: 16px; color: var(--mac-text-2); }
.hr-foot__text { margin-right: auto; }
.hr-foot button { display: flex; color: var(--mac-text-2); border-radius: 4px; }
.hr-refresh.is-busy svg { animation: turn 0.9s linear; }
@keyframes turn { to { transform: rotate(360deg); } }
/* The "…" menu, as a macOS menu. */
.hr-menu {
  position: absolute; right: 6px; top: calc(100% - 6px); z-index: 5; min-width: 252px; padding: 5px;
  background: #f4f4f4; border-radius: 7px; font-size: 13px; line-height: 16px; color: var(--mac-text);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.22);
}
.hr-menu[hidden] { display: none; }
.hr-menu a, .hr-menu button, .hr-menu span { display: block; width: 100%; padding: 3px 10px 3px 24px; border-radius: 4px; color: inherit; text-decoration: none; position: relative; }
.hr-panel .hr-menu button { padding: 3px 10px 3px 24px; }
.hr-menu a:hover, .hr-menu button:hover, .hr-menu a:focus, .hr-menu button:focus { background: var(--mac-blue); color: #fff; outline: none; }
.hr-menu span { color: rgba(0, 0, 0, 0.28); }
.hr-menu hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); margin: 5px 10px; }
.hr-menu [aria-checked="true"]::before { content: ""; position: absolute; left: 9px; top: 6px; width: 4px; height: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(40deg); }
.is-live .hr-head, .is-live .hr-link, .is-live .hr-foot button { cursor: pointer; }

@media (max-width: 1080px) {
  .term { left: 20px; width: 500px; }
  .scene .hr-panel { right: 24px; }
  .mbar__it--on { margin-right: 46px; }
}
@media (max-width: 1000px) { .mbar__menus span:nth-child(n+4) { display: none; } }
/* Narrow: the panel hangs from the menu bar, and the Terminal window sits below it. */
@media (max-width: 880px) {
  .scene-wrap { padding: 0; }
  .scene { height: auto; border-radius: 0; border-left: 0; border-right: 0; padding: 32px 0 118px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .scene .hr-panel, .term { position: relative; top: auto; left: auto; right: auto; }
  .scene .hr-panel { order: -1; }
  .term { width: min(600px, calc(100% - 24px)); }
  .mbar__menus { display: none; }
  .mbar__right { margin: 0 auto; }
  .mbar__it--on { margin-right: 0; }
  .scene__note { padding: 0 var(--gutter); }
}
@media (max-width: 480px) { .mbar__it--extra { display: none; } .term__body { font-size: 11px; padding: 8px 10px 12px; } }
@media (max-width: 420px) { .scene .hr-panel, .frag .hr-panel { zoom: 0.9; } }
@media (max-width: 385px) { .scene .hr-panel, .frag .hr-panel { zoom: 0.86; } }
@media (max-width: 350px) { .scene .hr-panel, .frag .hr-panel { zoom: 0.76; } }

/* Sections */
.sec { padding-top: clamp(4rem, 9vw, 7rem); }
.sec__head { max-width: 44rem; }
.sec__head p { margin-top: 1rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.prose p { max-width: var(--measure); }
.prose p + p { margin-top: 0.9rem; }

/* A day with four accounts: real moments, each with the panel as it stood */
.day { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; border-top: 1px solid var(--line); }
.day li { display: grid; grid-template-columns: 10.5rem 384px minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.day__time { font: 650 1.75rem/1.1 var(--display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day__bar { white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; margin-top: 0.55rem; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day__bar svg { flex: none; color: var(--ink); }
.day__bar b { color: var(--ink); font-weight: 600; }
.frag .hr-panel { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.13); }
.frag .hr-row:last-child { border-bottom: 0; }
.frag .hr-head { cursor: default; }
.day__say h3 { margin-bottom: 0.4rem; }
.day__say p { color: var(--ink-2); max-width: 30rem; }
.day__after { margin-top: 1.75rem; color: var(--ink-2); max-width: 44rem; }
.day__after b { color: var(--ink); font-weight: 650; }
@media (max-width: 1020px) {
  .day li { grid-template-columns: 8rem minmax(0, 1fr); }
  .day__say { grid-column: 2; margin-top: 1.1rem; }
}
@media (max-width: 640px) {
  .day li { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 0; }
  .day__when { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 0.9rem; }
  .day__bar { margin-top: 0; }
  .day__say { grid-column: 1; }
}

/* Free for everyone */
.free { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.free h2 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; }
.free__body p { font-size: 1.1875rem; line-height: 1.55; max-width: var(--measure); }
.free__body .nos + p { margin-top: 1.5rem; color: var(--ink-2); font-size: 1.0625rem; }
.free__body p + p { margin-top: 1rem; color: var(--ink-2); font-size: 1.0625rem; }
.nos { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.nos li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; }
.nos b { font-weight: 650; }
.nos span { color: var(--ink-2); }
@media (max-width: 820px) { .free { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .nos li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Add an account: three steps, each with the window as the app draws it */
.add { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.add > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.add__say { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); }
.add__say::before { content: counter(step); font: 650 1.75rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.add__say > * { grid-column: 2; }
.add__say h3 { font-size: 1.25rem; margin-top: 0.15rem; }
.add__say p { color: var(--ink-2); margin-top: 0.5rem; max-width: 30rem; }
.cmd { display: flex; align-items: stretch; gap: 0.5rem; margin-top: 0.9rem; max-width: 30rem; }
.cmd code { flex: 1 1 auto; min-width: 0; display: block; padding: 0.6rem 0.8rem; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; font-size: 0.875rem; line-height: 1.5; overflow-x: auto; white-space: nowrap; }
.cmd button { flex: none; font: 500 0.875rem/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #c9d0da; border-radius: 8px; padding: 0 0.85rem; cursor: pointer; }
.cmd button:hover { border-color: var(--ink-3); }
.cmd button[hidden] { display: none; }
@media (max-width: 960px) { .add > li { grid-template-columns: 1fr; } }

/* Pictures of the Add an Account window, drawn by the app itself. */
.shot { width: 440px; border-radius: 10px; filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.5)) drop-shadow(0 10px 22px rgba(20, 30, 50, 0.13)); }
@media (max-width: 960px) { .shot { margin-left: 2.4rem; width: min(440px, calc(100% - 2.4rem)); } }
@media (max-width: 520px) { .shot { margin-left: 0; width: 100%; } }

.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.also h3 { margin-bottom: 0.4rem; }
.also p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) { .also { grid-template-columns: 1fr; max-width: var(--measure); } }

/* What it reads and what it sends: a plain two-column record */
.record { margin: clamp(2rem, 4vw, 3rem) 0 0; border-top: 1px solid var(--line); }
.record div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.3rem clamp(1.5rem, 5vw, 4rem); padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.record dt { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; }
.record dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 720px) { .record div { grid-template-columns: 1fr; } }
.after { margin-top: 1.5rem; }

/* Questions */
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 820px) { .qa { grid-template-columns: 1fr; } }

/* Lists of posts: type, not cards */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.posts a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; display: inline-block; }
.posts a:hover { color: var(--blue-press); text-decoration: underline; }
.posts p { color: var(--ink-2); margin-top: 0.3rem; max-width: 40rem; font-size: 1rem; line-height: 1.55; }
.posts__meta { display: block; font-size: 0.875rem; color: var(--ink-3); margin-top: 0.35rem; }
.posts--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); margin-top: clamp(1.75rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .posts--two { grid-template-columns: 1fr; } }
.more { margin-top: 1.5rem; font-weight: 600; }

/* The last word */
.last { margin-top: clamp(4rem, 9vw, 7rem); background: var(--mist); }
.last__in { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.last__in > img { width: clamp(64px, 9vw, 96px); }
.last p.last__how { margin-top: 0.9rem; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 560px) { .last__in { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); }
.last + .foot { border-top: 0; }
.foot__in { max-width: var(--wide); margin: 0 auto; padding: 1.75rem var(--gutter) 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 2rem; font-size: 0.9375rem; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.foot nav a { color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot p { width: 100%; font-size: 0.875rem; color: var(--ink-3); max-width: 52rem; }

/* Plain document pages */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) 5rem; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.doc h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin: 2.5rem 0 0.7rem; }
.doc p { margin-top: 0.9rem; max-width: 40rem; }
.doc ul { padding-left: 1.2rem; max-width: 40rem; }
.doc li { margin: 0 0 0.6rem; }
.doc .btn { margin-top: 1rem; }

/* Blog */
.crumb { font-size: 0.9375rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.crumb li + li::before { content: "\203A"; margin-right: 0.5rem; color: #9aa3b1; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.blog-head { padding-top: clamp(2rem, 6vw, 4rem); }
.blog-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 16ch; }
.blog-head .lede { max-width: 40rem; }
.cats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; font-size: 1rem; }
.cats a { color: var(--ink); text-decoration-color: #b4bcc8; }
.cats a:hover { color: var(--blue-press); text-decoration-color: currentColor; }
.cats span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0.5rem clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.cat__name { position: sticky; top: 1.25rem; align-self: start; }
.cat__name h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.cat__name p { color: var(--ink-3); font-size: 0.9375rem; margin-top: 0.35rem; }
.cat .posts li:first-child { padding-top: 0.1rem; }
@media (max-width: 820px) { .cat { grid-template-columns: 1fr; } .cat__name { position: static; margin-bottom: 0.75rem; } }

.post-head { max-width: 62rem; margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) var(--gutter) 0; }
.post-head h1 { font-size: clamp(2.125rem, 5vw, 3.375rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 22ch; margin-top: 1.25rem; }
.nb { white-space: nowrap; }
.post-head__sum { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 40rem; margin-top: 1.1rem; }
.post-head__meta { font-size: 0.9375rem; color: var(--ink-3); margin-top: 1.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.post-grid { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 41rem) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
.post-toc { order: 2; padding-top: 2.5rem; font-size: 0.9375rem; }
.post-toc__in { position: sticky; top: 1.5rem; }
.post-toc h2 { font: 650 0.9375rem/1.4 var(--sans); letter-spacing: 0; color: var(--ink); margin-bottom: 0.6rem; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.post-toc li { padding: 0.28rem 0 0.28rem 0.9rem; line-height: 1.4; }
.post-toc a { color: var(--ink-2); text-decoration: none; }
.post-toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .post-grid { grid-template-columns: minmax(0, 41rem); } .post-toc { display: none; } }

.article { font-size: 1.125rem; line-height: 1.7; padding-top: 2.25rem; min-width: 0; }
.article > :first-child { margin-top: 0; }
.article p, .article ul, .article ol, .article pre, .article blockquote, .article .table-scroll { margin: 1.25rem 0 0; }
.article h2 { font-size: clamp(1.5rem, 3vw, 1.8125rem); line-height: 1.2; letter-spacing: -0.022em; margin: 3rem 0 0; scroll-margin-top: 1.5rem; }
.article h3 { font-size: 1.25rem; line-height: 1.3; margin: 2.1rem 0 0; scroll-margin-top: 1.5rem; }
.article h4 { font-size: 1.0625rem; margin: 1.75rem 0 0; }
.article h2 + p, .article h3 + p, .article h4 + p { margin-top: 0.7rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin-top: 0.45rem; padding-left: 0.2rem; }
.article li::marker { color: var(--ink-3); }
.article li > ul, .article li > ol { margin-top: 0.3rem; }
.article strong { font-weight: 650; }
.article a { color: var(--blue-press); }
.article blockquote { margin-left: 0; margin-right: 0; padding: 0.1rem 0 0.1rem 1.1rem; border-left: 3px solid var(--line); color: var(--ink-2); }
.article blockquote p:first-child { margin-top: 0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0 0; }
.article pre { background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1.05rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; color: #1f2733; -webkit-overflow-scrolling: touch; }
.article pre code { background: none; padding: 0; font-size: 1em; border-radius: 0; }
.article img { border-radius: 8px; margin-top: 1.25rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.table-scroll:focus-visible { outline-offset: 4px; }
.article table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article th, .article td { text-align: left; vertical-align: top; padding: 0.65rem 1.25rem 0.65rem 0; border-bottom: 1px solid var(--line); min-width: 7.5rem; }
.article th:last-child, .article td:last-child { padding-right: 0; }
.article tr:last-child td { border-bottom: 0; }
.article th { font-weight: 650; font-size: 0.9375rem; white-space: nowrap; border-bottom-color: #c5ccd6; }

/* The end of a post: what Headroom is, once, quietly */
.post-end { max-width: 62rem; margin: clamp(3.5rem, 7vw, 5rem) auto 0; padding: 0 var(--gutter); }
.post-end__in { border-top: 1px solid var(--ink); padding-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.post-end h2 { font-size: clamp(1.5rem, 3vw, 1.9375rem); max-width: 18ch; }
.post-end p { margin-top: 0.8rem; color: var(--ink-2); max-width: 34rem; }
.post-end .get-row { margin-top: 1.4rem; }
.post-end figure { margin: 0; }
.post-end figure img { width: 300px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.13); }
.post-end figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.6rem; }
@media (max-width: 760px) { .post-end__in { grid-template-columns: 1fr; } .post-end figure img { width: min(300px, 100%); } }
.related { max-width: 62rem; margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0 var(--gutter) clamp(3.5rem, 7vw, 5rem); }
.related h2 { font-size: 1.5rem; letter-spacing: -0.02em; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.related .posts { max-width: 46rem; }
