/* ==========================================================================
   바이브코딩 실전 — editorial light deck
   Paper · Ink · Vermilion. Light theme only.
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #faf2dd;
  --paper-2: #f1e7cc;
  --paper-3: #e8dcbc;
  --ink: #161412;
  --ink-2: #3b352e;
  --muted: #7d7365;
  --rule: rgba(22, 20, 18, 0.22);
  --rule-soft: rgba(22, 20, 18, 0.1);
  --accent: #e0431f;
  --accent-ink: #b8310f;
  --accent-tint: #f6d6c4;

  --f-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-display: "Instrument Serif", "Noto Serif KR", serif;
  --f-mono: "JetBrains Mono", "Pretendard Variable", Pretendard, ui-monospace, Consolas, monospace;

  --pad-x: 132px;
  --pad-top: 128px;
  --pad-bottom: 112px;
  --scale: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

/* ---------- stage ---------- */
#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper-2);
}

#stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex: none;
  transform: scale(var(--scale));
  transform-origin: center center;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 80px -40px rgba(60, 40, 10, 0.35);
}

/* paper grain */
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.28  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.slide {
  position: absolute;
  inset: 0;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
}
.slide.is-active { visibility: visible; opacity: 1; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; }

/* ---------- running head & folio ---------- */
.runhead {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 52px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.runhead b { color: var(--ink); font-weight: 600; }
.runhead .eyebrow-r { color: var(--accent); }

.folio {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 44px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.folio .pg { color: var(--ink); }
.folio .pg em { font-style: normal; color: var(--accent); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--f-serif); font-weight: 700; letter-spacing: -0.025em; }
h2.title {
  font-size: 76px;
  line-height: 1.12;
  margin-bottom: 44px;
  max-width: 1500px;
}
h2.title .hl { color: var(--accent); }
h3 { font-size: 34px; line-height: 1.25; }

p, li { font-size: 30px; line-height: 1.55; }
.lede { font-size: 34px; line-height: 1.5; color: var(--ink-2); max-width: 1280px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-display); font-weight: 400; }
em.u { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-tint) 62%); }

.label-row {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 28px;
  align-items: baseline;
  font-size: 26px;
  color: var(--ink-2);
}
.tag {
  font-family: var(--f-mono);
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 6px 14px 5px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}
.tag.red { border-color: var(--accent); color: var(--accent); }
.tag.fill { background: var(--ink); color: var(--paper); }

.src {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ---------- layout helpers ---------- */
.row { display: flex; gap: 64px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; flex: 1; min-height: 0; }
.split.wide-l { grid-template-columns: 1.15fr 0.85fr; }
.split.wide-r { grid-template-columns: 0.82fr 1.18fr; }
.vrule { border-left: 1px solid var(--rule); padding-left: 56px; }

/* ---------- figures ---------- */
figure { position: relative; display: flex; flex-direction: column; min-height: 0; }
figure .ph {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure.contain img { object-fit: contain; }
figcaption {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  gap: 14px;
}
figcaption b { color: var(--accent); font-weight: 600; }
.photo img { filter: grayscale(1) sepia(0.18) contrast(1.06); mix-blend-mode: multiply; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 28px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border-top: 3px solid var(--ink);
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .k {
  font-family: var(--f-display);
  font-size: 54px;
  line-height: 1;
  color: var(--accent);
}
.card h3 { font-size: 34px; }
.card p { font-size: 26px; line-height: 1.5; color: var(--ink-2); }
.card.box {
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, white);
  padding: 26px 28px 28px;
}
.card.red { border-top-color: var(--accent); }

/* ---------- comparison table ---------- */
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 27px;
}
table.cmp th, table.cmp td {
  text-align: left;
  padding: 17px 20px 17px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.4;
}
table.cmp thead th {
  font-family: var(--f-serif);
  font-size: 34px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
}
table.cmp thead th.red { color: var(--accent); border-bottom-color: var(--accent); }
table.cmp tbody th {
  font-family: var(--f-mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 180px;
  padding-top: 22px;
}

/* ---------- code ---------- */
.code {
  font-family: var(--f-mono);
  font-size: 24px;
  line-height: 1.62;
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  padding: 28px 34px;
  white-space: pre;
  color: var(--ink);
  overflow: hidden;
}
.code .c { color: var(--muted); }
.code .p { color: var(--accent); font-weight: 600; }
.code .s { color: var(--accent-ink); }
.code.sm { font-size: 20px; line-height: 1.6; }
.code.prompt { border-left-color: var(--accent); white-space: pre-wrap; }

/* ---------- part opener ---------- */
.s-part { padding: 0; }
.s-part .bignum {
  position: absolute;
  left: 92px;
  bottom: -90px;
  font-family: var(--f-display);
  font-size: 760px;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.s-part .bignum span { display: inline-block; }
.s-part .pmeta {
  position: absolute;
  right: 132px;
  top: 300px;
  width: 760px;
}
.s-part .pmeta .when {
  font-family: var(--f-mono);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 28px;
}
.s-part .pmeta h2 { font-size: 108px; line-height: 1.05; margin-bottom: 34px; }
.s-part .pmeta p { font-size: 32px; color: var(--ink-2); }
.dotgrid {
  position: absolute;
  right: 132px;
  bottom: 120px;
  width: 760px;
  height: 200px;
  display: grid;
  grid-template-columns: repeat(38, 1fr);
  gap: 0;
}
.dotgrid i {
  display: block;
  width: 9px;
  height: 9px;
  margin: 5px auto;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.85;
}
.dotgrid i.r { background: var(--accent); }

/* ---------- cover ---------- */
.s-cover { padding: 0; }
.s-cover .cv-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1010px;
}
.s-cover .cv-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.s-cover .cv-txt {
  position: absolute;
  left: 132px;
  top: 150px;
  width: 820px;
}
.s-cover .issue {
  font-family: var(--f-mono);
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  gap: 22px;
  margin-bottom: 64px;
  text-transform: uppercase;
}
.s-cover .issue b { color: var(--accent); font-weight: 600; }
.s-cover h1 {
  font-size: 150px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin-bottom: 36px;
}
.s-cover h1 .ital { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.s-cover .sub { font-family: var(--f-serif); font-size: 42px; line-height: 1.35; color: var(--ink-2); margin-bottom: 64px; }
.s-cover .meta {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 10px;
  font-size: 22px;
  color: var(--ink-2);
}
.s-cover .meta dt { font-family: var(--f-mono); font-size: 17px; letter-spacing: 0.1em; color: var(--muted); padding-top: 4px; }
.s-cover .cv-rule { position: absolute; left: 132px; right: 1010px; bottom: 120px; height: 2px; }

/* ---------- contents ---------- */
.toc { border-top: 3px solid var(--ink); }
.toc .tr {
  display: grid;
  grid-template-columns: 140px 260px 1fr 520px;
  align-items: baseline;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--rule);
  gap: 20px;
}
.toc .tr .n { font-family: var(--f-display); font-size: 74px; line-height: 0.9; color: var(--accent); }
.toc .tr .t { font-family: var(--f-mono); font-size: 21px; color: var(--muted); letter-spacing: 0.04em; }
.toc .tr h3 { font-size: 40px; }
.toc .tr p { font-size: 23px; color: var(--ink-2); line-height: 1.45; }
.toc .tr.brk { grid-template-columns: 140px 260px 1fr; padding: 12px 0 10px; }
.toc .tr.brk .n, .toc .tr.brk h3 { font-family: var(--f-mono); font-size: 20px; color: var(--muted); font-weight: 400; letter-spacing: 0.1em; }

/* ---------- question ---------- */
.s-question .qs { margin-top: 30px; display: flex; flex-direction: column; gap: 70px; }
.s-question .q { display: grid; grid-template-columns: 140px 1fr; align-items: start; }
.s-question .q .qn { font-family: var(--f-display); font-style: italic; font-size: 120px; line-height: 0.85; color: var(--accent); }
.s-question .q p { font-family: var(--f-serif); font-size: 70px; line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; }

/* ---------- practice ---------- */
.steps-list { counter-reset: st; display: flex; flex-direction: column; gap: 24px; }
.steps-list li { list-style: none; display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 31px; }
.steps-list li::before {
  counter-increment: st;
  content: counter(st, decimal-leading-zero);
  font-family: var(--f-display);
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
}
.steps-list li .in { display: block; font-family: var(--f-mono); font-size: 23px; color: var(--ink-2); background: var(--paper-2); padding: 8px 14px; margin-top: 8px; border-left: 3px solid var(--accent); white-space: pre-wrap; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--rule); }
.checks h4 { font-family: var(--f-mono); font-size: 18px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.checks p { font-size: 22px; line-height: 1.5; color: var(--ink-2); }

/* ---------- summary ---------- */
.s-summary .sum-lines { border-top: 3px solid var(--ink); }
.s-summary .sum-lines .ln { display: grid; grid-template-columns: 110px 1fr; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.s-summary .sum-lines .ln .n { font-family: var(--f-display); font-size: 56px; color: var(--accent); line-height: 1; }
.s-summary .sum-lines .ln p { font-family: var(--f-serif); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.breakbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.breakbar .pill { background: var(--accent); color: var(--paper); padding: 10px 22px 9px; font-weight: 600; letter-spacing: 0.08em; }

/* ---------- timeline ---------- */
.tl { position: relative; flex: 1; margin-top: 10px; }
.tl svg.tl-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.tl .nodes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px; }
.tl .node { display: flex; flex-direction: column; }
.tl .node .yr { font-family: var(--f-display); font-size: 58px; line-height: 1; margin-bottom: 4px; }
.tl .node .nm { font-family: var(--f-serif); font-size: 28px; font-weight: 700; height: 40px; }
.tl .node .tick { height: 44px; position: relative; }
.tl .node .tick::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: scale(var(--d, 1)); }
.tl .node.now .tick::before { background: var(--accent); width: 20px; height: 20px; top: 12px; }
.tl .node .pic { height: 300px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); }
.tl .node .pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.2) contrast(1.05); mix-blend-mode: multiply; }
.tl .node .cap { font-size: 21px; line-height: 1.45; color: var(--ink-2); margin-top: 16px; }
.tl .node.now .yr, .tl .node.now .nm { color: var(--accent); }
.tl .node.now .pic { background: var(--accent); border-color: var(--accent); display: grid; place-items: center; }
.tl .node.now .pic span { font-family: var(--f-display); font-style: italic; color: var(--paper); font-size: 64px; line-height: 1.05; text-align: center; }
.tl .credit { position: absolute; left: 0; bottom: -6px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.stat { padding: 26px 34px 26px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 34px; }
.stat .big { font-family: var(--f-display); font-size: 168px; line-height: 0.9; letter-spacing: -0.03em; color: var(--accent); }
.stat .big small { font-size: 0.42em; color: var(--ink); margin-left: 6px; }
.stat .when { font-family: var(--f-mono); font-size: 19px; color: var(--muted); letter-spacing: 0.06em; margin: 16px 0 8px; }
.stat p { font-size: 25px; line-height: 1.45; color: var(--ink-2); }

/* ---------- pull / definition ---------- */
.pull {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 52px;
  line-height: 1.22;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 34px;
  letter-spacing: -0.01em;
}
.pull .who { display: block; margin-top: 18px; font-family: var(--f-mono); font-style: normal; font-size: 18px; color: var(--muted); letter-spacing: 0.06em; }

.def { font-family: var(--f-serif); font-size: 58px; font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
.def .eq { color: var(--accent); font-family: var(--f-display); font-weight: 400; margin: 0 6px; }

/* ---------- steps diagram ---------- */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .st { flex: 1; border: 1.5px solid var(--ink); padding: 32px 30px 38px; background: color-mix(in srgb, var(--paper) 70%, white); position: relative; }
.flow .st .sn { font-family: var(--f-display); font-size: 56px; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.flow .st h3 { font-size: 34px; margin-bottom: 12px; }
.flow .st p { font-size: 25px; line-height: 1.5; color: var(--ink-2); }
.flow .ar { width: 74px; display: grid; place-items: center; flex: none; }
.flow .ar svg { width: 60px; height: 30px; overflow: visible; }
.flow.red .st:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow.red .st:last-child p { color: color-mix(in srgb, var(--paper) 80%, transparent); }

/* ---------- tree ---------- */
.tree { font-family: var(--f-mono); font-size: 25px; line-height: 1.68; white-space: pre; }
.tree .d { color: var(--ink); font-weight: 600; }
.tree .n { color: var(--muted); }
.tree .a { color: var(--accent); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { font-family: var(--f-mono); font-size: 23px; border: 1.5px solid var(--ink); padding: 7px 14px 6px; background: color-mix(in srgb, var(--paper) 60%, white); }
.chip.r { border-color: var(--accent); color: var(--accent); }

/* ---------- graph (orchestration) ---------- */
.graph { position: relative; flex: 1; }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gnode { position: absolute; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--paper) 70%, white); padding: 16px 22px 18px; text-align: center; min-width: 210px; }
.gnode .gk { font-family: var(--f-mono); font-size: 16px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.gnode h4 { font-family: var(--f-serif); font-size: 28px; white-space: nowrap; }
.gnode p { font-size: 19px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
.gnode.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gnode.dark p { color: color-mix(in srgb, var(--paper) 78%, transparent); }

/* ---------- misc ---------- */
.bigq { font-family: var(--f-display); font-size: 300px; line-height: 0.6; color: var(--accent); height: 110px; }
.hr { height: 1px; background: var(--rule); margin: 28px 0; }
.note-inline { font-size: 22px; color: var(--muted); }
.warn { border: 1.5px solid var(--accent); padding: 14px 20px; font-size: 22px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent-tint) 45%, transparent); }

/* ---------- chrome outside stage ---------- */
#progress {
  position: fixed;
  left: 0; top: 0;
  height: 4px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
}
#notes {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  width: min(920px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--paper);
  padding: 18px 22px 20px;
  font-size: 17px;
  line-height: 1.6;
  z-index: 120;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
#notes.open { transform: translate(-50%, 0); }
#notes .nh { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; display: flex; justify-content: space-between; }
#notes .nb:empty::after { content: "노트 없음"; opacity: .5; }

#overview {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  z-index: 110;
  padding: 48px 40px;
  overflow: auto;
  display: none;
}
#overview.open { display: block; }
#overview h5 { font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; color: var(--accent); margin-bottom: 20px; }
#overview .ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
#overview button {
  all: unset;
  cursor: pointer;
  border-top: 2px solid var(--ink);
  padding: 10px 2px 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
#overview button span { display: block; font-family: var(--f-display); font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 4px; }
#overview button.cur { border-top-color: var(--accent); }
#overview button:hover { background: var(--paper-2); }

#help {
  position: fixed;
  right: 16px;
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  z-index: 90;
  opacity: .8;
}
#navzones { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }

@media (max-width: 720px) {
  #help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- effects ---------- */
.strike { position: relative; display: inline-block; }
.strike::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px; top: 54%;
  height: 7px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--sx, 1));
}
.mark {
  background-image: linear-gradient(var(--accent-tint), var(--accent-tint));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: var(--mw, 100%) 42%;
}
.cdot { transform-box: fill-box; transform-origin: center; }
.sl { padding-bottom: 0.06em; }
h2.title .sl, .s-part h2 .sl { overflow: clip; }
.loophead { transform-box: fill-box; }

/* figures keep the illustration's own ratio unless a height is forced */
figure:not([style*="height"]) { justify-content: center; }
figure:not([style*="height"]) .ph { flex: none; aspect-ratio: 1376 / 768; }

/* ---------- size modifiers ---------- */
.cards.lg .card .k { font-size: 64px; }
.cards.lg .card h3 { font-size: 40px; }
.cards.lg .card p { font-size: 28px; }
.flow.big .st { padding: 40px 34px 48px; }
.flow.big .st .sn { font-size: 72px; }
.flow.big .st h3 { font-size: 40px; }
.flow.big .st p { font-size: 27px; }
.runhead { letter-spacing: 0.1em; }
.runhead b { font-family: var(--f-sans); letter-spacing: 0.02em; }
.harness { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 10px; }
.harness span { display: inline-flex; align-items: baseline; gap: 10px; font-size: 27px; border: 1.5px solid var(--ink); padding: 10px 18px 11px; background: color-mix(in srgb, var(--paper) 65%, white); }
.harness span b { font-family: var(--f-display); font-weight: 400; color: var(--accent); font-size: 30px; }
.harness i { font-style: normal; color: var(--muted); font-size: 24px; }
