:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #aaa79f;
  --night: #090b0c;
  --panel: #121618;
  --line: #2c3335;
  --signal: #b5ff74;
  --violet: #c5b5ff;
  --amber: #ffce73;
  --cyan: #8be7e7;
  --measure: 74rem;
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(86, 120, 103, .18), transparent 34rem),
    radial-gradient(circle at 90% 30%, rgba(96, 70, 139, .12), transparent 34rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--night);
  background-size: auto, auto, 4rem 4rem, 4rem 4rem, auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--signal); }

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--night);
}

.site-header, .site-footer, main {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
}

.site-header {
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.brand-subtitle {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--signal);
  font-size: 2rem;
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

nav a { color: var(--muted); text-decoration: none; }

main { padding-block: 5rem 7rem; }

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  min-height: 34rem;
  padding-block: 3rem 6rem;
}

.page-hero.compact {
  display: block;
  min-height: 0;
  max-width: 58rem;
  padding-block: 2rem 5rem;
}

h1, h2, h3 {
  font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin: .8rem 0 1.4rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -.045em;
}

.compact h1, .article-header h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
}

h1 em {
  color: var(--violet);
  font-weight: 400;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.55rem; }

.eyebrow, .classification, .status-kicker, .card-meta {
  color: var(--signal);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dek {
  max-width: 53rem;
  color: #cfccc4;
  font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.3rem;
}

.button {
  padding: .75rem 1.05rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: .82rem;
}

.button.primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #0b1107;
}

.status-panel, .record-box, .provenance {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(18, 22, 24, .82);
  box-shadow: 1rem 1rem 0 rgba(181, 255, 116, .025);
}

.status-title {
  margin: .2rem 0 1.4rem;
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 1.8rem;
}

dl { margin: 0; }

.status-panel dl, .publication-meta, .record-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem 1rem;
}

dt { color: var(--muted); }
dd { margin: 0; }

.principle {
  margin-block: 1rem 7rem;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-family: Iowan Old Style, Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

.principle strong { color: var(--ink); font-weight: 500; }

.two-voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.voice-card {
  min-height: 31rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.voice-card + .voice-card { border-left: 1px solid var(--line); }
.voice-card.note { background: rgba(77, 61, 111, .12); }
.voice-card.ledger { background: rgba(51, 93, 78, .09); }
.voice-card h3 { margin-top: 4rem; }

.research-callout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(139, 231, 231, .08), transparent 45%),
    rgba(18, 22, 24, .72);
}

.research-callout h2 { margin: .5rem 0 0; }
.research-callout p { color: #cbc8c0; }
.research-callout .button { display: inline-block; margin-top: .8rem; }

.ai-research .article-section:nth-of-type(2n) {
  background: linear-gradient(90deg, rgba(139, 231, 231, .025), transparent);
}

.boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-block: 8rem 2rem;
  align-items: end;
}

.boundary p:last-child { color: var(--muted); font-size: 1.05rem; }

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.entry-card {
  padding: 2.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.entry-card p { color: var(--muted); }
.entry-card h2 { font-size: 2rem; }

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.epistemic-label {
  display: inline-block;
  padding: .18rem .48rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.label-observation { border-color: #56876e; color: #a8eac2; }
.label-analysis { border-color: #567c87; color: var(--cyan); }
.label-speculative_lens { border-color: #756294; color: var(--violet); }
.label-project_status { border-color: #9a783c; color: var(--amber); }

.publication {
  max-width: 56rem;
  margin-inline: auto;
}

.article-header {
  padding-block: 2rem 4rem;
  border-bottom: 1px solid var(--line);
}

.byline, .alternate-links { color: var(--muted); }

.publication-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-section, .publication > section {
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.article-section p, .article-section li, .limitations li {
  color: #cbc8c0;
  font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif;
  font-size: 1.18rem;
}

.article-section li + li, .limitations li + li { margin-top: .7rem; }

.section-citations {
  color: var(--muted) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: .82rem !important;
}

.publication-sources {
  overflow-wrap: anywhere;
}

.publication-sources li + li { margin-top: .8rem; }
.publication-sources p { color: var(--muted); }

.provenance { margin-top: 3rem; overflow-wrap: anywhere; }
.provenance h2, .record-box h2 { font-size: 1.6rem; }
code { color: var(--signal); font-size: .78em; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; text-align: left; }

.support-appeal { max-width: 58rem; margin-bottom: 2rem; }
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 2rem;
}
.wallet-list {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.wallet-card {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(9, 11, 12, .46);
}
.wallet-network {
  color: var(--amber);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wallet-address {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.support-list { margin: 1rem 0 0; padding-left: 1.2rem; }
.support-list li { color: #cbc8c0; }
.support-list li + li { margin-top: .8rem; }
.support-note { color: var(--muted); font-size: .85rem; }
.support-costs { margin-top: 2rem; }
.support-costs + .support-costs { margin-top: 1rem; }

.worldview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.worldview-item { min-height: 23rem; padding: 2.3rem; border: 1px solid var(--line); }
.worldview-item p:last-child { color: var(--muted); }
.classification { color: var(--violet); }

.method-list {
  list-style: none;
  margin: 0 0 5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.method-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.method-list span { color: var(--signal); }
.method-list p { margin: 0; color: #cbc8c0; }

.empty-state { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 1.4rem; }
  .page-hero, .two-voices, .research-callout, .boundary, .entry-list, .worldview-grid, .support-layout { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-block: 3rem 5rem; }
  .voice-card + .voice-card { border-left: 0; border-top: 1px solid var(--line); }
  .boundary { gap: 1rem; padding-top: 5rem; }
  .entry-card { border-right: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .publication-meta, .record-grid { grid-template-columns: 1fr; }
  dd { margin-bottom: .5rem; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
