/* Patina brand tokens (generated) */
:root {
  --bg: #faf7f4;
  --surface: #f2ece4;
  --raise: #e9dfd4;
  --fg: #1e1610;
  --fg-soft: #4a3a2e;
  --muted: #8a7060;
  --line: #d6c9bc;
  --accent: #b05c1a;
  --accent-ink: #ffffff;
  --accent-1: #f5dcc8;
  --accent-2: #d9956a;
  --accent-3: #b05c1a;
  --accent-4: #7a3a08;
  --accent-5: #3d1a02;
}

[data-theme="dark"] {
  --bg: #1a1108;
  --surface: #251a0e;
  --raise: #332414;
  --fg: #f0e8df;
  --fg-soft: #c4ad96;
  --muted: #7a6250;
  --line: #3d2e1e;
  --accent: #d9956a;
  --accent-ink: #1e1610;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1108;
    --surface: #251a0e;
    --raise: #332414;
    --fg: #f0e8df;
    --fg-soft: #c4ad96;
    --muted: #7a6250;
    --line: #3d2e1e;
    --accent: #d9956a;
    --accent-ink: #1e1610;
  }
}

:root {
  --font-body: "Source Serif 4", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Source Serif 4", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space: 1rem;
  --measure: 68ch;
  --radius: 12px;
  --h1-size: clamp(2.5rem, 5.5vw, 4rem);
  --h1-lh: 1.05;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); }
img, svg, video { max-width: 100%; height: auto; }

/* footer site map: its own container, an even column grid, headings on one baseline */
.footer-map { width: min(100% - 2rem, 72rem); margin-inline: auto; display: grid; align-items: start; gap: calc(var(--space) * 1.5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-map > * { min-width: 0; }
.footer-map ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-map .more { margin-top: 0.3rem; }
.footer-map .more a { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }

/* the site map page: an index of the site, in columns */
.sitemap { padding-block: calc(var(--space) * 2) calc(var(--space) * 3); }
.sitemap .related { margin: 0; padding-block: calc(var(--space) * 1.5); }
.sitemap .related h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.sitemap .post-list { gap: 0.4rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.sitemap .post-list li { gap: 0.1rem; padding-bottom: 0; border-bottom: 0; }
.sitemap .post-list a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }

/* the header's menu panels */
.navmenu { left: -0.75rem; min-width: 17rem; max-width: calc(100vw - 2rem); display: grid; gap: 0.15rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 12px 32px -16px rgb(0 0 0 / 0.3); }
.navmenu a { padding: 0.45rem 0.6rem; border-radius: 6px; }
.navmenu a:hover { background: var(--raise); }
/* the last entry of a shortened menu: the way to the rest, on the site map */
.navmenu a.more { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
/* Inside the open phone drawer a menu flows in place of floating. */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { box-shadow: none; border: none; background: transparent; padding: 0 0 0 0.85rem; }
}

/* the phone menu trigger: a control a visitor can see is tappable */
.nav-toggle > summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.4rem 0.75rem; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-size: 0.95rem; line-height: 1; }
.nav-toggle > summary:hover, .nav-toggle[open] > summary { border-color: currentColor; }

/* icons (Phase D2 increment H) */
.icon { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; vertical-align: middle; }
.glyph .icon { display: block; width: 1.25rem; height: 1.25rem; }
.block h2 .icon { width: 0.8em; height: 0.8em; margin-right: 0.4em; vertical-align: -0.08em; color: var(--accent); }

/* engine: a .block is one block inside a page, never a band of the page */
.block { padding-block: 0; }
.block + .block { border-top: 0; }
.block:first-child { margin-top: 0; }

/* engine: what a product capture is, said beside it */
.shot-note { font-size: 0.85rem; line-height: 1.45; margin: var(--space) 0 0; }

/* engine: the product's state, said in the hero over the plan's own pitch */
.hero .state-note { font-size: 0.95rem; line-height: 1.5; margin: var(--space) 0; max-width: 46ch; }
/* engine: and at the top of a page the writer wrote, over its first claim */
article.page .state-note { font-size: 0.9rem; line-height: 1.5; margin: var(--space) 0 0; }
/* engine: and in the head of a page the engine composes, under its standfirst */
.page-head .state-note { font-size: 0.9rem; line-height: 1.5; margin: var(--space) 0 0; }

/* engine: the product's own screen at the top of a section index, under the standfirst */
.page-head > .narrow > .page-hero { margin: var(--space) 0 0; }

/* engine: the terms a reading list's line quotes are planned */
.post-list .row-terms { color: var(--fg-soft); }

/* engine: the pages a row of an index folds under it, because they say what it says */
.post-list .also { margin: 0.35rem 0 0; font-size: 0.9em; color: var(--muted); }
.post-list .also a { color: inherit; }

/* engine: what the plan's feature cards are, said over a band with no head */
.spotlights > .wrap > .scope-note { font-size: 0.85rem; line-height: 1.45; margin: 0 0 calc(var(--space) * -2); }

/* Patina: the venture's own theme (contract rev 3) */
/* ============================================================
   PATINA — the auction-catalogue theme
   Warm paper, hairline double rules, mounted plates, circled
   specimen numbers (an echo of the app's confidence ring),
   Fraunces display over a quiet serif body.
   ============================================================ */

:root {
  /* engine overrides */
  --radius: 2px;
  --measure: 68ch;
  --space: 1rem;
  --h1-size: clamp(2.5rem, 5.4vw, 4rem);
  --h1-lh: 0.98;
  --muted: #5c4b3e;

  /* theme-own colours (defined for both schemes below) */
  --rule: #ddcdbc;            /* hairline catalogue rule */
  --rule-soft: #e9dfd3;       /* fainter rule */
  --ink-soft: #5c4b3e;        /* AA-safe muted text */
  --verdigris: #3f6b55;       /* patina green, echoes the confidence ring */
  --link: #96490f;            /* AA-safe interactive amber */
  --plate-shadow: 0 1px 2px rgba(62, 42, 24, 0.08), 0 14px 34px -14px rgba(62, 42, 24, 0.28);
  --card-shadow: 0 1px 0 rgba(62, 42, 24, 0.05);
}

[data-theme="dark"] {
  --muted: #bcab9b;
  --rule: #43331f;
  --rule-soft: #332615;
  --ink-soft: #bcab9b;
  --verdigris: #93bfa6;
  --link: #d9956a;
  --plate-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 38px -14px rgba(0, 0, 0, 0.7);
  --card-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  counter-reset: plate;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--fg);
  margin: 0 0 0.6em;
}

h1 { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 640; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--link);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 26%, var(--bg));
}

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

.muted { color: var(--ink-soft); }

.mono, code, pre, .meta {
  font-family: var(--font-mono);
}

/* One alignment spine: every container shares the same left edge */
.wrap,
.narrow {
  width: auto;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

/* Inside the reading container, everything shares one measure so the
   right edge of paragraphs, rules, tables and FAQ rows stays straight */
.narrow > * { max-width: var(--measure); }

/* on reading pages the measure is centred in the canvas
   instead of hugging the left edge */
article.page .narrow > *,
main > article .narrow > * { margin-inline: auto; }

/* Eyebrows: small-caps catalogue label with a leading rule */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verdigris);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  border-top: 1px solid var(--verdigris);
  opacity: 0.7;
}

.section-head { margin-bottom: 2.2rem; }
.section-head h2 { max-width: 26ch; }
.section-head p.muted { max-width: 52ch; margin-top: -0.2rem; }

section {
  padding-block: clamp(3.25rem, 5.5vw, 5rem);
}

section > .narrow > :last-child,
section > .wrap > :last-child { margin-bottom: 0; }

.wash {
  background: var(--surface);
  border-block: 4px double var(--rule);
}

/* ---------------------------------------------------------
   Header — the masthead
   --------------------------------------------------------- */

.site-header {
  background: var(--bg);
  border-bottom: 4px double var(--rule);
  padding-block: 0.9rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  padding-block: 0.35rem;
}

.brand svg.mark { width: 30px; height: 30px; flex: none; }

.brand .logotype {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--fg);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

.nav a.cta {
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.6rem 1.1rem;
  margin-left: 0.4rem;
  position: relative;
}

.nav a.cta:hover { filter: brightness(0.93); border-bottom-color: var(--accent); }

/* the split: a hairline between wayfinding links and the action */
.nav a.cta::before {
  content: "";
  position: absolute;
  left: calc(-0.5 * clamp(0.9rem, 2vw, 1.6rem) - 0.45rem);
  top: 50%;
  height: 1.6rem;
  border-left: 1px solid var(--rule);
  translate: 0 -50%;
}

/* navgroup (grouped menu), if the engine renders one */
.navgroup { position: relative; }
.navgroup > button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
}
.navmenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: var(--plate-shadow);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.navmenu a { border: 0; padding: 0.45rem 1rem; }

/* ---------------------------------------------------------
   Hero — the editorial catalogue opening
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.4rem, 7vw, 5.6rem) clamp(3.6rem, 7vw, 5.8rem);
  border-bottom: 4px double var(--rule);
}

.hero svg.motif {
  position: absolute;
  inset: 0 0 auto auto;
  width: 60%;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
}

[data-theme="dark"] .hero svg.motif { opacity: 0.22; }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.hero .wrap > div:first-child { display: contents; }

.hero .eyebrow { grid-column: 1; }

.hero h1 {
  grid-column: 1;
  max-width: 14ch;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

.hero .lead {
  grid-column: 1;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.65;
  max-width: 50ch;
  color: var(--fg-soft, var(--fg));
  margin-bottom: 0.4em;
}

.hero .actions { grid-column: 1; }

.hero .hero-media {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  margin-top: 2.45rem; /* plate top meets the headline cap-height */
  width: 100%;
}

.hero .hero-media figure.frame { width: 100%; }

.lead { font-size: 1.13rem; }

/* ---------------------------------------------------------
   Mounted plates (product screenshots)
   --------------------------------------------------------- */

figure.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.65rem;
  box-shadow: var(--plate-shadow);
  position: relative;
  counter-increment: plate;
}

figure.frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--rule-soft);
  border-radius: 1px;
  pointer-events: none;
}

figure.frame .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.15rem 0.2rem 0.55rem;
}

/* the plate caption, catalogue style, numbered like a catalogue figure */
figure.frame .bar::after {
  content: "Plate " counter(plate, decimal-leading-zero);
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* hollow rings, a small echo of the confidence ring */
figure.frame .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--verdigris);
  opacity: 0.75;
}

figure.frame img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 1px;
}

.page-hero { margin: 2.2rem 0 2.6rem; }

/* crop embedded app captures so no sticky bar overlaps inside the plate */
.page-hero figure.frame img {
  aspect-ratio: 1280 / 440;
  object-fit: cover;
  object-position: top;
}

figure.cover { margin: 2rem 0 2.4rem; }
figure.cover img {
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--plate-shadow);
}

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

.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.button.primary:hover { filter: brightness(0.93); }
[data-theme="dark"] .button.primary:hover { filter: brightness(1.08); }

.button.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.button.secondary:hover {
  color: var(--link);
  border-color: var(--link);
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

@media (prefers-reduced-motion: no-preference) {
  .button, .nav a, a, summary::after { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, filter 140ms ease; }
}

/* ---------------------------------------------------------
   Cards — accession cards
   --------------------------------------------------------- */

.grid { display: grid; gap: 1.4rem; grid-auto-rows: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* no trailing hole: a card left second in the final row spans to the edge */
.grid.cols-3 > .card:last-child:nth-child(3n - 1) { grid-column: span 2; }
.grid.cols-3 > .card:last-child:nth-child(3n - 2) { grid-column: span 3; }
.grid.cols-2 > .card:last-child:nth-child(odd) { grid-column: span 2; }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.6rem 1.5rem 1.3rem;
  box-shadow: var(--card-shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule-soft);
  border-radius: 1px;
  pointer-events: none;
}

.wash .card, [data-theme="dark"] .card { background: var(--surface); }
[data-theme="dark"] .wash .card { background: var(--raise, var(--surface)); }

.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 0.7rem; }

/* the circled specimen number: the confidence ring, at rest */
.glyph {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px double var(--verdigris);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--verdigris);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

/* benefit cards: air between the cards so adjacent borders never
   double up, and the ring sits as close to its heading as the
   heading sits to its body */
.benefits { display: grid; gap: 1.4rem; align-items: start; }
.benefits .glyph { margin-bottom: 0.5rem; }
.benefits .card h3 { margin-bottom: 0.5rem; }

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

/* The problem: an editorial pull with a drop cap */
.problem .narrow > p {
  font-size: clamp(1.12rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

.problem .narrow > p::first-letter {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 3.15em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--fg);
}

/* Steps: the numbered procedure */
ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: 1.3rem;
  row-gap: 0.15rem;
  align-items: start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}

ol.steps > li:last-child { border-bottom: 1px solid var(--rule); }

/* whatever the markup nests, the ring sits in column 1 and every
   piece of text sits in column 2 (never under the ring) */
ol.steps > li > * { grid-column: 2; max-width: 60ch; }

ol.steps > li::before {
  grid-column: 1;
  grid-row: 1;
}

ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px double var(--verdigris);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--verdigris);
}

ol.steps h3 { margin-bottom: 0.3em; }
ol.steps p { margin-bottom: 0; }

/* on the home page the ruled rows run the full container width,
   while the copy keeps its reading measure */
.how ol.steps { max-width: none; }
.how ol.steps > li { grid-template-columns: 3.4rem minmax(0, 58ch); }

/* Spotlights */
.spotlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 2.2rem;
}

.spotlight.flip > :first-child { order: 2; }

.spotlight + .spotlight { border-top: 1px solid var(--rule); }

/* Gallery */
.gallery .shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

/* the capture is a phone-width screen centred in a wide browser
   chrome: crop the mounted plate to the screen it holds, so the
   mount fits the picture instead of framing blank paper */
.gallery .shots figure.frame:not(.phone) {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.gallery .shots figure.frame:not(.phone) img {
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-of-type { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.05rem 2.4rem 1.05rem 0;
  position: relative;
  color: var(--fg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--verdigris);
}

.faq details[open] summary::after { content: "\2212"; }

.faq summary:hover { color: var(--link); }

.faq details > p {
  padding: 0 0 1.2rem;
  max-width: 58ch;
  color: var(--fg);
}

/* Latest posts / indexes */
ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 4px double var(--rule);
  border-bottom: 4px double var(--rule);
}

ul.post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
}

ul.post-list li + li { border-top: 1px solid var(--rule); }

ul.post-list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--fg);
  text-decoration: none;
}

ul.post-list a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }

ul.post-list .meta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

ul.post-list p {
  grid-column: 1 / -1;
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

p.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------
   CTA / capture
   --------------------------------------------------------- */

.cta .capture {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.cta .capture h2 { margin-bottom: 0.4em; }
.cta .capture > .muted { max-width: 44ch; margin-inline: auto; }

.capture form {
  display: flex;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
  align-items: stretch;
}

.capture input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fg);
  padding: 0.7rem 0.2rem;
}

.capture input[type="email"]::placeholder { color: var(--ink-soft); opacity: 1; }

.capture input[type="email"]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-bottom-color: var(--link);
}

.capture .note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 0;
}

.capture .thanks {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--verdigris);
  margin-top: 1.6rem;
}

label.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ---------------------------------------------------------
   Content pages, articles, prose
   --------------------------------------------------------- */

article.page, main > article {
  padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

p.crumbs {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

p.crumbs a { color: var(--ink-soft); text-decoration: none; }
p.crumbs a:hover { color: var(--link); text-decoration: underline; }

article.page h1, main > article h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  position: relative;
  padding-bottom: 0.55em;
  margin-bottom: 0.55em;
}

article.page h1::after, main > article h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  border-top: 4px double var(--rule);
}

p.lead {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--fg-soft, var(--fg));
}

/* the engine's "not open yet" note: one shared small-note style,
   sized against the body serif, on the same edge and measure as the
   standfirst it follows, on every page kind */
p.state-note,
main p.state-note.muted,
main article .narrow p.state-note.muted,
main section .narrow p.state-note.muted {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: normal;
  color: var(--ink-soft);
  opacity: 1;
  max-width: var(--measure);
  margin-block: 0.75rem;
  padding-inline: 0;
}

/* page heads set it on the column's left edge, like the standfirst */
p.state-note,
main section .narrow p.state-note.muted { margin-inline: 0; }

/* reading pages centre the measure, so the note rides the same column
   as the intro paragraph above it */
main article .narrow p.state-note.muted { margin-inline: auto; }

p.byline {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: -0.4rem 0 1.6rem;
}

section.block {
  padding-block: 1.6rem 0.4rem;
}

section.block h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-top: 0.8rem;
}

.prose { max-width: var(--measure); }

.prose h2 { font-size: 1.7rem; margin-top: 1.9em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.7em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--verdigris); }

.prose blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4rem;
  border-left: 5px double var(--verdigris);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--fg);
}

.prose blockquote p { margin: 0; }

code {
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

pre code { background: none; border: 0; padding: 0; }

/* Tables: ledger rules */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.prose table { margin-block: 1.4rem 2rem; }

th {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  padding: 0.6rem 0.9rem 0.55rem;
  border-bottom: 4px double var(--rule);
}

td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

tr > :first-child { padding-left: 0; }
tr > :last-child { padding-right: 0; }

/* Callout */
aside.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.6rem 1.7rem 1.2rem;
  position: relative;
  margin: 2.2rem 0;
}

aside.callout::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.6;
}

aside.callout h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

aside.callout .prose p:last-child { margin-bottom: 0; }

/* Sources / related */
.sources { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.4rem; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 0.3rem 0; font-size: 0.95rem; }

.related { margin-top: 2.5rem; }

/* Plans */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}

.card.plan { padding: 1.9rem 1.7rem 1.6rem; }

.card.plan h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 0.9rem;
}

.card.plan .price {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 2.1rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.card.plan .meta { color: var(--ink-soft); font-size: 0.85rem; }

ul.includes {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
}

ul.includes li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  font-size: 0.97rem;
}

ul.includes li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--verdigris);
}

/* the recommended plan: accent border and a small-caps tag,
   seated inside the card's top edge and clear of the inner rule */
.plan-cards .card.plan:last-child {
  border: 2px solid var(--accent);
  padding-top: 2.75rem;
}

.plan-cards .card.plan:last-child::before {
  content: "Recommended";
  position: absolute;
  top: 0.85rem;
  right: 1.7rem;
  z-index: 1;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem 0.28rem 0.65rem;
  border-radius: 2px;
}

/* Page head on spec pages */
section.page-head {
  padding-block: clamp(2.8rem, 6vw, 4.2rem) 0.5rem;
}

section.page-head h1 {
  position: relative;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

section.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  border-top: 4px double var(--rule);
}

/* ---------------------------------------------------------
   Footer — the colophon
   --------------------------------------------------------- */

.site-footer {
  border-top: 4px double var(--rule);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 2.4rem 2.6rem;
  background: var(--bg);
}

.footer-map {
  max-width: 1120px;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.footer-map a { color: var(--fg); text-decoration: none; display: block; padding: 0.2rem 0; font-size: 0.95rem; }
.footer-map a:hover { color: var(--link); text-decoration: underline; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
}

.site-footer strong {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.05rem;
}

/* the specimen ring, closing the catalogue */
.site-footer strong::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border: 4px double var(--verdigris);
  border-radius: 50%;
  margin-right: 0.55rem;
  vertical-align: -0.12em;
}

.site-footer .muted { font-size: 0.92rem; }

.site-footer nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-footer nav a {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--link); text-decoration: underline; }

a.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
}

a.stamp:hover { color: var(--fg); border-color: var(--ink-soft); }
a.stamp img { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   Page-kind touches
   --------------------------------------------------------- */

body[data-kind="not_found"] section {
  padding-block: clamp(5rem, 12vw, 8rem);
  text-align: center;
}

body[data-kind="not_found"] .narrow > * {
  max-width: none;
}

body[data-kind="not_found"] .section-head::before {
  content: "No. 404";
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border: 4px double var(--verdigris);
  border-radius: 50%;
  margin: 0 auto 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--verdigris);
}

body[data-kind="not_found"] .section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: none;
}

body[data-kind="changelog_index"] .section-head h2,
body[data-kind="article_index"] .section-head h2 { max-width: none; }

/* index pages: fuller sections so the footer sits at the viewport base */
body[data-kind="article_index"] main > section,
body[data-kind="changelog_index"] main > section,
body[data-kind^="index:"] main > section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

/* the features h2 on home is a long sentence: keep it measured */
body[data-kind="home"] .features .section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  max-width: 44ch;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 > .card:last-child { grid-column: auto; }
  .grid.cols-3 > .card:last-child:nth-child(odd) { grid-column: span 2; }
  .plan-cards { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight.flip > :first-child { order: 0; }
  .gallery .shots { grid-template-columns: 1fr; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1, .hero .lead, .hero .actions { grid-column: 1; }
  .hero .hero-media {
    grid-column: 1;
    grid-row: auto;
    margin-top: 2.4rem;
    width: 100%;
  }
  .hero svg.motif { width: 100%; opacity: 0.09; }
  [data-theme="dark"] .hero svg.motif { opacity: 0.15; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  /* outranks the desktop span rules, so no card can open implicit
     columns and split the stack into narrow tracks on a phone */
  .grid.cols-2 > .card:last-child:nth-child(n),
  .grid.cols-3 > .card:last-child:nth-child(n) { grid-column: auto; }

  /* brand row, then nav row, then the action on its own full row */
  .site-header .wrap { flex-direction: column; align-items: center; row-gap: 0.3rem; }
  .nav { justify-content: center; gap: 0.55rem 1rem; width: 100%; }
  .nav a { font-size: 0.72rem; }
  .nav a.cta::before { display: none; }
  .nav a.cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0.75rem 0 0.2rem;
    padding: 0.7rem 0.9rem;
  }

  .hero { padding-top: 2.6rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.9rem); }

  ol.steps > li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
  ol.steps > li::before { width: 2.4rem; height: 2.4rem; font-size: 0.85rem; }

  /* the mounted plate on a phone: full width, with the mount's own
     padding scaled down to the picture it holds */
  .gallery .shots figure.frame:not(.phone) { max-width: 100%; padding: 0.45rem; }

  .capture form { flex-direction: column; gap: 1.1rem; }
  .capture .button { width: 100%; }

  ul.post-list li { grid-template-columns: 1fr; row-gap: 0.3rem; }
  ul.post-list .meta { order: -1; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; }

  .problem .narrow > p::first-letter { font-size: 2.7em; }
}

/* where the engine stacks a table into cards, the question reads in
   the display face with its answer beneath, and the column label is
   not reprinted over every answer */
@media (max-width: 600px) {
  main .table-wrap table td[data-label]::before { content: none; }

  main .table-wrap table td.rowname {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.3;
  }
}

.capture .hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hidden, [hidden] { display: none !important; }
.nav-toggle summary { cursor: pointer; list-style: none; }
.nav-toggle summary::-webkit-details-marker { display: none; }
@media (min-width: 721px) {
  .nav-toggle { display: none !important; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: block !important; }
  .nav { display: flex !important; flex-wrap: wrap; align-items: center; }
  .nav-toggle:not([open]) + .nav > a:not(.cta),
  .nav-toggle:not([open]) + .nav > details { display: none !important; }
  .nav-toggle[open] + .nav { flex-basis: 100% !important; width: 100%; flex-direction: column; align-items: stretch; }
}

/* a phone app's screenshot: a phone, never a browser window */
figure.frame.phone { display: block !important; box-sizing: border-box !important; width: min(18.5rem, calc(80vh * var(--frame-ratio, 390 / 844))) !important; max-width: 100% !important; min-width: 0 !important; flex: 0 1 auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; align-self: start !important; margin-inline: auto !important; padding: 0.5rem !important; border-radius: min(2.5rem, 13%) / min(2.5rem, calc(13% * var(--frame-ratio, 390 / 844))) !important; overflow: hidden !important; }
figure.frame.phone::before, figure.frame.phone::after { content: none !important; display: none !important; }
figure.frame.phone > img { display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: var(--frame-ratio, 390 / 844) !important; object-fit: cover !important; object-position: top center !important; margin: 0 !important; border-radius: min(2rem, 11%) / min(2rem, calc(11% * var(--frame-ratio, 390 / 844))) !important; }
.shots:has(> figure.frame.phone):not(:has(> figure.frame:not(.phone))) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)) !important; }
@supports (width: 1svh) { figure.frame.phone { width: min(18.5rem, calc(80svh * var(--frame-ratio, 390 / 844))) !important; } }

/* the header's menu labels */
.navgroup > summary { cursor: pointer; list-style: none; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary > .chevron { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.3em; vertical-align: -0.04em; opacity: 0.7; transition: transform 120ms ease-out; }
.navgroup[open] > summary > .chevron { transform: rotate(180deg); }
/* the phone menu trigger's mark: the bars while it is shut, the cross while it is open */
.nav-toggle > summary > .burger { display: inline-block; flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.nav-toggle:not([open]) > summary > .burger > .cross { display: none; }
.nav-toggle[open] > summary > .burger > .bars { display: none; }

/* engine: a header menu opens as an overlay anchored under its own trigger, so the bar keeps its single row */
.navgroup { position: relative; }
.navmenu { position: absolute; top: calc(100% + 0.4rem); z-index: 20; }
header.site-header .wrap, header.site-header .nav, header.site-header .navgroup { overflow: visible; }
/* engine: the menu at the end of the bar opens back from its own end, so its panel cannot run past the window */
header.site-header .navgroup[data-bar-end] > .navmenu { left: auto; right: -0.75rem; }
/* the phone drawer is not a bar: inside it an open menu flows in place */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { position: static !important; min-width: 0; }
}

/* engine: an open header menu is never taller than the window it opens in */
.navmenu { max-height: calc(100vh - 8rem); }
.navmenu { max-height: min(32rem, calc(100svh - 8rem)); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { max-height: none !important; overflow: visible !important; }
}

/* engine: the header's bar holds one row at desktop width, whatever a theme sets on it */
@media (min-width: 721px) {
  header.site-header .wrap { display: flex; flex-direction: row; flex-wrap: nowrap; }
  header.site-header nav.nav { display: flex; flex-direction: row; flex-wrap: nowrap; }
  header.site-header .wrap > .brand, header.site-header .wrap > nav.nav { flex-shrink: 1; }
  header.site-header .nav { min-width: 0; column-gap: clamp(0.5rem, 1.1vw, 1.25rem); }
  header.site-header .nav > a, header.site-header .nav > details > summary { white-space: nowrap; }
  :is(header.site-header nav.nav > a:not(.cta), header.site-header nav.nav > details > summary) { padding-inline: clamp(0.3rem, 0.8vw, 0.9rem); }
  :is(header.site-header nav.nav > a:not(.cta), header.site-header nav.nav > details, header.site-header nav.nav > details > summary, header.site-header nav.nav > details > summary > .navlabel) { margin-inline: 0; }
  header.site-header nav.nav > details { min-width: 0; }
  header.site-header nav.nav > details > summary { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
  header.site-header nav.nav > details > summary > .navlabel { padding-inline: 0; order: -1; }
  header.site-header nav.nav > details > summary > .chevron { margin-inline-end: 0; visibility: visible; order: 1; flex: none; }
  header.site-header .nav > a.cta { flex: none; }
}

/* engine: at desktop width the wordmark starts the header's row and the bar ends it, whatever a theme sets on the row */
@media (min-width: 721px) {
  header.site-header .wrap > nav.nav { flex: 0 1 auto; width: auto; margin-inline-start: auto; }
}

/* engine: the action's compact twin shows only on a narrow phone, and only with the menu shut */
@media (min-width: 541px) {
  header.site-header a.cta.cta-short { display: none; }
}
/* engine: on a narrow phone the header is one row, the brand with the menu trigger and a compact action beside it */
@media (max-width: 540px) {
  header.site-header .wrap { column-gap: 0.5rem; }
  header.site-header .nav-toggle > summary { gap: 0; min-width: 2.5rem; justify-content: center; padding-inline: 0.5rem; }
  header.site-header .nav-toggle > summary > .navlabel { display: none; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta:not(.cta-short) { display: none; }
  header.site-header .nav-toggle[open] + .nav > a.cta.cta-short { display: none; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { padding-inline: clamp(0.5rem, 2vw, 1rem); }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta.cta-short { font-size: min(1em, max(0.875rem, 3.6vw)); letter-spacing: normal; }
}

/* engine: the phone menu's trigger is the last box of the header's own row, so the cross is drawn where the bars were tapped */
@media (max-width: 720px) {
  header.site-header .wrap { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-end; }
  header.site-header .wrap > .brand { margin-right: auto; }
  header.site-header .nav-toggle { order: 2; }
  header.site-header .nav-toggle:not([open]) + .nav { order: 1; margin-left: auto; }
  header.site-header .nav-toggle[open] { margin-left: auto; }
  header.site-header .nav-toggle[open] + .nav { order: 3; }
}

/* engine: while the phone menu is shut every box of the header is as wide as what it holds, so none of them can take the row from the other two */
@media (max-width: 720px) {
  header.site-header .wrap > .brand { flex: 0 1 auto; width: auto; min-width: 0; }
  header.site-header .nav-toggle:not([open]) { flex: 0 0 auto; width: auto; }
  header.site-header .nav-toggle:not([open]) + .nav { flex: 0 1 auto; width: auto; min-width: 0; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { width: auto; }
}

/* engine: while the phone menu is shut the box around the action draws nothing of its own, so what a theme wrote for the open drawer is never a fragment in the header */
@media (max-width: 720px) {
  header.site-header .nav-toggle:not([open]) + .nav { border: 0; background: none; box-shadow: none; padding: 0; margin-block: 0; }
  header.site-header .nav-toggle:not([open]) + .nav::before,
  header.site-header .nav-toggle:not([open]) + .nav::after { content: none; }
}

/* engine: while the phone menu is shut the action keeps no block margin of its own, so it sits on the row's own centre beside the trigger */
@media (max-width: 720px) {
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { margin-block: 0; }
}

/* engine: every row of the open phone drawer, the action included, carries the engine's own room inside it, so every row's words begin on one edge and the one box a visitor can see is drawn around that room */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav { padding-inline: 0; }
  header.site-header .nav-toggle[open] + .nav > a:not(.cta),
  header.site-header .nav-toggle[open] + .nav > details > summary,
  header.site-header .nav-toggle[open] + .nav > details > summary > .navlabel { padding-inline: 0; margin-inline: 0; text-align: left; text-indent: 0; justify-content: flex-start; justify-items: start; }
  header.site-header .nav-toggle[open] + .nav > a:not(.cta),
  header.site-header .nav-toggle[open] + .nav > details > summary { padding-inline: 1rem; }
  header.site-header .nav-toggle[open] + .nav > details > .navmenu { padding-inline-start: calc(1rem + 0.85rem); }
  header.site-header .nav-toggle[open] + .nav > a.cta { padding-inline: 1rem; text-align: left; text-indent: 0; justify-content: flex-start; justify-items: start; }
  header.site-header .nav-toggle[open] + .nav > a.cta:not(.cta-short) { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
  header.site-header .nav-toggle[open] + .nav > a.cta:not(.cta-short)::after { content: ""; flex: none; width: 1.1em; height: 1.1em; margin-inline-start: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000'%20stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10M8.75 4.25 12.5 8l-3.75 3.75'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000'%20stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10M8.75 4.25 12.5 8l-3.75 3.75'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* engine: the open phone drawer's action is a row of the drawer, on the rows' own edges and clear of the last of them */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > a.cta { align-self: stretch; width: auto; max-width: none; margin-inline: 0; margin-block-start: 1.25rem; }
}

/* engine: every row of the open phone drawer is a single-line row, tall enough for a thumb, with what it holds in the middle of that height */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > a:not(.cta-short),
  header.site-header .nav-toggle[open] + .nav > details > summary { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; min-height: 2.75rem; }
}

/* engine: in the open phone drawer the state of a menu's row is the engine's mark, against the row's far edge, turned over on the one row whose list is under it */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > details.navgroup > summary > .chevron { display: inline-block !important; visibility: visible !important; margin-inline-start: auto !important; margin-inline-end: 0 !important; transform: none !important; opacity: 0.7 !important; }
  header.site-header .nav-toggle[open] + .nav > details.navgroup[open] > summary > .chevron { transform: rotate(180deg) !important; opacity: 1 !important; }
}

/* engine: nothing a page says can push it wider than the window */
html { overflow-wrap: break-word; }
.button, .nav .cta { max-width: 100%; overflow-wrap: anywhere; }
.post-list a { overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.prose th, .prose td { overflow-wrap: anywhere; }

/* engine: a container of the site's own takes the free space beside it evenly, so a page sits on the same middle of the paper its chrome does */
.wrap, .narrow { margin-inline: auto; }

/* engine: under 600px a table is a card per row, not columns a phone cannot hold */
@media (max-width: 600px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr { display: block !important; width: auto !important; }
  .table-wrap thead { display: none !important; }
  .table-wrap tr {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td {
    display: block !important;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .table-wrap td + td { margin-top: 0.6rem !important; }
  .table-wrap td.rowname, .table-wrap td:not([data-label]) { font-weight: 600; }
  .table-wrap td.rowname { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block !important;
    float: none !important;
    position: static !important;
    min-height: 1em !important;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* engine: under 600px every group of the footer's map is a row of its own, opens on its own heading, and the shut ones read as one block */
@media (max-width: 600px) {
  footer.site-footer .footer-map { display: grid !important; grid-template-columns: 1fr !important; row-gap: 0 !important; }
  footer.site-footer .footer-map > * { margin-block: 0 !important; padding-block: 0 !important; }
  footer.site-footer .footer-map .eyebrow[aria-expanded="false"] { margin-block: 0 !important; }
  footer.site-footer .footer-map ul[hidden] { display: none !important; }
  .footer-map ul { margin: 0.2rem 0 0.9rem; gap: 0.2rem; }
  .footer-map li { line-height: 1.4; }
  .footer-map .eyebrow { margin-bottom: 0; }
  .footer-map .eyebrow[aria-expanded] { display: flex; align-items: center; min-height: 40px; border-top: 1px solid var(--line); cursor: pointer; }
  .footer-map > :first-child .eyebrow[aria-expanded] { border-top: 0; }
  .footer-map .eyebrow[aria-expanded]::after { content: ""; flex: none; margin-left: auto; width: 0.4em; height: 0.4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12em) rotate(45deg); transition: transform 120ms ease-out; }
  .footer-map .eyebrow[aria-expanded="true"]::after { transform: translateY(0.06em) rotate(225deg); }
}

/* engine: the footer's map and its bottom row are one block in two boxes, so they share one container */
footer.site-footer > .footer-map, footer.site-footer > .wrap { width: min(100% - 2rem, 72rem) !important; max-width: none !important; margin-inline: auto !important; padding-inline: 0 !important; }
/* engine: and the map is part of the footer, never a panel inside it */
footer.site-footer > .footer-map { background: none !important; box-shadow: none !important; border-inline: 0 !important; }

/* engine: a row of one of the engine's own reading lists wears the site's own link treatment, and the line itself is not a theme's to take away */
main .post-list > li > a:any-link { text-decoration-line: underline !important; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: the door inside the engine's line over the plan's cards wears the site's own link treatment, whatever a theme sets on it */
main .scope-note a:any-link { text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: a section's own pages under the plan's cards stand clear of them, whatever a theme sets on its lists */
.use-cases .section-pages { margin-block-start: calc(var(--space, 1rem) * 2); }

/* engine: a row of one of the engine's own reading lists is one measure, and its title, date and summary share it */
.post-list li { max-width: var(--measure); display: grid; grid-template-columns: minmax(0, 1fr); }
.post-list li > a, .post-list li > .meta, .post-list li > p { grid-column: 1; }
.post-list li > a, .post-list li > p { max-width: none; width: auto; justify-self: stretch; }

/* engine: a row of one of the engine's own reading lists reads in one order at every width: its title, then its date, then its summary */
.post-list li > a, .post-list li > .meta, .post-list li > p { order: 0; }
.post-list li:has(> .meta) > a { grid-row: 1; }
.post-list li:has(> .meta) > .meta { grid-row: 2; }
.post-list li:has(> .meta) > p { grid-row: 3; }
.post-list li:not(:has(> .meta)) > a { grid-row: 1; }
.post-list li:not(:has(> .meta)) > p { grid-row: 2; }
.post-list li:has(> .meta) > p.also:not(:first-of-type) { grid-row: 4; }
.post-list li:not(:has(> .meta)) > p.also:not(:first-of-type) { grid-row: 3; }

/* engine: a page folded onto a row is part of that row's own line, so its link is set in the line and never as a second title */
.post-list .also a { font: inherit; letter-spacing: inherit; }
.post-list .also a:any-link { text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: a row of one of the engine's own reading lists prints its own words in full: they wrap, and no box cuts them */
.post-list li { overflow: visible; height: auto; max-height: none; }
.post-list li > a, .post-list li > p { white-space: normal; overflow: visible; text-overflow: clip; height: auto; max-height: none; -webkit-line-clamp: none; line-clamp: none; }

/* engine: the column under a page head continues it, so it is not a second band of the page, and the step between them is the engine's own rem rather than the unit a theme bands with */
.page-head:has(+ .page-body) { padding-bottom: 1.5rem; }
/* engine: and it ends where its words do, so a short page never ends in a band of nothing */
.page-body { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 0; min-height: 0; height: auto; aspect-ratio: auto; margin-block: 0; }
/* engine: said again on the column named as what it is and where it is, so an ordinary rule about the page's last section cannot outrank it by weight */
main > section.page-body:last-child { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 0; min-height: 0; height: auto; aspect-ratio: auto; margin-block: 0; }
.page-body > .narrow { padding-block: 0; margin-block: 0; }
.page-body > .narrow > :last-child,
.page-body > .narrow > :last-child > :last-child,
.page-body > .narrow > :last-child > :last-child > :last-child,
.page-body > .narrow > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0; }
/* engine: and the boxes the engine itself puts at that edge hold no air and no floor of their own, so the step under the page's last words is the column's own padding and nothing else */
.page-body > .narrow,
.page-body > .narrow > :last-child,
.page-body > .narrow > :last-child > ul.post-list:last-child { padding-bottom: 0; min-height: 0; height: auto; aspect-ratio: auto; }
/* engine: and the air between the head's last words and that column's first words is the engine's own rhythm, whatever makes it, padding as well as margin */
.page-head:has(+ .page-body) > .narrow { margin-bottom: 0; padding-bottom: 0; }
.page-head:has(+ .page-body) > .narrow > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0; padding-bottom: 0; }
/* engine: and that padding is measured from the standfirst's LAST LINE: its own box carries the trailing half of its line box, which a generously led standfirst would otherwise add to the air */
.page-head:has(+ .page-body) > .narrow > :last-child { margin-bottom: min(0px, 0.6em - 0.5lh); }
/* engine: and that head holds the engine's own words: a box a stylesheet GENERATES on it or on the wrap it is poured into is neither its height nor its spacing, so it lands under the standfirst where no rule above can reach it */
main > section.page-head:has(+ .page-body)::before,
main > section.page-head:has(+ .page-body)::after,
main > section.page-head:has(+ .page-body) > div.narrow::before,
main > section.page-head:has(+ .page-body) > div.narrow::after { content: none; }
/* engine: and so does the column that continues it: a box a stylesheet GENERATES above that column's first words, on the column, on the wrap it is poured into or on the box that wrap opens with, lands in the same air and is neither their spacing nor their height either */
main > section.page-head + section.page-body::before,
main > section.page-head + section.page-body > div.narrow::before,
main > section.page-head + section.page-body > div.narrow > :first-child:not(ul.post-list)::before { content: none; }
/* engine: and so do the words that head closes with, one level inside its wrap, which is the reach the rule above has on the column's side: a box generated AFTER the head's last words lands under the standfirst, in the air the engine owns, and a mark left in those words' flow as a block takes a line of its own there */
main > section.page-head:has(+ .page-body) > div.narrow > :last-child::after { content: none; }
/* engine: and the head is as tall as what it holds, so no floor of its own can open that air under its standfirst */
.page-head:has(+ .page-body),
.page-head:has(+ .page-body) > .narrow,
.page-head:has(+ .page-body) > .narrow > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child > :last-child { min-height: 0; height: auto; aspect-ratio: auto; }
.page-body > .narrow > :first-child,
.page-body > .narrow > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child > :first-child { margin-top: 0; }
/* engine: and that air is made INSIDE those two boxes, so the join between them is flush: neither a margin between the head and the column nor a gap the page lays its bands out by can open it from outside both */
.page-head:has(+ .page-body) { margin-bottom: 0; }
.page-head + .page-body { margin-top: 0; }
main:has(> .page-head + .page-body) { row-gap: 0; }
/* engine: and on an index, which is that column led by the engine's own reading list, the air is one of the list's own gaps over a rem, so it reads as the rhythm of the list whatever the theme spaces its rows by */
.page-head:has(+ .page-body > .narrow > ul.post-list:first-child) { padding-bottom: 1rem; }
.page-head + .page-body:has(> .narrow > ul.post-list:first-child) { padding-top: 0; }
.page-head + .page-body > .narrow > ul.post-list:first-child { padding-top: 0; grid-template-rows: 0; }
.page-head + .page-body > .narrow > ul.post-list:first-child::before { content: ""; display: block; height: 0; min-height: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
/* engine: and no rule is drawn across the top of that column, on any box above its first words, because what is over it is the page's own head, which it continues */
.page-body > .narrow,
.page-body > .narrow > :first-child,
.page-body > .narrow > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child > :first-child { border-top: 0; }
/* engine: and where that column opens with a block of the engine's own, the air over its heading is a rem of the head's over the column's own rem, never a band of the page */
.page-head:has(+ .page-body > .narrow > .block:first-child) { padding-bottom: 1rem; }
.page-body > .narrow > .block:first-child,
.page-body > .narrow > .block:first-child > :first-child { padding-top: 0; }
/* engine: and a mark a theme hangs on one of this column's own block headings is part of that heading's line, sharing its baseline, never a line of its own */
.page-body > .narrow > .block > h2::before,
.page-body > .narrow > .block > h2::after { display: inline-block; vertical-align: baseline; }
/* engine: with the room beside it the engine gives the mark it puts in a block's heading itself (ICON_CSS), because the room a rail gave it went with the rail */
.page-body > .narrow > .block > h2::before { margin-inline-end: 0.4em; }
.page-body > .narrow > .block > h2::after { margin-inline-start: 0.4em; }
/* engine: and on a page that is only this column, the space under it is the engine's too */
main:has(> .page-body:last-child) { padding-bottom: 0; margin-bottom: 0; }
main:has(> .page-body:last-child) + footer { margin-top: 0; }

/* engine: the waitlist card's field is a line of text tall, whatever axis a theme stacks its form on */
.capture form input[type=email] { max-height: 4.5em; }

/* engine: under 600px a product capture is the picture itself, whole: its box is sized from it and nothing crops it */
@media (max-width: 600px) {
  .hero-media { max-width: 100% !important; min-width: 0 !important; }
  figure.frame:not(.phone) { max-width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; }
  figure.frame:not(.phone) > img { max-width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; object-fit: contain !important; }
}

/* engine: under 600px the hero is one column and a product capture fills the box it was given, so the one picture of the product is never a tile in a panel */
@media (max-width: 600px) {
  .hero.with-media .wrap { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; grid-auto-flow: row !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  .hero.with-media .wrap > * { grid-column: 1 / -1 !important; grid-row: auto !important; flex: 0 1 auto !important; }
  .hero.with-media .hero-media:not(:has(> figure.frame.phone)) { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; min-width: min(100%, 20rem) !important; }
  figure.frame:not(.phone) { margin-inline: 0 !important; min-width: min(100%, 20rem) !important; }
}

/* engine: under 600px a band of product captures is one column, so no capture is drawn past the page's edge */
@media (max-width: 600px) {
  .shots:has(> figure.frame:not(.phone)), .spotlight { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; grid-auto-flow: row !important; grid-auto-columns: minmax(0, 1fr) !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  .shots:has(> figure.frame:not(.phone)) > *, .spotlight > * { grid-column: 1 / -1 !important; grid-row: auto !important; flex: 0 1 auto !important; }
}

/* engine: under 600px the box that holds a product capture fits the page, so no capture is drawn wider than the window */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)) { box-sizing: border-box !important; max-width: min(100%, 100vw) !important; min-width: 0 !important; margin-inline: 0 !important; }
}

/* engine: under 600px a product capture is painted where it was laid out, so nothing paints it past the page's edge */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)), figure.frame:not(.phone), figure.frame:not(.phone) > img { transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
}

/* engine: under 600px a product capture's frame is an upright block and the picture is its own, filling it, so nothing lays the picture out wider than the frame that holds it */
@media (max-width: 600px) {
  figure.frame:not(.phone) { display: block !important; writing-mode: horizontal-tb !important; }
  figure.frame:not(.phone) > img { position: static !important; float: none !important; width: 100% !important; }
}

/* engine: under 600px a product capture and every box the page lays it out inside are in the page's own writing mode, so every bound the engine writes on it is read in the page's own axis */
@media (max-width: 600px) {
  figure.frame:not(.phone), :has(figure.frame:not(.phone)) { writing-mode: horizontal-tb !important; }
}

/* engine: the picture of the product in a page head the engine composes is drawn across that head's own reading column, in its flow */
section.page-head > .narrow > .page-hero { display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-inline: 0 !important; float: none !important; position: static !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
section.page-head > .narrow > .page-hero > figure.frame:not(.phone) { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-inline: 0 !important; float: none !important; position: static !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
section.page-head > .narrow > .page-hero > figure.frame:not(.phone) > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }

/* engine: the frame of the picture in a page head the engine composes stays in that head's own flow, whatever shape the capture is */
section.page-head > .narrow > .page-hero > figure.frame { float: none !important; position: static !important; }

/* engine: the picture of the product in a page head the engine composes is painted in the room that head gives it, so the room is never blank paper under the standfirst */
section.page-head > .narrow > .page-hero,
section.page-head > .narrow > .page-hero > figure.frame,
section.page-head > .narrow > .page-hero > figure.frame > img { opacity: 1 !important; visibility: visible !important; content-visibility: visible !important; clip-path: none !important; filter: none !important; mix-blend-mode: normal !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }

/* engine: under 600px a product capture's frame fits the window wherever it is laid out, stays in its box's own flow and keeps the picture inside it */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)) { inset: auto !important; }
  figure.frame:not(.phone) { max-width: min(100%, 100vw) !important; position: relative !important; inset: auto !important; float: none !important; }
  figure.frame:not(.phone) > img { margin-inline: 0 !important; padding-inline: 0 !important; }
  section.page-head > .narrow > .page-hero > figure.frame:not(.phone) { max-width: min(100%, 100vw) !important; }
}

/* engine: a band whose only picture is a wide capture is one column, and the picture sits centred under the head on the band's own axis */
.gallery .shots:has(> figure.frame:not(.phone):only-child) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.gallery .shots > figure.frame:not(.phone):only-child { width: min(100%, 60rem); margin-inline: auto; }

/* engine: a step of a page's steps block keeps its name and its detail in the row's words column */
.block > ol.steps > li > strong, .block > ol.steps > li > p { grid-column: -2 / -1 !important; }

/* engine: a page's card set is two to a row, one where two will not fit, and an odd set's last card fills its row */
@supports (grid-template-columns: repeat(auto-fit, minmax(max(14rem, 40%), 1fr))) {
  .benefits:not(.strip-cells) { grid-template-columns: repeat(auto-fit, minmax(max(14rem, 40%), 1fr)); }
  .benefits:not(.strip-cells) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* engine: a band left with one card is one column, and that card fills the row it sits on */
.benefits:not(.strip-cells):has(> .card:only-child), .plan-cards:has(> .card:only-child), .grid:has(> .card:only-child) { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.benefits:not(.strip-cells):has(> .card:only-child) > .card, .plan-cards:has(> .card:only-child) > .card, .grid:has(> .card:only-child) > .card { max-width: none; }

/* engine: a page's own questions are one block inside the page, never a band of it */
div.faq { padding-block: 0; margin-block: 0; border-top: 0; border-bottom: 0; min-height: 0; height: auto; }
