/* DHU Labs: final design, November 2026 (branch design-final-2026-11).
   One colour, Ink (#1e2a3f, round 4's C1). Type: Lora for display and headings, Ancízar Sans
   for text (round 5's pairing P2). Every product gets a card whose top band carries its line's
   pattern (rules: Business tools; dots: Developer tools; diagonals: Studios) and two white
   letters for the product. The stage is a small shape plus words, never colour alone.
   The dark palette is Ink mixed toward black (page, cards) or white (text, links, fields).
   checks/contrast.mjs measures every pair from the values in this file. */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/lora-400-700.woff2) format("woff2"); }
@font-face { font-family: "Ancizar Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/ancizar-sans-400-700.woff2) format("woff2"); }
@font-face { font-family: "Ancizar Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/ancizar-sans-italic-400-700.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --paper: #f7f8f8;
  --card: #ffffff;
  --tint: #edeef0;          /* the blank "Yours" field */
  --ink: #1d1b20;
  --muted: #474853;
  --rule: #c9ccd1;
  --brand: #1e2a3f;         /* Ink: the mark, buttons */
  --on-brand: #ffffff;
  --link: #1e2a3f;
  --visited: #54487a;       /* a text link already opened: Ink turned toward violet */
  --field: #1e2a3f;         /* the pattern band on a product card */
  --tone: #6d7582;          /* the pattern drawn on the field (also inside the pattern images below) */
  --mono: #ffffff;          /* the two letters on the field */
  --dot: #ffffff;           /* light surfaces on the band: its button and text box */
  --on-dot: #1d1b20;
  --band: #1e2a3f;          /* the custom-work band */
  --band-ink: #ffffff;
  --band-muted: #c7cacf;
  --band-link: #ffffff;
  --band-visited: #cfc6ea;
  --band-error: #ffb4a8;
  --mark-bg: #dbdde0;       /* highlight in the example read */
  --mark-ink: #1d1b20;
  --sans: "Ancizar Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --display: "Lora", "Iowan Old Style", Georgia, serif;
  --label: var(--sans);
  --tight: 0em;
  --wide: 74rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e131c;
    --card: #141d2b;
    --tint: #111823;
    --ink: #edeef0;
    --muted: #aeb2ba;
    --rule: #343f52;
    --brand: #ced0d5;
    --on-brand: #0e131c;
    --link: #c0c3c9;
    --visited: #b3a6dc;
    --field: #343f52;
    --tone: #838a95;
    --dot: #edeef0;
    --band: #141d2b;
    --band-ink: #edeef0;
    --band-muted: #aeb2ba;
    --band-link: #c0c3c9;
    --band-visited: #b3a6dc;
    --mark-bg: #4b5565;
    --mark-ink: #edeef0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e131c;
  --card: #141d2b;
  --tint: #111823;
  --ink: #edeef0;
  --muted: #aeb2ba;
  --rule: #343f52;
  --brand: #ced0d5;
  --on-brand: #0e131c;
  --link: #c0c3c9;
  --visited: #b3a6dc;
  --field: #343f52;
  --tone: #838a95;
  --dot: #edeef0;
  --band: #141d2b;
  --band-ink: #edeef0;
  --band-muted: #aeb2ba;
  --band-link: #c0c3c9;
  --band-visited: #b3a6dc;
  --mark-bg: #4b5565;
  --mark-ink: #edeef0;
}
:root[data-theme="light"] { color-scheme: light; }

/* The line patterns, drawn in --tone. */
.pat-rules { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%278%27%3E%3Crect%20y%3D%273%27%20width%3D%2712%27%20height%3D%272%27%20fill%3D%27%236d7582%27%2F%3E%3C%2Fsvg%3E"); }
.pat-dots { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2710%27%20height%3D%2710%27%3E%3Ccircle%20cx%3D%275%27%20cy%3D%275%27%20r%3D%271.9%27%20fill%3D%27%236d7582%27%2F%3E%3C%2Fsvg%3E"); }
.pat-diagonal { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%3E%3Cpath%20d%3D%27M-3%203L3%20-3M0%2012L12%200M9%2015L15%209%27%20stroke%3D%27%236d7582%27%20stroke-width%3D%272.2%27%2F%3E%3C%2Fsvg%3E"); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .pat-rules { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%278%27%3E%3Crect%20y%3D%273%27%20width%3D%2712%27%20height%3D%272%27%20fill%3D%27%23838a95%27%2F%3E%3C%2Fsvg%3E"); }
:root:not([data-theme="light"]) .pat-dots { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2710%27%20height%3D%2710%27%3E%3Ccircle%20cx%3D%275%27%20cy%3D%275%27%20r%3D%271.9%27%20fill%3D%27%23838a95%27%2F%3E%3C%2Fsvg%3E"); }
:root:not([data-theme="light"]) .pat-diagonal { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%3E%3Cpath%20d%3D%27M-3%203L3%20-3M0%2012L12%200M9%2015L15%209%27%20stroke%3D%27%23838a95%27%20stroke-width%3D%272.2%27%2F%3E%3C%2Fsvg%3E"); }
}
:root[data-theme="dark"] .pat-rules { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%278%27%3E%3Crect%20y%3D%273%27%20width%3D%2712%27%20height%3D%272%27%20fill%3D%27%23838a95%27%2F%3E%3C%2Fsvg%3E"); }
:root[data-theme="dark"] .pat-dots { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2710%27%20height%3D%2710%27%3E%3Ccircle%20cx%3D%275%27%20cy%3D%275%27%20r%3D%271.9%27%20fill%3D%27%23838a95%27%2F%3E%3C%2Fsvg%3E"); }
:root[data-theme="dark"] .pat-diagonal { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%3E%3Cpath%20d%3D%27M-3%203L3%20-3M0%2012L12%200M9%2015L15%209%27%20stroke%3D%27%23838a95%27%20stroke-width%3D%272.2%27%2F%3E%3C%2Fsvg%3E"); }

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
/* A text link the visitor has already opened. :where keeps this weaker than every rule that
   gives a link its own colour (buttons, the mark, navigation, card titles, pattern fields). */
a:where(:visited) { color: var(--visited); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: var(--tight); text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: 1rem; top: -5rem; background: var(--brand); color: var(--on-brand); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; padding: 0.25rem 0; }
.brand .mark { position: relative; flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.35rem; background: var(--brand); color: var(--on-brand); font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1; letter-spacing: var(--tight); padding-bottom: 0.2rem; }
.brand .mark::after { content: ""; position: absolute; right: 0.3rem; bottom: 0.3rem; width: 0.27rem; height: 0.27rem; background: var(--on-brand); }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1.375rem; letter-spacing: var(--tight); line-height: 1.15; }
.brand .name { display: flex; flex-direction: column; gap: 0.1rem; }
.brand .tag { font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
@media (min-width: 60rem) { .brand .name { flex-direction: row; align-items: baseline; gap: 0.9rem; } .brand .tag { font-size: 0.8125rem; } }
.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; font-size: 1rem; }
.site nav a { display: inline-block; padding: 0.65rem 0; color: var(--ink); text-decoration: none; }
.site nav a:hover, .site nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.theme { display: none; font: inherit; font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 0.3rem; padding: 0.45rem 0.7rem; min-height: 2.5rem; cursor: pointer; }
.js .theme { display: inline-block; }
.theme:hover { border-color: var(--ink); }
/* A half-filled circle before the word marks it as the light/dark switch, not a page link.
   On a phone the links take the whole row and the switch sits apart at its far end. */
.theme::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.45rem; vertical-align: -0.05rem; border: 1.5px solid var(--ink); border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
@media (max-width: 39.99rem) { .site nav { flex: 1 0 100%; } .site nav ul { gap: 0 0.9rem; } .site nav li:last-child { margin-left: auto; } }

/* ---------- Shared pieces ---------- */
.eyebrow { font-family: var(--label); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.button { display: inline-block; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; padding: 0.8rem 1.35rem; border-radius: 0.3rem; border: 2px solid var(--brand); }
.button:hover { filter: brightness(1.12); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.actions a:not(.button) { display: inline-block; padding: 0.6rem 0; }

/* Stage label: a small square plus words. */
.stage { display: inline-flex; align-items: baseline; gap: 0.55rem; font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin: 0; }
.stage::before { content: ""; flex: none; position: relative; top: 0.05rem; width: 0.6rem; height: 0.6rem; background: var(--link); border: 2px solid var(--link); }
.stage.open::before { transform: rotate(45deg) scale(0.82); }
.stage.dev::before { background: transparent; }
.stage.go::before { width: 0.5rem; height: 0.5rem; background: transparent; border-width: 2px 2px 0 0; transform: rotate(45deg); }

/* ---------- The pattern field: a line's pattern with the product's two letters ---------- */
.patfield { position: relative; display: flex; align-items: flex-end; height: 5.5rem; padding: 0 0.85rem 0.5rem; background-color: var(--field); color: var(--mono); text-decoration: none; }
/* The knockout: white letters with a ring of the plain field colour, so the pattern stops short of them. */
.mono { font: 700 2.9rem/1 var(--display); letter-spacing: 0.02em; color: var(--mono); text-shadow: 0.110em 0.000em 0 var(--field), 0.102em 0.042em 0 var(--field), 0.078em 0.078em 0 var(--field), 0.042em 0.102em 0 var(--field), 0.000em 0.110em 0 var(--field), -0.042em 0.102em 0 var(--field), -0.078em 0.078em 0 var(--field), -0.102em 0.042em 0 var(--field), -0.110em 0.000em 0 var(--field), -0.102em -0.042em 0 var(--field), -0.078em -0.078em 0 var(--field), -0.042em -0.102em 0 var(--field), -0.000em -0.110em 0 var(--field), 0.042em -0.102em 0 var(--field), 0.078em -0.078em 0 var(--field), 0.102em -0.042em 0 var(--field), 0.055em 0.000em 0 var(--field), 0.039em 0.039em 0 var(--field), 0.000em 0.055em 0 var(--field), -0.039em 0.039em 0 var(--field), -0.055em 0.000em 0 var(--field), -0.039em -0.039em 0 var(--field), -0.000em -0.055em 0 var(--field), 0.039em -0.039em 0 var(--field); }
.patfield.blank { background: var(--tint); border: 1.5px solid var(--rule); }
.patfield.blank .mono { color: var(--link); text-shadow: none; font-family: var(--sans); font-weight: 600; }
a.patfield:hover .mono { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .hero { padding: 3.5rem 0 5rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); gap: 3rem; align-items: start; }
}
/* The headline needs a line about 10.8em wide to set in four lines (measured in Lora 600).
   On a phone the type gives up a pixel or two so the screen is that wide; beside the shelf
   the column is a little wider and the type follows the column until it reaches full size. */
.hero h1 { font-size: min(clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem), max(1.75rem, 9vw - 3px)); font-weight: 600; letter-spacing: var(--tight); line-height: 1.05; max-width: 27ch; }
@media (min-width: 60rem) { .hero h1 { font-size: min(3.375rem, 5.135vw - 5.75px); } }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); max-width: 34rem; margin: 1.5rem 0 2rem; }
/* The shelf: every product as a small pattern field, with its name, a few words on what it
   does, its tags and its stage. A list on a phone (field beside the words), a three-by-three
   grid from 40rem up. */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.shelf > li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0 0.9rem; align-items: start; }
.shelf .patfield { grid-row: 1 / span 4; height: 4.25rem; padding: 0 0.4rem 0.3rem; border-radius: 0.2rem; }
.shelf .mono { font-size: 2rem; }
.shelf .stage { display: flex; margin-top: 0.45rem; font-size: 0.75rem; }
.shelf .cap { margin: 0; font-size: 1rem; line-height: 1.3; }
.shelf .cap b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: var(--tight); }
.shelf .tags { margin-top: 0.35rem; }
@media (min-width: 40rem) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0.9rem; }
  .shelf > li { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .shelf .patfield { grid-row: auto; margin-bottom: 0.6rem; }
}
/* Tags: plain outlined labels. The words carry the meaning. */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.35rem; }
.tags li { font-family: var(--label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: var(--ink); border: 1.5px solid var(--muted); border-radius: 0.2rem; padding: 0.18rem 0.4rem 0.14rem; }

/* ---------- Product groups ---------- */
.group { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) { .group { padding: 5rem 0; } }
.group-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 60rem) { .group-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: end; } }
.group-head h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); font-weight: 600; letter-spacing: var(--tight); }
.group-head .eyebrow { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.group-head .chip { flex: none; width: 2.2rem; height: 1.1rem; border-radius: 0.15rem; background-color: var(--field); }
.group-head p.intro { color: var(--muted); max-width: 34rem; margin: 0; }

/* A product is a card: the pattern field, then line, name, what it does, tags, links, stage. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.card { min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 0.35rem; overflow: hidden; }
.card .txt { flex: 1; padding: 0.85rem 0.95rem 1rem; }
.card .line { font-family: var(--label); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.2; color: var(--muted); margin: 0; }
.card h3 { font-size: 1.375rem; font-weight: 600; margin: 0.4rem 0 0.45rem; overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.card .what { margin: 0 0 0.8rem; }
.card .actions { gap: 0 1.25rem; margin-top: 0.4rem; }
.card > .stage { display: flex; margin: 0 0.95rem; padding: 0.7rem 0 0.8rem; border-top: 1px solid var(--rule); }

/* ---------- Custom-work band, with the problem box ---------- */
.band { background: var(--band); color: var(--band-ink); padding: 4rem 0; }
@media (min-width: 48rem) { .band { padding: 6rem 0; } }
.band-head { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 60rem) { .band-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; align-items: end; margin-bottom: 3.5rem; } }
.band .eyebrow { color: var(--band-muted); }
.band h1, .band h2 { font-size: clamp(2.125rem, 1.2rem + 3.8vw, 3.75rem); font-weight: 600; letter-spacing: var(--tight); max-width: 14ch; }
.band h1 { font-size: clamp(2.5rem, 1.3rem + 5vw, 4.5rem); line-height: 1; }
.band p.lede { max-width: 34rem; margin: 1.25rem 0 0; }
.band a { color: var(--band-link); }
.band a:where(:visited) { color: var(--band-visited); }
.band :focus-visible { outline-color: var(--band-link); }
.band .button { background: var(--dot); color: var(--on-dot); border-color: var(--dot); }
.band .button.ghost { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.band .button.ghost:hover { background: var(--band-ink); color: var(--band); }

/* The box: one question, a place to answer it, three examples to try. */
button { font: inherit; }
button.button { cursor: pointer; }
.needs-js { display: none; }
.js .needs-js { display: block; }
.js .nojs { display: none; }
.box { border-top: 3px solid var(--band-ink); padding-top: 1.75rem; }
.box label[for="problem"] { display: block; font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: var(--tight); line-height: 1.15; }
.box .hint { display: block; color: var(--band-muted); max-width: 40rem; margin: 0.5rem 0 1rem; }
.box textarea { display: block; width: 100%; min-height: 9rem; resize: vertical; font: inherit; line-height: 1.5; color: var(--on-dot); background: var(--dot); border: 2px solid var(--dot); border-radius: 0; padding: 0.9rem 1rem; }
.box textarea:focus-visible { outline: 3px solid var(--band-link); outline-offset: 3px; }
.box textarea[aria-invalid="true"] { border-color: var(--band-error); }
.box .error { min-height: 0; margin: 0.6rem 0 0; font-weight: 700; color: var(--band-error); }
.box .error:empty { display: none; }
.box .actions { margin-top: 1.1rem; }
.box .fine { color: var(--band-muted); font-size: 1rem; }
.tries { margin-top: 1.75rem; }
.tries p { font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--band-muted); margin: 0 0 0.7rem; }
.tries ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tries button { min-height: 2.75rem; padding: 0.55rem 0.9rem; background: transparent; color: var(--band-ink); border: 2px solid var(--band-muted); border-radius: 0; text-align: left; font-size: 1rem; cursor: pointer; }
.tries button:hover { border-color: var(--band-ink); background: var(--band-ink); color: var(--band); }
.nojs p { max-width: 38rem; }
.nojs .actions { margin-top: 1.25rem; }
.band .after { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.band .after a { display: inline-block; padding: 0.6rem 0; }

/* The example first read: a sheet of paper laid on the band. Same grammar as the
   rest of the site: a label column, a body column, squares that are filled or hollow. */
.read { margin-top: 2.5rem; background: var(--paper); color: var(--ink); border: 2px solid var(--band-ink); padding: 1.25rem 1.1rem 1.5rem; scroll-margin-top: 1rem; }
@media (min-width: 48rem) { .read { padding: 2.25rem 2.5rem 2.5rem; } }
.read:focus { outline: none; }
.read :focus-visible { outline-color: var(--link); }
.band .read a { color: var(--link); }
.band .read .button { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.band .read .button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.band .read .button.ghost:hover { background: var(--ink); color: var(--paper); }
.read .eyebrow { color: var(--muted); margin-bottom: 0.6rem; }
.band .read-title { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: var(--tight); max-width: none; }
.read .example-note { margin: 1.1rem 0 0; max-width: 44rem; border: 2px solid var(--link); padding: 0.8rem 1rem; font-size: 1rem; }
.read .example-note b { font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); margin-right: 0.5rem; }
.part { display: grid; gap: 0.5rem 3rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.read-head + .part { margin-top: 1.75rem; }
@media (min-width: 60rem) { .part { grid-template-columns: 13rem minmax(0, 1fr); } }
.part-title { font-size: 1.125rem; font-weight: 600; letter-spacing: var(--tight); line-height: 1.25; }
.part-title span { display: block; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; margin-top: 0.2rem; }
.part > div { max-width: 40rem; min-width: 0; }
.part > div > p { margin: 0; }
.part > div > * + * { margin-top: 0.7rem !important; }
.said { font-family: var(--label); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.said mark { background: var(--mark-bg); color: var(--mark-ink); padding: 0.1em 0.2em; }
.kind { font-size: 1.375rem; font-family: var(--display); font-weight: 600; letter-spacing: var(--tight); line-height: 1.2; }
.smallnote { color: var(--muted); font-size: 1rem; }
.asks { list-style: none; margin: 0; padding: 0; }
.asks li { position: relative; padding-left: 1.6rem; }
.asks li + li { margin-top: 0.7rem; }
.asks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.7rem; border: 2px solid var(--link); }
.asks li.have::before { background: var(--link); }
.asks b { font-weight: 700; }
.asks .state { display: block; color: var(--muted); font-size: 1rem; }
.next { border-top: 3px solid var(--ink); padding-top: 1.5rem; margin-top: 0.25rem; }
.next p { max-width: 40rem; margin: 0.6rem 0 0; }
.next .actions { margin-top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .read.fresh .part, .read.fresh .next { animation: settle 0.35s ease-out both; animation-delay: calc(var(--i, 0) * 0.12s); }
  @keyframes settle { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}

/* The short form (start.html) */
.formpage { padding: 1.5rem 0 4rem; }
.formpage .wrap { max-width: 46rem; }
.formpage h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4rem); font-weight: 600; letter-spacing: var(--tight); line-height: 1; margin: 1rem 0 1.25rem; }
.formpage .carried { border: 2px solid var(--link); padding: 0.8rem 1rem; font-size: 1rem; }
.formpage .field { margin-top: 1.75rem; }
.formpage label, .formpage legend { display: block; font-weight: 700; font-size: 1.1875rem; letter-spacing: var(--tight); padding: 0; }
.formpage .req { font-weight: 400; color: var(--muted); font-size: 1rem; }
.formpage .hint { display: block; color: var(--muted); font-size: 1rem; margin-top: 0.15rem; }
.formpage textarea, .formpage input[type="text"], .formpage input[type="email"] { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 0; padding: 0.7rem 0.85rem; margin-top: 0.5rem; }
.formpage textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.formpage textarea#problem { min-height: 10rem; }
.formpage fieldset { border: 0; margin: 1.75rem 0 0; padding: 0; }
.formpage .choice { display: flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; }
.formpage .choice label { font-weight: 400; font-size: 1.125rem; }
.formpage .choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: 0; }
.formpage .pair { display: grid; gap: 0 1.5rem; }
@media (min-width: 40rem) { .formpage .pair { grid-template-columns: 1fr 1fr; } }
.formpage .care { color: var(--muted); font-size: 1rem; margin: 1.75rem 0 1.25rem; }
.formpage #status { font-weight: 700; margin-top: 1rem; }
.formpage #status:empty { display: none; }
.formpage .privacy { color: var(--muted); font-size: 0.9375rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- About + footer ---------- */
.about { padding: 3.5rem 0; }
@media (min-width: 48rem) { .about { padding: 5rem 0; } }
.about .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) { .about .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.about h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); font-weight: 600; letter-spacing: var(--tight); }
.about .body { max-width: 36rem; }
.about .mail { display: inline-block; font-family: var(--display); padding: 0.4rem 0; font-size: clamp(1.375rem, 1rem + 1.6vw, 1.875rem); font-weight: 600; letter-spacing: var(--tight); overflow-wrap: anywhere; }
footer.foot { border-top: 1px solid var(--rule); padding: 1.75rem 0 3rem; font-size: 1rem; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
footer.foot a { display: inline-block; padding: 0.5rem 0; }

/* ---------- Inner pages (product page, custom work) ---------- */
.crumb { font-family: var(--label); font-size: 0.875rem; letter-spacing: 0.04em; margin: 0; padding-top: 1.5rem; }
.crumb a { display: inline-block; padding: 0.5rem 0; }
.phero { padding: 1.5rem 0 3.5rem; }
@media (min-width: 60rem) { .phero { padding: 2.5rem 0 5rem; } }
.phero .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 60rem) { .phero .wrap { grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.phero .patfield { width: 9rem; height: 6.5rem; border-radius: 0.3rem; }
@media (min-width: 60rem) { .phero .patfield { width: 100%; height: 9rem; } .phero .mono { font-size: 3.75rem; } }
.phero h1 { font-size: clamp(2.75rem, 1.5rem + 5.5vw, 5rem); font-weight: 600; letter-spacing: var(--tight); line-height: 1; margin: 0.9rem 0 0; }
.phero .lede { font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.4375rem); max-width: 38rem; margin: 1.25rem 0 1.75rem; }
.phero.plain .wrap { grid-template-columns: minmax(0, 1fr); }
.phero.plain h1 { max-width: 13ch; }

.sec { padding: 3.25rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) { .sec { padding: 4.5rem 0; } }
.sec > .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .sec > .wrap { grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; } }
.sec h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); font-weight: 600; letter-spacing: var(--tight); }
.sec .body { min-width: 0; }
.sec .body > p { max-width: 40rem; }
.sec .body > p:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: 1rem; }

.plain-list { margin: 0 0 1rem; padding: 0; list-style: none; max-width: 40rem; }
.plain-list li { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }

/* The five dimensions, as a definition list */
.dims { margin: 0; display: grid; gap: 0; }
.dims > div { display: grid; gap: 0.15rem 2rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.dims > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .dims > div { grid-template-columns: 12.5rem minmax(0, 1fr); } }
.dims dt { font-weight: 700; }
.dims dd { margin: 0; color: var(--muted); }

/* The verdict scale: 1 to 5, three zones. Widths are proportional to the score ranges. */
.scale { margin: 1.5rem 0 1.25rem; max-width: 44rem; }
.scale ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.scale li { display: grid; gap: 0.3rem; }
.scale .bar { height: 1.25rem; border: 2px solid var(--link); }
.scale .v { font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.scale .r { font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--muted); }
.scale li:nth-child(2) .bar { background: repeating-linear-gradient(135deg, var(--link) 0 2px, transparent 2px 7px); }
.scale li:nth-child(3) .bar { background: var(--link); }
@media (min-width: 40rem) {
  .scale ol { grid-template-columns: 1.5fr minmax(6.75rem, 0.5fr) 2fr; gap: 0.5rem; }
  .scale li { align-content: start; }
}
.scale .ends { display: none; }
@media (min-width: 40rem) { .scale .ends { display: flex; justify-content: space-between; font-family: var(--label); font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.35rem; } }

/* Steps and cards on the custom-work page */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; counter-reset: s; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--label); font-size: 0.875rem; color: var(--muted); margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 0.4rem; letter-spacing: var(--tight); }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 40rem) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.services li { border-top: 1px solid var(--rule); padding: 1rem 0 1.25rem; }
.services h3 { font-size: 1.1875rem; margin-bottom: 0.35rem; letter-spacing: var(--tight); }
.services p { color: var(--muted); font-size: 1rem; margin: 0; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cases li { background: var(--card); border: 1px solid var(--rule); padding: 1.35rem 1.5rem; }
.cases h3 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: var(--tight); }
.cases p { font-size: 1rem; margin: 0 0 0.9rem; max-width: 42rem; }
.cases p.stage, .cases p.status { font-family: var(--label); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.cases p.status { color: var(--muted); }
@media (min-width: 60rem) { .cases.row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } .cases.row li { display: flex; flex-direction: column; } .cases.row p.status { margin-top: auto; } }
.group .more-link { margin: 1.5rem 0 0; }
.group .more-link a { display: inline-block; padding: 0.5rem 0; }

.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.9rem 0.7rem; max-width: 62rem; }
.more a { display: grid; gap: 0.35rem; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.more .patfield { height: 4.25rem; padding: 0 0.5rem 0.3rem; border-radius: 0.2rem; }
.more .mono { font-size: 2rem; }
.more a:hover b { text-decoration: underline; }
.closing { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--rule); }
.closing h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); font-weight: 600; letter-spacing: var(--tight); max-width: 18ch; margin-bottom: 1rem; }
.closing p { max-width: 38rem; }
.closing .mail { font-weight: 600; }
.formpage .cf-turnstile { margin: 0 0 1.25rem; max-width: 100%; }
.formpage #done { margin-top: 2rem; border-top: 3px solid var(--ink); padding-top: 1.5rem; }
.formpage #done:focus { outline: none; }
.formpage #done h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); font-weight: 600; letter-spacing: var(--tight); margin-bottom: 1rem; }
.formpage button.button[disabled] { opacity: 0.6; cursor: progress; }

/* Labels were set in a monospace face; in the humanist sans they are small bold capitals. */
.brand .tag, .theme, .eyebrow, .stage, .family .medium, .tries p, .read .example-note b, .cases p.stage, .cases p.status, .crumb { font-weight: 700; letter-spacing: 0.07em; }
.said { font-style: italic; font-size: 1.125rem; line-height: 1.6; }
.said mark { font-style: normal; }
