/* GENERATED by scripts/sync-design.mjs from design/marketing/tokens.json + design/marketing/marketing.css. Never edit by hand:
   edit the design/ source and re-run `node scripts/sync-design.mjs`. */
:root {
  color-scheme: light;
  --mk-color-stage: #15110B;
  --mk-color-sheet-edge: rgba(58,52,42,.16);
  --mk-color-ramp-0: #E8DECA;
  --mk-color-ramp-1: #C99384;
  --mk-color-ramp-2: #A2574A;
  --mk-color-ramp-3: #7E332B;
  --mk-color-ramp-4: #4A160F;
  --mk-shadow-sheet: 0 1px 1px 0 rgba(36,30,22,.04), 0 10px 28px -8px rgba(36,30,22,.18);
  --mk-font-size-title: clamp(44px, 2rem + 5.6cqi, 104px);
  --mk-font-size-display: clamp(34px, 1.5rem + 2.9cqi, 60px);
  --mk-font-size-subhead: clamp(24px, 1.1rem + 1cqi, 32px);
  --mk-font-size-lead: clamp(19px, 1rem + 0.5cqi, 22px);
  --mk-font-size-numeral: clamp(56px, 2.5rem + 4cqi, 92px);
  --mk-font-size-pull: clamp(28px, 1.25rem + 2.1cqi, 46px);
  --mk-line-height-title: .98;
  --mk-line-height-display: 1.04;
  --mk-line-height-lead: 1.5;
  --mk-letter-spacing-title: -0.022em;
  --mk-letter-spacing-display: -0.015em;
  --mk-size-page: 1360px;
  --mk-size-gutter: clamp(16px, 3.6vw, 56px);
  --mk-size-gap: clamp(16px, 2vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --mk-color-sheet-edge: rgba(255,255,255,.12);
  --mk-color-ramp-0: rgba(255,255,255,.08);
  --mk-color-ramp-1: #6F3B2A;
  --mk-color-ramp-2: #A2583E;
  --mk-color-ramp-3: #CE8560;
  --mk-color-ramp-4: #F2C8A6;
  --mk-shadow-sheet: 0 1px 1px 0 rgba(0,0,0,.3), 0 12px 30px -8px rgba(0,0,0,.55);
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --mk-color-sheet-edge: rgba(255,255,255,.12);
  --mk-color-ramp-0: rgba(255,255,255,.08);
  --mk-color-ramp-1: #6F3B2A;
  --mk-color-ramp-2: #A2583E;
  --mk-color-ramp-3: #CE8560;
  --mk-color-ramp-4: #F2C8A6;
  --mk-shadow-sheet: 0 1px 1px 0 rgba(0,0,0,.3), 0 12px 30px -8px rgba(0,0,0,.55);
}
@media print {
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
  color-scheme: light;
  --mk-color-stage: #15110B;
  --mk-color-sheet-edge: rgba(58,52,42,.16);
  --mk-color-ramp-0: #E8DECA;
  --mk-color-ramp-1: #C99384;
  --mk-color-ramp-2: #A2574A;
  --mk-color-ramp-3: #7E332B;
  --mk-color-ramp-4: #4A160F;
  --mk-shadow-sheet: 0 1px 1px 0 rgba(36,30,22,.04), 0 10px 28px -8px rgba(36,30,22,.18);
  --mk-font-size-title: clamp(44px, 2rem + 5.6cqi, 104px);
  --mk-font-size-display: clamp(34px, 1.5rem + 2.9cqi, 60px);
  --mk-font-size-subhead: clamp(24px, 1.1rem + 1cqi, 32px);
  --mk-font-size-lead: clamp(19px, 1rem + 0.5cqi, 22px);
  --mk-font-size-numeral: clamp(56px, 2.5rem + 4cqi, 92px);
  --mk-font-size-pull: clamp(28px, 1.25rem + 2.1cqi, 46px);
  --mk-line-height-title: .98;
  --mk-line-height-display: 1.04;
  --mk-line-height-lead: 1.5;
  --mk-letter-spacing-title: -0.022em;
  --mk-letter-spacing-display: -0.015em;
  --mk-size-page: 1360px;
  --mk-size-gutter: clamp(16px, 3.6vw, 56px);
  --mk-size-gap: clamp(16px, 2vw, 32px);
  }
}
/* design/marketing/marketing.css: the marketing layer's classes (principles.md here).
   Synced into apps/marketing only, as mk.css after sm.css; the product never loads
   it, and design/audit.mjs fails an mk- class or --mk- token anywhere in the
   product. Semantic tokens only, from design/tokens.json and ./tokens.json. */

/* ---- The page: one 12-column grid, wider than the product's wrap ---- */
.mk-wrap { max-width: var(--mk-size-page); margin: 0 auto; padding-inline: var(--mk-size-gutter); box-sizing: border-box;
  container: mk / inline-size; }
/* The layer responds to its OWN width, not the window's: every rule below that
   stacks or reflows is a container query on mk-wrap. So a component shown in a
   narrow slot (the style guide's column, a sidebar) stacks exactly as it would on
   a narrow screen. 960px of page is about the product's breakpoint.regular. */
.mk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--mk-size-gap); }
.mk-grid > * { min-width: 0; }
.mk-grid > .mk-margin { grid-column: 1 / 4; }
.mk-grid > .mk-text { grid-column: 4 / 10; }
.mk-grid > .mk-wide { grid-column: 4 / 13; }
.mk-grid > .mk-full { grid-column: 1 / 13; }
.mk-grid > .mk-side { grid-column: 10 / 13; }
@container mk (max-width: 960px) {
  .mk-grid > .mk-margin, .mk-grid > .mk-text, .mk-grid > .mk-wide, .mk-grid > .mk-side { grid-column: 1 / -1; }
}

/* A band is one section of the page. Bands are told apart by air and one hairline,
   never by boxes. */
.mk-band { padding-block: clamp(48px, 6vw, 96px); }
/* The rule sits at the top of the band at the CONTENT's width, not the wrap's:
   a border on mk-wrap would run into the gutters, past the text it separates. */
.mk-band--rule { background-image: linear-gradient(var(--color-border-subtle), var(--color-border-subtle));
  background-repeat: no-repeat; background-position: center top;
  background-size: calc(100% - 2 * var(--mk-size-gutter)) var(--border-width-hairline); }

/* The stage: the one dark band a page may carry. It MUST also carry
   data-theme="dark", so everything inside it takes the product's own dark tokens
   and a product component on the stage is the real dark component. */
.mk-stage { background: var(--mk-color-stage); color: var(--color-text-primary); }

/* ---- Type ---- */
.mk-title { margin: 0; font-family: var(--font-display); font-weight: var(--font-weight-regular); font-size: var(--mk-font-size-title);
  line-height: var(--mk-line-height-title); letter-spacing: var(--mk-letter-spacing-title); text-wrap: balance; }
.mk-display { margin: 0; font-family: var(--font-display); font-weight: var(--font-weight-regular); font-size: var(--mk-font-size-display);
  line-height: var(--mk-line-height-display); letter-spacing: var(--mk-letter-spacing-display); text-wrap: balance; }
.mk-subhead { margin: 0; font-family: var(--font-display); font-weight: var(--font-weight-medium); font-size: var(--mk-font-size-subhead);
  line-height: var(--line-height-tight); text-wrap: balance; }
.mk-lead { margin: 0; font-family: var(--font-display); font-size: var(--mk-font-size-lead); line-height: var(--mk-line-height-lead);
  color: var(--color-text-secondary); max-width: 40ch; }
/* A label hangs in the margin column, on the heading's baseline. It says something
   the heading does not; a label that repeats its heading is cut. */
.mk-label { margin: 0; font-variant-caps: small-caps; letter-spacing: var(--letter-spacing-caps);
  font-weight: var(--font-weight-semibold); font-size: var(--font-size-title); line-height: var(--line-height-snug);
  color: var(--color-text-brand); }
.mk-label--quiet { color: var(--color-text-subtle); }
/* The second act beside a primary button: a link, never a second button. */
.mk-textlink { display: inline-flex; align-items: center; min-height: var(--size-control-lg); padding-inline: var(--space-xs);
  font-weight: var(--font-weight-medium); font-size: var(--font-size-title); color: var(--color-text-action);
  text-decoration: underline; text-decoration-thickness: var(--border-width-hairline); text-underline-offset: 5px; }
.mk-textlink:hover { text-decoration-thickness: var(--border-width-marker); }
.mk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
/* A link wearing a button's clothes keeps the button's clothes (the UA underlines
   every <a>, and the product's reference markup uses <button>). The marketing
   app's base sheet says the same; the layer says it too, so it never depends on
   which page loaded it. */
.mk-wrap a.sm-btn:not(.sm-btn--link) { text-decoration: none; cursor: pointer; }

/* ---- The front door: the page's one sentence, and a sermon that plays ---- */
/* On the page's own ground, in the page's theme (#871). The title runs across the
   page; under it the lead and the one act, and beside them the library's own
   featured card holding a real clip. The transcript that keeps time with it sits below, wider and quieter, so
   the first screen is one sentence, one act and one invitation. */
.mk-front { padding-block: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 96px); }
.mk-front > .door { align-items: start; }
.mk-front > .door > .mk-title { grid-column: 1 / -1; }
.mk-front > .door > .say { grid-column: 1 / 7; margin-top: var(--space-2xl); }
.mk-front > .door > .say .mk-lead { max-width: 34ch; }
.mk-front > .door > .show { grid-column: 8 / 13; margin-top: var(--space-2xl); }
.mk-front > .door > .show > .mk-label { margin-bottom: var(--space-sm); }
.mk-front > .read { margin-top: clamp(48px, 6vw, 80px); padding-top: var(--space-xl); align-items: start;
  border-top: var(--border-width-hairline) solid var(--color-border-subtle); }
.mk-front > .read > .sm-transcript { grid-column: 3 / 11; }
/* The caption starts where the transcript's prose does, past its seek strip. */
.mk-front > .read > .mk-caption { grid-column: 4 / 11; margin-top: var(--space-lg); max-width: 64ch; }
@container mk (max-width: 960px) {
  .mk-front > .door > .say, .mk-front > .door > .show,
  .mk-front > .read > .sm-transcript, .mk-front > .read > .mk-caption { grid-column: 1 / -1; }
  .mk-front > .door > .say { margin-top: var(--space-lg); }
}

/* ---- An interior page's head: its label, its h1, one sentence ---- */
.mk-head { padding-block: clamp(40px, 6vw, 96px) clamp(24px, 3vw, 48px); }
.mk-head > .mk-lead { margin-top: var(--space-lg); }

/* A passage search and its answer, in the library's own rows. */
.mk-result { background: var(--color-surface-card); border: var(--border-width-hairline) solid var(--color-border-subtle);
  border-radius: var(--radius-surface); overflow: hidden; }
.mk-result > .q { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; margin: 0; padding: var(--space-sm) var(--space-md);
  border-bottom: var(--border-width-hairline) solid var(--color-border-subtle); color: var(--color-text-subtle); font-size: var(--font-size-small); }
.mk-result > .q b { font-family: var(--font-display); font-weight: var(--font-weight-medium); font-size: var(--font-size-heading); color: var(--color-text-primary); }
.mk-result > .q .span { margin-left: auto; font-variant-numeric: tabular-nums; }
.mk-result .sm-catrow { border-radius: 0; }
.mk-result > .more { margin: 0; padding: var(--space-sm) var(--space-md); border-top: var(--border-width-hairline) solid var(--color-border-subtle);
  font-size: var(--font-size-small); color: var(--color-text-subtle); }

/* ---- A figure: data drawn from the product, never a picture ---- */
.mk-figure { margin: 0; padding-block: var(--space-lg) clamp(48px, 6vw, 96px); }
.mk-figure > .top { display: flex; align-items: baseline; gap: var(--space-lg); flex-wrap: wrap; padding-bottom: var(--space-sm);
  border-bottom: var(--border-width-marker) solid var(--color-border-strong); }
.mk-figure > .top .n { margin: 0; font-variant-caps: small-caps; letter-spacing: var(--letter-spacing-caps);
  font-weight: var(--font-weight-semibold); color: var(--color-text-brand); font-size: var(--font-size-title); }
.mk-figure > .top .sum { margin: 0; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.mk-legend { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-md);
  font-size: var(--font-size-caption); color: var(--color-text-subtle); }
.mk-legend li { display: flex; align-items: center; gap: 6px; }
.mk-legend i, .mk-canon i { display: block; width: 10px; height: 15px; border-radius: 1px; background: var(--mk-color-ramp-0); }
.mk-canon i[data-l="1"], .mk-legend i[data-l="1"] { background: var(--mk-color-ramp-1); }
.mk-canon i[data-l="2"], .mk-legend i[data-l="2"] { background: var(--mk-color-ramp-2); }
.mk-canon i[data-l="3"], .mk-legend i[data-l="3"] { background: var(--mk-color-ramp-3); }
.mk-canon i[data-l="4"], .mk-legend i[data-l="4"] { background: var(--mk-color-ramp-4); }
.mk-figure > .cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--mk-size-gap); margin-top: var(--space-lg); }
.mk-figure > .cap p { grid-column: 1 / 9; margin: 0; font-size: var(--font-size-small); line-height: var(--line-height-body); color: var(--color-text-secondary); }
.mk-figure > .cap details { grid-column: 9 / 13; font-size: var(--font-size-small); }
.mk-figure > .cap summary { cursor: pointer; color: var(--color-text-action); font-weight: var(--font-weight-medium); }
.mk-figure > .cap ol { margin: var(--space-xs) 0 0; padding-left: 1.4em; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
@container mk (max-width: 960px) { .mk-figure > .cap p, .mk-figure > .cap details { grid-column: 1 / -1; } }

/* The canon a chapter at a time: books flow down columns like an index, each book
   its name and one mark per chapter. */
.mk-canon { position: relative; columns: 3; column-gap: var(--mk-size-gap);
  column-rule: var(--border-width-hairline) solid var(--color-border-subtle); padding-top: var(--space-md); }
.mk-canon > .testament { margin: 0 0 var(--space-xs); break-after: avoid; font-variant-caps: small-caps; letter-spacing: var(--letter-spacing-caps);
  font-weight: var(--font-weight-semibold); font-size: var(--font-size-small); color: var(--color-text-subtle); }
.mk-canon > .testament ~ .testament { margin-top: var(--space-md); }
.mk-canon > .book { break-inside: avoid; display: grid; grid-template-columns: 8.2em 1fr; gap: var(--space-xs); align-items: start; padding: 3px 0; }
.mk-canon .bn { font-size: var(--font-size-small); line-height: 15px; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The label on a mark is CSS reading the mark's own data-t: no script. At rest the
   pinned mark (the chapter the page is about) shows its label, so the first frame
   is complete without a pointer; a pointer anywhere in the field takes it over. */
.mk-canon .cells { display: flex; flex-wrap: wrap; gap: 2px; }
.mk-canon .cells i { position: relative; }
.mk-canon i[data-t]:hover::after, .mk-canon i.is-pin::after { content: attr(data-t); position: absolute; left: 50%; bottom: calc(100% + 8px);
  z-index: var(--z-popover); transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  background: var(--color-text-primary); color: var(--color-surface-page); border-radius: var(--radius-chip); padding: 5px 9px;
  font-family: var(--font-body); font-size: var(--font-size-small); font-weight: var(--font-weight-medium); line-height: var(--line-height-tight);
  font-variant-numeric: tabular-nums; }
.mk-canon i[data-t]:hover::before, .mk-canon i.is-pin::before { content: ""; position: absolute; left: 50%; bottom: calc(100% - 2px);
  z-index: var(--z-popover); margin-left: -5px; border: 5px solid transparent; border-top-color: var(--color-text-primary); pointer-events: none; }
.mk-canon:has(i:hover) i.is-pin:not(:hover)::after, .mk-canon:has(i:hover) i.is-pin:not(:hover)::before { content: none; }
.mk-canon .book:has(i:hover) .bn, .mk-canon:not(:has(i:hover)) .book:has(i.is-pin) .bn { color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold); }
.mk-canon i.is-pin { outline: var(--border-width-marker) solid var(--color-text-primary); outline-offset: 1px; }
@container mk (max-width: 1040px) { .mk-canon { columns: 2; } }
/* On a narrow page the index would run past two thousand pixels, so the figure
   becomes one field of marks, testament by testament, a book's marks kept
   together. The names and the counts are still in the figure's list, and its
   summary line states the headline fact, so nothing depends on a hover label,
   which a phone has no pointer for anyway. */
@container mk (max-width: 600px) {
  .mk-canon { columns: auto; column-rule: none; display: flex; flex-wrap: wrap; gap: 2px; align-content: flex-start; }
  .mk-canon > .book, .mk-canon .cells { display: contents; }
  .mk-canon .bn { display: none; }
  .mk-canon i { width: 8px; height: 12px; }
  .mk-canon .cells i:last-child { margin-right: 5px; }
  .mk-canon > .testament { flex: 0 0 100%; margin: var(--space-sm) 0 var(--space-2xs); }
  .mk-canon > .testament:first-child { margin-top: 0; }
  .mk-canon i::after, .mk-canon i::before { content: none !important; }
  .mk-legend { margin-left: 0; }
}

/* ---- The promise, set large, with a correction we make shown as a proof ---- */
.mk-pull { margin: var(--space-xl) 0 0; font-family: var(--font-display); font-style: italic; font-weight: var(--font-weight-regular);
  font-size: var(--mk-font-size-pull); line-height: var(--line-height-snug); letter-spacing: var(--mk-letter-spacing-display); text-wrap: balance; }
.mk-proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: var(--mk-size-gap); align-items: start; margin-top: var(--space-2xl); }
.mk-proof > .txt { margin: 0; padding-left: var(--space-lg); border-left: var(--border-width-hairline) solid var(--color-border-subtle);
  font-family: var(--font-display); font-size: var(--font-size-reading); line-height: var(--line-height-reading); }
.mk-proof > .txt .t { display: block; margin-bottom: var(--space-2xs); font-family: var(--font-body); font-size: var(--font-size-caption);
  color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.mk-proof del { color: var(--color-text-subtle); text-decoration: line-through; text-decoration-color: var(--color-text-brand);
  text-decoration-thickness: var(--border-width-marker); }
.mk-proof ins { color: var(--color-text-brand); font-style: italic; text-decoration: none; }
.mk-proof > .mark { margin: 0; padding-top: 1.9em; font-size: var(--font-size-small); line-height: var(--line-height-body); color: var(--color-text-secondary); }
.mk-proof > .mark b { display: block; font-family: var(--font-display); font-style: italic; font-weight: var(--font-weight-medium);
  font-size: var(--font-size-title); color: var(--color-text-brand); }
.mk-proof > .mark .when { display: block; margin-top: var(--space-2xs); color: var(--color-text-subtle); }
@container mk (max-width: 960px) { .mk-proof { grid-template-columns: 1fr; } .mk-proof > .mark { padding-top: 0; } }

/* ---- A log: one thing followed through time, the time in the margin ---- */
.mk-log { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; }
.mk-log > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--mk-size-gap); align-items: start; }
.mk-log .when { grid-column: 1 / 3; margin: 0; padding-top: var(--space-2xl); text-align: right; }
.mk-log .when .d { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--font-size-heading); line-height: var(--line-height-tight); }
.mk-log .when .t { display: block; margin-top: 2px; font-variant-caps: small-caps; letter-spacing: var(--letter-spacing-caps);
  font-variant-numeric: tabular-nums; font-weight: var(--font-weight-semibold); color: var(--color-text-subtle); }
.mk-log .what { grid-column: 3 / 8; align-self: stretch; padding: var(--space-2xl) 0 var(--space-2xl) var(--space-xl);
  border-left: var(--border-width-hairline) solid var(--color-border-strong); }
.mk-log .what p { margin: var(--space-xs) 0 0; color: var(--color-text-secondary); max-width: 46ch; }
.mk-log .art { grid-column: 8 / 13; padding-top: var(--space-2xl); }
.mk-log > li:first-child .when, .mk-log > li:first-child .what, .mk-log > li:first-child .art { padding-top: 0; }
@container mk (max-width: 960px) {
  .mk-log .when, .mk-log .what, .mk-log .art { grid-column: 1 / -1; }
  .mk-log .when { text-align: left; padding-top: var(--space-xl); }
  .mk-log .when .d, .mk-log .when .t { display: inline; margin-right: var(--space-xs); }
  .mk-log .what { border-left: 0; padding: var(--space-2xs) 0 var(--space-md); }
  .mk-log .art { padding-top: 0; padding-bottom: var(--space-lg); border-bottom: var(--border-width-hairline) solid var(--color-border-subtle); }
  .mk-log > li:first-child .when { padding-top: 0; }
}

/* A specimen: a piece of the real product shown lying on the page. */
.mk-sheet { background: var(--color-surface-card); border: var(--border-width-hairline) solid var(--mk-color-sheet-edge);
  border-radius: var(--radius-surface); box-shadow: var(--mk-shadow-sheet); }
.mk-sheet--pad { padding: var(--space-md) var(--space-lg); }

/* Text inside a specimen: an address, a title, a quoted line, a result. */
.mk-sheet .u { display: block; font-size: var(--font-size-small); color: var(--color-text-subtle); overflow-wrap: anywhere; }
.mk-sheet .t { display: block; margin-top: var(--space-2xs); font-family: var(--font-display); font-weight: var(--font-weight-medium);
  font-size: var(--font-size-title); color: var(--color-text-primary); }
.mk-sheet .q { display: block; margin-top: var(--space-xs); font-family: var(--font-display); font-style: italic; color: var(--color-text-secondary); }
.mk-sheet .c { display: block; margin-top: var(--space-sm); font-size: var(--font-size-small); font-weight: var(--font-weight-medium); color: var(--color-text-action); }
.mk-sheet .sm-toast { box-shadow: none; }

/* A follow-on paragraph under a specimen, and a caption under a piece of the product. */
.mk-note { margin: var(--space-xl) 0 0; color: var(--color-text-secondary); max-width: 60ch; }
.mk-caption { margin: var(--space-sm) 0 0; font-size: var(--font-size-caption); color: var(--color-text-subtle); }
/* A placed block under a band's heading and note: the price cards, a table. */
/* Scoped to the grid so it outranks a page sheet that zeroes a list's margins. */
.mk-grid > .mk-slot { margin-top: var(--space-xl); }

/* ---- The close: one heading, one sentence, the page's one act ---- */
.mk-close { padding-block: clamp(56px, 7vw, 112px); border-top: var(--border-width-hairline) solid var(--color-border-strong); }
.mk-close .mk-display, .mk-close .mk-lead { grid-column: 1 / 9; }
.mk-close .mk-lead { margin-top: var(--space-md); max-width: 52ch; }
.mk-close .mk-acts { grid-column: 1 / -1; }
@container mk (max-width: 960px) { .mk-close .mk-display, .mk-close .mk-lead { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  [class*="mk-"], [class*="mk-"] * { transition: none !important; }
}
