* { box-sizing: border-box; }
:root {
  --ink: var(--sketch-palette-ink);
  --sheet: var(--sketch-palette-sheet);
  --line: var(--sketch-stroke) solid var(--ink);
  --mono: var(--sketch-typewriter);
  color: var(--ink);
  background-color: var(--sketch-palette-paper);
  background-image: radial-gradient(var(--sketch-palette-grid) var(--sketch-dot-matrix-dot-radius), transparent calc(var(--sketch-dot-matrix-dot-radius) + .2px));
  background-size: var(--sketch-dot-matrix-paper-pitch) var(--sketch-dot-matrix-paper-pitch);
  font: 1rem/1.5 var(--sketch-body);
}
body { margin: 0; }
.wrap { width: min(100% - 2.5rem, 69rem); margin: 0 auto; }
.mast { border-bottom: var(--line); background: var(--sheet); }
.bar, .section-head, footer, .status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar { min-height: 3.75rem; }
a { color: inherit; }
.bar a { font: bold .86rem var(--mono); text-underline-offset: .2em; }
.bar .wordmark { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1rem; }
.brandmark { font-size: 2rem; line-height: 1; }
/* The theme switch (theme.js): it starts from the reader's system setting. A filled dot shows dark is on. */
.theme-toggle { display: inline-flex; align-items: center; justify-self: start; min-height: var(--target-min); padding: .4rem .65rem; border: var(--line); background: var(--sheet); color: var(--ink); font: bold .86rem var(--mono); cursor: pointer; }
.theme-dot { display: inline-block; width: .7em; height: .7em; margin-inline-end: .45em; border: var(--sketch-stroke) solid currentColor; border-radius: 50%; }
[aria-pressed="true"] .theme-dot { background: currentColor; }
/* The language switcher (COMPONENTS.md): the kit's languageSwitch tokens, in the header's typewriter type. */
.bar { flex-wrap: wrap; }
.bar > nav[aria-label="Book navigation"] { margin-inline-start: auto; }
.language-switch ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--language-switch-gap); margin: 0; padding: 0; list-style: none; }
.language-switch li + li { border-inline-start: 1px solid var(--language-switch-separator); padding-inline-start: var(--language-switch-gap); }
.language-switch :is(a,[aria-current]) { display: inline-flex; align-items: center; min-height: var(--language-switch-min-target); font: bold .86rem var(--mono); }
.language-switch a { color: var(--language-switch-link); }
.language-switch [aria-current] { color: var(--language-switch-current); }
.translation-status { margin: 0 0 .75rem; font: .86rem var(--mono); }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; align-items: center; padding: clamp(2rem,6vw,4.5rem) 0 2rem; }
h1, h2, h3 { margin: 0; line-height: 1; }
h1 { font: 1000 clamp(3.6rem,8.5vw,6.8rem)/.85 var(--sketch-display); letter-spacing: -.085em; }
h1 em { font-style: italic; }
.hero p { max-width: 38ch; margin: 1.45rem 0 0; }
.illustration { direction:ltr; position: relative; height: clamp(10rem,20vw,15rem); isolation: isolate; }
.print-disc, .notebook, .pencil { position: absolute; }
.print-disc { width: 49%; height: 79%; border-radius: 50%; top: 10%; inset-inline-start: 30%; background: radial-gradient(var(--ink) 1px,transparent 1.5px) 0 0 / var(--sketch-dot-matrix-panel-pitch) var(--sketch-dot-matrix-panel-pitch); }
.notebook { width: 48%; height: 72%; inset-inline-start: 18%; top: 15%; transform: rotate(-13deg) skewY(-3deg); border: 3px solid var(--ink); border-radius: 3px 9px 9px 3px; background: repeating-linear-gradient(0deg,transparent 0 15px,var(--sketch-palette-grid) 15px 16px),var(--sheet); box-shadow: 3px 4px var(--sheet),5px 6px var(--ink),8px 9px var(--sheet),10px 11px var(--ink); }
.notebook::before { content: ''; position: absolute; inset: 0 auto 0 10%; border-inline-end: var(--line); }
.notebook i { display: block; width: 38%; height: 3px; background: var(--ink); margin: 9% 0 -4% 21%; transform: rotate(-2deg); }
.notebook i:nth-child(2) { width: 26%; }
.pencil { width: 57%; height: 1.45rem; top: 49%; inset-inline-start: 35%; transform: rotate(-37deg); border: 3px solid var(--ink); border-radius: 0 .4rem .4rem 0; background: linear-gradient(to bottom,var(--sheet) 40%,var(--ink) 41% 53%,var(--sketch-palette-grid) 54%); }
.pencil::before { content: ''; position: absolute; inset-inline-end: 100%; top: -3px; border-block: .72rem solid transparent; border-inline-end: 2rem solid var(--ink); }
.pencil::after { content: ''; position: absolute; inset-inline-end: 7%; height: 100%; border-inline-end: 4px double var(--ink); }
.section-head { border-block: var(--line); padding: .85rem 0; }
h2 { font: 800 1.5rem/1.1 var(--sketch-display); letter-spacing: -.055em; }
.status, footer { font: bold .82rem/1.4 var(--mono); }
progress { width: 5rem; height: .7rem; accent-color: var(--ink); }
.panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; padding: 1.5rem 0; }
.panel { --accent: var(--sketch-palette-wash); display: flex; flex-direction: column; min-width: 0; padding: 0; border: var(--line); background: var(--sheet); color: var(--ink); text-align: start; cursor: pointer; box-shadow: 3px 3px var(--ink); }
.panel:hover { box-shadow: 5px 5px var(--ink); transform: translate(-1px,-1px); }
.panel:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.panel-art { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; height: 7.75rem; overflow: hidden; border-bottom: var(--line); background: var(--accent); }
.panel-art::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .26; background: radial-gradient(var(--ink) var(--sketch-dot-matrix-dot-radius),transparent calc(var(--sketch-dot-matrix-dot-radius) + .2px)) 0 0 / var(--sketch-dot-matrix-panel-pitch) var(--sketch-dot-matrix-panel-pitch); clip-path: polygon(0 0,70% 0,28% 100%,0 100%); }
.figure { position: relative; display: block; transform: rotate(-8deg); color: var(--ink); }
.direction .figure { width: 4.4rem; height: 4.6rem; border-inline-start: 4px solid; }
.direction .figure::before { content: ''; position: absolute; inset: 0 0 38% 0; background: var(--ink); clip-path: polygon(0 0,100% 12%,71% 48%,100% 93%,0 80%); }
.voice .figure { width: 5rem; height: 3.3rem; border: 3px solid; border-radius: 50%; background: var(--sheet); text-align: center; font: bold 2.7rem/.85 var(--sketch-editorial); }
.voice .figure::after { content: ''; position: absolute; inset-inline-start: .5rem; bottom: -.65rem; border-inline-end: 1rem solid transparent; border-top: .85rem solid var(--ink); }
.colour .figure { width: 3.4rem; height: 3.4rem; border: 3px solid; border-radius: 50%; background: var(--sheet); box-shadow: 1.6rem .7rem 0 -3px var(--accent),1.6rem .7rem var(--ink),-1.45rem .6rem 0 -3px var(--sketch-palette-grid),-1.45rem .6rem var(--ink); }
.type .figure { font: italic 900 4.6rem/1 var(--sketch-editorial); letter-spacing: -.12em; }
.marks .figure { width: 4.4rem; height: 4.4rem; background: var(--ink); clip-path: polygon(50% 0,62% 30%,91% 13%,76% 42%,100% 52%,73% 63%,85% 94%,55% 77%,41% 100%,34% 72%,4% 85%,20% 56%,0 40%,32% 34%); }
.applications .figure { width: 6rem; height: 3.9rem; background: var(--sheet); border: 3px solid; box-shadow: 4px 4px var(--ink); }
.applications .figure::before { content: ''; display: block; height: .65rem; border-bottom: 2px solid; background: var(--accent); }
.applications .figure::after { content: ''; display: block; margin: .55rem; width: 55%; height: .95rem; border-block: 3px solid; }
.panel-body { padding: .85rem 1rem 1rem; width: 100%; }
.panel-meta { display: flex; align-items: center; justify-content: space-between; font: bold .75rem var(--mono); }
.panel strong { display: block; margin-top: .6rem; font: 800 1.45rem/1.15 var(--sketch-display); letter-spacing: -.05em; }
.panel-copy { display: block; margin-top: .35rem; overflow-wrap: anywhere; color: var(--sketch-palette-graphite); font: .95rem/1.4 var(--sketch-body); }
footer { border-top: var(--line); margin: 0 0 2rem; padding-top: .75rem; }
button, input, textarea { font: inherit; }
input:not([type=color]), textarea { width: 100%; padding: .45rem; border: 1px solid var(--ink); }
textarea { resize: vertical; }
input[type=color] { width: 4rem; height: 2rem; }
.actions { justify-content: flex-start; margin-top: 1rem; }
@media(max-width: 800px) { .panels { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 550px) {
  .hero { grid-template-columns: 1fr; position: relative; }
  .illustration { direction:ltr; position: absolute; width: 5.1rem; height: 3rem; inset-inline-end: 2%; top: 1.35rem; z-index: -1; }
  .hero h1 { font-size: clamp(2.6rem,12.2vw,4rem); }
  .panels { grid-template-columns: 1fr; }
  .section-head { gap: .5rem; }
  .section-head h2 { font-size: 1.25rem; }
  .status { gap: .4rem; white-space: nowrap; }
  progress { width: 2.6rem; }
  footer { align-items: flex-start; flex-wrap: wrap; }
}

.excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-top: .3rem; font: .84rem/1.4 var(--sketch-body); }

[hidden] { display: none !important; }
a.panel { text-decoration: none; }
#brand-control { display: block; margin-bottom: 1.5rem; font: bold 1rem var(--mono); }
#brand { font: inherit; max-width: 100%; padding: .35rem; }
#spread { margin: 2rem 0; }
#back, .leaf button { font: bold .86rem var(--mono); }
#chapter-title { margin: 1.3rem 0 .2rem; font-size: clamp(2.5rem, 7vw, 5rem); }
#chapter-brief { max-width: 60ch; }
#topics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap: 1.4rem; align-items: start; margin-top: 2rem; }
.leaf { min-width: 0; border: 2px dashed var(--sketch-palette-graphite); padding: clamp(1rem,3vw,1.65rem); background: var(--sketch-palette-paper); overflow-wrap: anywhere; }
.leaf h3 { font: 800 1.45rem/1.15 var(--sketch-display); letter-spacing: -.04em; }
.leaf p { max-width: 62ch; }
.leaf.started { border: var(--line); background: var(--sheet); box-shadow: 3px 3px var(--ink); }
.entry-title { font-size: 1.2rem; font-weight: bold; }
.answer { white-space: pre-wrap; }
.pencil-note, #method { color: var(--sketch-palette-graphite); font-family: var(--mono); }
.leaf img { max-width: 100%; max-height: 15rem; object-fit: contain; }
.leaf button { display: block; margin-top: 1rem; background: var(--sheet); border: var(--line); color: var(--ink); padding: .6rem .85rem; cursor: pointer; }
.sample { font-size: 2rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .75rem; }
.swatches span { display: grid; font: bold .85rem var(--mono); }
.swatches span::before { content: ''; width: 3.5rem; height: 2.25rem; margin-bottom: .25rem; background: var(--chip); border: 1px solid var(--ink); }
#art { max-width: 100%; }
#art-field label input { width: auto; }
/* Open decisions (review.js): three to five candidates, live, while a choice is open. */
.review-panel { margin: 1.5rem 0; padding: 1rem; border: var(--line); background: var(--sheet); }
.review-panel > h4 { margin: 0 0 .35rem; font: bold 1rem var(--mono); }
.review-hint, .review-note { margin: 0 0 .75rem; }
.review-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.review-option { display: grid; gap: .5rem; align-content: start; padding: 1rem; border: var(--line); background: var(--color-surface); color: var(--color-text); min-width: 0; }
.review-option h5 { margin: 0; font: bold 1rem var(--mono); }
.review-letter { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: var(--line); }
.review-option > button { justify-self: start; min-height: var(--target-min); padding: .4rem .8rem; border: var(--line); background: var(--ink); color: var(--sheet); font: bold .86rem var(--mono); cursor: pointer; }
.review-label { display: block; font: .72rem var(--mono); color: var(--color-text-muted); }
.audition { display: grid; gap: .65rem; }
.audition-line p { margin: 0; overflow-wrap: anywhere; }
.audition-button { display: inline-block; margin-top: .2rem; padding: .45rem .9rem; border: var(--line); }
.review-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.review-swatches span { display: grid; gap: .2rem; font: .72rem var(--mono); }
.review-swatches i { display: block; width: 3rem; height: 3rem; border: 1px solid var(--color-border); }
.review-image { width: 100%; height: auto; }
.review-title { margin: 0; font-weight: bold; }
.review-receipt:empty { display: none; }


.linen-caption-study {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--palette-neutral-50);
}
.linen-caption-study img {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
}
.linen-caption-study figcaption {
  margin-top: .75rem;
  color: var(--palette-neutral-600);
  font-size: 1rem;
  line-height: 1.5;
}
.font-shortlist {
  margin: 1rem 0;
}
.font-shortlist img {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  margin-top: .75rem;
}
.font-shortlist summary {
  color: var(--palette-neutral-600);
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

/* Nurture & Nourish font candidates (records in assets/fonts/). Browsers fetch a file only when text uses it. */
@font-face { font-family: "Sentient"; src: url("assets/fonts/Sentient-Variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("assets/fonts/Sentient-VariableItalic.woff2") format("woff2"); font-weight: 200 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-VariableItalic.woff2") format("woff2"); font-weight: 200 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/PublicSans-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-Variable.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "F37 Bella"; src: url("assets/fonts/F37BellaHeavy.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-VariableItalic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("assets/fonts/Zodiak-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("assets/fonts/Zodiak-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-VariableItalic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/fonts/Gambetta-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/fonts/Gambetta-VariableItalic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/Jost-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/Jost-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Blenny"; src: url("assets/fonts/BlennyW01-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* Chosen colours: Warm Linen 50, Linen 600, Maroon, Maroon 950, Forest, Apricot (Colour palette page). */
.nn-pairings { margin: 1rem 0; }
.nn-pairings > h4 { margin: 0 0 .25rem; }
.nn-pairings > p { margin: 0 0 1rem; }
.nn-pairing { margin: 0 0 1.5rem; max-width: 390px; }
.nn-pairing-tag { display: grid; gap: .15rem; padding: .6rem .9rem; background: var(--color-text); color: var(--color-page); font: 400 .85rem/1.35 system-ui, sans-serif; }
.nn-pairing-tag b { font-size: .95rem; }
.nn-pairing-page { padding: 1rem .9rem 1.1rem; background: var(--color-page); color: var(--color-text); }
.nn-pairing-page :is(h3, h4, h5, p, blockquote) { margin: 0; }
.nn-mark { width: 144px; height: 45px; margin-bottom: 1.25rem; background: var(--color-heading, #742C43);
  -webkit-mask: url("assets/logos/stacked.svg") no-repeat left / contain; mask: url("assets/logos/stacked.svg") no-repeat left / contain; }
.nn-role { display: block; margin: 1rem 0 .3rem; color: #7B7875; font: 400 11px/1.3 system-ui, sans-serif; letter-spacing: .02em; }
.nn-pairing-page > .nn-role:first-of-type { margin-top: 0; }
.nn-eyebrow { font-family: var(--nn-utility); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--color-heading); }
.nn-h1 { font-family: var(--nn-hero); font-weight: var(--nn-hero-weight); font-size: 32px; line-height: 1.12; letter-spacing: -.01em; color: var(--color-heading); }
.nn-lead { font-family: var(--nn-text); font-size: 20px; line-height: 1.45; }
.nn-button { display: inline-block; font-family: var(--nn-utility); font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--color-on-accent); background: var(--color-accent); border: 2px solid var(--color-on-accent); border-radius: 999px; padding: .7rem 1.4rem; }
.nn-caption { font-family: var(--nn-utility); font-size: 14px; line-height: 1.45; color: var(--color-text-muted); }
.nn-h2 { font-family: var(--nn-display); font-weight: var(--nn-display-weight); font-size: 25px; line-height: 1.2; color: var(--color-heading); }
.nn-body { font-family: var(--nn-text); font-size: var(--nn-body-size, 17px); line-height: 1.6; }
.nn-quote { font-family: var(--nn-quote); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--color-heading); }
.nn-panel { margin-top: 1.25rem; padding: .25rem .9rem 1rem; background: #273E35; color: #FBF7F0; border-radius: 4px; }
.nn-panel .nn-role { color: #C0BDB8; }
.nn-h3 { font-family: var(--nn-sub); font-weight: var(--nn-sub-weight); font-size: 20px; line-height: 1.25; }
.nn-panel-body { font-family: var(--nn-text); font-size: 16px; line-height: 1.5; }
.nn-date { font-family: var(--nn-utility); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Font families · the finalists guide */
.nn-guide { max-width: 40rem; margin: 0 0 1.5rem; }
.nn-guide h4 { margin: 0 0 .4rem; }
.nn-guide h5 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
.nn-guide p { margin: 0 0 .6rem; }
.nn-compare { width: 100%; border-collapse: collapse; margin: .6rem 0 .4rem; font-size: .95rem; }
.nn-compare th, .nn-compare td { overflow-wrap: normal; word-break: normal; hyphens: manual; text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid color-mix(in oklab, currentColor 20%, transparent); }
.nn-compare tr:first-child th { border-bottom-width: 2px; }
.nn-guide-note { color: var(--palette-neutral-600); }
.nn-swap { position: sticky; top: .5rem; z-index: 2; display: block; width: 100%; margin: .5rem 0; padding: .7rem 1rem; border: 0; border-radius: 999px; background: var(--color-action); color: var(--color-on-action); font: 600 15px/1.3 system-ui, sans-serif; cursor: pointer; }
.nn-swap:focus-visible { outline: 3px solid #F2B276; outline-offset: 2px; }
.nn-pairing .nn-pairing-page:not(.nn-fixed) { cursor: pointer; }

/* Typography · the kit's text styles on Warm Linen */
.nn-ladder { margin: 1rem 0; max-width: 46rem; }
.nn-ladder > h4 { margin: 0 0 .25rem; }
.nn-ladder-page { padding: 1rem .9rem 1.25rem; background: var(--color-page); color: var(--color-text); }
.nn-ladder-page > :is(.text-display, .text-heading1, .text-heading2, .text-heading3, .text-heading4, .text-quote, .text-eyebrow) { color: var(--color-heading); }
.nn-ladder-page > .text-caption, .nn-ladder-page > .text-small { color: var(--color-text-muted); }
.nn-ladder-page > .text-eyebrow { text-transform: uppercase; } /* the kit sets the tracking; capitals come from CSS */

/* Colour palette · ramps and roles, read from the kit */
.nn-colours { margin: 1rem 0; max-width: 46rem; }
.nn-colours > h4 { margin: 0 0 .25rem; }
.nn-ramp { margin: .9rem 0; }
.nn-ramp > strong { display: block; margin-bottom: .3rem; font-size: .95rem; }
.nn-ramp-strip { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.nn-chip { position: relative; aspect-ratio: 1 / 1.4; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.nn-chip small { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 9px/1 system-ui, sans-serif; }
.nn-chip.nn-pinned { outline: 2px solid currentColor; outline-offset: 2px; }
.nn-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.nn-theme { padding: 1rem; background: var(--color-page); color: var(--color-text); border: 1px solid var(--color-border-subtle); }
.nn-theme h5 { margin: 0 0 .6rem; font-size: 1rem; }
.nn-demo { padding: .9rem; margin-bottom: .9rem; background: var(--color-surface-sunken); border: 1px solid var(--color-border); border-radius: 6px; display: grid; gap: .45rem; justify-items: start; }
.nn-demo p { margin: 0; }
.nn-demo-title { font-weight: 600; font-size: 1.15rem; color: var(--nn-heading, inherit); }
.nn-demo-muted { color: var(--color-text-muted); font-size: .9rem; }
.nn-demo-link { color: var(--color-link); }
.nn-demo-action, .nn-demo-accent { display: inline-block; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.nn-demo-action { background: var(--color-action); color: var(--color-on-action); }
.nn-demo-accent { background: var(--color-accent); color: var(--color-on-accent); box-shadow: inset 0 0 0 2px var(--color-on-accent); }
.nn-role-list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; margin: 0; font-size: .85rem; }
.nn-role-list div { display: grid; grid-template-columns: 1.1rem 1fr; column-gap: .4rem; align-items: center; }
.nn-role-list i { grid-row: span 2; width: 1.1rem; height: 1.1rem; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.nn-role-list dt { font-weight: 600; } .nn-role-list dd { margin: 0; opacity: .8; }
.nn-jump { display: block; width: 100%; margin: .5rem 0 1rem; padding: .7rem 1rem; border: 0; border-radius: 999px; background: var(--color-action); color: var(--color-on-action); font: 600 15px/1.3 system-ui, sans-serif; cursor: pointer; text-align: left; }
.nn-jump:focus-visible { outline: 3px solid #F2B276; outline-offset: 2px; }
.nn-sketch-note { margin: 0 0 .7rem; font-size: .85rem; opacity: .85; }
/* Page notes keep their paragraphs and line breaks. */
.spread-reading > p { white-space: pre-line; }
.nn-more { margin: .5rem 0 0; }
.nn-more > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
/* Colour · alert comparison */
.nn-alerts { margin: 1.25rem 0 0; }
.nn-alerts > h4 { margin: 0 0 .25rem; }
.nn-alert-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.nn-alert-set h5 { margin: .4rem 0 .5rem; font-size: 1rem; }
.nn-alert { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: start; margin: 0 0 .5rem; padding: .65rem .75rem; border: 1.5px solid; border-radius: 6px; font-family: var(--font-body); }
.nn-alert p { margin: 0; line-height: 1.45; }
.nn-alert-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fbf7f0; font: 700 .85rem/1 var(--font-body); }
.nn-alert-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .3rem; }
.nn-alert-brand i { width: 1.1rem; height: 1.1rem; border-radius: 3px; }
.nn-headings { margin: 0 0 1.5rem; }
.nn-headings > h4 { margin: 0 0 .25rem; }
.nn-heading-why { margin: .25rem 0 .6rem; font-size: .95rem; }
.nn-ladder-page > .text-heading1 { color: var(--color-heading); }
.palette-group { grid-column: 1 / -1; margin: .9rem 0 .1rem; font-weight: 700; font-size: .95rem; }
.spread-palette > .palette-group { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; }

/* Photography lab: the stage is the real page colour, and melted images multiply into it. */
.nn-photo-lab { margin: 1rem 0; }
.nn-photo-lab > h4 { margin: 0 0 .25rem; }
.nn-photo-lab > b { display: block; margin: .8rem 0 .3rem; font-size: .9rem; }
.nn-photo-stage { padding: 1.5rem 0; background: var(--color-page); }
.nn-photo-svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.nn-photo-svg:not(.is-boxed) { mix-blend-mode: multiply; }
.nn-photo-caption { margin: .5rem 0; font-size: .9rem; }
.nn-photo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .4rem; }
.nn-photo-pick { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
.nn-photo-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.nn-photo-pick[aria-pressed="true"] { border-color: var(--color-heading); }
