/*
 * An article in Polina's kit (`look: kit`, 2026-11-21), and its interactive
 * blocks (apps/public/article_blocks.py). Built from the art lab's Polina
 * level: her paper and grain, Roboto Flex at her condensed-black proportions
 * for display, Geist Mono for labels, her pieces as decoration.
 *
 * Rules kept from the lab: body text sits on plain ground, never on paint;
 * light is her paper, dark the near-black her mockups sit on.
 *
 * Quiet mode (`html[data-art="quiet"]`, partials/art_toggle.html) takes out
 * every .zk-art piece, the grain and all motion, and sets the text like an
 * e-reader. The tools stay: they are content. Without script every block is
 * drawn in its finished state.
 */

.zk {
  --zk-display: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --zk-text: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --zk-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --zk-paper: #f1ede8;
  --zk-panel: #fbf9f6;
  --zk-ink: #1b1a19;
  --zk-soft: #4b4744;
  --zk-faint: #5c5651; /* 5.9:1 on paper, 4.5:1+ on its grain */
  --zk-mark-fill: #b5156e; /* white on it: 6.4:1 */
  --zk-line: rgb(27 26 25 / .14);
  --zk-mark: #d6248f;
  --zk-mark-text: #a8136b; /* the mark as small text: 5.6:1 on paper */
  --zk-green: #b4f02e;
  --zk-violet: #5b3fd6;
  --zk-on-mark: #fff;
  --zk-grain-blend: multiply; --zk-grain-filter: none; --zk-grain-opacity: .5;
  position: relative; isolation: isolate; overflow-x: clip;
  background: var(--zk-paper); color: var(--zk-ink); font-family: var(--zk-text);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zk {
    --zk-paper: #111012; --zk-panel: #1b1a1d; --zk-ink: #f1ede8; --zk-soft: #c8c1bb; --zk-faint: #a39c96;
    --zk-line: rgb(241 237 232 / .14); --zk-mark: #ff4fb4; --zk-violet: #8f7bff; --zk-mark-text: #ff4fb4;
    --zk-grain-blend: screen; --zk-grain-filter: invert(1); --zk-grain-opacity: .2;
  }
}
:root[data-theme="dark"] .zk {
  --zk-paper: #111012; --zk-panel: #1b1a1d; --zk-ink: #f1ede8; --zk-soft: #c8c1bb; --zk-faint: #a39c96;
  --zk-line: rgb(241 237 232 / .14); --zk-mark: #ff4fb4; --zk-violet: #8f7bff; --zk-mark-text: #ff4fb4;
  --zk-grain-blend: screen; --zk-grain-filter: invert(1); --zk-grain-opacity: .2;
}
.zk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--zk-grain); background-size: min(100%, 48rem) auto;
  mix-blend-mode: var(--zk-grain-blend); filter: var(--zk-grain-filter); opacity: var(--zk-grain-opacity);
}

/* Her pieces: blend as she painted them on paper; on black, multiply would
   vanish, so they sit normally and overlay pieces screen. */
.zk [data-blend="multiply"] { mix-blend-mode: multiply; }
.zk [data-blend="overlay"] { mix-blend-mode: overlay; }
.zk [data-blend="soft-light"] { mix-blend-mode: soft-light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zk [data-blend="multiply"] { mix-blend-mode: normal; opacity: .85; } :root:not([data-theme="light"]) .zk [data-blend="overlay"] { mix-blend-mode: screen; } }
:root[data-theme="dark"] .zk [data-blend="multiply"] { mix-blend-mode: normal; opacity: .85; }
:root[data-theme="dark"] .zk [data-blend="overlay"] { mix-blend-mode: screen; }

/* --- Type ---------------------------------------------------------------------- */

.zk-display, .zk-title, .zk-h2, .zk-dial__digit, .zk-num, .zk-levels__big, .zk-lrow__n, .zk-card__num, .zk-check__n, .zk-ladder__n {
  font-family: var(--zk-display); font-stretch: 73%; font-variation-settings: "wdth" 73, "opsz" 72; font-weight: 775;
}
.zk-kicker, .zk-byline, .zk-label, .zk-block__title, .zk-legend, .zk-flow__name, .zk-svg__note, .zk-button,
.zk-timeline__when, .zk-levels__hint, .zk-switch__label, .zk-goodhart__toy, .zk-check__private, .zk-lrow__tag, .zk-stagemap__name, .zk-prompt__title {
  font-family: var(--zk-mono); letter-spacing: .12em; text-transform: uppercase;
}
.zk .post-body { color: var(--zk-soft); font-size: 1.125rem; line-height: 1.7; }
.zk .post-body :where(strong, a, h3) { color: var(--zk-ink); }
.zk .post-body a { text-decoration-color: var(--zk-mark); }
.zk .post-body p + p { margin-top: 1.25rem; }

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

.zk-hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
@media (min-width: 768px) { .zk-hero { padding: 6rem 0 4rem; } }
.zk-hero__art { position: absolute; inset: 0; pointer-events: none; }
.zk-hero__art img { position: absolute; max-width: none; }
.zk-hero__cloud { right: -12%; top: -8%; width: min(80vw, 60rem); opacity: .9; }
.zk-hero__splash { right: 5%; top: 30%; width: min(60vw, 42rem); }
.zk-hero__dots { left: -3rem; bottom: -4rem; width: min(50vw, 22rem); opacity: .8; }
.zk-hero__ribbon { left: 2%; top: -10%; height: 120%; opacity: .7; }
.zk-hero__inner { position: relative; }
.zk-kicker { font-size: .72rem; font-weight: 700; color: var(--zk-ink); }
.zk-kicker a { color: var(--zk-mark-text); text-decoration: underline; text-underline-offset: 3px; }
.zk-kicker__draft { margin-left: .75rem; padding: .15rem .5rem; border: 1px solid var(--zk-mark); border-radius: 999px; color: var(--zk-mark-text); white-space: nowrap; }
.zk-title {
  margin-top: 1rem; max-width: 13ch; text-transform: uppercase; color: var(--zk-ink);
  font-size: clamp(3rem, 10.5vw, 8.25rem); line-height: .88; letter-spacing: -.01em;
  text-wrap: balance;
}
/* The dial: Level 5, struck through; Level 3, circled. */
.zk-dial { display: flex; gap: clamp(.4rem, 2vw, 1.5rem); margin-top: 2.25rem; align-items: center; }
.zk-dial__n { position: relative; display: inline-grid; place-items: center; width: clamp(2.4rem, 8vw, 5.5rem); aspect-ratio: 1; }
.zk-dial__digit { position: relative; font-size: clamp(2.2rem, 7vw, 4.75rem); line-height: 1; color: var(--zk-faint); }
.zk-dial__n--5 .zk-dial__digit { color: var(--zk-ink); }
.zk-dial__n--3 .zk-dial__digit { color: var(--zk-ink); }
.zk-dial__n--6 .zk-dial__digit { -webkit-text-stroke: 1.5px var(--zk-faint); color: transparent; }
.zk-dial__circle { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; opacity: .9; }
.zk-dial__oval { position: absolute; left: -45%; top: 8%; width: 190%; max-width: none; opacity: .95; }
.zk-dial__strike { position: absolute; inset: -5%; width: 110%; height: 110%; overflow: visible; }
.zk-dial__strike path { fill: none; stroke: var(--zk-ink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.zk-dek { position: relative; margin-top: 2rem; max-width: 36ch; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--zk-ink); }
.zk-hero__foot { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.zk-byline { font-size: .72rem; color: var(--zk-faint); }

/* The switch, as it sits in the header. */
.zk-switch__button { display: inline-flex; align-items: center; gap: .75rem; padding: .45rem .5rem .45rem .9rem; border: 1px solid var(--zk-line); border-radius: 999px; background: var(--zk-panel); color: var(--zk-ink); }
.zk-switch__button:focus-visible { outline: 2px solid var(--zk-mark); outline-offset: 2px; }
.zk-switch__label { font-size: .68rem; font-weight: 700; }
.zk-switch__track { position: relative; width: 2.4rem; height: 1.35rem; border-radius: 999px; background: var(--zk-line); transition: background .25s; }
.zk-switch__knob { position: absolute; left: .18rem; top: .18rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--zk-ink); transition: transform .25s; }
.zk-switch__button[aria-checked="true"] .zk-switch__track { background: var(--zk-mark); }
.zk-switch__button[aria-checked="true"] .zk-switch__knob { transform: translateX(1.05rem); background: #fff; }

/* --- Sections -------------------------------------------------------------------- */

.zk-body { padding-top: 2rem; }
.zk-section { padding-top: 3.5rem; }
.zk-label { margin: 0 0 .25rem; font-size: 1rem; }
.zk-num { position: relative; z-index: 0; display: inline-block; padding: .1rem .9rem .1rem .2rem; font-size: 1.6rem; line-height: 1; color: #8f0d5e; letter-spacing: 0; } /* 6.9:1 on the highlighter */
.zk-num img { position: absolute; left: -.6rem; top: 50%; width: 7.5rem; max-width: none; transform: translateY(-50%); z-index: -1; }
.zk .post-body .zk-h2 {
  margin-top: .5rem; margin-bottom: 1.5rem; text-transform: uppercase; color: var(--zk-ink);
  font-size: clamp(2.2rem, 7vw, 4.25rem); line-height: .92; letter-spacing: -.005em; text-wrap: balance;
}
.zk-section--refs .post-body .zk-h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.zk-section--refs .post-body { font-size: .95rem; }
.zk-section--refs .post-body li { overflow-wrap: anywhere; }
.zk .post-body hr { border-color: var(--zk-line); margin: 3rem 0 0; }

/* --- Shared block parts ------------------------------------------------------------ */

.zk .post-body > .zk-block { color: var(--zk-ink); }
.zk-block__title { font-size: .75rem; font-weight: 700; color: var(--zk-mark-text); margin-bottom: 1.25rem; }
.zk .zm-caption { color: var(--zk-faint); }
.zk-button {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: .35rem;
  font-size: .72rem; font-weight: 700; background: var(--zk-ink); color: var(--zk-paper); text-decoration: none;
}
.zk .post-body a.zk-button { color: var(--zk-paper); }
.zk-button:hover { opacity: .9; }
.zk .post-body a.zk-button { text-decoration: none; }
.zk-button:focus-visible { outline: 2px solid var(--zk-mark); outline-offset: 2px; }
.zk-button--mark { background: var(--zk-mark-fill); color: #fff; }

/* Who holds a stage: green is a person, magenta is the AI, and the two in
   between are the handoff. Each also has a pattern, so color isn't the only
   difference. */
.zk-chip--human { --chip: var(--zk-green); --chip-ink: #1b1a19; background: var(--chip); }
.zk-chip--suggests { --chip-ink: #1b1a19; background: repeating-linear-gradient(135deg, var(--zk-green) 0 6px, color-mix(in srgb, var(--zk-mark) 30%, var(--zk-green)) 6px 12px); }
.zk-chip--approves { --chip-ink: #fff; background: linear-gradient(135deg, var(--zk-mark) 0 55%, var(--zk-green) 55%); }
.zk-chip--owns { --chip: var(--zk-mark); --chip-ink: #fff; background: var(--chip); }
.zk-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.25rem; padding: 0; list-style: none; font-size: .62rem; color: var(--zk-soft); }
.zk .post-body .zk-legend li { margin: 0; padding: 0; }
.zk .post-body .zk-legend li::before { display: none; }
.zk-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.zk-legend .zk-chip { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: .2rem; }

/* A pipeline of stages, colored by who holds each. */
.zk .post-body .zk-flow { display: grid; grid-template-columns: repeat(var(--stages, 10), minmax(0, 1fr)); gap: .3rem; padding: 0; margin: 0; list-style: none; }
.zk .post-body .zk-flow li { margin: 0; padding: 0; }
.zk .post-body .zk-flow li::before { display: none; }
.zk-flow__cell { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.zk-flow__name { font-size: .58rem; font-weight: 700; line-height: 1.2; letter-spacing: .06em; color: var(--zk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-flow__tile { display: flex; align-items: flex-end; min-height: 3.2rem; padding: .4rem; border-radius: .3rem; color: var(--chip-ink, var(--zk-ink)); }
.zk-flow__who { font-family: var(--zk-mono); font-size: .56rem; font-weight: 700; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; background: var(--zk-paper); color: var(--zk-ink); padding: .15rem .3rem; border-radius: .2rem; }
.zk-flow--mini .zk-flow__tile { min-height: 1.1rem; padding: 0; }
.zk-flow--mini .zk-flow__name { font-size: .5rem; color: var(--zk-faint); }
@media (max-width: 640px) {
  .zk .post-body .zk-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- levels: the explorer ------------------------------------------------------------- */

.zk-levels { --stages: 10; }
.zk-levels__picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.zk-levels__btn {
  position: relative; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 2px solid var(--zk-line);
  background: var(--zk-panel); color: var(--zk-ink); transition: transform .2s, border-color .2s, background .2s;
}
.zk-levels__btn:hover { transform: translateY(-2px); border-color: var(--zk-mark); }
.zk-levels__btn:focus-visible { outline: 2px solid var(--zk-mark); outline-offset: 3px; }
.zk-levels__num { font-family: var(--zk-display); font-stretch: 73%; font-variation-settings: "wdth" 73, "opsz" 72; font-weight: 775; font-size: 1.7rem; line-height: 1; }
.zk-levels__btn[aria-checked="true"] { background: var(--zk-mark-fill); border-color: var(--zk-mark-fill); color: #fff; transform: scale(1.08); }
.zk-levels__btn.is-ours { border-style: dashed; }
.zk-levels__btn.is-ours::after { content: "ours"; position: absolute; left: 50%; bottom: -1.2rem; transform: translateX(-50%); font-family: var(--zk-mono); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-faint); }
.zk-levels__hint { margin-top: 1.6rem; font-size: .62rem; color: var(--zk-faint); }
.zk-flow--live { margin-top: 1rem !important; }
.zk-flow--live .zk-flow__tile { min-height: 5.5rem; }
.zk-flow--live .zk-flow__tile.is-flip { animation: zk-flip .5s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 45ms) both; }
.zk-flow--live .zk-flow__cell { --i: 0; }
@keyframes zk-flip { 0% { transform: scaleY(1); } 45% { transform: scaleY(.08); } 100% { transform: scaleY(1); } }
.zk-levels__panel { margin-top: 1.5rem; padding: 1.5rem; border-radius: .5rem; background: var(--zk-panel); border: 1px solid var(--zk-line); }
.zk-levels__name { display: flex; align-items: baseline; gap: 1rem; margin: 0; }
.zk-levels__big { font-size: clamp(3.5rem, 9vw, 5.5rem); line-height: .8; color: var(--zk-mark); }
.zk-levels__label { font-family: var(--zk-display); font-stretch: 73%; font-variation-settings: "wdth" 73, "opsz" 72; font-weight: 775; text-transform: uppercase; font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1; color: var(--zk-ink); }
.zk-levels__facts, .zk-lrow__facts { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .zk-levels__facts, .zk-lrow__facts { grid-template-columns: repeat(3, 1fr); } }
.zk-levels__facts dt, .zk-lrow__facts dt { font-family: var(--zk-mono); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-faint); }
.zk-levels__facts dd, .zk-lrow__facts dd { margin: .35rem 0 0; font-size: .98rem; line-height: 1.5; color: var(--zk-ink); }
.zk-levels__toggle { margin-top: 1rem; font-family: var(--zk-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-mark-text); text-decoration: underline; text-underline-offset: 4px; }
.zk-levels.is-live .zk-levels__all { display: none; }
.zk-levels.is-live.show-all .zk-levels__all { display: block; }
.zk-levels__all { margin-top: 1.5rem; }
.zk-lrow { padding: 1.25rem 0; border-top: 1px solid var(--zk-line); }
.zk-lrow__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; margin: 0 0 .75rem; }
.zk-lrow__n { font-size: 2.2rem; line-height: .9; color: var(--zk-mark); }
.zk-lrow__name { font-weight: 700; color: var(--zk-ink); }
.zk-lrow__tag { font-size: .55rem; padding: .15rem .45rem; border: 1px dashed var(--zk-faint); border-radius: 999px; color: var(--zk-faint); }

/* --- stagemap ------------------------------------------------------------------------- */

.zk-stagemap { --stages: 10; }
.zk-stagemap__row + .zk-stagemap__row { margin-top: 1.5rem; }
.zk-stagemap__name { font-size: .7rem; font-weight: 700; color: var(--zk-ink); margin-bottom: .5rem; }
.zk-stagemap__note { margin-top: .5rem; font-size: .95rem; color: var(--zk-soft); }
.js-motion .zk-stagemap.zm-reveal .zk-flow__tile { opacity: 0; transform: translateY(.75rem); transition: opacity .5s ease calc(var(--i) * 60ms), transform .5s ease calc(var(--i) * 60ms); }
.js-motion .zk-stagemap.zm-reveal.is-in .zk-flow__tile { opacity: 1; transform: none; }

/* --- ladder --------------------------------------------------------------------------- */

.zk-ladder__table { width: 100%; border-collapse: separate; border-spacing: 0 .4rem; font-size: .92rem; }
.zk-ladder__table th, .zk-ladder__table td { text-align: left; vertical-align: middle; padding: .55rem .6rem; }
.zk-ladder__table thead th { font-family: var(--zk-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-faint); font-weight: 700; padding-bottom: .2rem; }
.zk-ladder__table tbody tr { background: var(--zk-panel); }
.zk-ladder__table tbody th { border-radius: .35rem 0 0 .35rem; white-space: nowrap; }
.zk-ladder__table tbody td:last-child { border-radius: 0 .35rem .35rem 0; }
.zk-ladder__n { font-size: 1.9rem; line-height: .9; color: var(--zk-mark); margin-right: .6rem; vertical-align: middle; }
.zk-ladder__name { font-family: var(--zk-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--zk-soft); white-space: normal; display: inline-block; max-width: 9rem; vertical-align: middle; line-height: 1.3; }
.zk-pill { display: inline-block; padding: .3rem .6rem; border-radius: .3rem; line-height: 1.3; font-size: .85rem; }
.zk-pill--human { background: var(--zk-green); color: #1b1a19; }
.zk-pill--system { background: var(--zk-mark-fill); color: #fff; }
.zk-ladder__key { background: color-mix(in srgb, var(--zk-mark) 7%, transparent); }
thead .zk-ladder__key { color: var(--zk-mark-text) !important; background: none; }
.zk-pill--key { font-weight: 700; }
.js-motion .zk-ladder.zm-reveal tbody tr { opacity: 0; transform: translateX(-1.5rem); transition: opacity .5s ease calc(var(--i) * 90ms), transform .5s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 90ms); }
.js-motion .zk-ladder.zm-reveal.is-in tbody tr { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .zk-ladder__table thead { display: none; }
  .zk-ladder__table, .zk-ladder__table tbody, .zk-ladder__table tr, .zk-ladder__table th, .zk-ladder__table td { display: block; }
  .zk-ladder__table tbody tr { margin-bottom: .6rem; border-radius: .4rem; padding: .4rem 0; }
  .zk-ladder__table td { padding: .25rem .7rem; }
  .zk-ladder__table td::before { display: block; font-family: var(--zk-mono); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zk-faint); margin-bottom: .2rem; }
  .zk-ladder__table td:nth-child(2)::before { content: "Drives"; }
  .zk-ladder__table td:nth-child(3)::before { content: "Watches the road"; }
  .zk-ladder__table td:nth-child(4)::before { content: "Handles the failure"; color: var(--zk-mark); }
}

/* --- cards ---------------------------------------------------------------------------- */

.zk .post-body .zk-cards__list { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.zk .post-body .zk-cards__list > li { margin: 0; }
.zk .post-body .zk-cards__list > li::before { display: none; }
@media (min-width: 768px) { .zk .post-body .zk-cards--numbers .zk-cards__list { grid-template-columns: repeat(3, 1fr); } .zk .post-body .zk-cards--breaks .zk-cards__list { grid-template-columns: repeat(2, 1fr); } }
.zk-card { position: relative; padding: 1.5rem; border-radius: .5rem; background: var(--zk-panel); border: 1px solid var(--zk-line); }
.zk-card__num { position: relative; display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; font-size: 2rem; color: #fff; margin-bottom: .75rem; }
.zk-card__num img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.zk-card__num { z-index: 0; }
.zk-card__num::after { content: none; }
.zk-card__title p, .zk-card__text p { margin: 0; }
.zk-card__title { font-family: var(--zk-display); font-stretch: 85%; font-variation-settings: "wdth" 85, "opsz" 36; font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--zk-ink); }
.zk-card__text { margin-top: .6rem; font-size: 1rem; line-height: 1.55; color: var(--zk-soft); }
.zk-cards--breaks .zk-card { border-left: .35rem solid var(--zk-mark); }
.zk-cards--breaks .zk-card:last-child { grid-column: 1 / -1; background: var(--zk-ink); color: var(--zk-paper); border-color: var(--zk-ink); border-left-color: var(--zk-green); }
.zk-cards--breaks .zk-card:last-child .zk-card__title { color: var(--zk-paper); }
.zk-cards--breaks .zk-card:last-child .zk-card__text { color: var(--zk-paper); }
.zk-card.zm-reveal { transition-delay: calc(var(--i) * 90ms); }
.zk-cards--numbers .zk-card__num { color: #fff; }
.zk-cards--numbers .zk-card__num > :not(img) { position: relative; }
/* The number itself sits above the brush circle. */
.zk-card__num { isolation: isolate; }

/* --- timeline ------------------------------------------------------------------------- */

.zk .post-body .zk-timeline__list { position: relative; display: grid; gap: 1.25rem; padding: 0 0 0 1.5rem; margin: 0; list-style: none; }
.zk .post-body .zk-timeline__list::before { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--zk-green), var(--zk-mark)); }
.zk .post-body .zk-timeline__event { position: relative; margin: 0; }
.zk .post-body .zk-timeline__event::before { content: ""; position: absolute; left: -1.5rem; top: .25rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--zk-paper); border: 3px solid var(--zk-mark); }
.zk-timeline__when { font-size: .68rem; font-weight: 700; color: var(--zk-mark-text); }
.zk-timeline__title { margin-top: .2rem; font-family: var(--zk-display); font-stretch: 85%; font-variation-settings: "wdth" 85, "opsz" 36; font-weight: 700; font-size: 1.2rem; color: var(--zk-ink); }
.zk-timeline__text p { margin: .25rem 0 0; font-size: .98rem; line-height: 1.5; color: var(--zk-soft); }
@media (min-width: 900px) {
  .zk .post-body .zk-timeline__list { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; padding: 1.75rem 0 0; }
  .zk .post-body .zk-timeline__list::before { left: 0; right: 0; top: .4rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--zk-green), var(--zk-mark)); }
  .zk .post-body .zk-timeline__event::before { left: 0; top: -1.75rem; }
}
.js-motion .zk-timeline.zm-reveal .zk-timeline__event { opacity: 0; transform: translateY(1rem); transition: opacity .5s ease calc(var(--i) * 110ms), transform .5s ease calc(var(--i) * 110ms); }
.js-motion .zk-timeline.zm-reveal.is-in .zk-timeline__event { opacity: 1; transform: none; }

/* --- shoulder: the road and the flag ----------------------------------------------------- */

.zk-shoulder__panes { display: grid; gap: 1rem; }
@media (min-width: 768px) { .zk-shoulder__panes { grid-template-columns: 1fr 1fr; } }
.zk-shoulder__pane { padding: 1rem; border-radius: .5rem; background: var(--zk-panel); border: 1px solid var(--zk-line); }
.zk-shoulder__label { font-family: var(--zk-mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-faint); margin-bottom: .5rem; }
.zk-shoulder svg { display: block; width: 100%; height: auto; overflow: visible; }
.zk-svg__note { font-size: 10px; fill: var(--zk-soft); letter-spacing: .06em; }
.zk-svg__note--mark { fill: var(--zk-mark-text); font-weight: 700; }
.zk-road__lane { fill: color-mix(in srgb, var(--zk-ink) 12%, transparent); }
.zk-road__odd { fill: color-mix(in srgb, var(--zk-green) 45%, transparent); }
.zk-road__shoulder { fill: color-mix(in srgb, var(--zk-mark) 18%, transparent); }
.zk-road__dash { stroke: var(--zk-paper); stroke-width: 3; stroke-dasharray: 14 12; }
.zk-road__edge { stroke: var(--zk-mark); stroke-width: 2.5; stroke-dasharray: 5 5; }
.zk-road__car rect:first-child { fill: var(--zk-ink); }
.zk-road__glass { fill: var(--zk-paper); }
.zk-road__hazard { fill: #ffb400; }
/* The end state, drawn by default: on the shoulder, hazards on. */
.zk-road__car { transform: translate(300px, 170px); }
.zk-chart__axis { stroke: var(--zk-line); stroke-width: 2; }
.zk-chart__release { stroke: var(--zk-faint); stroke-dasharray: 3 4; }
.zk-chart__line { fill: none; stroke: var(--zk-mark); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.zk-flag__track { fill: var(--zk-line); stroke: var(--zk-faint); }
.zk-flag__knob { fill: var(--zk-ink); }
.zk-shoulder__run { margin-top: 1rem; }
.zk-shoulder.is-playing .zk-road__car { animation: zk-drive 4.2s cubic-bezier(.4,0,.2,1) both; }
.zk-shoulder.is-playing .zk-road__hazard { animation: zk-blink .5s steps(1) 3.4s 6 both; }
.zk-shoulder.is-playing .zk-chart__line { animation: zk-draw 4.2s linear both; }
.zk-shoulder.is-playing .zk-flag__knob { animation: zk-knob 4.2s both; }
.zk-shoulder.is-playing .zk-flag__track { animation: zk-track 4.2s both; }
.zk-shoulder.is-playing .zk-flag__state { animation: zk-show 4.2s both; }
@keyframes zk-drive {
  0% { transform: translate(-30px, 82px); }
  55% { transform: translate(250px, 82px); }
  70% { transform: translate(282px, 110px); }
  85%, 100% { transform: translate(300px, 170px); }
}
@keyframes zk-blink { 50% { opacity: .15; } }
@keyframes zk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes zk-knob { 0%, 52% { transform: translateX(22px); } 60%, 100% { transform: none; } }
@keyframes zk-track { 0%, 52% { fill: color-mix(in srgb, var(--zk-green) 70%, transparent); } 60%, 100% { fill: var(--zk-line); } }
@keyframes zk-show { 0%, 55% { opacity: 0; } 62%, 100% { opacity: 1; } }

/* --- goodhart ------------------------------------------------------------------------- */

.zk-goodhart { padding: 1.5rem; border-radius: .5rem; background: var(--zk-panel); border: 1px solid var(--zk-line); }
.zk-goodhart__label { display: block; font-family: var(--zk-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--zk-ink); }
.zk-goodhart__label output { color: var(--zk-mark-text); }
.zk-range { width: 100%; margin-top: .75rem; accent-color: var(--zk-mark); }
.zk-goodhart__bars { display: grid; gap: 1rem; margin-top: 1.25rem; }
.zk-goodhart__row { display: grid; grid-template-columns: 1fr; gap: .35rem; }
@media (min-width: 640px) { .zk-goodhart__row { grid-template-columns: 14rem 1fr 6rem; align-items: center; gap: 1rem; } }
.zk-goodhart__row p { margin: 0 !important; font-size: .92rem; color: var(--zk-soft); }
.zk-goodhart__track { height: 1.6rem; border-radius: .3rem; background: var(--zk-line); overflow: hidden; }
.zk-goodhart__bar { display: block; height: 100%; width: calc(var(--v) * 100%); transition: width .35s ease; }
.zk-goodhart__bar--logged { background: var(--zk-mark); }
.zk-goodhart__bar--real { background: var(--zk-ink); }
.zk .post-body .zk-goodhart__v { font-family: var(--zk-mono); font-size: .75rem !important; color: var(--zk-ink) !important; }
.zk-goodhart__verdict { margin-top: 1.25rem !important; font-family: var(--zk-display); font-stretch: 85%; font-variation-settings: "wdth" 85, "opsz" 36; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--zk-ink); }
.zk-goodhart__toy { margin-top: .75rem !important; font-size: .6rem; color: var(--zk-faint); }

/* --- checklist ------------------------------------------------------------------------ */

.zk-check { padding: 1.5rem; border-radius: .5rem; background: var(--zk-panel); border: 1px solid var(--zk-line); }
.zk-check__score { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; font-family: var(--zk-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zk-soft); }
.zk-check__n { font-size: 3.5rem; line-height: .8; color: var(--zk-mark); letter-spacing: 0; }
.zk-check__meter { margin-top: .75rem; height: .5rem; border-radius: 999px; background: var(--zk-line); overflow: hidden; }
.zk-check__meter span { display: block; height: 100%; width: calc(var(--done, 0) * 100%); background: linear-gradient(90deg, var(--zk-green), var(--zk-mark)); transition: width .4s ease; }
.zk .post-body .zk-check__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.zk .post-body .zk-check__item { margin: 0; position: relative; }
.zk .post-body .zk-check__item::before { display: none; }
.zk-check__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zk-check__item label { display: grid; grid-template-columns: 2.4rem 1fr; gap: .1rem 1rem; padding: 1rem; border-radius: .4rem; border: 1px solid var(--zk-line); cursor: pointer; transition: background .2s, border-color .2s; }
.zk-check__item label:hover { border-color: var(--zk-mark); }
.zk-check__box:focus-visible + label { outline: 2px solid var(--zk-mark); outline-offset: 2px; }
.zk-check__num { grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--zk-line); font-family: var(--zk-mono); font-weight: 700; font-size: .85rem; color: var(--zk-soft); transition: background .2s, color .2s, border-color .2s; }
.zk-check__title p, .zk-check__text p { margin: 0 !important; }
.zk-check__title { font-weight: 700; color: var(--zk-ink); line-height: 1.35; }
.zk-check__text { font-size: .98rem; line-height: 1.55; color: var(--zk-soft); }
.zk-check__box:checked + label { background: color-mix(in srgb, var(--zk-green) 18%, transparent); border-color: color-mix(in srgb, var(--zk-green) 80%, var(--zk-ink)); }
.zk-check__box:checked + label .zk-check__num { background: var(--zk-green); border-color: var(--zk-green); color: transparent; position: relative; }
.zk-check__box:checked + label .zk-check__num::after { content: "✓"; position: absolute; color: #1b1a19; font-size: 1.1rem; }
.zk-check__private { margin-top: 1rem !important; font-size: .6rem; color: var(--zk-faint); }

/* --- prompt --------------------------------------------------------------------------- */

.zk-prompt { border-radius: .6rem; overflow: hidden; background: #111012; color: #f1ede8; box-shadow: .6rem .6rem 0 var(--zk-mark); }
.zk-prompt__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgb(241 237 232 / .12); }
.zk-prompt__title { margin: 0 !important; font-size: .7rem; font-weight: 700; color: var(--zk-green) !important; }
.zk-prompt__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.zk-prompt .zk-button { background: #f1ede8; color: #111012 !important; }
.zk-prompt .zk-button--mark { background: var(--zk-mark-fill); color: #fff !important; }
.zk .post-body .zk-prompt__text { margin: 0; padding: 1.25rem; max-height: 28rem; overflow: auto; background: none; border: 0; border-radius: 0; color: #e8e2dc; font-family: var(--zk-mono); font-size: .8rem; line-height: 1.6; white-space: pre-wrap; }
.zk .post-body .zk-prompt__text code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* --- kit bands ------------------------------------------------------------------------ */

.zk .post-body > .zk-band { position: relative; height: clamp(12rem, 30vw, 22rem); pointer-events: none; margin-top: 2rem; margin-bottom: 2rem; }
.zk-band__p { position: absolute; max-width: none; height: auto; }
/* Pieces cut from her full screens have straight edges; fade them out. */
.zk-band__p[data-name="ink-cloud-black-pink"], .zk-band__p[data-name="cloud-pink"], .zk-band__p[data-name="wash-pink-overlay"],
.zk-band__p[data-name="ink-splash-black"], .zk-band__p[data-name="ink-drip-pink"], .zk-band__p[data-name="splash-blue-pink"], .zk-hero__cloud {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 55%, transparent 100%);
}
.zk-band--storm .zk-band__p--0 { left: 4%; top: -10%; width: 62%; }
.zk-band--storm .zk-band__p--1 { right: 2%; top: 5%; width: 48%; }
.zk-band--storm .zk-band__p--2 { left: 45%; top: -35%; width: 10%; transform: rotate(78deg); }
.zk-band--storm .zk-band__p--3 { right: 12%; bottom: -5%; width: 16%; }
.zk-band--road .zk-band__p--0 { left: 8%; top: 55%; width: 30%; transform: rotate(-6deg); }
.zk-band--road .zk-band__p--1 { left: 25%; top: -5%; width: 55%; }
.zk-band--road .zk-band__p--2 { right: 16%; top: 30%; width: 9%; }
.zk-band--road .zk-band__p--3 { right: 0; top: 0; width: 26%; }
.zk-band--destination .zk-band__p--0 { left: 0; top: 0; width: 70%; }
.zk-band--destination .zk-band__p--1 { right: 10%; top: -10%; width: 26%; }
.zk-band--destination .zk-band__p--2 { left: 55%; top: 38%; width: 10%; }
.zk-band--destination .zk-band__p--3 { left: 18%; top: 15%; width: 34%; }
.zk-band--evidence .zk-band__p--0 { left: 30%; top: 0; width: 34%; transform: rotate(-4deg); }
.zk-band--evidence .zk-band__p--1 { left: 26%; top: 60%; width: 42%; }
.zk-band--evidence .zk-band__p--2 { left: 2%; top: -10%; width: 22%; }
.zk-band--evidence .zk-band__p--3 { right: 4%; top: -20%; width: 22%; }
.zk-band--ending .zk-band__p--0 { left: 8%; top: -10%; width: 55%; }
.zk-band--ending .zk-band__p--1 { right: 0; top: 0; width: 50%; }
.zk-band--ending .zk-band__p--2 { left: 58%; top: 50%; width: 8%; }
.zk-band--ending .zk-band__p--3 { left: 10%; top: 70%; width: 22%; }

/* --- Motion, and the end of it ------------------------------------------------------------ */

.js-motion .zk-dial__strike path { animation: zk-draw .7s cubic-bezier(.6,0,.4,1) 1.1s both; }
.js-motion .zk-dial__circle { animation: zk-pop .6s cubic-bezier(.2,.9,.3,1.3) .5s both; }
.js-motion .zk-dial__oval { animation: zk-sweep .7s cubic-bezier(.2,.7,.2,1) 1.9s both; }
.js-motion .zk-dial__n--3 .zk-dial__digit { animation: zk-ink 1s ease 1.9s both; }
.js-motion .zk-dial__n--5 .zk-dial__digit { animation: zk-fade 1s ease 1.5s both; }
.js-motion .zk-title { animation: zk-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js-motion .zk-hero__cloud { animation: zk-float 18s ease-in-out infinite alternate; }
.js-motion .zk-hero__splash { animation: zk-float 24s ease-in-out -6s infinite alternate-reverse; }
@keyframes zk-pop { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes zk-sweep { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: .95; clip-path: inset(0 0 0 0); } }
@keyframes zk-ink { from { color: var(--zk-faint); } }
@keyframes zk-fade { to { color: var(--zk-faint); } }
@keyframes zk-rise { from { opacity: 0; transform: translateY(2rem); } }
@keyframes zk-float { to { transform: translate(-2.5%, 3%) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  .zk *, .zk *::before, .zk *::after { animation: none !important; transition: none !important; }
}

/* Quiet: no art, no grain, no motion; the words, the tables and the tools. */
html[data-art="quiet"] .zk-art, html[data-art="quiet"] .zk-hero__art, html[data-art="quiet"] .zk .zk-band { display: none !important; }
html[data-art="quiet"] .zk::before { display: none; }
html[data-art="quiet"] .zk *, html[data-art="quiet"] .zk *::before, html[data-art="quiet"] .zk *::after { animation: none !important; transition: none !important; }
html[data-art="quiet"] .zk .zm-reveal, html[data-art="quiet"] .zk .zm-reveal * { opacity: 1 !important; transform: none !important; }
html[data-art="quiet"] .zk-hero { padding: 3rem 0 1rem; }
html[data-art="quiet"] .zk-title { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 18ch; }
html[data-art="quiet"] .zk-dial { display: none; }
html[data-art="quiet"] .zk .post-body .zk-h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
html[data-art="quiet"] .zk .post-body { font-size: 1.2rem; line-height: 1.75; }
html[data-art="quiet"] .zk-num { color: var(--zk-faint); padding: 0; }
html[data-art="quiet"] .zk-prompt { box-shadow: none; }
html[data-art="quiet"] .zk-levels [data-zk-live] { display: none !important; }
html[data-art="quiet"] .zk-levels .zk-levels__all { display: block !important; }
html[data-art="quiet"] .zk-dial__n--5 .zk-dial__digit { color: var(--zk-faint); }
.zk-card__num > span { position: relative; z-index: 1; }
html[data-art="quiet"] .zk-card__num { color: var(--zk-mark); width: auto; height: auto; font-size: 1.6rem; }
/* On a phone the cloud would sit under the kicker and title: move it below
   the title's first lines and off to the side, so small text stays on paper. */
@media (max-width: 640px) {
  .zk-hero__cloud { right: -55%; top: 9rem; width: 110vw; opacity: .7; }
  .zk-hero__splash { top: 22rem; right: -30%; }
  .zk-hero__ribbon { display: none; }
}

/* --- Contrast where text meets art (2026-11-21) ----------------------------------------- */
/* Headings may cross the art, as Polina's direction allows; a halo of the
   page's own color keeps every letter readable where paint runs behind it.
   Measured with a pixel check against the art, both themes, desktop and phone. */
.zk-title, .zk-dek, .zk-kicker, .zk-byline, .zk .post-body .zk-h2 {
  text-shadow: 0 0 .12em var(--zk-paper), 0 0 .3em var(--zk-paper), 0 0 .6em var(--zk-paper);
}
/* The number's highlighter is its ground; on black it gets a paper chip
   behind it so the stroke's gaps don't drop the number onto black. */
.zk-num { background: var(--zk-green); border-radius: .2rem .9rem .9rem .2rem; padding: .15rem .55rem .1rem .45rem; }
.zk-num img { left: -1.4rem; width: 8.5rem; }
/* Bands keep their paint inside the band, so it never runs under a paragraph. */
.zk .post-body > .zk-band {
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

/* --- The enquiry section, in the kit ------------------------------------------------ */
/* The form under a kit article wears the article's look: her paper, condensed
   capitals, a paper card, the highlighter on the step numbers. */
.zk-foot #enquire { border-color: var(--zk-line); }
.zk-foot .enq__eyebrow, .zk-foot .enq__step { font-family: var(--zk-mono); color: var(--zk-mark-text); }
.zk-foot .enq__title { font-family: var(--zk-display); font-stretch: 73%; font-variation-settings: "wdth" 73, "opsz" 72; font-weight: 775; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: .92; letter-spacing: -.005em; color: var(--zk-ink); }
.zk-foot .enq__blurb, .zk-foot .enq__next li { color: var(--zk-soft); }
.zk-foot .enq__next strong, .zk-foot .enq__next a { color: var(--zk-ink); }
.zk-foot .enq__next li { border-color: var(--zk-line); }
.zk-foot .enq__step { display: inline-block; padding: .1rem .4rem; border-radius: .2rem .6rem .6rem .2rem; background: var(--zk-green); color: #8f0d5e; font-size: .75rem; }
.zk-foot .enq__card { background: var(--zk-panel); border-color: var(--zk-line); box-shadow: .6rem .6rem 0 var(--zk-mark); }
.zk-foot .enq__card::before { display: none; }
.zk-foot .enq-field label { color: var(--zk-ink); }
.zk-foot .enq-field__optional, .zk-foot .enq-form__note { font-family: var(--zk-mono); color: var(--zk-faint); }
.zk-foot .enq-field input, .zk-foot .enq-field textarea { background: var(--zk-paper); border-color: color-mix(in srgb, var(--zk-ink) 22%, transparent); color: var(--zk-ink); }
.zk-foot .enq-field input:focus, .zk-foot .enq-field textarea:focus { border-color: var(--zk-mark-fill, #b5156e); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zk-mark) 22%, transparent); }
.zk-foot .enq-field textarea::placeholder { color: var(--zk-faint); }
.zk-foot .enq-form__button { font-family: var(--zk-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: var(--zk-mark-fill, #b5156e); color: #fff; border-radius: .35rem; }
.zk-foot .enq-field__error { color: var(--zk-mark-text); }
html[data-art="quiet"] .zk-foot .enq__card { box-shadow: none; }
