/* Auditrek brand tokens (generated) */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --raise: #eceef2;
  --fg: #15161a;
  --fg-soft: #3c3f4d;
  --muted: #6b6f82;
  --line: #d1d4de;
  --accent: #6b30a6;
  --accent-ink: #ffffff;
  --accent-1: #e5d7f4;
  --accent-2: #b890df;
  --accent-3: #8c4dcb;
  --accent-4: #6b30a6;
  --accent-5: #47206f;
}

[data-theme="dark"] {
  --bg: #0f1015;
  --surface: #1a1c24;
  --raise: #22252f;
  --fg: #ecedf2;
  --fg-soft: #b0b4c8;
  --muted: #6b6f82;
  --line: #2e3040;
  --accent: #6b30a6;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1015;
    --surface: #1a1c24;
    --raise: #22252f;
    --fg: #ecedf2;
    --fg-soft: #b0b4c8;
    --muted: #6b6f82;
    --line: #2e3040;
    --accent: #6b30a6;
    --accent-ink: #ffffff;
  }
}

:root {
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Public Sans", 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); }

/* Auditrek: the venture's own theme (contract rev 3) */
/* ============================================================
   Auditrek — "Chain of custody" theme
   Bar header · split hero with a CSS-drawn decision record
   Public Sans body · Space Grotesk display · mono for machine output
   ============================================================ */

:root {
  --space: 0.75rem;
  --measure: 66ch;
  --radius: 4px;
  --h1-size: clamp(2.35rem, 5vw, 3.5rem);
  --h1-lh: 1.06;

  /* custom colours (each redefined for dark below) */
  --mut2: #5f6375;            /* readable muted text, AA on bg and surface */
  --lead: #454a59;            /* lead paragraphs and quotes, AA+ in both schemes */
  --link: #6b30a6;            /* accent as text */
  --pre-bg: #15161a;
  --pre-fg: #e6e7ee;

  /* derived tints from tokens */
  --wash-c: color-mix(in srgb, var(--accent) 6%, var(--bg));
  --tint: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --chip-bg: color-mix(in srgb, var(--accent) 4%, var(--surface));
  --line-acc: color-mix(in srgb, var(--accent) 35%, var(--line));
  --shadow-c: color-mix(in srgb, var(--fg) 10%, transparent);
  --stamp-sh: color-mix(in srgb, var(--accent) 28%, transparent);

  /* the stacked-evidence offset layer, defined once for every page kind */
  --stack-offset: 8px;
  --stack-tint: var(--shadow-c);

  color-scheme: light;
}

[data-theme="dark"] {
  --mut2: #b1b5c4;
  --lead: #c9cdd9;
  --link: #c19ae8;
  --pre-bg: #0b0c11;
  --pre-fg: #e6e7ee;
  --wash-c: color-mix(in srgb, var(--accent) 13%, var(--bg));
  --tint: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --chip-bg: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --line-acc: color-mix(in srgb, var(--accent) 45%, var(--line));
  --shadow-c: color-mix(in srgb, #000 45%, transparent);
  --stamp-sh: color-mix(in srgb, var(--accent) 40%, transparent);
  --stack-tint: var(--shadow-c);
  color-scheme: dark;
}

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

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #ffffff; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

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

h1 { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 700; letter-spacing: -0.028em; }

p { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--mut2); }

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

.hidden { display: none !important; }

/* honeypot field (anti-spam, not content) */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- layout helpers ---------- */

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

/* home: every band head shares the .wrap bands' left edge;
   the narrow reading measure stays inside the wider box */
main[data-kind="home"] .narrow { max-width: 1180px; }
main[data-kind="home"] .narrow > * { max-width: 692px; }

main > section { padding-block: 3.9rem; }
main > section.hero,
main > section.cta,
main > section.page-head { padding-block: 0; }

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

.wash { background: var(--wash-c); }

/* ---------- eyebrow: the registry chip ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
  background: var(--chip-bg);
  border: 1px solid var(--line-acc);
  border-radius: 2px;
  padding: 0.3rem 0.7rem 0.26rem;
  margin: 0 0 0.4rem;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  flex: none;
}

/* ---------- section heads ---------- */

.section-head { position: relative; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; }
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 3px;
  background: var(--accent);
}
.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 1.05rem 0 0.55rem;
  max-width: 32ch;
}
.section-head h1 { margin: 1.05rem 0 0.55rem; }
.section-head p.muted { max-width: 62ch; margin-bottom: 0; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.74rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink, #ffffff);
  box-shadow: 3px 3px 0 var(--stamp-sh);
}
.button.primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--fg));
  color: var(--accent-ink, #ffffff);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line-acc);
  color: var(--fg);
}
.button.secondary:hover { border-color: var(--link); color: var(--link); }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

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

.site-header {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .logotype { font-family: var(--font-display); font-size: 1.28rem; line-height: 1; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  padding-block: 0.25rem;
}
.nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }

.nav a.cta {
  background: var(--accent);
  color: var(--accent-ink, #ffffff);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--stamp-sh);
}
.nav a.cta:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--fg));
  color: var(--accent-ink, #ffffff);
  text-decoration: none;
}

/* grouped nav menus, if the site ever uses them */
.navgroup { position: relative; }
.navgroup > button {
  background: none; border: 0; font: inherit; color: var(--fg);
  cursor: pointer; padding: 0.25rem 0; font-size: 0.92rem; font-weight: 500;
}
.navmenu {
  position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 0.5rem;
  display: grid; gap: 0.15rem;
  box-shadow: 6px 6px 0 var(--shadow-c);
  opacity: 0; pointer-events: none;
}
.navgroup:hover .navmenu,
.navgroup:focus-within .navmenu { opacity: 1; pointer-events: auto; }
.navmenu a { display: block; padding: 0.4rem 0.6rem; }

/* ---------- hero: the decision record ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--wash-c), var(--bg) 94%);
  border-bottom: 1px solid var(--line);
}

.hero .motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(200deg, #000 10%, transparent 62%);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 62%);
}
[data-theme="dark"] .hero .motif { opacity: 0.3; }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 4.5rem;
  align-items: start;
  padding-block: 4.6rem 5.2rem;
}

.hero .wrap > div { max-width: 56ch; }
.hero h1 { margin: 1.1rem 0 1.1rem; }
.hero .lead { font-size: 1.14rem; line-height: 1.7; color: var(--lead); margin: 0; }

/* the specimen record: pure CSS, mono because it is machine output */
.hero .wrap::after {
  content: "AUDITREK · EVIDENCE LEDGER\A \A record      004182\A system      credit-scoring-prod\A model       risk-v2.4.1\A timestamp   2026-09-25T07:42:11Z\A override    false\A prev_hash   9f3ab2…0c41\A hash        sha256(prev + payload)\A             = 71d0e4…c8a2\A \A chain       intact from seq 000001";
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  align-self: start;
  margin-top: 0.6rem;
  margin-right: 16px;
  white-space: pre;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 2.05;
  color: var(--lead);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem 1.45rem;
  box-shadow:
    var(--stack-offset) var(--stack-offset) 0 -1px var(--surface),
    var(--stack-offset) var(--stack-offset) 0 0 var(--line),
    calc(var(--stack-offset) * 2) calc(var(--stack-offset) * 2) 0 -1px var(--surface),
    calc(var(--stack-offset) * 2) calc(var(--stack-offset) * 2) 0 0 var(--line);
}

/* the registrar's seal, tilted over the record's corner */
.hero .wrap::before {
  content: "SIGNED\A SHA-256";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  z-index: 2;
  white-space: pre;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  line-height: 1.7;
  color: var(--link);
  background: var(--surface);
  border: 2px solid var(--link);
  border-radius: 3px;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 0 0 4px var(--surface);
  transform: translate(-6px, -10px) rotate(7deg);
}

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

.problem .narrow p { font-size: 1.13rem; line-height: 1.8; max-width: var(--measure); }
.problem .narrow p:last-child { margin-bottom: 0; }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}
.card:hover { border-color: var(--line-acc); }
.features .grid { grid-auto-rows: 1fr; }
.card .eyebrow { align-self: flex-start; }
.glyph { align-self: flex-start; }

.card h3 { font-size: 1.08rem; margin: 0 0 0.5rem; }
.card p { font-size: 0.93rem; line-height: 1.62; color: var(--mut2); margin: 0; }
.card p + p { margin-top: 0.6rem; }

.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--link);
  background: var(--chip-bg);
  border: 1.5px solid var(--line-acc);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.use-cases .card .eyebrow { font-size: 0.62rem; margin-bottom: 0.75rem; }
.use-cases .card h3 { font-size: 1.12rem; }

/* spotlights: staggered filed records */
.spotlights { padding-block: 4.4rem; }
.spotlights.wash { border-block: 1px solid var(--line); }

.spotlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 820px;
  width: 100%;
  box-shadow: var(--stack-offset) var(--stack-offset) 0 0 var(--stack-tint);
}
.spotlight.flip {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--accent);
  margin-left: auto;
  box-shadow: calc(-1 * var(--stack-offset)) var(--stack-offset) 0 0 var(--stack-tint);
}
.spotlight h2 { font-size: 1.4rem; margin: 0 0 0.6rem; }
.spotlight p { margin-bottom: 0; max-width: 60ch; }

/* steps: the chain rail */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  counter-reset: step;
}
ol.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  border-left: 2px dashed var(--line-acc);
}
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  padding-block: 1.05rem;
  position: relative;
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1.5px solid var(--line-acc);
  border-radius: 2px;
  color: var(--link);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}
ol.steps h3 { font-size: 1.05rem; margin: 0.4rem 0 0.4rem; }
ol.steps li p {
  margin: 0;
  color: var(--mut2);
  font-size: 0.95rem;
  max-width: 58ch;
}

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

figure.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--stack-offset) var(--stack-offset) 0 0 var(--stack-tint);
}
figure.frame .bar {
  display: flex;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--wash-c);
}
figure.frame .bar span,
figure.frame .bar i,
figure.frame .bar b {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-acc);
  display: inline-block;
}
figure.frame img { display: block; width: 100%; }

/* faq */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}
.faq details[open] { border-color: var(--line-acc); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--link);
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 0.85rem; }
.faq details p { padding: 0 1.15rem 1.05rem; margin: 0; color: var(--mut2); font-size: 0.94rem; line-height: 1.68; }

/* cta / capture */
.cta.wash {
  border-block: 1px solid var(--line);
  padding-block: 4.6rem;
}

.capture {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 1.8rem;
  margin-right: 10px;
  box-shadow: var(--stack-offset) var(--stack-offset) 0 0 var(--stack-tint);
}
.capture h2 { font-size: 1.6rem; margin: 0 0 0.7rem; }
.capture .muted { font-size: 0.97rem; max-width: 58ch; }

.capture form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
.capture input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
}
.capture input[type="email"]::placeholder { color: var(--mut2); }
.capture input[type="email"]:focus { border-color: var(--link); outline: 2px solid var(--link); outline-offset: 1px; }

.capture .note { font-size: 0.8rem; color: var(--mut2); margin: 0.95rem 0 0; }
.capture .note a { color: var(--link); }

.capture .thanks {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--link);
  border: 1px dashed var(--line-acc);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.3rem 0 0;
}

/* latest posts on home */
.latest .narrow, .latest .wrap { }

/* ---------- page head (spec pages) ---------- */

.page-head {
  background: linear-gradient(180deg, var(--wash-c), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head .narrow { padding-block: 3.6rem 3rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin: 1rem 0 0.8rem; }
.page-head .lead { font-size: 1.14rem; line-height: 1.7; color: var(--lead); max-width: var(--measure); margin: 0; }

/* ---------- crumbs / bylines ---------- */

.crumbs {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut2);
  margin: 0 0 1.9rem;
}
.crumbs a { color: var(--mut2); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }

.byline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mut2);
  border-block: 1px solid var(--line);
  padding: 0.6rem 0;
  margin: 1.6rem 0 2.1rem;
}

/* ---------- content pages ---------- */

article.page > .narrow,
main > article > .narrow { padding-block: 3.6rem 3.2rem; }

article.page h1,
main > article h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); margin-bottom: 0.7rem; }

article.page .lead,
main > article .lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--lead);
  max-width: var(--measure);
  margin-bottom: 0;
}

.page-hero { margin: 2.25rem 0 0; }
.page-hero img { border: 1px solid var(--line); border-radius: var(--radius); }

figure.cover { margin: 0 0 2rem; }
figure.cover img {
  width: 100%;
  aspect-ratio: auto 16 / 9;
  object-fit: cover;
  background: var(--tint);
  color: var(--mut2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* numbered blocks: § counters */
article.page > .narrow { counter-reset: blk; }
article.page section.block { counter-increment: blk; }

.block { margin-top: 3rem; }
.block > h2 {
  font-size: 1.45rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
article.page section.block > h2::before {
  content: counter(blk, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  padding: 0.12em 0.3em;
  margin-right: 0.65rem;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--link);
  background: var(--chip-bg);
  border: 1.5px solid var(--line-acc);
  border-radius: 2px;
  transform: translateY(-0.15em);
}

aside.block.callout {
  background: var(--tint);
  border: 1px solid var(--line-acc);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
}
aside.block.callout > h2 { font-size: 1.1rem; border-bottom: 0; padding-bottom: 0; margin-bottom: 0.6rem; }
aside.block.callout .prose p:last-child { margin-bottom: 0; }

/* plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1.6rem;
  counter-reset: plan;
}
.plan-cards .card {
  counter-increment: plan;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding-top: 1.4rem;
}
.plan-cards .card h3 { font-size: 1.25rem; line-height: 1.2; }
.plan-cards .card::before {
  content: "Join the waitlist ↓";
  order: 8;
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--link);
}
.plan-cards .card::after {
  content: "ref PLAN-0" counter(plan) " · pilot seat reserved on signup";
  order: 9;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mut2);
}
.plan-cards .price { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--fg); margin: 0.3rem 0 0.2rem; }
.plan-cards .meta { font-size: 0.85rem; color: var(--mut2); }
.plan-cards ul.includes { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.plan-cards ul.includes li { padding: 0.35rem 0 0.35rem 1.1rem; position: relative; font-size: 0.92rem; color: var(--mut2); border-top: 1px solid var(--line); }
.plan-cards ul.includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 6px; height: 6px;
  background: var(--accent);
}

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }

/* sources */
.sources { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.88rem; color: var(--mut2); }
.sources a { overflow-wrap: anywhere; }
.sources ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.sources li { margin: 0.35rem 0; }

.related { margin-top: 3rem; }

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

.prose { max-width: var(--measure); font-size: 1.02rem; line-height: 1.76; }
.prose > * { margin-block: 0 1.15em; }
.prose h2 { font-size: 1.4rem; margin-top: 2.3em; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.12rem; margin-top: 1.9em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--link); font-weight: 600; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--accent);
  color: var(--lead);
}
.prose blockquote p { font-size: 1.06rem; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.08em 0.35em;
}

.prose pre {
  background: var(--pre-bg);
  color: var(--pre-fg);
  border: 1px solid color-mix(in srgb, var(--pre-fg) 14%, var(--pre-bg));
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

/* the ledger table */
.prose table,
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.5;
  border-top: 2px solid var(--fg);
}
.prose table { margin: 1.8em 0; }
.table-wrap { overflow-x: auto; margin: 1.8em 0; }
.table-wrap table { margin: 0; }

.prose th, .table-wrap th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mut2);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--line-acc);
}
.prose td, .table-wrap td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: break-word;
}
.prose td:first-child, .table-wrap td:first-child { font-weight: 500; }
/* the field column fits its labels: whole-word wrapping, never mid-word breaks */
.prose th:first-child, .table-wrap th:first-child,
.prose td:first-child, .table-wrap td:first-child {
  min-width: 9em;
  overflow-wrap: normal;
}

/* ---------- post lists (blog, changelog, latest, related) ---------- */

ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
/* only a dated row (the blog) carries the ledger date column;
   related lists, the 404 and the site map start at the content margin */
ul.post-list li:has(> .meta) {
  grid-template-columns: 118px minmax(0, 1fr);
  column-gap: 1.6rem;
}
ul.post-list li:has(> .meta) > a { grid-column: 2; grid-row: 1; }
ul.post-list li:has(> .meta) > p { grid-column: 2; }
ul.post-list li:first-child { border-top: 0; padding-top: 0.35rem; }
ul.post-list li:last-child { border-bottom: 1px solid var(--line); }
ul.post-list li > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
}
ul.post-list li > a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
ul.post-list li > .meta {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mut2);
  padding-top: 0.3rem;
}
ul.post-list li > p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--mut2);
  max-width: 62ch;
}

/* index pages (/for/ and kin): the rows fill the centred reading column,
   so the list's right edge matches the head's left rule and the band sits
   with equal margins at 1280 instead of dead space down the right */
main section.page-body ul.post-list > li { max-width: none; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

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

.site-footer {
  margin-top: 4.5rem;
  background: var(--surface);
  border-top: 4px double var(--line-acc);
  font-size: 0.9rem;
}
main:has(.cta:last-child) + .site-footer { margin-top: 0; }

.site-footer .footer-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2.5rem 1.5rem;
}
.site-footer .footer-map > div {
  grid-column: 1;
  border-left: 2px solid var(--line-acc);
  padding-left: 1.15rem;
}
.site-footer .footer-map > div:nth-child(2) { grid-column: 2; }
.site-footer .footer-map > div:nth-child(3) { grid-column: 3; }
/* reserved ruled columns keep the ledger grid even when the map is thin */
.site-footer .footer-map::before,
.site-footer .footer-map::after {
  content: "";
  height: 0;
  margin-top: 0.7rem;
  border-top: 1px dashed var(--line);
}
.site-footer .footer-map::before { grid-column: 2; grid-row: 1; }
.site-footer .footer-map::after { grid-column: 3; grid-row: 1; }
.site-footer .footer-map:has(> div:nth-child(2))::before { content: none; }
.site-footer .footer-map:has(> div:nth-child(3))::after { content: none; }
.site-footer .eyebrow {
  border: 0;
  background: none;
  padding: 0;
  color: var(--mut2);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.site-footer .footer-map ul { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.site-footer .footer-map li { margin: 0.4rem 0; }
.site-footer .footer-map a { color: var(--mut2); text-decoration: none; }
.site-footer .footer-map a:hover { color: var(--link); text-decoration: underline; }

.site-footer > .wrap:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 1.9rem;
}
.site-footer strong { font-family: var(--font-display); font-weight: 700; }
.site-footer .muted { font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.site-footer nav a { color: var(--mut2); 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;
  color: var(--mut2);
  font-size: 0.8rem;
  text-decoration: none;
}
a.stamp:hover { color: var(--fg); }
a.stamp img { display: block; }

/* ---------- 404 & generic sections ---------- */

body[data-kind="not_found"] main > section { padding-block: 5.5rem; }
body[data-kind="not_found"] .section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
body[data-kind="not_found"] .section-head::before {
  content: "404";
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--link) 40%, var(--bg));
  margin-bottom: 1.2rem;
}

/* ---------- motion (only when allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  a, .button, .card, .nav a, .navmenu,
  .faq summary::after, .capture input[type="email"] {
    transition: color 140ms ease, background-color 140ms ease,
      border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  }
  .button.primary:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--stamp-sh); }
  .button.primary { transition: transform 120ms ease, background-color 140ms ease, box-shadow 120ms ease; }
}

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

@media (max-width: 980px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
    padding-block: 3.4rem 4rem;
  }
  .hero .wrap::after {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    margin-right: 16px;
  }
  .hero .wrap::before {
    grid-column: 1;
    grid-row: 2;
    transform: translate(-4px, -12px) rotate(7deg);
  }
  .gallery .shots { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-footer .footer-map { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-map > div,
  .site-footer .footer-map > div:nth-child(2),
  .site-footer .footer-map > div:nth-child(3) { grid-column: 1; }
  .site-footer .footer-map::before,
  .site-footer .footer-map::after { content: none; }
}

@media (max-width: 700px) {
  main > section { padding-block: 3rem; }
  .spotlight { padding: 1.5rem 1.4rem; }
  .capture { padding: 1.6rem 1.35rem 1.4rem; }
  .cta.wash { padding-block: 3.4rem; }
}

/* phone header: brand + always-visible CTA on row one, scrollable link strip below */
@media (max-width: 640px) {
  .site-header .wrap {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-block: 0.65rem 0;
  }
  .brand { align-self: flex-start; }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: 1.1rem;
    padding: 0.15rem 2.75rem 0.65rem 0;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.8125rem; white-space: nowrap; flex: none; padding-block: 0.15rem; }
  /* the primary action leaves the strip and pins beside the brand */
  .nav a.cta {
    position: absolute;
    top: 0.55rem;
    right: 1.25rem;
    font-size: 0.8rem;
    padding: 0.42rem 0.85rem;
    box-shadow: none;
  }
  /* right fade over the strip: an obvious "more" affordance */
  .site-header .wrap::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 3rem;
    height: 2.4rem;
    background: linear-gradient(90deg, transparent, var(--surface) 80%);
    pointer-events: none;
  }
}

@media (max-width: 660px) {
  .grid.cols-3, .grid.cols-2, .benefits, .plan-cards { grid-template-columns: minmax(0, 1fr); }
  ul.post-list li:has(> .meta) { grid-template-columns: minmax(0, 1fr); }
  ul.post-list li:has(> .meta) > a,
  ul.post-list li:has(> .meta) > p { grid-column: 1; }
  ul.post-list li > .meta { grid-column: 1; grid-row: auto; padding-top: 0; }
  ol.steps li { grid-template-columns: 50px minmax(0, 1fr); }
  ol.steps::before { left: 17px; }
  ol.steps li::before { width: 36px; height: 36px; }
  .hero .wrap::after { font-size: 0.72rem; padding: 1.1rem 1.1rem 1.2rem; }
}

.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; }

/* engine: while the phone menu is shut every box of the header sits on the row's own centre, so the wordmark, the trigger and the action read as one row */
@media (max-width: 720px) {
  header.site-header .wrap > .brand,
  header.site-header .wrap > details.nav-toggle { align-self: center; margin-block: 0; }
  header.site-header .nav-toggle:not([open]) + .nav,
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { align-self: center; }
}

@layer engine {
/* engine: a question and its answer of one of the engine's own questions bands are one measure, the pair's own */
.faq details { display: block !important; }
.faq details > summary, .faq details > p { width: auto !important; max-width: none !important; float: none !important; }
}

@layer engine {
/* engine: the words of a page print in full, so no box the engine's own copy is printed in cuts them */
main :is(h1, h2, h3, h4, p, li, blockquote, summary) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important; max-height: none !important; -webkit-line-clamp: none !important; line-clamp: none !important; }
}

@layer engine {
/* engine: in the dark scheme the engine's own label is drawn in the pack's label ink lifted into its body ink, so it reads on the ground the pack gives it */
[data-theme="dark"] .eyebrow, [data-theme="dark"] .eyebrow::before, [data-theme="dark"] .eyebrow::after { color: var(--muted) !important; color: color-mix(in oklab, var(--muted) 30%, var(--fg)) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow, :root:not([data-theme="light"]) .eyebrow::before, :root:not([data-theme="light"]) .eyebrow::after { color: var(--muted) !important; color: color-mix(in oklab, var(--muted) 30%, var(--fg)) !important; }
}
}

@layer engine {
/* engine: while the phone menu is shut every box of the header is laid out in the header's own row and drawn where that row put it, so no box of it is ever drawn over the action */
@media (max-width: 720px) {
  header.site-header .wrap > .brand,
  header.site-header .wrap > details.nav-toggle,
  header.site-header .nav-toggle:not([open]) + .nav,
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { position: static !important; inset: auto !important; transform: none !important; translate: none !important; }
}
}

/* engine: this theme never styles .hero-media, so the hero screenshot flows into the grid's next free cell and can never share the text's */
.hero .wrap > .hero-media { grid-column: auto !important; grid-row: auto !important; }

/* engine: this theme's own rules size or place a menu's panel for the bar, so inside the open phone drawer the panel is given back to the drawer: drawn where the drawer's own column put it, no wider than the box that holds it, with the drawer's own room at its far end and one column of rows that fits it */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > details { min-width: 0 !important; max-width: 100% !important; transform: none !important; translate: none !important; }
  header.site-header .nav-toggle[open] + .nav > details > .navmenu { box-sizing: border-box !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; margin-inline: 0 !important; position: static !important; inset-inline: auto !important; transform: none !important; translate: none !important; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; padding-inline-end: 1rem !important; }
  header.site-header .nav-toggle[open] + .nav > details > .navmenu > a { min-width: 0 !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: break-word !important; }
}

/* engine: this theme's own rules give a bar entry or the name inside it a size of its own, so on the bar each entry, the label box inside a menu and that name are as wide as what they hold, and a menu's box begins and ends on ink */
@media (min-width: 721px) {
  header.site-header nav.nav > details.navgroup,
  header.site-header nav.nav > details.navgroup > summary { flex: 0 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; inline-size: auto !important; min-inline-size: 0 !important; max-inline-size: none !important; }
  header.site-header nav.nav > a:not(.cta),
  header.site-header nav.nav > details.navgroup > summary > .navlabel { flex: 0 1 auto !important; width: auto !important; min-width: auto !important; max-width: none !important; inline-size: auto !important; min-inline-size: auto !important; max-inline-size: none !important; }
}

/* engine: this theme's own rules can draw the panel of the menu at the end of the bar somewhere other than where the engine hung it, and that is the one panel with the window's edge beside it, so on the bar it is hung again from its own right edge, in the box the engine gave it and moved by nothing */
@media (min-width: 721px) {
  header.site-header nav.nav > details.navgroup[data-bar-end] { position: relative !important; }
  header.site-header nav.nav > details.navgroup[data-bar-end] > .navmenu { position: absolute !important; left: auto !important; right: -0.75rem !important; margin-inline: 0 !important; transform: none !important; translate: none !important; }
}

/* engine: this theme's own rules size a stacked table's cards or the label inside one, and under 600px a label's line IS the card's own width, so the cards are sized by the window again and each label takes the whole of the line it is given */
@media (max-width: 600px) {
  .table-wrap, .table-wrap table, .table-wrap tbody, .table-wrap tr { min-width: 0 !important; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr { width: auto !important; }
  .table-wrap td[data-label]::before { width: auto !important; min-width: 0 !important; max-width: none !important; }
}

/* engine: this theme's own rules hold a run of text to one line somewhere, and under 600px a card's lines read down the window, so every line of a stacked card wraps and breaks inside the card again */
@media (max-width: 600px) {
  .table-wrap td, .table-wrap td[data-label]::before { white-space: normal !important; overflow-wrap: anywhere !important; }
}

@layer engine {
/* engine: this theme gives a product capture a height of its own, so a wide capture's frame is as tall as the picture inside it again, at every width, and nothing cuts the capture off part way down */
figure.frame:not(.phone), *:has(> figure.frame:not(.phone)) { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; }
figure.frame:not(.phone) > img { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; }
}

@layer engine {
/* engine: this theme paints or pushes a product capture about, so the picture inside a capture's frame is drawn where the engine laid it out again, at every width, and nothing takes the picture of the product past that frame's own edge */
figure.frame > img { transform: none !important; scale: none !important; translate: none !important; rotate: none !important; margin-inline: 0 !important; padding-inline: 0 !important; }
}

@layer engine {
/* engine: this theme lays a product capture's picture out somewhere other than its own frame, so a capture's frame is an upright block and the picture is its own in-flow child again, at every width, and nothing lays the picture out wider than the frame that crops it */
figure.frame { display: block !important; writing-mode: horizontal-tb !important; }
figure.frame > img { position: static !important; float: none !important; }
}

@layer engine {
/* engine: this theme gives a product capture a size or a fit of its own, so a phone app's capture is drawn at the width the engine sized it to and its picture is fitted as the engine fitted it, at every width */
figure.frame.phone { 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; width: min(18.5rem, calc(80svh * var(--frame-ratio, 390 / 844))) !important; }
figure.frame.phone > img { 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; }
}

/* engine: this theme can put the two gaps inside a card out of step, so the parts of one of the engine's cards are one step apart again: a card's heading stands off its words exactly as its icon stands off the heading */
:is(.benefits, .grid) > .card > :is(.glyph, h3) { margin-block: 0 var(--space, 1rem) !important; }

@layer engine {
/* engine: under 600px a phone app's capture is drawn across the box it was given, up to the pixels it was taken at, so the words inside the picture can be read */
@media (max-width: 600px) {
  figure.frame.phone { width: min(100%, 100vw, 390px) !important; }
}
}

/* engine: the shape blocks a page review asked for (a figure band, a steps band, a comparison strip) */
.figure-band > .figure-band-body { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: calc(var(--space, 1rem) * 1.5) !important; align-items: center !important; min-width: 0 !important; max-width: 100% !important; }
.figure-band > .figure-band-body > .figure-band-words, .figure-band > .figure-band-body > .figure-band-media { grid-column: 1 !important; grid-row: auto !important; min-width: 0 !important; margin: 0 !important; }
@media (min-width: 760px) {
  .figure-band:not(.is-wide) > .figure-band-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important; }
  .figure-band:not(.is-wide) > .figure-band-body > .figure-band-words { grid-column: 1 !important; grid-row: 1 !important; }
  .figure-band:not(.is-wide) > .figure-band-body > .figure-band-media { grid-column: 2 !important; grid-row: 1 !important; }
}
.figure-band-media > figure.frame { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; position: static !important; transform: none !important; float: none !important; }
.figure-band-media > figure.frame > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; }
.figure-band-media > figure.frame.phone { width: min(16rem, 100%) !important; margin-inline: auto !important; }
/* engine: a band that CLOSES with the picture its own words name draws that box alone, after the words or the links it belongs to, with one step of clear space above it (components.band_shot_box, a div and never one of a page's own .block sections) */
div.figure-band { margin: calc(var(--space, 1rem) * 1.5) 0 0 !important; }
/* engine: and where that box LEADS a band's own cards rather than closing the band (the what-it-does band's picture, components.features_grid) it carries the same step of clear space below it, so the picture never sits against the first card */
div.figure-band:not(:last-child) { margin-bottom: calc(var(--space, 1rem) * 1.5) !important; }
.steps-band .steps > li > div { min-width: 0 !important; }
.steps-band .steps > li .step-shot { display: block !important; min-width: 0 !important; margin: var(--space, 1rem) 0 0 !important; }
.steps-band .steps > li .step-shot > figure.frame { box-sizing: border-box !important; width: 100% !important; max-width: 36rem !important; min-width: 0 !important; margin: 0 !important; position: static !important; transform: none !important; float: none !important; }
.steps-band .steps > li .step-shot > figure.frame > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; }
.steps-band .steps > li .step-shot > figure.frame.phone { width: min(13rem, 100%) !important; }

/* engine: a wide capture under its words at the column's width, never past its own size, whole at every width */
:is(.figure-band.is-wide .figure-band-media, .steps-band .steps > li .step-shot.is-wide) { box-sizing: border-box !important; width: 100% !important; max-width: min(100%, var(--shot-w, 100%)) !important; min-width: 0 !important; margin-inline: 0 !important; }
:is(.figure-band.is-wide .figure-band-media, .steps-band .steps > li .step-shot.is-wide) > figure.frame { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; position: static !important; transform: none !important; float: none !important; }
:is(.figure-band.is-wide .figure-band-media, .steps-band .steps > li .step-shot.is-wide) > figure.frame > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; }

.comparison-strip > .strip-cells { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: var(--space, 1rem) !important; }
.comparison-strip > .strip-cells > .strip-cell { grid-column: auto !important; grid-row: auto !important; margin-block: 0 !important; min-width: 0 !important; }
@media (min-width: 760px) { .comparison-strip > .strip-cells { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* engine: a band of the site plan's cards as rows, each with its picture */
.feature-rows { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: calc(var(--space, 1rem) * 2) !important; margin: 0 !important; padding: 0 !important; }
.feature-rows > .feature-row { grid-column: 1 / -1 !important; grid-row: auto !important; display: block !important; width: auto !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 !important; transform: none !important; float: none !important; }
/* and the cards it has no picture for at all, as the band's own grid, last in the list: the list's own gap is the space above it */
.feature-rows > .grid { grid-column: 1 / -1 !important; margin: 0 !important; min-width: 0 !important; }
.feature-row > .feature-row-body { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: calc(var(--space, 1rem) * 1.5) !important; align-items: center !important; min-width: 0 !important; max-width: 100% !important; }
.feature-row > .feature-row-body > .feature-row-words, .feature-row > .feature-row-body > .feature-row-media { grid-column: 1 !important; grid-row: auto !important; min-width: 0 !important; margin: 0 !important; }
.feature-row-media > figure.frame { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; position: static !important; transform: none !important; float: none !important; }
.feature-row-media > figure.frame > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; }
.feature-row.is-phone .feature-row-media > figure.frame.phone { width: min(16rem, 100%) !important; margin-inline: auto !important; }
.feature-row.is-art .feature-row-media > figure.illustration { box-sizing: border-box !important; display: block !important; width: min(24rem, 100%) !important; max-width: 100% !important; min-width: 0 !important; margin: 0 auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; position: static !important; transform: none !important; float: none !important; }
.feature-row.is-art .feature-row-media > figure.illustration > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; object-fit: contain !important; border-radius: var(--radius, 12px) !important; }
@media (min-width: 760px) {
  .feature-row.is-phone > .feature-row-body, .feature-row.is-art > .feature-row-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; }
  .feature-row.is-phone > .feature-row-body > .feature-row-words, .feature-row.is-art > .feature-row-body > .feature-row-words { grid-column: 1 !important; grid-row: 1 !important; }
  .feature-row.is-phone > .feature-row-body > .feature-row-media, .feature-row.is-art > .feature-row-body > .feature-row-media { grid-column: 2 !important; grid-row: 1 !important; }
  .feature-row.is-phone.flip > .feature-row-body, .feature-row.is-art.flip > .feature-row-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) !important; }
  .feature-row.is-phone.flip > .feature-row-body > .feature-row-words, .feature-row.is-art.flip > .feature-row-body > .feature-row-words { grid-column: 2 !important; }
  .feature-row.is-phone.flip > .feature-row-body > .feature-row-media, .feature-row.is-art.flip > .feature-row-body > .feature-row-media { grid-column: 1 !important; }
}

/* engine: a wide capture under its words at the column's width, never past its own size, whole at every width */
:is(.feature-row.is-wide .feature-row-media) { box-sizing: border-box !important; width: 100% !important; max-width: min(100%, var(--shot-w, 100%)) !important; min-width: 0 !important; margin-inline: 0 !important; }
:is(.feature-row.is-wide .feature-row-media) > figure.frame { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; position: static !important; transform: none !important; float: none !important; }
:is(.feature-row.is-wide .feature-row-media) > figure.frame > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; }
