/* ==========================================================================
   DotNet Forward — Field Notebook design system   (rev. 2026-06-29)
   Ported from "Independent Migrator - Field Notebook.dc.html" (Claude Design).

   A migration engineer's field notebook: a cream paper sheet on a darker
   desk, faint graph-paper grid, punched binder holes down the left margin,
   a red margin rule, numbered entries (01..07) in a gutter, and the
   skeuomorphic devices that carry the brand — washi tape on the specimen
   figure, a rubber PARITY VERIFIED stamp, and blue-ink Caveat marginalia.

   Type: Spectral (serif) / Spline Sans (sans) / JetBrains Mono / Caveat (hand)
   Accents: rust = before/old, green = pass, blue ink = handwriting.
   No inline styles anywhere — every visual lives here.
   ========================================================================== */

/* ==========================================================================
   Self-hosted web fonts (latin subset, trimmed from Google Fonts).
   1st-party woff2 in wwwroot/fonts — eliminates the fonts.gstatic.com
   critical-path chain that was delaying LCP. font-display:swap keeps text
   visible in a system fallback until the web font arrives.
   Spline Sans / JetBrains Mono / Caveat are variable fonts (one file covers
   all needed weights); Spectral ships as static weights + one italic.
   ========================================================================== */
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/spectral-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/spectral-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/spectral-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/spectral-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Spline Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/spline-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url('fonts/caveat.woff2') format('woff2');
}

:root {
  --desk:      #ddd9cd;   /* darker cloth/desk behind the sheet */
  --paper:     #f5f1e4;   /* the notebook sheet */
  --paper-2:   #fbf9f0;   /* taped specimen / terminal / inputs */
  --grid:      rgba(96, 128, 140, 0.14);  /* graph-paper lines */

  --ink:       #21302f;   /* primary text + strong rules */
  --ink-2:     #27332f;   /* serif statements */
  --ink-3:     #3c4746;   /* body copy */
  --muted:     #6f6b5d;
  --muted-2:   #8a8676;
  --muted-3:   #9a9685;
  --faint:     #bdb6a3;
  --rule:      #21302f;   /* strong rule (header underlines) */
  --rule-2:    #d2cdbd;   /* entry dividers / hairlines */
  --rule-3:    #ddd8c8;   /* table + list dividers */
  --rule-4:    #c8c2b1;   /* soft borders */
  --margin-red:#c25b3f;   /* the red binder margin rule */

  --before:    #aa4a33;   /* rust — old / unsupported state */
  --after:     #3f7a4f;   /* green — passing / supported */
  --hand:      #2f5277;   /* blue ink — handwritten marginalia */

  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans:  "Spline Sans", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-hand:  "Caveat", "Segoe Script", cursive;

  --sheet-maxw: 1000px;
}

/* ---- base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: var(--font-sans); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* anchored sections shouldn't land flush against the top edge */
[id] { scroll-margin-top: 24px; }

/* orphans / widows */
h1, h2, h3, .lead-h1, .h1, .h2, .statement, .cta h2 { text-wrap: balance; }
p, .prose, .lead-p, li { text-wrap: pretty; }

/* tabular figures for code + pricing data */
.mono, .term, .diff, .ptable td:last-child { font-variant-numeric: tabular-nums; }

/* skip link (keyboard accessibility) */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1001;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 2px;
  font-size: 14px; text-decoration: none; transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

/* gentle entry for the lead, reduced-motion aware */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lead-sec > * { animation: riseIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.lead-sec > *:nth-child(1) { animation-delay: 40ms; }
.lead-sec > *:nth-child(2) { animation-delay: 110ms; }
.lead-sec > *:nth-child(3) { animation-delay: 180ms; }
.lead-sec > *:nth-child(4) { animation-delay: 250ms; }
@media (prefers-reduced-motion: reduce) { .lead-sec > * { animation: none; } }

a:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
:is(h1, h2, h3, main, section):focus { outline: none; }

/* ---- helpers --------------------------------------------------------- */
.serif { font-family: var(--font-serif); }
.mono  { font-family: var(--font-mono); }
.hand  { font-family: var(--font-hand); color: var(--hand); }
.stamp { font-family: var(--font-mono); letter-spacing: 0.18em; }
.label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2);
}
.tlink {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--before);
  transition: text-decoration-color 160ms ease;
}
.tlink:hover { text-decoration-color: var(--ink); }
.tlink--accent { text-decoration-color: var(--before); }
.tlink--lg { font-size: 15.5px; }
/* not yet linkable — visibly pending rather than a dead href="#" */
.tlink--pending { color: var(--muted); text-decoration-style: dotted; pointer-events: none; cursor: default; }

/* spacing scale (no inline margin one-offs) */
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 18px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 30px; }
.mb-lg { margin-bottom: 22px; }

.dim { color: var(--muted-2); }
.note-warn { color: var(--before); }

/* ======================================================================
   THE SHEET — paper, graph grid, punch holes, red margin rule
   The whole site lives inside .sheet; .sheet__inner holds the content
   indented past the binder holes.
   ====================================================================== */
.desk { background: var(--desk); padding: 34px 20px 60px; min-height: 100vh; }

.sheet {
  max-width: var(--sheet-maxw); margin: 0 auto; position: relative;
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 23px 23px; background-position: -1px -1px;
  border: 1px solid var(--rule-2);
  box-shadow: 0 1px 0 #cfcabb, 0 18px 40px -24px rgba(33, 48, 47, 0.5);
}

/* punched binder holes down the left margin */
.sheet__holes { position: absolute; left: 40px; top: 0; bottom: 0; width: 0; pointer-events: none; }
.sheet__holes span {
  position: absolute; left: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--desk); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.sheet__holes span:nth-child(1) { top: 120px; }
.sheet__holes span:nth-child(2) { top: 50%; }
.sheet__holes span:nth-child(3) { bottom: 120px; }

/* content indented past the holes; red margin rule sits via the entry gutter */
.sheet__inner { padding: 0 56px 0 84px; position: relative; z-index: 1; }

@media (max-width: 760px) {
  .desk { padding: 16px 0 32px; }
  .sheet { border-left: 0; border-right: 0; }
  .sheet__holes { display: none; }
  .sheet__inner { padding: 0 22px; }
}

/* ---- masthead (notebook header) -------------------------------------- */
.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 30px 0 18px; border-bottom: 2.5px solid var(--ink);
}
.masthead__vol { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 8px; }
.masthead__brand {
  font-family: var(--font-serif); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none; display: block; line-height: 1;
}
.masthead__meta { font-family: var(--font-mono); text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.masthead__meta .n { color: var(--ink); }
.masthead__meta .open { color: var(--before); }

/* nav strip beneath the masthead */
.navstrip {
  display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--rule-2);
  font-family: var(--font-mono); font-size: 12px;
}
.navstrip a { padding: 0 18px; }
.navstrip a:first-child { padding-left: 0; }
.navstrip a + a { border-left: 1px solid var(--rule-2); }
.navstrip .spacer { flex: 1; }
.navstrip .avail { font-family: var(--font-mono); color: var(--after); text-transform: none; letter-spacing: 0.04em; font-size: 12px; padding-left: 18px; border-left: 1px solid var(--rule-2); }
.navstrip__cta { color: var(--before); text-decoration-color: var(--before); }

/* ---- lead entry ------------------------------------------------------ */
.lead-sec { padding: 54px 0 8px; position: relative; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  letter-spacing: 0.04em; margin: 0 0 22px;
}
.lead-h1 {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.06;
  letter-spacing: -0.018em; margin: 0 0 26px; max-width: 17ch;
  font-size: clamp(34px, 5.2vw, 58px);
}
.lead-p { font-size: 19px; line-height: 1.58; color: var(--ink-3); margin: 0 0 34px; max-width: 58ch; }

/* handwritten margin note pinned to the lead */
.lead-note {
  font-family: var(--font-hand); color: var(--hand); position: absolute;
  right: -6px; top: 34px; transform: rotate(-5deg);
  font-size: 23px; line-height: 1.15; text-align: center; max-width: 160px;
  pointer-events: none;  /* decorative — never intercept clicks on links beneath */
}
.lead-note .arrow { font-size: 30px; transform: rotate(40deg); margin-top: -2px; display: inline-block; }
@media (max-width: 900px) { .lead-note { display: none; } }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper); font-family: var(--font-sans);
  font-weight: 600; font-size: 15.5px; padding: 13px 24px; border-radius: 0;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 180ms ease, transform 120ms ease;
}
.btn:hover { background: #33433f; }
.btn:active { transform: translateY(1px); }
.actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.actions .tlink { font-size: 15.5px; }

/* ======================================================================
   NUMBERED ENTRIES — the spine of the homepage
   Two-column grid: a right-aligned gutter (number + label) against the
   red margin rule, then the body.
   ====================================================================== */
.entry { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule-2); }
.entry > .gut { padding: 34px 22px 34px 0; text-align: right; border-right: 1.5px solid var(--margin-red); }
.entry > .bod { padding: 34px 0 34px 40px; position: relative; }
.entry__n { font-family: var(--font-mono); font-size: 26px; color: var(--ink); font-weight: 500; }
.entry__qa { font-family: var(--font-mono); font-size: 18px; color: var(--ink); font-weight: 500; }
.entry__tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted-3); letter-spacing: 0.06em; margin-top: 6px; }
@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; }
  .entry > .gut { text-align: left; border-right: 0; border-bottom: 1px solid var(--rule-2); padding: 22px 0 12px; }
  .entry > .bod { padding: 18px 0 28px; }
}

/* ---- type within entries --------------------------------------------- */
.statement {
  font-family: var(--font-serif); font-size: 24px; line-height: 1.4;
  font-weight: 400; margin: 0 0 20px; color: var(--ink-2);
}
.h2 {
  font-family: var(--font-serif); font-size: 29px; line-height: 1.2;
  font-weight: 500; margin: 0 0 18px;
}
.prose { color: var(--ink-3); max-width: 60ch; margin: 0 0 18px; }
.prose:last-child { margin-bottom: 0; }

/* ---- scope (in / out / available) ------------------------------------ */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 560px) { .scope { grid-template-columns: 1fr; gap: 28px; } }
.scope h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  font-weight: 500; margin: 0 0 16px; padding-bottom: 8px;
}
.scope--in h3    { color: var(--after); border-bottom: 1.5px solid var(--after); }
.scope--out h3   { color: var(--muted-3); border-bottom: 1.5px solid var(--rule-4); }
.scope--avail h3 { color: var(--after); border-bottom: 1.5px solid var(--after); }
/* the "available separately" sub-heading needs real air above it to separate
   from the OUT OF SCOPE list. Element-level .scope h3 (margin:0 top) would
   otherwise win on specificity, so qualify with the element here too. */
.scope h3.scope__sub { margin-top: 40px; }
.scope ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
/* hanging indent: marker sits in the left gutter, text (incl. inline mono spans)
   flows as normal inline content. NOT display:grid — grid turns every inline
   span into its own cell, which overlaps the line. */
.scope li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; }
.scope--in li, .scope--avail li { color: var(--ink-3); }
.scope--out li { color: var(--muted-2); }
.scope .s { position: absolute; left: 0; top: 0; line-height: 1.4; }
.scope--in .s, .scope--avail .s { font-family: var(--font-hand); color: var(--after); font-size: 22px; }
.scope--out .s { font-family: var(--font-mono); color: var(--faint); }
.scope .mono { font-size: 0.85em; }

/* ---- taped specimen figure (the diff) -------------------------------- */
.figure { margin: 46px 0; position: relative; }
.figure__tape {
  position: absolute; left: 50%; top: -13px; transform: translateX(-50%) rotate(-2deg);
  width: 120px; height: 26px; background: rgba(210, 200, 150, 0.5);
  border: 1px solid rgba(170, 160, 110, 0.4); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: none;  /* decorative */
}
.diff { border: 1.5px solid var(--ink); background: var(--paper-2); transform: rotate(-0.5deg); }
.diff__head, .diff__body { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--font-mono); }
.diff__head { font-size: 12.5px; border-bottom: 1px solid var(--rule-2); }
.diff__head > div { padding: 10px 18px; color: var(--muted-2); }
.diff__body { font-size: 13px; line-height: 2.0; }
.diff__body > div { padding: 18px; }
.diff__head > div:first-child, .diff__body > div:first-child { border-right: 1px solid var(--rule-2); }
.diff .before { color: var(--before); }
.diff .after  { color: var(--after); }
.diff .note-old { color: var(--muted-2); }
.diff .note-old.gap, .diff .note-new.gap { margin-top: 10px; }
.diff .note-new { color: var(--ink-2); }
.figcap { margin-top: 13px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
@media (max-width: 560px) {
  .diff { transform: none; }
  .diff__head, .diff__body { grid-template-columns: 1fr; }
  .diff__head > div:first-child, .diff__body > div:first-child {
    border-right: 0; border-bottom: 1px solid var(--rule-2);
  }
}

/* ---- three-part guarantee (roman numerals) --------------------------- */
.tri { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.tri li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.tri .n { font-family: var(--font-mono); color: var(--before); font-size: 14px; }
.tri strong { font-weight: 600; }
.tri span { color: var(--ink-3); }

/* ---- method steps (dashed rule, like a checklist) -------------------- */
.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid; grid-template-columns: 50px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--rule-4);
}
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--font-mono); color: var(--faint); font-size: 13px; }
.steps strong { font-weight: 600; }
.steps span { color: var(--ink-3); }

/* ---- pricing table --------------------------------------------------- */
.ptable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ptable thead tr { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.ptable th { padding: 11px 0; font-weight: 600; text-align: left; }
.ptable th:last-child { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.ptable tbody tr { border-bottom: 1px solid var(--rule-3); }
.ptable tbody tr:last-child { border-bottom: 0; }
.ptable td { padding: 13px 0; color: var(--ink-3); }
.ptable td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink); }
.fineprint { margin: 20px 0 0; color: var(--muted-2); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }

/* handwritten note beside pricing */
.price-note {
  font-family: var(--font-hand); color: var(--hand); position: absolute;
  right: -30px; bottom: 42px; transform: rotate(6deg);
  font-size: 22px; line-height: 1.1; text-align: center;
  pointer-events: none;  /* decorative */
}
@media (max-width: 1100px) { .price-note { display: none; } }

/* ---- proof terminal + rubber stamp ----------------------------------- */
.term { font-family: var(--font-mono); border: 1.5px solid var(--ink); background: var(--paper-2); font-size: 13px; max-width: 520px; }
.term__cmd { padding: 11px 16px; border-bottom: 1px solid var(--rule-2); color: var(--muted-2); }
.term__out { padding: 14px 16px; line-height: 1.95; }
.term__out .ok   { color: var(--after); }
.term__out .info { color: var(--ink-2); }

.stamp-mark {
  position: absolute; right: 6px; top: 6px; transform: rotate(-9deg);
  border: 2.5px solid var(--after); color: var(--after); padding: 10px 14px;
  text-align: center; opacity: 0.82; border-radius: 3px;
  pointer-events: none;  /* decorative — sits over the proof link; must not block it */
}
.stamp-mark .l1, .stamp-mark .l2 { font-size: 15px; font-weight: 500; letter-spacing: 0.22em; }
.stamp-mark .sub { font-size: 9px; letter-spacing: 0.1em; margin-top: 4px; color: #5a8a66; }
@media (max-width: 620px) { .stamp-mark { position: static; transform: rotate(-3deg); display: inline-block; margin-top: 18px; } }

/* ---- about / signature ----------------------------------------------- */
.about { display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: start; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; gap: 18px; } }
.about__photo {
  width: 120px; height: 144px; border: 1.5px solid var(--rule-4);
  background: #ebe6d6; line-height: 0;
}
.about__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(0.18) contrast(1.02);
}
.sig { border-top: 1px solid var(--rule-4); padding-top: 8px; max-width: 320px; margin-top: 22px; }
.sig__name { font-family: var(--font-hand); font-size: 34px; color: var(--hand); line-height: 1; }
.sig__role { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); margin-top: 6px; letter-spacing: 0.04em; }
.sig__link { margin: 10px 0 0; }

/* ---- FAQ / margin notes (native details) ----------------------------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--rule-3); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-serif); font-size: 20px; padding: 11px 28px 11px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 12px;
  font-family: var(--font-mono); font-size: 18px; color: var(--muted-2); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 14px; color: var(--ink-3); max-width: 58ch; }

/* ---- CTA / sign-off -------------------------------------------------- */
.cta { padding: 54px 0 26px; border-top: 2.5px solid var(--ink); margin-top: 8px; }
.cta h2 {
  font-family: var(--font-serif); line-height: 1.1; font-weight: 500;
  letter-spacing: -0.015em; margin: 0 0 16px; max-width: 20ch;
  font-size: clamp(28px, 4vw, 42px);
}
.cta p { margin: 0 0 30px; color: var(--ink-3); max-width: 56ch; }

/* ---- footer ---------------------------------------------------------- */
.site-footer {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 24px 0 36px; margin-top: 30px;
  border-top: 1px solid var(--rule-2);
}
.site-footer .fbrand { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.site-footer .fnote  { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.site-footer .fcopy  { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.site-footer .flinks { display: flex; gap: 18px; }
.site-footer .flinks a { font-size: 13px; }

/* ======================================================================
   SUBPAGES (book / scorecard / faq / legal / notebook)
   Plain entries inside the sheet; no gutter, just generous top spacing.
   ====================================================================== */
.subpage { padding: 54px 0 40px; }
.subpage .h1 {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.07;
  letter-spacing: -0.018em; margin: 12px 0 24px;
  font-size: clamp(30px, 4.5vw, 50px);
}

/* simple two-column row reused by scorecard/notebook index */
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 44px; }
.row > .label { padding-top: 6px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* scorecard checklist */
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; color: var(--ink-3); font-size: 15.5px; }
.checklist .s { font-family: var(--font-hand); color: var(--after); font-size: 20px; }

/* ---- forms ----------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; max-width: 520px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule-4); border-radius: 2px;
  padding: 11px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted-2); }
.callout { border: 1.5px solid var(--ink); background: var(--paper-2); padding: 18px 20px; max-width: 62ch; }
.callout--warn { border-left: 3px solid var(--before); }

/* ---- notebook: index list -------------------------------------------- */
.nb-list { margin: 0; padding: 0; list-style: none; }
.nb-item { border-bottom: 1px solid var(--rule-3); }
.nb-item:first-child { border-top: 1px solid var(--rule-2); }
.nb-item__link { display: block; text-decoration: none; color: inherit; padding: 26px 0; transition: opacity 160ms ease; }
.nb-item__link:hover .nb-item__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-4); }
.nb-item__meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  letter-spacing: 0.02em; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nb-item__kind { color: var(--muted); }
.nb-item__dot { color: var(--faint); }
.nb-item__title {
  font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink);
}
.nb-item__summary { color: var(--ink-3); max-width: 64ch; margin: 0; font-size: 16px; line-height: 1.55; }

/* ---- notebook: single entry ------------------------------------------ */
.nb-entry { max-width: 720px; }
.nb-back { color: var(--muted-2); text-decoration: none; }
.nb-back:hover { color: var(--ink); }
.nb-entry__meta { margin: 0 0 22px; }
.nb-entry__title { max-width: 22ch; margin: 0 0 26px; }
.nb-entry__summary { color: var(--ink-2); max-width: 62ch; margin: 0 0 12px; }
.nb-entry__body { border-top: 1px solid var(--rule-2); padding-top: 32px; margin-top: 30px; }
.nb-prose { margin: 0 0 22px; }
.nb-prose:last-child { margin-bottom: 0; }
.nb-h2 { margin: 38px 0 18px; font-size: 26px; }
.nb-statement { margin: 30px 0 24px; }
/* notebook in-article diffs sit straight — the tape/rotation theatrics
   belong to the homepage specimen, not to a 720px reading column */
.nb-figure { margin: 28px 0; }
.nb-figure .diff { transform: none; }
.nb-term { margin: 28px 0; }
.nb-entry__cta { margin-top: 8px; padding-bottom: 8px; border-top-width: 1px; }
.nb-entry__cta h2 { font-size: clamp(26px, 3.4vw, 34px); max-width: 22ch; }

/* ---- Blazor error UI ------------------------------------------------- */
#blazor-error-ui {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--paper-2); border-top: 1px solid var(--rule-2); padding: 0.8rem 1.2rem; font-size: 14px;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
