/* Grantstamp site: survey vellum, blue-black ink, rubber-stamp violet. */
@font-face { font-family: "Caslon"; src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f5f2;
  --paper-2: #e7ece5;
  --sheet: #fbfcfa;
  --ink: #1c2330;
  --ink-2: #4b5466;
  --rule: #c6d0c6;
  --plat: #86a091;
  --stamp: #5a3ea6;
  --stamp-wash: #e3dcf5;
  --allow: #2b7652;
  --ask: #93640f;
  --deny: #a13535;
  --serif: "Caslon", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12161e; --paper-2: #1a202b; --sheet: #171c26; --ink: #e6e9ef; --ink-2: #a8b0be; --rule: #2d3644;
    --plat: #557262; --stamp: #b49df5; --stamp-wash: #2a2343; --allow: #6fc79a; --ask: #e0b157; --deny: #f08a8a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
a { color: var(--stamp); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.9em; }
pre { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.45; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font: 600 1.12rem/1.3 var(--sans); margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: var(--measure); }
small, .fine { color: var(--ink-2); font-size: 0.9rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.bar { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.3rem/1 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.logo svg { width: 1.6rem; height: 1.6rem; }
.bar nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.5rem); }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.bar nav a:hover { color: var(--stamp); }
.bar nav a[aria-current="page"] { border-bottom-color: var(--stamp); }
.bar nav a.btn { padding: 0.55rem 0.9rem; font-size: 0.95rem; border: 2px solid var(--stamp); color: var(--paper); }
.bar nav a.btn:hover { color: var(--paper); }
.bar nav a.gh { display: inline-flex; padding: 0.2rem; }
.bar nav a.gh svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.45rem 0.8rem; border: 1px solid var(--ink-2); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.narrow { max-width: 760px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--rule); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero .lead { font-size: 1.22rem; line-height: 1.5; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1.2rem; }
.btn { display: inline-block; padding: 0.78rem 1.25rem; border-radius: 6px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid var(--stamp); cursor: pointer; }
.btn.primary { background: var(--stamp); color: var(--paper); }
.btn.secondary { background: transparent; color: var(--stamp); }
.btn:hover { filter: brightness(1.08); }
button.btn { font-family: var(--sans); }

figure.plat { margin: 0; }
figure.plat svg { width: 100%; height: auto; display: block; }
figure.plat figcaption { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.75rem; max-width: 52ch; }
.plat-line { stroke: var(--plat); stroke-width: 1; fill: none; }
.plat-lot { fill: var(--ink-2); font: 400 9px var(--sans); }
.plat-stamped { fill: var(--stamp-wash); }
.stamp-ink { stroke: var(--stamp); fill: none; }
.stamp-text { fill: var(--stamp); font: 700 12px var(--sans); letter-spacing: 0.14em; }
.stamp-id { fill: var(--stamp); font: 600 10.5px var(--mono); }
.stamp-g { transform-origin: 382px 196px; animation: press 900ms cubic-bezier(.2,.9,.25,1.2) 350ms both; }
@keyframes press { from { opacity: 0; transform: rotate(-8deg) scale(1.25); } to { opacity: 0.92; transform: rotate(-8deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .stamp-g { animation: none; opacity: 0.92; transform: rotate(-8deg); } }

.sheet { background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--paper-2); padding: 1.4rem 1.5rem; max-width: 720px; }
.sheet dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.55rem 1rem; margin: 0; }
.sheet dt { color: var(--ink-2); font-weight: 600; }
.sheet dd { margin: 0; overflow-wrap: anywhere; }
.sheet .req { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1rem; }
.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; border: 1.5px solid currentColor; }
.pill.deny { color: var(--deny); } .pill.ask { color: var(--ask); } .pill.allow { color: var(--allow); }
.pill.none, .pill.no-claim { color: var(--ink-2); }
.pill.band { color: var(--stamp); }

.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stackcol { display: grid; gap: 0.6rem; max-width: 920px; }
.stackcol pre { margin-top: 0.6rem; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; }
ol.steps li::before { content: counter(s); font: 700 1.9rem/1 var(--serif); color: var(--stamp); }
ul.holds { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; max-width: 820px; }
ul.holds li { padding-left: 1.4rem; border-left: 3px solid var(--plat); }
ul.holds b { display: block; margin-bottom: 0.15rem; }

.not { background: var(--paper-2); }
.not p { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; max-width: 34ch; }

footer { padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: 0.92rem; }
footer .wrap { display: block; }

/* check page */
.drop { border: 2px dashed var(--plat); border-radius: 8px; padding: 2rem 1.25rem; text-align: center; background: var(--paper-2); cursor: pointer; }
.drop.over { border-color: var(--stamp); background: var(--stamp-wash); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
select, input[type=text], input[type=email], textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: 6px; padding: 0.6rem 0.7rem; width: 100%; }
textarea { font-family: var(--mono); font-size: 0.85rem; }
.status { color: var(--ink-2); min-height: 1.5em; }
.result { margin-top: 2rem; }
.result .sheet { position: relative; }
.result .seal { position: absolute; right: 1.1rem; top: 1rem; width: 84px; height: 84px; transform: rotate(-9deg); opacity: 0.9; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem; }
.badge.ok { background: var(--stamp-wash); color: var(--stamp); }
.badge.warn { background: var(--paper-2); color: var(--ask); border: 1px solid var(--ask); }
table.policy { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1.2rem; }
table.policy td, table.policy th { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.act.allow { color: var(--allow); font-weight: 600; } td.act.ask { color: var(--ask); font-weight: 600; } td.act.deny { color: var(--deny); font-weight: 600; }
.notice { border-left: 3px solid var(--stamp); padding: 0.8rem 1rem; background: var(--paper-2); margin: 1.2rem 0; }
.eyebrow { color: var(--ink-2); font-family: var(--mono); font-size: 0.85rem; margin: 0 0 0.4rem; }

@media (max-width: 860px) {
  .hero, .two { grid-template-columns: 1fr; }
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dt { margin-top: 0.4rem; }
}

/* ---------- 0.2: shared pieces ---------- */
@media (max-width: 1020px) {
  .bar { flex-wrap: wrap; }
  .bar > nav { display: none; }
  .menu { display: block; }
  .menu[open] { flex-basis: 100%; order: 3; }
  .menu[open] summary { display: inline-block; margin-bottom: 0.6rem; }
  .menu nav { display: grid; gap: 0.15rem; }
  .menu nav a { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
  .menu nav a.btn { margin-top: 0.6rem; text-align: center; }
  .menu nav a.gh { justify-self: start; }
}
.page-head { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.35em; }
.page-head .lead { font-size: 1.18rem; max-width: 62ch; }
.lead { font-size: 1.15rem; line-height: 1.5; }
main.plain section { border-bottom: 0; padding: clamp(1.6rem, 4vw, 2.6rem) 0; }
main.plain section + section { border-top: 1px solid var(--rule); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.textlink { font-weight: 600; }
kbd, .key { font-family: var(--mono); font-size: 0.85em; }
.pill.planned { color: var(--ink-2); border-style: dashed; }
.pill.live { color: var(--allow); }

/* title block: the registry's live facts, drawn like the corner block of a survey sheet */
.titleblock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.titleblock > a, .titleblock > div { display: block; padding: 0.7rem 0.9rem 0.8rem; border-left: 1px solid var(--plat); color: var(--ink); text-decoration: none; min-width: 0; }
.titleblock > :first-child { border-left: 0; }
.titleblock a:hover { background: var(--paper-2); }
.titleblock .k { display: block; color: var(--ink-2); font-size: 0.8rem; margin-bottom: 0.2rem; }
.titleblock .v { display: block; font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titleblock .v.mono { font-family: var(--mono); font-size: 0.92rem; }
.dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--ink-2); margin-right: 0.4em; vertical-align: 0.02em; }
.dot.up { background: var(--allow); } .dot.down { background: var(--deny); } .dot.warn { background: var(--ask); }
@media (max-width: 900px) { .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); } .titleblock > :nth-child(4) { border-left: 0; } .titleblock > :nth-child(n+4) { border-top: 1px solid var(--plat); } }
@media (max-width: 520px) { .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); } .titleblock > :nth-child(n) { border-left: 1px solid var(--plat); border-top: 1px solid var(--plat); } .titleblock > :nth-child(odd) { border-left: 0; } .titleblock > :nth-child(-n+2) { border-top: 0; } }

/* how it works: three stations on one traverse line */
.traverse { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem); counter-reset: st; position: relative; }
.traverse li { counter-increment: st; position: relative; }
.traverse figure { margin: 0 0 1rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.traverse svg { display: block; width: 100%; height: auto; }
.traverse h3 { display: flex; gap: 0.6rem; align-items: baseline; }
.traverse h3::before { content: counter(st); font: 700 1.5rem/1 var(--serif); color: var(--stamp); }
.traverse p { font-size: 1rem; }
.traverse li + li::before { content: ""; position: absolute; top: 28%; left: calc(-1 * clamp(1.2rem, 3vw, 2.6rem)); width: clamp(1.2rem, 3vw, 2.6rem); border-top: 2px dashed var(--plat); }
@media (max-width: 860px) { .traverse { grid-template-columns: 1fr; max-width: 30rem; } .traverse li + li::before { display: none; } }
.ln { stroke: var(--plat); fill: none; stroke-width: 1.25; }
.ln-ink { stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ln-stamp { stroke: var(--stamp); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ln-dash { stroke: var(--ink-2); fill: none; stroke-width: 1.25; stroke-dasharray: 4 4; }
.fl-wash { fill: var(--stamp-wash); } .fl-paper { fill: var(--paper); } .fl-paper2 { fill: var(--paper-2); } .fl-ink { fill: var(--ink); } .fl-stamp { fill: var(--stamp); } .fl-sheet { fill: var(--sheet); }
.fl-allow { fill: var(--allow); } .fl-deny { fill: var(--deny); } .fl-ask { fill: var(--ask); }
.tx { fill: var(--ink); font: 600 11px var(--sans); } .tx-2 { fill: var(--ink-2); font: 400 10px var(--sans); } .tx-m { fill: var(--ink-2); font: 400 9.5px var(--mono); } .tx-s { fill: var(--stamp); font: 700 10.5px var(--sans); }

/* use cases: a folder of case files */
.cases { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: 0; margin-top: 2rem; border: 1px solid var(--ink); background: var(--sheet); }
.cases [role=tablist] { display: flex; flex-direction: column; border-right: 1px solid var(--ink); background: var(--paper-2); }
.cases [role=tab] { all: unset; box-sizing: border-box; cursor: pointer; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--rule); font: 600 0.98rem/1.3 var(--sans); color: var(--ink); }
.cases [role=tab] small { display: block; font-weight: 400; margin-top: 0.15rem; }
.cases [role=tab]:hover { background: var(--paper); }
.cases [role=tab][aria-selected=true] { background: var(--sheet); box-shadow: inset 4px 0 0 var(--stamp); margin-right: -1px; }
.cases [role=tab]:focus-visible { outline: 3px solid var(--stamp); outline-offset: -3px; }
.case { padding: clamp(1.2rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.case h3 { font: 700 1.5rem/1.15 var(--serif); margin-bottom: 0.5em; }
.case pre { font-size: 0.82rem; margin: 0.8rem 0 0; }
.case[hidden] { display: none; }
.js-off .case + .case { border-top: 1px solid var(--rule); }
.slips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.slips li { border: 1px solid var(--rule); border-left: 4px solid var(--plat); background: var(--paper); padding: 0.6rem 0.8rem; font-size: 0.95rem; border-radius: 0 4px 4px 0; }
.slips li.back { margin-left: 1.6rem; border-left-color: var(--stamp); }
.slips li.owner { margin-left: 3.2rem; border-left-color: var(--ask); }
.slips .who { display: block; color: var(--ink-2); font-size: 0.82rem; margin-bottom: 0.1rem; }
.outcome { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px dashed var(--plat); font-weight: 600; }
@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .cases [role=tablist] { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .cases [role=tab] { flex: 0 0 auto; border-bottom: 0; border-right: 1px solid var(--rule); max-width: 13rem; }
  .cases [role=tab][aria-selected=true] { box-shadow: inset 0 -4px 0 var(--stamp); margin-right: 0; }
  .case { grid-template-columns: 1fr; }
}

/* which layer survives which change */
.matrix { border-collapse: collapse; width: 100%; max-width: 860px; margin-top: 1.4rem; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix thead th { font-weight: 600; font-size: 0.82rem; color: var(--ink-2); vertical-align: bottom; line-height: 1.2; }
.matrix tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.matrix tbody th small { display: block; font-weight: 400; white-space: normal; }
.matrix td i { display: inline-block; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1.5px solid var(--plat); }
.matrix td.y i { background: var(--stamp); border-color: var(--stamp); }
.matrix td span { position: absolute; left: -999px; }
.scroll-x { overflow-x: auto; }

.chain { margin: 1.6rem 0 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 0.5rem; }
.chain svg { display: block; width: 100%; height: auto; min-width: 640px; }

/* measured figures, written like survey notes */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--sheet); margin: 1.4rem 0 0.8rem; }
.notes div { padding: 1rem 1.1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.notes dt { color: var(--ink-2); font-size: 0.9rem; }
.notes dd { margin: 0.2rem 0 0; font: 700 1.7rem/1.1 var(--serif); }
.notes dd small { display: block; font: 400 0.86rem/1.35 var(--sans); margin-top: 0.3rem; }

/* tabs for code */
.tabs [role=tablist] { display: flex; flex-wrap: wrap; gap: 0.3rem; border-bottom: 1px solid var(--ink); }
.tabs [role=tab] { all: unset; cursor: pointer; padding: 0.55rem 0.95rem; font: 600 0.95rem/1.2 var(--sans); border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--ink-2); }
.tabs [role=tab][aria-selected=true] { color: var(--ink); background: var(--paper-2); border-color: var(--ink); margin-bottom: -1px; }
.tabs [role=tab]:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.tabs [role=tabpanel] pre { margin: 0; border-top: 0; border-radius: 0 0 6px 6px; border-color: var(--ink); }
.tabs [role=tabpanel] > p { margin: 0.9rem 0 0; }

/* the open project: references, like a map legend */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.legend .k { color: var(--ink-2); font-size: 0.92rem; }
.legend .v { overflow-wrap: anywhere; }

/* footer */
footer .foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.6rem 2rem; padding-bottom: 1.6rem; }
footer h2 { font: 600 0.92rem/1.3 var(--sans); color: var(--ink); margin: 0 0 0.5rem; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
footer a { color: var(--ink-2); }
footer .legal { border-top: 1px solid var(--rule); padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
footer .legal p { margin: 0; max-width: 70ch; }
footer .build { font-family: var(--mono); font-size: 0.82rem; }

/* stamp search */
.search { display: flex; gap: 0.6rem; margin: 0 0 0.6rem; max-width: 720px; }
.search input { flex: 1; font-size: 1.1rem; padding: 0.75rem 0.9rem; }
.cards { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.card { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 1rem 1.1rem; border: 1px solid var(--ink); background: var(--sheet); border-radius: 4px; color: var(--ink); text-decoration: none; position: relative; }
.card:hover { box-shadow: 5px 5px 0 var(--stamp-wash); }
.card h3 { font: 700 1.25rem/1.2 var(--serif); margin: 0; grid-column: 1; }
.card .by { grid-column: 1; font-size: 0.95rem; }
.card .meta { grid-column: 1; color: var(--ink-2); font-size: 0.88rem; }
.card .sid { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin-top: 0.3rem; overflow-wrap: anywhere; }
.card svg.seal-s { grid-column: 2; grid-row: 1 / span 3; width: 58px; height: 58px; transform: rotate(-9deg); opacity: 0.9; }
.empty { border: 1px dashed var(--plat); padding: 1.4rem; max-width: 720px; background: var(--paper-2); border-radius: 4px; }

/* stamp page: a certificate */
.cert { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(1.4rem, 4vw, 3rem); border: 1.5px solid var(--ink); background: var(--sheet); padding: clamp(1.2rem, 3.5vw, 2.4rem); box-shadow: 8px 8px 0 var(--paper-2); }
.cert h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 0.3em; overflow-wrap: anywhere; }
.cert h1 small { font: 400 0.5em var(--sans); color: var(--ink-2); white-space: nowrap; }
.cert .facts { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.45rem 1rem; margin: 1.2rem 0 0; }
.cert .facts dt { color: var(--ink-2); }
.cert .facts dd { margin: 0; overflow-wrap: anywhere; }
.cert aside { display: grid; gap: 1rem; align-content: start; justify-items: center; text-align: center; }
.cert aside .seal-l { width: 100%; max-width: 13rem; height: auto; transform: rotate(-7deg); }
.cert aside .qr { width: 100%; max-width: 10.5rem; border: 1px solid var(--rule); background: #fff; padding: 0.25rem; }
.cert aside p { font-size: 0.86rem; color: var(--ink-2); margin: 0; }
.uses { list-style: none; margin: 0.8rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 0.6rem; }
.uses li { border: 1px solid var(--rule); border-left: 4px solid var(--plat); padding: 0.6rem 0.8rem; background: var(--sheet); }
.uses li.allow { border-left-color: var(--allow); } .uses li.ask { border-left-color: var(--ask); } .uses li.deny { border-left-color: var(--deny); }
.uses b { display: block; }
.uses .act { font-weight: 700; font-size: 0.92rem; }
.uses .allow .act { color: var(--allow); } .uses .ask .act { color: var(--ask); } .uses .deny .act { color: var(--deny); }
.uses small { display: block; }
.copy { display: flex; gap: 0.5rem; align-items: stretch; max-width: 100%; }
.copy code { flex: 1; min-width: 0; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px; padding: 0.55rem 0.7rem; overflow-x: auto; white-space: nowrap; }
.copy button { font: 600 0.9rem var(--sans); border: 1px solid var(--ink-2); background: var(--paper); color: var(--ink); border-radius: 6px; padding: 0 0.8rem; cursor: pointer; }
@media (max-width: 760px) { .cert { grid-template-columns: 1fr; } .cert aside { grid-template-columns: 1fr 1fr; align-items: center; } .cert aside p { grid-column: 1 / -1; } .cert .facts { grid-template-columns: 1fr; gap: 0.1rem; } .cert .facts dd { margin-bottom: 0.5rem; } }

/* status page */
.board { list-style: none; margin: 1.2rem 0; padding: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.board li { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr auto; gap: 0.3rem 1.2rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.board li:last-child { border-bottom: 0; }
.board .name { font-weight: 600; }
.board .detail { color: var(--ink-2); font-size: 0.95rem; overflow-wrap: anywhere; min-width: 0; }
.board .state { font-weight: 700; white-space: nowrap; }
.board .state.up { color: var(--allow); } .board .state.down { color: var(--deny); } .board .state.warn { color: var(--ask); }
@media (max-width: 640px) { .board li { grid-template-columns: 1fr auto; } .board .detail { grid-column: 1 / -1; grid-row: 2; } }
.overall { display: flex; align-items: center; gap: 0.8rem; font: 700 clamp(1.5rem, 3.4vw, 2.1rem)/1.15 var(--serif); margin: 0 0 0.4rem; }
.overall .dot { width: 0.7em; height: 0.7em; margin: 0; flex: none; }

/* pricing: drawn, but not yet in force */
.rollout { border: 1.5px solid var(--stamp); background: var(--stamp-wash); padding: 1.1rem 1.3rem; border-radius: 4px; max-width: 880px; }
.rollout h2 { font-size: 1.5rem; margin-bottom: 0.3em; }
.rollout p { margin: 0; max-width: 72ch; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem; margin: 1.4rem 0 0.8rem; }
.tier { border: 1px solid var(--ink-2); border-radius: 4px; padding: 1.2rem 1.25rem 1.3rem; background: var(--sheet); display: flex; flex-direction: column; }
.tier h3 { font: 700 1.4rem/1.2 var(--serif); margin: 0 0 0.2rem; }
.tier .for { color: var(--ink-2); font-size: 0.95rem; min-height: 2.8em; margin: 0 0 0.6rem; }
.tier .price { font: 700 2rem/1.1 var(--serif); margin: 0; }
.tier .price small { font: 400 0.9rem var(--sans); }
.tier .now { font-weight: 700; color: var(--stamp); margin: 0.25rem 0 0.9rem; }
.tier ul { margin: 0; padding: 0 0 0 1.1rem; display: grid; gap: 0.35rem; font-size: 0.97rem; }
.later .tier { color: var(--ink-2); border-style: dashed; background: transparent; }
.later .tier h3, .later .tier .price { color: var(--ink-2); }
.tier .tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; border: 1px dashed var(--ink-2); border-radius: 999px; padding: 0.05rem 0.55rem; margin-bottom: 0.6rem; color: var(--ink-2); }

/* documentation */
.docs { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1180px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; align-items: start; }
.docs-nav { position: sticky; top: 1rem; font-size: 0.95rem; }
.docs-nav label { font-size: 0.85rem; color: var(--ink-2); }
.docs-nav select { margin-bottom: 1.2rem; padding: 0.4rem 0.5rem; font-size: 0.95rem; }
.docs-nav h2 { font: 600 0.85rem/1.3 var(--sans); color: var(--ink-2); margin: 1.1rem 0 0.35rem; letter-spacing: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.docs-nav a { display: block; padding: 0.28rem 0.6rem; margin-left: -0.6rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.docs-nav a:hover { color: var(--stamp); }
.docs-nav a[aria-current="page"] { border-left-color: var(--stamp); font-weight: 600; background: var(--paper-2); }
.docs-nav details > summary { display: none; }
.prose { min-width: 0; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { max-width: none; }
.prose li { margin-bottom: 0.3em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.prose :not(pre) > code { background: var(--paper-2); padding: 0.08em 0.32em; border-radius: 3px; overflow-wrap: anywhere; }
.prose blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--stamp); background: var(--paper-2); }
.prose blockquote p { margin: 0; }
.prose h2 a.anchor, .prose h3 a.anchor { text-decoration: none; color: var(--plat); margin-left: 0.35em; opacity: 0; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor, .prose a.anchor:focus { opacity: 1; }
.old-version { border: 1px solid var(--ask); border-left-width: 4px; padding: 0.7rem 1rem; margin: 0 0 1.6rem; background: var(--paper-2); }
.old-version p { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.pager a { font-weight: 600; }
.pager span { display: block; font-size: 0.85rem; color: var(--ink-2); font-weight: 400; }
.pager .next { text-align: right; margin-left: auto; }
.docs-foot { margin-top: 1.2rem; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; border: 1px solid var(--rule); border-radius: 6px; padding: 0.8rem 1rem; background: var(--sheet); }
  .docs-nav details > summary { display: block; cursor: pointer; font-weight: 600; }
  .docs-nav details:not([open]) > :not(summary) { display: none; }
}
@media print { .bar nav, .menu, footer, .docs-nav, .pager { display: none; } body { background: #fff; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js-off .cases { display: block; } .js-off .cases [role=tablist], .js-off .tabs [role=tablist] { display: none; }
.js-off .tabs [role=tabpanel] { margin-bottom: 1.2rem; } .js-off .tabs [role=tabpanel] pre { border-top: 1px solid var(--ink); border-radius: 6px; }

/* security page */
.threats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule); margin-top: 1.4rem; }
.threat { padding: 1.3rem 1.4rem 1.1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.threat h3 { font: 700 1.3rem/1.2 var(--serif); margin-bottom: 0.3rem; }
.threat > p { color: var(--ink-2); margin-bottom: 0.9rem; }
.defences { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.defences li { padding-left: 0.9rem; border-left: 3px solid var(--allow); }
.defences li.planned { border-left: 3px dashed var(--plat); }
.defences li div { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; }
.defences .pill { font-size: 0.74rem; padding: 0 0.45rem; }
.defences p { margin: 0.15rem 0 0; font-size: 0.97rem; }
.cases > * { min-width: 0; }
[hidden] { display: none !important; }
.cards li { display: grid; }
.case > *, .two > *, .hero > *, .cols > * { min-width: 0; }
.prose h1 a.anchor { display: none; }

/* one line about gifts to the author; the addresses open on request */
.gift { border-top: 1px solid var(--rule); padding: 1rem 0 1.1rem; }
.gift summary { cursor: pointer; max-width: 82ch; }
.gift ul { display: grid; gap: 0.9rem; margin: 0.9rem 0 0; }
.gift li { display: flex; gap: 0.9rem; align-items: center; }
.gift li > span { display: grid; gap: 0.25rem; justify-items: start; min-width: 0; }
.gift code { overflow-wrap: anywhere; color: var(--ink); }
.gift .qr img { display: block; background: #fff; border: 1px solid var(--rule); }
.gift button { font: 600 0.82rem var(--sans); border: 1px solid var(--ink-2); background: var(--paper); color: var(--ink); border-radius: 6px; padding: 0.2rem 0.6rem; cursor: pointer; }
