:root {
  --paper: #fbf8f2;
  --ink: #0c201c;
  --muted: #555c57;
  --line: #d8d5ce;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 64px;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.96);
}

.wordmark,
.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  padding: 12px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

main,
footer {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.hero,
.section-shell,
.evidence-band .section-shell,
.method-band .section-shell {
  display: block;
  width: auto;
  margin: 0;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 0;
  overflow: visible;
}

.hero-index,
.hero-note,
.section-label {
  display: none;
}

.hero-copy {
  padding: 0;
}

.eyebrow,
.latin {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

p {
  max-width: 680px;
}

.hero-lede,
.status-lede,
.evidence-statement {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: none;
}

.text-link span {
  margin-left: 6px;
}

.breadcrumbs {
  display: flex;
  padding: 30px 0 0;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumbs a {
  text-underline-offset: 3px;
}

.page-intro {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
}

.page-intro .hero-lede {
  max-width: 700px;
}

.record-meta {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.76rem;
}

.record-meta span + span::before {
  content: "·";
  margin-right: 20px;
}

.prose-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.prose-section > p:not(.section-kicker):not(.review-note),
.prose-section > ul,
.prose-section > ol,
.prose-section > dl,
.prose-section > div,
.prose-section > aside {
  max-width: 680px;
}

.section-kicker,
.source-type,
.publisher,
.review-note {
  color: var(--muted);
  font-size: 0.74rem;
}

.section-kicker,
.source-type {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scope-note {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.scope-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.definition-list {
  margin: 34px 0;
  border-top: 1px solid var(--line);
}

.definition-list > div {
  display: grid;
  padding: 20px 0;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.definition-list h3,
.definition-list p {
  margin: 0;
}

.definition-list p {
  color: var(--muted);
}

.question-list {
  margin: 28px 0;
  padding-left: 22px;
}

.question-list li + li {
  margin-top: 12px;
}

.scope-ladder {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: scope;
  border-top: 1px solid var(--line);
}

.scope-ladder li {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 28px 140px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  counter-increment: scope;
}

.scope-ladder li::before {
  content: counter(scope, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.scope-ladder span {
  color: var(--muted);
}

.status-definitions {
  margin: 32px 0;
  border-top: 1px solid var(--line);
}

.status-definitions > div {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.status-definitions dt {
  font-weight: 700;
}

.status-definitions dd {
  margin: 0;
  color: var(--muted);
}

.source-list {
  border-top: 1px solid var(--line);
}

.source-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.source-list article > :last-child {
  margin-bottom: 0;
}

.source-list h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.source-list .publisher {
  margin: 6px 0 18px;
}

.review-note {
  margin-top: 28px;
}

.next-step {
  border-bottom: 0;
}

.material-copy {
  max-width: 680px;
  padding: 0;
  color: var(--muted);
}

.status-chip {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-chip::before {
  content: "Status: ";
  font-weight: 700;
}

.evidence-band,
.method-band {
  background: transparent;
  color: inherit;
}

.evidence-limit {
  margin: 24px 0 0;
  color: var(--muted);
}

.citation {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.questions h2 {
  margin-bottom: 28px;
}

.question-grid,
.method-grid {
  display: block;
  border: 0;
}

.question-grid article,
.method-grid > div,
.method-grid > div + div {
  min-height: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.question-grid article > span {
  display: none;
}

.question-grid h3,
.method-grid h3 {
  margin: 0 0 8px;
}

.question-grid p,
.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.method-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.status-list > div {
  display: grid;
  min-height: 0;
  padding: 16px 0;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.status-list p {
  margin: 0;
}

.state {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.disclosure {
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: flex;
  padding: 40px 0 64px;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: var(--ink);
}

footer > p {
  display: none;
}

.footer-meta {
  display: flex;
  padding: 0;
  gap: 16px;
  border: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.footer-meta a {
  text-underline-offset: 3px;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.not-found main {
  padding: 48px 0;
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 0 20px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 0.65rem;
  }

  main,
  footer {
    width: min(100% - 40px, 760px);
  }

  .hero,
  .section-shell,
  .evidence-band .section-shell,
  .method-band .section-shell {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .status-list > div {
    display: block;
  }

  .page-intro,
  .prose-section {
    padding: 52px 0;
  }

  .record-meta {
    display: block;
  }

  .record-meta span {
    display: block;
  }

  .record-meta span + span {
    margin-top: 4px;
  }

  .record-meta span + span::before {
    content: none;
  }

  .definition-list > div,
  .status-definitions > div {
    display: block;
  }

  .definition-list h3,
  .status-definitions dt {
    margin-bottom: 5px;
  }

  .scope-ladder li {
    grid-template-columns: 26px 1fr;
  }

  .scope-ladder li span {
    grid-column: 2;
  }

  .state {
    display: block;
    margin-bottom: 5px;
  }

  footer,
  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header nav a:first-child {
    display: none;
  }
}

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