/* Minuted. One stylesheet, no build step, no outside requests.
   Retheme here: every colour, face and measure is a token on :root.
   Device: the page is a ruled pad. A double red margin rule runs down the left,
   labels sit in the margin, and one yellow highlight marks the line that counts. */

:root {
  color-scheme: light;
  --paper: #f5f6f3;
  --panel: #ffffff;
  --ink: #12181d;
  --soft: #4a545c;
  --line: #d3d8d4;
  --rule: #c4402f;      /* the margin rule: decoration only, never body text */
  --hl: #ffe270;        /* the highlighter */
  --hl-ink: #12181d;
  --warn: #9a2b1c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --mgw: 0rem;          /* margin column width; grows on wide screens */
  --gut: 16px;
  --r: 3px;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1417; --panel: #161d22; --ink: #e9ece8; --soft: #9ba6ad;
    --line: #27323a; --rule: #e0705f; --hl: #f2c94c; --hl-ink: #12181d; --warn: #ff8f7a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1417; --panel: #161d22; --ink: #e9ece8; --soft: #9ba6ad;
  --line: #27323a; --rule: #e0705f; --hl: #f2c94c; --hl-ink: #12181d; --warn: #ff8f7a;
}
@media (min-width: 900px) { :root { --mgw: 8.5rem; --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 9; }
.skip:focus { left: 0; }

h1, h2, .wm { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 5.6vw, 3.7rem); line-height: 1.07; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2.3rem); line-height: 1.14; max-width: 44rem; }
h3 { font: 600 1.02rem/1.3 var(--sans); }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.24rem); color: var(--soft); max-width: var(--measure); }
p, li { text-wrap: pretty; }
.prose > * + * { margin-top: 1rem; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--soft); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: .55rem; }
.prose ul li { padding-left: 1.3rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--ink); }
mark { background: var(--hl); color: var(--hl-ink); padding: 0 .16em; border-radius: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1 mark { background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0; }
.mono { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.small { font-size: .9rem; color: var(--soft); }
.src { font-size: .84rem; color: var(--soft); max-width: var(--measure); }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* status line and header */
.status { background: var(--ink); color: var(--paper); font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; padding: .5rem 0; }
.status .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; padding-top: .85rem; padding-bottom: .85rem; }
.wm { font-size: 1.45rem; text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: .55rem; line-height: 1; }
.wm::before { content: ""; width: 5px; height: 1.25em; border-left: 1.5px solid var(--rule); border-right: 1.5px solid var(--rule); }
.top nav { order: 3; width: 100%; }
.top nav ul { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; }
.top nav a { font-size: .93rem; text-decoration: none; color: var(--soft); display: inline-block; padding: .45rem 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) { .top nav { order: 0; width: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans); padding: .9rem 1.35rem; min-height: 44px;
  border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--hl); color: var(--hl-ink); border-color: var(--hl-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.sm { padding: .5rem .95rem; font-size: .92rem; min-height: 40px; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.under { font-size: .92rem; color: var(--soft); max-width: 36rem; }

/* the pad: every row hangs off the margin rule */
main { display: block; }
.row {
  margin-left: var(--mgw); border-left: 4px double var(--rule);
  padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(2.4rem, 6vw, 4.4rem) clamp(.95rem, 3.2vw, 2.2rem);
  position: relative; display: flex; flex-direction: column; gap: 1.5rem;
}
.row + .row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--line); }
.row > .mg { display: block; }
@media (min-width: 900px) {
  .row > .mg { position: absolute; right: 100%; top: clamp(2.4rem, 6vw, 4.4rem); width: var(--mgw); padding-right: 1.1rem; text-align: right; margin-top: .55rem; }
}
.hero { padding-top: clamp(2.6rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2.2rem; align-items: start; }
.hero-grid > div { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 3rem; } }

.strip { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { font: 500 .74rem/1.5 var(--mono); letter-spacing: .07em; color: var(--soft); text-transform: uppercase; }

.two { display: grid; gap: 1.8rem; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; } }

/* the example note */
.note { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); padding: 1.1rem 1.15rem 1.2rem; font-size: .93rem; }
.note .ex { display: inline-block; background: var(--hl); color: var(--hl-ink); font: 600 .68rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 1px; }
.note h3 { font: 400 1.25rem/1.2 var(--serif); margin: .7rem 0 .15rem; }
.note .meta { font: 500 .74rem/1.5 var(--mono); color: var(--soft); }
.note .sec { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .75rem; }
.note .sec > .mono { display: block; margin-bottom: .35rem; }
.note li { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); gap: .6rem; padding: .22rem 0; }
.note li > span:first-child { font: 500 .74rem/1.9 var(--mono); color: var(--soft); }
.note p { color: var(--ink); }

.aside { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.aside p { color: var(--soft); }
.aside p b { color: var(--ink); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); overflow: hidden; }
.cards > li, .cards > div { background: var(--paper); padding: 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.cards p { color: var(--soft); font-size: .95rem; }

.dia { display: grid; gap: .8rem; align-items: center; font: 500 .8rem/1.4 var(--mono); }
.dia .c { display: flex; flex-direction: column; gap: .45rem; }
.dia .n { border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .75rem; background: var(--panel); }
.dia .hub { border: 1.5px solid var(--ink); border-radius: calc(var(--r) + 2px); padding: 1.3rem 1rem; text-align: center; background: var(--panel); }
.dia .hub b { display: block; font: 400 1.4rem/1.2 var(--serif); }
.dia .hub span { color: var(--soft); }
.dia .ar { justify-self: center; font-size: 1.2rem; transform: rotate(90deg); }
@media (min-width: 780px) { .dia { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr); } .dia .ar { transform: none; } }

.ben { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.ben > li { border-top: 1.5px solid var(--ink); padding-top: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.ben p { color: var(--soft); font-size: .95rem; }

.steps { display: grid; gap: 0; counter-reset: s; max-width: 46rem; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .4rem 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 500 .8rem/1.9 var(--mono); color: var(--soft); }
.steps > li > div { display: flex; flex-direction: column; gap: .35rem; }
.steps p { color: var(--soft); }

.fornot { display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .fornot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; } }
.fornot > div { display: flex; flex-direction: column; gap: .8rem; }
.list { display: grid; gap: 0; }
.list > li { padding: .8rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; }
.list > li p { color: var(--soft); font-size: .96rem; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .75rem; }
.tier.mid { border: 1.5px solid var(--ink); }
.tier h3 { font: 400 1.6rem/1.15 var(--serif); }
.tier .pr { font: 500 .78rem/1.4 var(--mono); letter-spacing: .05em; }
.tier > p { color: var(--soft); font-size: .96rem; }
.tier dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1rem; font: 500 .8rem/1.5 var(--mono); border-top: 1px solid var(--line); padding-top: .85rem; margin-top: auto; }
.tier dt { color: var(--soft); }
.tier dd { text-align: right; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

.script { background: var(--panel); border: 1px solid var(--line); border-left: 4px double var(--rule); padding: 1.1rem 1.2rem; font: 400 1.1rem/1.55 var(--serif); max-width: var(--measure); }
.script .ex { display: block; font: 600 .68rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }

.faq { max-width: 46rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font: 400 1.3rem/1 var(--mono); color: var(--soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--soft); display: flex; flex-direction: column; gap: .7rem; }

.banner { border: 1.5px solid var(--ink); border-radius: calc(var(--r) + 2px); padding: 1rem 1.15rem; background: var(--panel); max-width: 40rem; display: flex; flex-direction: column; gap: .35rem; }
.banner p { color: var(--soft); font-size: .96rem; }
.draft { border: 1.5px dashed var(--warn); color: var(--warn); border-radius: calc(var(--r) + 2px); padding: .9rem 1.1rem; font: 600 .82rem/1.5 var(--mono); letter-spacing: .04em; max-width: 40rem; }

form { display: grid; gap: 1rem; max-width: 34rem; }
label, legend { font: 500 .74rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); }
label { display: flex; flex-direction: column; gap: .4rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.checks label { flex-direction: row; align-items: center; gap: .5rem; font: 400 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); min-height: 44px; }
input[type="text"], input[type="email"], select, textarea {
  font: 400 1rem/1.4 var(--sans); background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); padding: .78rem .85rem; width: 100%; min-height: 46px;
}
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
textarea { min-height: 6rem; resize: vertical; }
#soon { min-height: 1.6em; font-weight: 600; }
#soon:not(:empty) { background: var(--hl); color: var(--hl-ink); padding: .7rem .9rem; border-radius: var(--r); }

footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; font-size: .9rem; color: var(--soft); }
footer .wrap { display: grid; gap: 1.6rem; }
@media (min-width: 780px) { footer .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
footer .col { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
footer .wm { font-size: 1.2rem; color: var(--ink); margin: 0 0 .2rem; }
footer a { text-decoration: none; display: inline-block; padding: .2rem 0; }
footer a:hover { text-decoration: underline; color: var(--ink); }
.theme { font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .8rem; cursor: pointer; min-height: 40px; }
.theme:hover { color: var(--ink); border-color: var(--ink); }


/* ---- visual layer (3 Dec 2026): drawings, the pad, the dark band ---- */
.num { font: 400 1.5rem/1 var(--serif); letter-spacing: 0; color: var(--rule); margin-right: .35rem; vertical-align: -.12em; }
@media (min-width: 900px) { .num { display: block; font-size: 3.1rem; margin: 0 0 .45rem; } .row > .mg { margin-top: 0; } }

h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; }
h1 mark { background-repeat: no-repeat; background-size: 100% 100%; animation: swipe 1.1s .25s cubic-bezier(.2,.7,.2,1) both; }
:root[data-theme="dark"] h1 mark { background-image: linear-gradient(transparent 86%, var(--hl) 86%, var(--hl) 97%, transparent 97%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 mark { background-image: linear-gradient(transparent 86%, var(--hl) 86%, var(--hl) 97%, transparent 97%); } }
@keyframes swipe { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.stack { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.head { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; } }
.fig { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.fig figcaption { letter-spacing: .06em; }
.ill { display: block; width: 100%; max-width: 27rem; height: auto; overflow: visible; }
.ill * { vector-effect: non-scaling-stroke; }
.ill .p { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.ill .t { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.ill .k { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .s { fill: none; stroke: var(--soft); stroke-width: 1.2; stroke-linecap: round; }
.ill .r { fill: none; stroke: var(--rule); stroke-width: 1.6; stroke-linecap: round; }
.ill .rd { stroke-dasharray: 5 5; }
.ill .rf { fill: var(--rule); }
.ill .h { fill: var(--hl); }
.ill .f { fill: var(--ink); }

/* the example note becomes a sheet on a pad */
main { overflow-x: clip; }
.hero-grid > div:last-child { isolation: isolate; position: relative; }
.note {
  position: relative; padding: 1.5rem 1.3rem 1.6rem 2.9rem; border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 1.7rem, var(--rule) 1.7rem, var(--rule) calc(1.7rem + 1.5px), transparent calc(1.7rem + 1.5px), transparent calc(1.7rem + 4.5px), var(--rule) calc(1.7rem + 4.5px), var(--rule) calc(1.7rem + 6px), transparent calc(1.7rem + 6px)),
    var(--panel);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(10, 20, 28, .35);
}
.note::before, .note::after { content: ""; position: absolute; inset: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; z-index: -1; }
.note::before { transform: rotate(-1.6deg) translate(-4px, 6px); }
.note::after { transform: rotate(2.2deg) translate(6px, 4px); }
@media (min-width: 1040px) { .hero-grid > div:last-child { transform: rotate(.8deg); margin-top: .6rem; } }
.note .sec { border-top: 1px solid var(--line); }

/* cards and tiers lift a little */
.tier { box-shadow: 0 14px 30px -24px rgba(10, 20, 28, .4); transition: transform .2s, box-shadow .2s; }
.tier:hover { transform: translateY(-3px); }
.tier.mid { box-shadow: 6px 6px 0 var(--hl); }
.cards > li { transition: background .2s; }
.cards > li:hover { background: var(--panel); }
.cards h3::before { content: ""; display: block; width: 1.6rem; height: 5px; background: var(--hl); margin-bottom: .7rem; }
.dia .hub { box-shadow: 6px 6px 0 var(--hl); }

/* the dark band: one section per page reads as ink on the pad */
.row.inv {
  --paper: #12181d; --panel: #1a2228; --ink: #f1f3ef; --soft: #aab4ba; --line: #2e3a42; --rule: #e0705f; --hl: #f2c94c;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
.row.inv + .row::before { display: none; }
:root[data-theme="dark"] .row.inv { --paper: #070a0c; --panel: #10161a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row.inv { --paper: #070a0c; --panel: #10161a; } }
.row.inv .list > li { border-top-color: var(--line); }
.row.inv .list h3 { font: 400 1.35rem/1.25 var(--serif); }

/* slot for a photograph, when one is added */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.photo figcaption { margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print { .status, .top nav, .theme, .cta { display: none; } body { background: #fff; } }
