@font-face {
  font-family: Shoulders;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/shoulders.woff2") format("woff2");
}
@font-face {
  font-family: Plex;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex400.woff2") format("woff2");
}
@font-face {
  font-family: Plex;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex500.woff2") format("woff2");
}
@font-face {
  font-family: News;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/news.woff2") format("woff2");
}
@font-face {
  font-family: News;
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/news-italic.woff2") format("woff2");
}

:root {
  --ink: #141210;
  --paper: #e7dfcf;
  --desk: #1c1a17;
  --rule: #141210;
  --mute: #6a6256;
  --ok: #2f5d3a;
  --sev: #141210;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--desk);
  color: var(--ink);
  font-family: News, "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
}
img { display: block; }

.desk {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42px 1fr;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  gap: 0;
}

.spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: #c9bfad;
  font-family: Plex, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plate {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 28px 36px 40px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #00000055,
    18px 22px 0 #0a0908;
}
.plate::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
}
.crop::before, .crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.crop::before { width: 14px; height: 1px; }
.crop::after { width: 1px; height: 14px; }
.crop.tl { top: 8px; left: 8px; }
.crop.tr { top: 8px; right: 8px; }
.crop.tr::before { right: 0; }
.crop.tr::after { right: 0; }
.crop.bl { bottom: 8px; left: 8px; }
.crop.bl::before { bottom: 0; }
.crop.bl::after { bottom: 0; }
.crop.br { bottom: 8px; right: 8px; }
.crop.br::before { right: 0; bottom: 0; }
.crop.br::after { right: 0; bottom: 0; }

.mast {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  position: relative;
  z-index: 1;
}
.sig {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sig img { mix-blend-mode: multiply; }
.sig b {
  font-family: Shoulders, Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.sig em {
  font-style: italic;
  font-family: News, serif;
  color: var(--mute);
  font-size: 14px;
}
nav {
  display: flex;
  gap: 16px;
  font-family: Plex, ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
.folio {
  font-family: Plex, ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 42px 0 28px;
}
.kicker {
  font-family: Plex, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: Shoulders, Impact, sans-serif;
  font-weight: 800;
  font-size: clamp(4.6rem, 14vw, 9.4rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}
.hero h1 span { display: block; }
.hero h1 .mid {
  padding-left: 0.42em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.deck {
  margin-top: 22px;
  max-width: 38rem;
  font-size: 1.15rem;
}

.stamp {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 22px 12px;
  border: 3px solid var(--ink);
  font-family: Shoulders, Impact, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.stamp:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.stamp.large { font-size: 1.8rem; padding: 18px 28px 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  position: relative;
  z-index: 1;
}
.col { min-width: 0; }
.col h2 {
  font-family: Shoulders, Impact, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.col p { margin-bottom: 0.9em; }
.ung { padding-right: 8px; border-right: 1px solid var(--ink); }
.gua { padding-left: 8px; }
.intrude {
  border: 1px solid var(--ink);
  padding: 10px 12px;
  margin: 0 0 0.9em;
  background: #dcd3c1;
  font-family: Plex, ui-monospace, monospace;
  font-size: 12px;
}
.intrude small {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.intrude code {
  display: block;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 4px;
}
.intrude span { color: var(--mute); }
.quiet { color: var(--mute); font-style: italic; font-size: 0.95rem; }

.ledger {
  margin-top: 36px;
  position: relative;
  z-index: 1;
}
.ledger header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 0;
}
.ledger h2, .bench h2, .install h2, .facts h3 {
  font-family: Shoulders, Impact, sans-serif;
  letter-spacing: 0.04em;
}
.ledger header p, .bench > p { font-size: 0.95rem; color: var(--mute); }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: Plex, ui-monospace, monospace;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #14121033;
}
th {
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}
tbody tr:hover { background: #ddd4c2; }
td:last-child { font-weight: 500; letter-spacing: 0.12em; }
tbody tr:nth-last-child(-n+2) td:last-child { color: var(--ok); letter-spacing: 0; }

.bench {
  margin-top: 40px;
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.bench h2 { font-size: 2rem; }
#bench-form {
  margin: 16px 0 10px;
  max-width: 40rem;
}
#bench-form .row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
label {
  font-family: Plex, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#host {
  flex: 1;
  font-family: Plex, ui-monospace, monospace;
  font-size: 16px;
  padding: 10px 12px;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
}
#bench-form button, .chips button {
  font-family: Plex, ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.verdict {
  margin-top: 14px;
  font-family: Shoulders, Impact, sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.verdict.sev { text-decoration: line-through 4px; }
.verdict.ok { color: var(--ok); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
  position: relative;
  z-index: 1;
}
.facts figure { border-top: 8px solid var(--ink); padding-top: 12px; }
.facts figcaption {
  font-family: Plex, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.facts h3 { font-size: 1.45rem; margin-bottom: 8px; }

.install {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0 8px;
  border-top: 3px solid var(--ink);
  position: relative;
  z-index: 1;
}
.install ol {
  margin: 12px 0 0 1.1em;
  font-family: Plex, ui-monospace, monospace;
  font-size: 14px;
}
.install li { margin: 4px 0; }

footer {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Plex, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  position: relative;
  z-index: 1;
}
footer img { mix-blend-mode: multiply; }
.end {
  margin-left: auto;
  color: var(--ink);
  text-decoration: none;
}
.end:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .desk { grid-template-columns: 1fr; padding: 12px; }
  .spine { display: none; }
  .mast { grid-template-columns: 1fr; }
  .split, .facts, .install { grid-template-columns: 1fr; }
  .ung { border-right: 0; padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
  .gua { padding-left: 0; padding-top: 20px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .plate { padding: 22px 18px 28px; box-shadow: 8px 10px 0 #0a0908; }
}
