:root {
  --paper: #f7f3ea;
  --paper-deep: #eee7d9;
  --surface: #fffdf8;
  --ink: #17253d;
  --ink-soft: #35435a;
  --teal: #006b6b;
  --rust: #934128;
  --line: #c8c1b3;
  --focus: #a33c1d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
}

/* Warm paper and dark ink support long-form evidence review; teal is reserved for verifiable routes and rust for cautions. */
a {
  color: var(--teal);
  font-weight: 700;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

a:hover { color: #004f4f; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner,
.footer-inner {
  width: calc(100% - 2rem);
  max-width: 72rem;
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1rem;
}

.wordmark,
.footer-title {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark span { color: var(--rust); }

.site-nav ul,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.55rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover { color: var(--teal); }

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.masthead-inner {
  width: calc(100% - 2rem);
  max-width: 72rem;
  margin-inline: auto;
  padding-block: clamp(2.75rem, 8vw, 6rem);
}

/* The single oversized title is the focal point; no promotional hero or decorative image competes with the editorial scope. */
.kicker {
  margin: 0 0 0.85rem;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 3.4rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.22rem;
}

.lede {
  max-width: 65ch;
  margin: 1.3rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.main {
  width: calc(100% - 2rem);
  max-width: 72rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

/* A text-led two-column reading rhythm separates the document map from prose without reducing the body measure. */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.article {
  min-width: 0;
  max-width: 70ch;
}

.article p,
.article li {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.article strong { color: var(--ink); }

.article ul,
.article ol { padding-left: 1.25rem; }

.article li + li { margin-top: 0.6rem; }

.document-map {
  align-self: start;
  border-top: 4px solid var(--rust);
  padding-top: 1rem;
}

.document-map h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.document-map ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.document-map a { font-weight: 650; }

.note,
.disclosure {
  margin-block: 2rem;
  border-block: 1px solid var(--line);
  padding: 1.25rem 0;
}

.note {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.note strong,
.disclosure strong { color: var(--rust); }

.disclosure p:last-child,
.note p:last-child { margin-bottom: 0; }

.evidence-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

.evidence-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.evidence-table th,
.evidence-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.evidence-table th {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.evidence-table td { color: var(--ink-soft); }

.evidence-table tr:last-child td { border-bottom: 0; }

.source-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
}

.source-list p { margin: 0.35rem 0 0; }

.back-link {
  display: inline-block;
  min-height: 44px;
  margin-top: 2.5rem;
  padding-block: 0.55rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.footer-inner p:not(.footer-title) {
  max-width: 58ch;
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

@media (min-width: 56rem) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .document-map { grid-column: 2; grid-row: 1; }
  .article { grid-column: 1; grid-row: 1; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (max-width: 38rem) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .site-nav,
  .site-nav ul,
  .site-nav li {
    min-width: 0;
    max-width: 100%;
  }

  .site-nav { width: 100%; }

  .site-nav ul {
    width: 100%;
    gap: 0.2rem 0.8rem;
    white-space: normal;
  }

  h1 { max-width: 100%; }
  .evidence-table { min-width: 34rem; }
}

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