:root {
  color-scheme: dark;
  --bg: #080b08;
  --panel: #101810;
  --text: #eef4e9;
  --muted: #b7c7b2;
  --line: #314531;
  --accent: #ffde59;
  --accent-2: #86d894;
  --danger: #ff8b6e;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

a:hover {
  color: #fff3a8;
}

.site-header,
.site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
  background: #050705;
}

.site-footer {
  border-width: 1px 0 0;
}

.nav,
.footer-inner,
.hero,
.content,
.article-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.9rem;
}

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

.hero {
  min-height: 58vh;
  display: grid;
  align-content: center;
  padding: 56px 0 42px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
}

.dek,
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions,
.card-grid,
.toc-grid {
  display: grid;
  gap: 14px;
}

.actions {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-width: 720px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #142014;
  text-decoration: none;
}

.button.primary {
  color: #101000;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.content {
  padding: 36px 0 64px;
}

.band {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.toc-item,
.note {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.card p,
.toc-item p {
  color: var(--muted);
  margin: 10px 0 0;
}

.status {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status.pending,
.status.raw-only {
  color: var(--danger);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  padding: 52px 0 72px;
}

.article-meta {
  color: var(--muted);
  margin: 16px 0 28px;
}

.article-body p {
  margin: 0 0 20px;
}

.pull {
  border-left: 4px solid var(--accent);
  color: var(--accent);
  font-size: 1.35rem;
  margin: 30px 0;
  padding: 10px 0 10px 18px;
}

.reader-img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #000;
}

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  color: var(--muted);
  padding: 22px 0;
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  body {
    font-size: 17px;
  }
}
