:root {
  color-scheme: light;
  --paper: #f3f6f2;
  --paper-2: #e7edf0;
  --ink: #151716;
  --muted: #5f6765;
  --line: #b9c3bd;
  --specimen: #a7332b;
  --signal: #2f6f73;
  --brass: #b58a2b;
  --panel: #ffffff;
  --surface: var(--panel);
  --shadow: 0 18px 48px rgba(21, 23, 22, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.62;
  background:
    linear-gradient(rgba(47, 111, 115, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 115, 0.055) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(167, 51, 43, 0.08), transparent 28rem),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

a {
  color: var(--specimen);
  text-decoration-color: rgba(167, 51, 43, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7f211b;
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

header,
main,
footer {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: end;
  padding: 18px 0 14px;
  border-bottom: 2px solid var(--ink);
}

header p {
  margin: 0;
}

/* A masthead, not a poster: one line, and small enough that the first screen still
   belongs to the content. */
header p:first-child a {
  display: block;
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

header p:nth-child(2) {
  color: var(--signal);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.86rem;
  grid-column: 1;
  max-width: 42rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

nav a.subscribe {
  background: var(--specimen);
  border-color: var(--specimen);
  color: var(--paper);
}

nav a.subscribe:hover {
  background: #7f211b;
  border-color: #7f211b;
}

main {
  padding: 30px 0 64px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 24ch;
  margin: 0 0 16px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

h2 {
  margin: 44px 0 14px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

p,
li {
  max-width: 72ch;
}

.page-lede {
  max-width: 62ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.post-page main > p:first-of-type,
.experiment-page main > p:first-of-type,
.boundary-map-page main > p:first-of-type {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
}

section,
.artifact-grid {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 10px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artifact-grid > h2,
.artifact-grid > h3,
.artifact-grid > p {
  grid-column: 1 / -1;
}

.artifact-grid > .grid-title {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.artifact-grid > .grid-lede {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.experiment-page main > .artifact-grid + h3 {
  margin-top: 52px;
}

.experiment-page main > h3 + .artifact-grid {
  margin-top: 18px;
}

.artifact-card {
  min-height: 100%;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--signal);
}

.artifact-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 14px;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: #050505;
}

.artifact-card:nth-of-type(2) {
  box-shadow: 7px 7px 0 var(--brass);
}

.artifact-card:nth-of-type(3) {
  box-shadow: 7px 7px 0 var(--specimen);
}

.artifact-card p:first-child {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.75rem;
}

.artifact-card p {
  margin: 8px 0;
}

.post-page main,
.experiment-page main {
  max-width: 860px;
}

/* The ledger is the point of this page, so it gets the full column and prose-sized
   cells rather than the dense monospace used for inline evidence tables. */
.boundary-map-page .verdict-ledger table {
  min-width: 840px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

.boundary-map-page .verdict-ledger th {
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.76rem;
}

.boundary-map-page .verdict-ledger td:first-child {
  white-space: nowrap;
}

.post-page main > p:first-of-type {
  font-size: 1.2rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
}

.evidence-block {
  max-width: 100%;
  margin: 30px 0 34px;
  padding: 18px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(47, 111, 115, 0.28);
}

.evidence-kicker {
  margin: 0 0 12px;
  color: var(--signal);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.triptych-grid figure {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.triptych-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050505;
  border: 1px solid var(--ink);
}

.triptych-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.split-columns > div,
.verb-row,
.boundary-layer {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.split-columns h3 {
  margin: 0 0 10px;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.split-columns ul {
  margin: 0;
}

.verb-row {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}

.verb-row + .verb-row {
  margin-top: 12px;
}

.verb-row p,
.boundary-layer p {
  margin: 0;
}

.verb-row p + p,
.boundary-layer p + p {
  margin-top: 6px;
}

.verb-row.pass {
  border-left: 5px solid var(--signal);
}

.verb-row.fail {
  border-left: 5px solid var(--specimen);
}

.boundary-stack {
  display: grid;
  gap: 10px;
}

.boundary-layer {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.boundary-layer.machine {
  border-left: 5px solid var(--signal);
}

.boundary-layer.analytic {
  border-left: 5px solid var(--brass);
}

.boundary-layer.human {
  border-left: 5px solid var(--specimen);
}

.verdict-ledger table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.78rem;
  line-height: 1.42;
}

.verdict-ledger th,
.verdict-ledger td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.verdict-ledger th {
  background: var(--ink);
  color: var(--paper);
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  min-width: 4.8em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.badge.fail {
  color: var(--specimen);
}

.badge.pass {
  color: var(--signal);
}

.diagram-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-flow > * {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  background: var(--surface);
}

.pong-panel,
.probe-panel {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pong-panel h3,
.probe-panel h3 {
  margin: 0 0 10px;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.pong-panel p,
.probe-panel p {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.pong-field {
  position: relative;
  height: 142px;
  overflow: hidden;
  background:
    linear-gradient(rgba(243, 246, 242, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 242, 0.12) 1px, transparent 1px),
    #151716;
  background-size: 20px 20px;
  border: 1px solid var(--ink);
}

.paddle {
  position: absolute;
  left: 26px;
  width: 8px;
  height: 54px;
  background: var(--paper);
}

.paddle.center {
  top: 44px;
}

.paddle.offset {
  top: 64px;
}

.ball {
  position: absolute;
  left: 72px;
  width: 12px;
  height: 12px;
  background: var(--brass);
  border-radius: 50%;
}

.ball.center {
  top: 65px;
}

.ball.offset {
  top: 88px;
}

.path {
  position: absolute;
  left: 84px;
  width: 54%;
  border-top: 3px solid var(--brass);
}

.path.flat {
  top: 71px;
}

.path.angled {
  top: 92px;
  transform: rotate(-16deg);
  transform-origin: left center;
}

.probe-track {
  position: relative;
  height: 142px;
  overflow: hidden;
  background:
    linear-gradient(rgba(243, 246, 242, 0.12) 1px, transparent 1px),
    #151716;
  background-size: 18px 18px;
  border: 1px solid var(--ink);
}

.wall {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18px;
  background: rgba(167, 51, 43, 0.72);
}

.wall.top {
  top: 0;
}

.wall.bottom {
  bottom: 0;
}

.probe-track .ball {
  left: 50%;
}

.probe-track .ball.loose {
  top: 68px;
}

.probe-track .ball.focused {
  top: 20px;
  box-shadow: 0 0 0 5px rgba(181, 138, 43, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  max-width: none;
  margin: 20px 0 0;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.84rem;
}

a.cta {
  padding: 11px 18px;
  background: var(--specimen);
  border: 1px solid var(--specimen);
  color: var(--paper);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

a.cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.section-lede {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--muted);
}

/* On the home page a grid belongs to the section that introduces it, so it must not
   draw its own top rule and read as a separate section. */
.home-page section > .artifact-grid {
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
}

.subscribe-block {
  padding: 24px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--signal);
}

.subscribe-block h2 {
  margin-top: 0;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-list li {
  max-width: none;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.entry-list li + li {
  margin-top: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 6px;
  color: var(--signal);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.entry-title {
  margin: 0 0 6px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.entry-title a {
  text-decoration: none;
}

.entry-list p {
  margin: 0;
  color: var(--muted);
}

.status-tag {
  padding: 1px 6px;
  border: 1px solid currentColor;
}

.status-tag.closed {
  color: var(--specimen);
}

.status-tag.active {
  color: var(--signal);
}

.play-frame {
  margin: 26px 0 12px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--signal);
}

.play-frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  background: #050505;
  border: 1px solid var(--ink);
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 26px;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.8rem;
}

.play-note {
  max-width: 62ch;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--brass);
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.82rem;
}

.spec-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list .key {
  color: var(--signal);
  text-transform: uppercase;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 24px 0 36px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer nav {
  gap: 16px;
  justify-content: flex-start;
}

footer nav a {
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-transform: none;
}

footer nav a:hover {
  background: transparent;
  color: var(--specimen);
}

@media (max-width: 900px) {
  .play-frame iframe {
    height: 460px;
  }
}

@media (max-width: 760px) {
  header {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
  }

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .diagram-pair {
    grid-template-columns: 1fr;
  }

  .step-flow {
    grid-template-columns: 1fr;
  }

  .triptych-grid,
  .split-columns,
  .verb-row,
  .boundary-layer {
    grid-template-columns: 1fr;
  }

  .evidence-block {
    padding: 14px;
  }
}
