:root {
  --ink: #242424;
  --mute: #5e5a54;
  --line: #e6e1d8;
  --paper: #f4f1ea;
  --room: #161411;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}
a { color: inherit; }
img { max-width: 100%; }

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 8px;
}
.brand {
  font: 400 22px/1 var(--serif);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mast nav { display: flex; gap: 18px; }
.mast nav a {
  color: var(--mute);
  font-size: 14px;
  text-decoration: none;
}
.mast nav a[aria-current="page"] { color: var(--ink); }

h1 {
  margin: 0;
  font: 400 clamp(40px, 5vw, 64px)/0.92 var(--serif);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h1 span { display: block; white-space: nowrap; }
.page h1 { font-size: clamp(32px, 3.6vw, 44px); }

.page {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}
.page h1 { max-width: none; color: var(--ink); }

.arch {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 40px;
}
.display {
  margin: 0 0 28px;
  max-width: 14em;
  font: 400 clamp(36px, 4.8vw, 52px)/1 var(--serif);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding: 28px 28px 22px;
  border-radius: 16px;
  background: #f3eee6;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.feature {
  margin: 0;
  font: 400 clamp(28px, 3vw, 36px)/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-transform: none;
}
.panel .more {
  flex: none;
  color: var(--ink);
  text-underline-offset: 3px;
}
.map {
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px 8px;
  overflow: hidden;
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
}
.map .stack { display: none; }
.map text {
  font-family: var(--sans);
  font-size: 14px;
  fill: #1c1915;
}
.map .on-dark { fill: #f4f1ea; }
.map .mail-line { font-size: 18px; }
.map .fail-word {
  font-family: var(--serif);
  font-size: 26px;
  fill: #a32020;
}
.room-boundary {
  stroke-dasharray: 4 5;
  animation: seal 9s linear infinite;
}
.samples-orb {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 6.5s ease-in-out infinite;
}
.stamp {
  transform-box: fill-box;
  transform-origin: center;
  animation: stamp 7s ease-in-out infinite;
}
@keyframes seal { to { stroke-dashoffset: -54; } }
@keyframes breathe {
  0%, 18% { opacity: 0.35; }
  32%, 68% { opacity: 1; }
  100% { opacity: 0.35; }
}
@keyframes stamp {
  0%, 34% { opacity: 0; transform: scale(0.88); }
  44%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}
.arch-note {
  width: min(1120px, calc(100% - 48px));
  margin: 22px auto 72px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
}
.arch-note p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .room-boundary, .samples-orb, .stamp { animation: none; }
  .mover { display: none; }
  .samples-orb { opacity: 0.8; }
  .stamp { opacity: 1; transform: none; }
}
.page .lede {
  max-width: 38rem;
  margin: 18px 0 0;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.45;
}
.page .lede a { color: var(--ink); }

.ledger { margin: 48px 0 0; }
.ledger + .ledger { margin-top: 56px; }
.ledger h2 {
  margin: 0 0 8px;
  font: 400 13px/1.2 var(--sans);
  color: var(--mute);
  font-weight: 500;
}
.row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.k {
  font-size: 14px;
  color: var(--mute);
}
.v { margin: 0; font-size: 16px; line-height: 1.4; }
.v.big {
  font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif);
  letter-spacing: -0.02em;
}
.fail { color: var(--ink); }

.quiet {
  margin-top: 56px;
  max-width: 40rem;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
}
.quiet p { margin: 0 0 12px; }
.quiet a { color: var(--ink); }
.quiet strong { color: var(--ink); font-weight: 600; }

pre {
  margin: 16px 0 0;
  padding: 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font: 400 14px/1.5 var(--mono);
  padding-top: 16px;
}
code { font-family: var(--mono); font-size: 0.92em; }

.table-scroll { overflow-x: auto; margin-top: 8px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
th {
  padding: 0 16px 8px 0;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--mute);
}
td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
td.fail { font-weight: 600; }

@media (max-width: 700px) {
  .mast, .arch, .arch-note { width: min(100% - 32px, 1120px); }
  .mast { align-items: flex-start; flex-direction: column; gap: 10px; }
  .display { font-size: 34px; }
  h1 { font-size: 34px; }
  h1 span { white-space: normal; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .page { width: min(100% - 32px, 760px); padding-top: 48px; }
  .panel { padding: 18px 14px 14px; min-width: 0; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map { min-width: 0; overflow: hidden; }
  .map .wide { display: none; }
  .map .stack { display: block; width: 100%; }
}
