/* Preview A, the story (views/preview/a.ts, static/js/scrolly.js): one product made from one set of requirements,
   told by scrolling. The design system of the previous A (static/css/preview-a.css, now /preview/landing/a-v2):
   Schibsted Grotesk and JetBrains Mono, a 12-column grid, a cool grey page, ink in three strengths, hairlines,
   copper for the main action only, the product colours only in the wordmarks. New here: the sticky stage of the
   story (a canvas over pre-rendered pictures, the requirements as a document, code and plots on dark screens),
   the hero picture, the ledger and the composer at the end. Radius 4 px on controls, none on panels; no shadows. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/static/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- tokens: dark (the site's default), and the light theme by the OS or the toggle */

:root {
  --f-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-paper: #0b0e14;
  --f-band: #10151e;
  --f-ink: #e9edf3;
  --f-ink-2: #aeb8c6;
  --f-ink-3: #8893a3;
  --f-rule: #212a37;
  --f-rule-2: #323d4e;
  --f-act: #e8894a;
  --f-act-hover: #f2a06a;
  --f-act-ink: #1b0f06;
  --f-warn: #e7b94a;
  --f-focus: #8fb4ff;
  --f-screen: #06080c;
  --f-screen-2: #0c1117;
  --f-gutter: 24px;
  --f-wrap: 1240px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --f-paper: #eef0f3;
    --f-band: #e2e5ea;
    --f-ink: #0d1117;
    --f-ink-2: #3a4250;
    --f-ink-3: #5b6472;
    --f-rule: #ccd1d9;
    --f-rule-2: #b2b9c4;
    --f-act: #b4561f;
    --f-act-hover: #9c4818;
    --f-act-ink: #ffffff;
    --f-warn: #8c5600;
    --f-focus: #1f4fc0;
    --f-screen: #0e131b;
    --f-screen-2: #151b25;
  }
}
:root[data-theme="light"] {
  --f-paper: #eef0f3;
  --f-band: #e2e5ea;
  --f-ink: #0d1117;
  --f-ink-2: #3a4250;
  --f-ink-3: #5b6472;
  --f-rule: #ccd1d9;
  --f-rule-2: #b2b9c4;
  --f-act: #b4561f;
  --f-act-hover: #9c4818;
  --f-act-ink: #ffffff;
  --f-warn: #8c5600;
  --f-focus: #1f4fc0;
  --f-screen: #0e131b;
  --f-screen-2: #151b25;
}
@media (max-width: 640px) {
  :root {
    --f-gutter: 16px;
  }
}

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

body.pv-s {
  /* the site's components in this page (the composer, the MCP block, the sign-up modal) take this page's type and colours */
  --sans: var(--f-sans);
  --mono: var(--f-mono);
  --bg: var(--f-paper);
  --bg-1: var(--f-paper);
  --bg-2: var(--f-band);
  --bg-3: var(--f-band);
  --line: var(--f-rule);
  --line-2: var(--f-rule-2);
  --text: var(--f-ink);
  --text-2: var(--f-ink-2);
  --text-3: var(--f-ink-3);
  --accent: var(--f-act);
  --accent-2: var(--f-act-hover);
  --accent-ink: var(--f-act-ink);
  background: var(--f-paper);
  color: var(--f-ink);
  font: 400 16px/1.6 var(--f-sans);
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pv-s main,
.pv-s header,
.pv-s footer {
  font-family: var(--f-sans);
}
:where(.pv-s) h1,
:where(.pv-s) h2,
:where(.pv-s) h3,
:where(.pv-s) p {
  margin: 0;
}
.pv-s h1,
.pv-s h2,
.pv-s h3 {
  font-family: var(--f-sans);
  color: var(--f-ink);
  text-wrap: balance;
}
:where(.pv-s) a {
  color: inherit;
}
.pv-s :focus-visible {
  outline: 2px solid var(--f-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.pv-s code {
  font: 450 0.86em/1.4 var(--f-mono);
  letter-spacing: 0;
}
.f-wrap {
  max-width: calc(var(--f-wrap) + 2 * var(--f-gutter));
  margin-inline: auto;
  padding-inline: var(--f-gutter);
}
.f-only-light,
.f-only-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .f-only-dark {
    display: block;
  }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .f-only-light {
    display: block;
  }
}
:root[data-theme="dark"] .f-only-dark {
  display: block;
}
:root[data-theme="light"] .f-only-light {
  display: block;
}
:root[data-theme="dark"] .f-only-light,
:root[data-theme="light"] .f-only-dark {
  display: none;
}
.f-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pv-s section[id] {
  scroll-margin-top: 56px;
}

/* the product wordmarks in this page: both parts keep the heading's weight; on a dark screen the dark-theme tones */
.f-screen-band {
  --wm-faezor: #b8ccf7;
  --c-fw: #b08cff;
  --c-sim: #ff7a2b;
  --c-pcb: #4fb06a;
  --c-cad: #3cb8e6;
}

/* ---------- buttons and links */

.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 15px/1 var(--f-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.f-btn-act {
  background: var(--f-act);
  color: var(--f-act-ink);
}
.f-btn-act:hover {
  background: var(--f-act-hover);
  color: var(--f-act-ink);
}
.f-btn-line {
  border-color: var(--f-rule-2);
  background: transparent;
  color: var(--f-ink);
}
.f-btn-line:hover {
  border-color: var(--f-ink-3);
}
.f-btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.f-link {
  font: 500 15px/1 var(--f-sans);
  text-decoration: none;
  color: var(--f-ink);
  padding: 10px 2px;
}
.f-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pv-s .pv-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--f-ink-2);
  cursor: pointer;
  border-radius: 4px;
}
.pv-s .pv-icon-btn svg {
  width: 18px;
  height: 18px;
}
.pv-hide-sm {
  display: inline;
}

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

.f-head {
  background: var(--f-paper);
  position: relative;
  z-index: 40;
}
.f-head-row {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 620 21px/1 var(--f-sans);
  letter-spacing: -0.025em;
}
.f-brand img {
  width: 40px;
  height: auto;
}
.f-nav {
  display: flex;
  gap: 28px;
}
.f-nav a {
  font: 500 15px/1 var(--f-sans);
  color: var(--f-ink-2);
  text-decoration: none;
  padding: 10px 0;
}
.f-nav a:hover {
  color: var(--f-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.f-head-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.f-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--f-ink);
  cursor: pointer;
  place-items: center;
}
.f-menu svg {
  width: 22px;
  height: 22px;
}

/* ---------- shared primitives (from the previous A's chapters) */

.f-ch-grid > *,
.f-chat {
  min-width: 0;
}

.f-ch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
}
.f-ch-title {
  font: 600 clamp(2rem, 3.5vw, 3.1rem) / 1 var(--f-sans);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.f-ch-title-plain {
  font-weight: 560;
}
.f-ch-line {
  font: 500 1.3rem/1.28 var(--f-sans);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 24rem;
  text-wrap: balance;
}
.f-ch-text p:not(.f-ch-line) {
  color: var(--f-ink-2);
  max-width: 34rem;
}
.f-spec {
  margin: 32px 0 0;
  border-top: 1px solid var(--f-ink);
}
.f-spec > div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--f-rule);
}
.f-spec dt {
  font-size: 14px;
  color: var(--f-ink-3);
}
.f-spec dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.f-h3 {
  font: 620 1rem/1.3 var(--f-sans);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--f-ink);
}
.f-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--f-ink-3);
  max-width: 52ch;
}

.f-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.f-table th,
.f-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--f-rule);
  font-weight: 400;
}
.f-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--f-ink-3);
  border-bottom-color: var(--f-ink);
  padding-top: 0;
}
.f-table tbody th {
  font-weight: 500;
}
/* ---------- faezor, in the middle */

.f-centre {
  padding-block: clamp(56px, 8vw, 120px);
}
.f-centre-grid .f-ch-text {
  grid-column: 1 / span 5;
}
.f-chat {
  grid-column: 7 / span 6;
}
.f-chat-you,
.f-chat-faezor {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  font-size: 16px;
}
.f-chat-you > span,
.f-chat-faezor > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--f-ink-3);
}
.f-chat-you {
  color: var(--f-ink-2);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--f-rule);
}
.f-routes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--f-ink);
}
.f-routes li {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--f-rule);
}
.f-routes li > div {
  display: grid;
  gap: 2px;
  align-content: start;
}
.f-routes .wm {
  font: 620 1.05rem/1.2 var(--f-sans);
  letter-spacing: -0.02em;
}
.f-routes li > div > span {
  font-size: 13px;
  color: var(--f-ink-3);
}
.f-routes p {
  font-size: 14.5px;
  color: var(--f-ink-2);
}

/* the honeycomb of links: faezor in the middle, the products round it (each goes to its chapter) */
.f-comb {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 40px;
  overflow: visible;
}
.f-comb .hc-name {
  font-family: var(--f-sans);
  fill: var(--f-ink);
  font-size: 14px;
  font-weight: 560;
}
/* outlines, not fills: the product colour is the edge and the icon */
.f-comb .hc-fill {
  fill: var(--f-paper);
  stroke: var(--hc, var(--wm-faezor));
  stroke-width: 3;
}
.f-comb .hc-faezor .hc-fill {
  stroke: var(--wm-faezor);
}
.f-comb .hc-icon {
  stroke: var(--hc);
}
.f-comb .hc-link:hover .hc-fill,
.f-comb .hc-link:focus-visible .hc-fill {
  fill: color-mix(in srgb, var(--hc, var(--wm-faezor)) 12%, var(--f-paper));
}
.f-comb .hc-link:hover .hc {
  filter: none;
}
.f-comb .hc-pcb {
  --hc: var(--c-pcb);
}
.f-comb .hc-cad {
  --hc: var(--c-cad);
}
.f-comb .hc-firmware {
  --hc: var(--c-fw);
}
.f-comb .hc-sim {
  --hc: var(--c-sim);
}
.f-comb .hc-free {
  stroke: var(--f-rule-2);
}

/* ---------- MCP and plans */

.f-mcp {
  background: var(--f-band);
  padding-block: clamp(56px, 7vw, 104px);
}
.f-mcp .f-ch-text {
  grid-column: 1 / span 4;
}
.f-mcp-block {
  grid-column: 5 / span 8;
}
.f-mcp .mcp {
  max-width: none;
}
.f-mcp .mcp-endpoint {
  background: var(--f-paper);
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  box-shadow: none;
}
.f-mcp .mcp-clients {
  background: transparent;
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  box-shadow: none;
}
.f-mcp .mcp-play {
  display: none;
}
.f-mcp .mcp-clients.is-playing [aria-selected="true"] > .mcp-bar {
  animation: none;
}
.f-mcp .copy-btn {
  border-radius: 4px;
}
/* touch: every control of the block a full finger high */
@media (pointer: coarse), (max-width: 899px) {
  .f-mcp [role="tab"],
  .f-mcp .mcp-endpoint .copy-btn {
    min-height: 44px;
  }
}
.f-mcp .mcp-foot .btn {
  border-radius: 4px;
}
.f-plans {
  padding-block: clamp(56px, 8vw, 120px);
}
.f-plans .f-ch-text {
  grid-column: 1 / span 4;
}
.f-plan-table {
  grid-column: 5 / span 8;
}
.f-plans-t thead th:not(:first-child),
.f-plans-t td {
  width: 27%;
}
.f-plan-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.f-plan-table .f-h3 {
  margin-top: 56px;
}
.f-limits {
  margin-top: 8px;
}
.f-page-title {
  font: 560 clamp(2.4rem, 4.4vw, 3.8rem) / 1 var(--f-sans);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.f-plans-page {
  padding-top: clamp(32px, 5vw, 72px);
}

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

.f-foot {
  border-top: 1px solid var(--f-rule);
  padding-block: 72px 32px;
}
.f-foot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}
.f-foot-line {
  grid-column: 1 / span 5;
  font: 500 1.6rem/1.2 var(--f-sans);
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}
.f-foot-grid nav {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.f-foot-grid nav:nth-of-type(1) {
  grid-column: 7 / span 2;
}
.f-foot-grid h2 {
  font: 500 13px/1.3 var(--f-sans);
  color: var(--f-ink-3);
  margin-bottom: 4px;
}
.f-foot-grid a {
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
}
.f-foot-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.f-foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--f-rule);
  font-size: 13px;
  color: var(--f-ink-3);
}
.pv-s .theme-switch {
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  background: transparent;
  padding: 2px;
}
.pv-s .theme-switch button {
  border-radius: 3px;
  color: var(--f-ink-3);
}
.pv-s .theme-switch button[aria-pressed="true"] {
  background: var(--f-band);
  color: var(--f-ink);
}

/* ---------- the other pages: pricing (above), the MCP docs and the legal texts */

.f-sub {
  min-height: 480px;
}
.f-doc {
  padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 120px);
}
.f-prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--f-ink-2);
}
.f-prose h1 {
  font: 560 clamp(2.3rem, 4.2vw, 3.5rem) / 1.02 var(--f-sans);
  letter-spacing: -0.04em;
  color: var(--f-ink);
  margin-bottom: 28px;
}
.f-prose h2 {
  font: 620 1.45rem/1.2 var(--f-sans);
  letter-spacing: -0.025em;
  color: var(--f-ink);
  margin: 48px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--f-ink);
}
.f-prose h3 {
  font: 620 1.1rem/1.3 var(--f-sans);
  color: var(--f-ink);
  margin: 28px 0 8px;
}
.f-prose p,
.f-prose ul,
.f-prose ol {
  margin: 0 0 16px;
}
.f-prose li {
  margin-bottom: 6px;
}
.f-prose a {
  color: var(--f-ink);
  text-decoration-color: var(--f-rule-2);
  text-underline-offset: 3px;
}
.f-prose a:hover {
  text-decoration-color: var(--f-ink);
}
.f-prose strong {
  color: var(--f-ink);
  font-weight: 600;
}
.f-prose code {
  background: var(--f-band);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}
.f-prose pre {
  background: var(--f-screen);
  color: #d5dce8;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.65;
}
.f-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.f-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 24px;
}
.f-prose th,
.f-prose td {
  text-align: left;
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--f-rule);
  vertical-align: top;
}
.f-prose th {
  color: var(--f-ink);
  font-weight: 560;
  border-bottom-color: var(--f-ink);
}
.f-prose blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--f-rule-2);
}
.f-prose .mcp {
  margin: 24px 0 32px;
}
.f-prose .mcp-endpoint {
  background: var(--f-paper);
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  box-shadow: none;
}
.f-prose .mcp-clients {
  background: transparent;
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  box-shadow: none;
}
.f-prose .mcp-play {
  display: none;
}
.f-prose .mcp-clients.is-playing [aria-selected="true"] > .mcp-bar {
  animation: none;
}

/* ---------- smaller screens (the shared parts; the story's own are with it) */

@media (max-width: 900px) {
  .f-head-row {
    gap: 16px;
    height: 64px;
  }
  .f-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--f-gutter) 16px;
    background: var(--f-paper);
    border-bottom: 1px solid var(--f-rule);
  }
  .f-nav.is-open {
    display: flex;
  }
  .f-nav a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--f-rule);
  }
  .f-menu {
    display: inline-grid;
  }
  .f-ch-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .f-ch-grid > *,
  .f-centre-grid .f-ch-text,
  .f-chat,
  .f-mcp .f-ch-text,
  .f-mcp-block,
  .f-plans .f-ch-text,
  .f-plan-table {
    grid-column: 1;
  }
  .f-foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f-foot-line,
  .f-foot-grid nav,
  .f-foot-grid nav:nth-of-type(1) {
    grid-column: auto;
  }
  .f-foot-line {
    grid-column: 1 / -1;
  }
  .pv-hide-sm {
    display: none;
  }
}
@media (max-width: 640px) {
  .f-routes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .f-chat-you,
  .f-chat-faezor {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .f-plans-t th,
  .f-plans-t td {
    padding-right: 10px;
    font-size: 14px;
  }
  .f-spec > div {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 12px;
  }
}

/* ======================================================================================================== the story */

@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/newsreader-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --f-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  /* what the canvas draws on the board: the materials themselves (copper, gold, the probe's ribbon), the same in both
     themes; the ratsnest and the kit's labels take the page's ink */
  --s-cu: #ea9a6b;
  --s-cu-in: #d9b18d;
  --s-cu-b: #b98c6c;
  --s-pad: #e3bf73;
  --s-packet: #fff0c9;
  --s-ribbon: #9aa1aa;
  --s-plug: #16171a;
  --s-led: rgba(120, 255, 150, 0.95);
  --s-rat: rgba(233, 237, 243, 0.42);
  --s-tray: #222a37;
  --s-plot: #dc7536; /* copper; OKLCH L 0.66 on the dark page (the dataviz skill's validator: all checks pass) */
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --s-rat: rgba(13, 17, 23, 0.38);
    --s-tray: #e3e6eb;
    --s-plot: #b4561f;
  }
}
:root[data-theme="light"] {
  --s-rat: rgba(13, 17, 23, 0.38);
  --s-tray: #e3e6eb;
  --s-plot: #b4561f;
}

/* ---------- the hero: the headline, and the product as it came out */

.s-hero {
  padding-block: clamp(8px, 2vw, 28px) clamp(40px, 5vw, 72px);
}
.s-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  min-height: min(calc(100svh - 72px), 820px);
}
.s-hero-grid > * {
  min-width: 0;
}
.s-hero-text {
  grid-column: 1 / span 5;
  padding-bottom: 4vh;
}
.s-hero h1 {
  font: 600 clamp(2.6rem, 4.55vw, 4.35rem) / 0.98 var(--f-sans);
  letter-spacing: -0.046em;
  max-width: 12.2ch;
  text-wrap: balance;
}
.s-lede {
  margin-top: 28px;
  font-size: clamp(1.08rem, 1.35vw, 1.27rem);
  line-height: 1.45;
  color: var(--f-ink-2);
  max-width: 29rem;
}
.s-hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.s-hero-fig {
  grid-column: 6 / span 7;
  margin: 0;
}
.s-hero-pic-wrap {
  position: relative;
}
/* the labels on the picture: a dot on the part's edge, a hairline, the name and one measurement */
.s-marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.s-marks line {
  stroke: var(--f-ink-3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.s-marks circle {
  fill: var(--f-paper);
  stroke: var(--f-ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.s-marks text {
  font: 600 22px var(--f-sans);
  fill: var(--f-ink);
  letter-spacing: -0.01em;
}
.s-marks .s-marks-v {
  font-weight: 400;
  font-size: 19px;
  fill: var(--f-ink-2);
}
.s-hero-pic,
.s-hero-pic img {
  display: block;
  width: 100%;
  height: auto;
}
.s-hero-fig figcaption {
  margin: 4px 0 0 auto;
  max-width: 40ch;
  padding-top: 10px;
  border-top: 1px solid var(--f-rule);
  font-size: 13px;
  line-height: 1.5;
  color: var(--f-ink-3);
}
.s-hero-fig figcaption b {
  color: var(--f-ink);
  font-weight: 600;
}

/* ---------- the story's stage: sticky, the steps under it give the scroll its length */

.s-story {
  position: relative;
  border-top: 1px solid var(--f-rule);
}
.s-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: none;
}
.s-story.is-ready .s-stage {
  display: block;
}
/* the steps slide under the stage; a negative margin on the stage itself would let it stick past the story's end */
.s-story.is-ready .s-steps {
  margin-top: -100vh;
  margin-top: -100svh;
}
.s-step-1 {
  height: 150svh;
}
.s-step-2 {
  height: 130svh;
}
.s-step-3 {
  height: 150svh;
}
.s-step-4 {
  height: 190svh;
}
.s-step-5 {
  height: 170svh;
}
.s-step-6 {
  height: 170svh;
}
.s-step-7 {
  height: 230svh;
}
.s-step-end {
  height: 100svh;
}
/* the canvas: scrolly.js places and sizes it over the visual region */
.s-cv {
  position: absolute;
  left: 0;
  top: 0;
}
/* the visual region: where the board, the frames and the document go (scrolly.js reads it) */
.s-view,
.s-wview {
  position: absolute;
  pointer-events: none;
}
.s-view {
  top: 28px;
  bottom: 28px;
  left: calc(var(--f-gutter) + var(--s-col) + 56px);
  right: var(--f-gutter);
}
.s-stage {
  --s-col: min(29vw, 390px);
}
/* the World's screen: a hairline frame while the World shows */
.s-stage[data-ch="6"] .s-wview {
  outline: 1px solid var(--f-rule-2);
  border-radius: 4px;
}
.s-wview {
  top: 28px;
  height: calc((100svh - 56px) * 0.58);
  left: calc(var(--f-gutter) + var(--s-col) + 56px);
  right: var(--f-gutter);
}

/* the chapters, top left; the current one in ink */
.s-rail {
  position: absolute;
  top: 28px;
  left: var(--f-gutter);
  width: var(--s-col);
}
.s-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.s-rail a {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  align-items: baseline;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--f-ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.s-rail a span {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.s-rail li {
  position: relative;
}
/* the current chapter's progress: a hairline under its name, filled as the scroll goes */
.s-rail a::after {
  content: "";
  position: absolute;
  left: 2.1rem;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--f-ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  opacity: 0;
}
.s-rail a.is-on::after {
  opacity: 0.6;
}
.s-rail a.is-done {
  color: var(--f-ink-2);
}
.s-rail a.is-on {
  color: var(--f-ink);
  font-weight: 560;
}
.s-rail a:hover {
  color: var(--f-ink);
}

/* captions: bottom left, one at a time (scrolly.js sets their opacity from the scroll) */
.s-caps {
  position: absolute;
  left: var(--f-gutter);
  bottom: 9svh;
  width: var(--s-col);
}
.s-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}
.s-cap-n {
  font-size: 13px;
  color: var(--f-ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.s-cap h3 {
  font: 600 clamp(1.6rem, 2.3vw, 2.15rem) / 1.04 var(--f-sans);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.s-cap > p:not(.s-cap-n) {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--f-ink-2);
}
.s-cap-facts {
  margin: 18px 0 0;
  border-top: 1px solid var(--f-rule-2);
}
.s-cap-facts > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--f-rule);
  font-size: 14px;
}
.s-cap-facts dt {
  color: var(--f-ink-3);
}
.s-cap-facts dd {
  margin: 0;
  font-weight: 500;
}

/* the requirements, as a document: the line being read, and what faezor picked for it */
.s-req {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: calc(var(--f-gutter) + var(--s-col) + 56px);
  right: var(--f-gutter);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 60rem;
}
/* longer than its box: from the top, the lines scroll under the head (scrolly.js) */
.s-req.is-long {
  justify-content: flex-start;
  overflow: hidden;
}
.s-req.is-long .s-req-lines {
  transition: transform 0.25s ease-out;
}
.s-req.is-long .s-req-head {
  position: relative;
  z-index: 1;
  background: var(--f-paper);
}
.s-req.is-long .s-req-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  height: 22px;
  background: linear-gradient(var(--f-paper), transparent);
}
.s-req-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--f-ink);
  font-size: 13px;
  color: var(--f-ink-3);
}
.s-req-head .wm {
  font-weight: 600;
}
.s-req-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.s-req-lines li {
  --k: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13.5rem;
  column-gap: 32px;
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--f-rule);
}
.s-req-text {
  font: 400 clamp(1rem, 1.2vw, 1.24rem) / 1.38 var(--f-serif);
  color: var(--f-ink-3);
  font-feature-settings: "kern", "liga", "onum";
  transition: color 0.25s;
}
.s-req-lines li:first-child .s-req-text {
  font-size: clamp(1.4rem, 2.05vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.s-req-lines li.is-read .s-req-text {
  color: var(--f-ink);
}
/* a line's parts come in once it is read (all or nothing at any scroll position, so they are never half-faded text) */
.s-req-picks {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 0.32em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--f-ink-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.s-req-lines li.is-read .s-req-picks {
  opacity: 1;
  transform: none;
}
.s-req-picks b {
  font-weight: 600;
  color: var(--f-ink);
  font-variant-numeric: tabular-nums;
}
.s-req-tick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--f-ink-2);
}
.s-req-tick svg {
  width: 16px;
  height: 16px;
}

/* the firmware: two files and the flashing under the board, on dark screens */
.s-code {
  position: absolute;
  left: calc(var(--f-gutter) + var(--s-col) + 56px);
  right: var(--f-gutter);
  top: calc(28px + (100svh - 56px) * 0.62);
  bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px 16px;
  visibility: hidden;
  opacity: 0;
}
.s-code-flash {
  grid-column: 1 / -1;
}
.s-code-file {
  margin: 0;
  background: var(--f-screen);
  border-radius: 4px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.s-code-file figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #1d2532;
  font-size: 12px;
  color: #8f9bab;
}
.s-code-file figcaption code {
  color: #dbe2ec;
}
.s-code-file .wm {
  --wm-faezor: #b8ccf7;
  --c-fw: #b08cff;
}
.s-code-file pre {
  margin: 0;
  padding: 10px 12px 12px;
  font: 450 11.5px/1.55 var(--f-mono);
  color: #cfd7e3;
  overflow: hidden;
  white-space: pre;
}
.s-code-flash {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--f-ink-2);
  font-variant-numeric: tabular-nums;
}
.s-code-bar {
  display: block;
  height: 2px;
  background: var(--f-rule);
}
.s-code-bar i {
  display: block;
  height: 100%;
  background: var(--f-ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* routing: the layers as they fill, under the board (counts of the board's own segments and pours) */
.s-layers {
  position: absolute;
  right: var(--f-gutter);
  bottom: 28px;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--f-ink-3);
  visibility: hidden;
  opacity: 0;
}
.s-layers th {
  text-align: left;
  font-weight: 500;
  padding: 2px 16px 2px 0;
  color: var(--f-ink-2);
}
.s-layers td {
  padding: 2px 0 2px 12px;
  text-align: right;
}
.s-layers tr.is-on th,
.s-layers tr.is-on td {
  color: var(--f-ink);
}

/* the World: the run's screen (drawn on the canvas) and its measurements as small multiples */
.s-world {
  position: absolute;
  margin: 0;
  left: calc(var(--f-gutter) + var(--s-col) + 56px);
  right: var(--f-gutter);
  top: calc(28px + (100svh - 56px) * 0.58 + 18px);
  bottom: 28px;
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
}
.s-plots {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.s-plot {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--f-ink);
  padding-top: 8px;
}
.s-plot-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--f-ink-2);
}
.s-plot-head b {
  font-weight: 560;
  color: var(--f-ink);
  font-variant-numeric: tabular-nums;
}
.s-plot svg {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin-top: 8px;
  overflow: visible;
}
.s-plot-grid line {
  stroke: var(--f-rule);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.s-plot-line {
  fill: none;
  stroke: var(--s-plot);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.s-plot-dot {
  fill: var(--s-plot);
  stroke: var(--f-paper);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.s-plot-axis {
  font-size: 12px;
  color: var(--f-ink-3);
  margin-top: 4px;
}
.s-world-cap {
  font-size: 12.5px;
  color: var(--f-ink-3);
  margin-top: 10px;
}
.s-status {
  position: absolute;
  right: var(--f-gutter);
  bottom: 12px;
  font-size: 13px;
  color: var(--f-ink-3);
}

/* without script, or when the story could not load: the stills, one after the other */
.s-fallback {
  display: none;
  gap: 48px;
  padding-block: 48px;
}
.s-story.is-failed .s-fallback {
  display: grid;
}
.s-story.is-failed .s-steps,
.s-story.is-failed .s-stage {
  display: none;
}
@media (scripting: none) {
  .s-fallback {
    display: grid;
  }
  .s-steps {
    display: none;
  }
  .s-req-picks {
    opacity: 1;
    transform: none;
  }
}
.s-fallback-fig {
  margin: 0;
}
.s-fallback-fig img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
}
.s-fallback-fig figcaption {
  font-size: 14px;
  color: var(--f-ink-2);
  margin-top: 8px;
  max-width: 60ch;
}

/* ---------- after the story: the ledger, the products, your requirements */

.s-coda {
  padding-block: clamp(64px, 9vw, 136px) clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--f-rule);
}
.s-coda-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
}
.s-coda-grid > * {
  min-width: 0;
}
.s-coda-text {
  grid-column: 1 / span 4;
}
.s-coda-title {
  font: 600 clamp(2.2rem, 3.8vw, 3.4rem) / 1 var(--f-sans);
  letter-spacing: -0.042em;
  margin-bottom: 22px;
}
.s-coda-text p {
  color: var(--f-ink-2);
  max-width: 30rem;
}
.s-ledger {
  grid-column: 6 / span 7;
}
.s-ledger tbody th .wm {
  font: 620 1.05rem/1.2 var(--f-sans);
  letter-spacing: -0.02em;
}
.s-ledger td:last-child {
  color: var(--f-ink-3);
}
.s-index {
  margin-top: clamp(56px, 7vw, 96px);
}
.s-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.s-index .s-index-note {
  font-size: 13px;
  color: var(--f-ink-3);
}
.s-index li {
  border-top: 1px solid var(--f-ink);
  padding-top: 14px;
}
.s-index-name {
  font: 620 1.3rem/1.2 var(--f-sans);
  letter-spacing: -0.025em;
}
.s-index p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--f-ink-2);
}
.s-ask-sec {
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--f-rule);
}
.s-ask {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: start;
}
.s-ask-text {
  grid-column: 1 / span 4;
}
.s-ask-title {
  font: 600 clamp(2rem, 3.4vw, 3rem) / 1 var(--f-sans);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.s-ask-line {
  color: var(--f-ink-2);
  max-width: 30rem;
}
.s-ask-box {
  grid-column: 6 / span 7;
}
/* the composer, in this page's look (views/landing.ts composer: the same form, the same script) */
.s-ask-box .composer {
  background: transparent;
  border: 1px solid var(--f-rule-2);
  border-radius: 4px;
  box-shadow: none;
  padding: 0;
}
.s-ask-box .composer:focus-within {
  border-color: var(--f-ink);
  box-shadow: none;
}
.s-ask-box .composer.is-called {
  animation: none;
  border-color: var(--f-act);
}
.s-ask-box .composer textarea {
  min-height: 112px;
  padding: 16px 16px 8px;
  font: 400 17px/1.5 var(--f-sans);
  color: var(--f-ink);
}
.s-ask-box .composer textarea::placeholder {
  color: var(--f-ink-3);
}
.s-ask-box .sketch-hint {
  margin: 0;
  padding: 0 16px 10px;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  color: var(--f-ink-3);
  gap: 8px;
}
.s-ask-box .sketch-hint > svg {
  width: 15px;
  height: 15px;
  color: var(--f-ink-3);
}
.s-ask-box .sketch-hint-btn {
  background: transparent;
  color: var(--f-ink);
  height: auto;
  padding: 0;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.s-ask-box .sketch-hint-btn:hover {
  background: transparent;
}
.s-ask-box .chips {
  padding: 0 16px 14px;
  gap: 4px 18px;
  align-items: baseline;
}
.s-ask-box .chips::before {
  content: "Examples";
  font-size: 13px;
  color: var(--f-ink-3);
}
.s-ask-box .chip {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--f-ink-2);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--f-rule-2);
  text-underline-offset: 3px;
}
.s-ask-box .chip:hover {
  background: transparent;
  color: var(--f-ink);
  border-color: transparent;
  text-decoration-color: var(--f-ink-3);
}
.s-ask-box .chip svg {
  display: none;
}
.s-ask-box .composer-bar {
  border-top: 1px solid var(--f-rule);
  padding: 10px 12px;
}
.s-ask-box .composer-bar .btn {
  border-radius: 4px;
}
.s-ask-box .composer-bar .btn-ghost {
  color: var(--f-ink-2);
  font-weight: 500;
}
.s-ask-box .composer-bar .btn-primary {
  background: var(--f-act);
  color: var(--f-act-ink);
  border-color: transparent;
  box-shadow: none;
  font-weight: 600;
  height: 40px;
  padding: 0 18px;
}
.s-ask-box .composer-bar .btn-primary:hover {
  background: var(--f-act-hover);
}
.s-ask-box .opt {
  border: 0;
  background: transparent;
  border-radius: 4px;
}
.s-ask-box .opt-switch {
  color: var(--f-ink-2);
  font-weight: 500;
}
.s-ask-box .opt-help {
  color: var(--f-ink-2);
}
.s-ask-box .composer-bar {
  flex-wrap: wrap;
}

/* ---------- phones and portrait screens: the picture on top, the caption under it */

@media (max-width: 899px), (orientation: portrait) {
  .s-stage {
    --s-top: 44px;
    --s-vh: 52svh;
  }
  .s-view,
  .s-req {
    top: var(--s-top);
    left: 8px;
    right: 8px;
    bottom: auto;
    height: var(--s-vh);
  }
  .s-req {
    left: var(--f-gutter);
    right: var(--f-gutter);
    justify-content: flex-start;
    overflow: hidden;
    max-width: none;
  }
  .s-req-lines {
    transition: transform 0.25s ease-out;
  }
  /* the lines read so far scroll up under the document's head, not over it */
  .s-req-head {
    position: relative;
    z-index: 1;
    background: var(--f-paper);
  }
  .s-req-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    height: 18px;
    background: linear-gradient(var(--f-paper), transparent);
  }
  .s-req-lines li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: 8px 0;
  }
  .s-req-text {
    font-size: 15.5px;
  }
  .s-req-lines li:first-child .s-req-text {
    font-size: 19px;
  }
  .s-rail {
    top: 12px;
    width: auto;
    right: var(--f-gutter);
  }
  .s-rail ol {
    display: flex;
    gap: 6px;
  }
  .s-rail li {
    flex: 1;
  }
  .s-rail a {
    display: block;
    height: 22px;
    padding: 0;
    font-size: 0;
    border-top: 2px solid var(--f-rule);
  }
  .s-rail a::after {
    left: 0;
    top: -2px;
    bottom: auto;
    height: 2px;
    opacity: 1;
  }
  .s-rail a span {
    display: none;
  }
  .s-rail a.is-done {
    border-top-color: var(--f-ink);
  }
  .s-caps {
    left: var(--f-gutter);
    right: var(--f-gutter);
    width: auto;
    bottom: 22px;
  }
  .s-cap h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }
  .s-cap > p:not(.s-cap-n) {
    font-size: 15px;
    line-height: 1.5;
  }
  .s-cap-n {
    margin-bottom: 6px;
  }
  .s-cap-facts {
    display: none;
  }
  .s-code {
    left: var(--f-gutter);
    right: var(--f-gutter);
    top: calc(var(--s-top) + var(--s-vh) * 0.7);
    bottom: auto;
    height: calc(var(--s-vh) * 0.3);
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .s-code-main {
    display: none;
  }
  .s-code-file pre {
    font-size: 10.5px;
    max-height: 7.8em;
  }
  .s-wview {
    top: var(--s-top);
    left: 8px;
    right: 8px;
    height: 28svh;
  }
  .s-world {
    top: calc(var(--s-top) + 28svh + 12px);
    left: var(--f-gutter);
    right: var(--f-gutter);
    bottom: auto;
    height: calc(var(--s-vh) - 28svh - 12px);
  }
  .s-plots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .s-plot-head {
    font-size: 12px;
  }
  .s-plot-axis,
  .s-world-cap {
    display: none;
  }
  .s-layers {
    top: calc(var(--s-top) + var(--s-vh) - 72px);
    bottom: auto;
    right: var(--f-gutter);
    font-size: 11.5px;
  }
}
@media (max-width: 899px) {
  .s-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    row-gap: 28px;
  }
  .s-hero-text,
  .s-hero-fig {
    grid-column: 1;
  }
  /* phones: the product first (the page's largest picture, its LCP), the headline under it */
  .s-hero-fig {
    order: -1;
  }
  .s-hero-text {
    padding: 8px 0 0;
  }
  .s-hero-fig figcaption {
    margin-left: 0;
  }
  .s-coda-text,
  .s-ledger,
  .s-ask-text,
  .s-ask-box {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .s-coda-grid,
  .s-ask {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-index ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s-index li:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .s-index ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-ledger thead {
    display: none;
  }
  .s-ledger,
  .s-ledger tbody,
  .s-ledger tr,
  .s-ledger th,
  .s-ledger td {
    display: block;
  }
  .s-ledger tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--f-rule);
  }
  .s-ledger th,
  .s-ledger td {
    border: 0;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-req-text,
  .s-req-lines,
  .s-req-picks,
  .s-rail a {
    transition: none;
  }
}
/* without motion the request is one still: on a wide screen it is set to fit its box rather than scroll in it */
@media (prefers-reduced-motion: reduce) and (min-width: 900px) and (orientation: landscape) {
  .s-req-lines li {
    padding: 6px 0 7px;
  }
  .s-req-text {
    font-size: clamp(0.9rem, 1vw, 1.05rem);
  }
  .s-req-lines li:first-child .s-req-text {
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  }
}
.s-cap-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--f-ink-3);
  max-width: 40ch;
}
@media (max-width: 899px), (orientation: portrait) {
  .s-cap-note {
    margin-top: 8px;
    font-size: 12px;
  }
}

/* the dark page's studio: a faint pool of light where the board lies (the renders are lit for it) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 46% 52% at 66% 50%, rgba(160, 190, 255, 0.05), transparent 72%);
    pointer-events: none;
  }
}
:root[data-theme="dark"] .s-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 46% 52% at 66% 50%, rgba(160, 190, 255, 0.05), transparent 72%);
  pointer-events: none;
}
@media (max-width: 899px), (orientation: portrait) {
  .s-stage::before {
    background-image: radial-gradient(ellipse 70% 34% at 50% 32%, rgba(160, 190, 255, 0.05), transparent 72%);
  }
}

/* this page's header does not stick: a chapter's link lands exactly where its chapter starts */
html:has(body.pv-s) {
  scroll-padding-top: 0;
}
@media (max-width: 899px) {
  /* the labels run past the picture's right edge: the picture gives them room inside the column */
  .s-hero-pic-wrap {
    width: 76%;
  }
  .s-marks text {
    font-size: 40px;
  }
  .s-marks .s-marks-v {
    font-size: 34px;
    transform: translateY(22px);
  }
}
