:root {
  --bg: #0d0f0c;
  --bg-surface: #131510;
  --accent: #4e7a38;
  --accent-bright: #78c44a;
  --text: #e2e2df;
  --text-dim: #a3a59f;
  --text-dimmer: #6b6f66;
  --border: #252b21;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

a {
  color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

.site-shell {
  width: min(100% - 2.5rem, var(--max-w));
  margin: 0 auto;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current] {
  color: var(--accent-bright);
}

.site-nav .nav-cta {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--accent);
  color: var(--text);
}

/* ── TYPE ───────────────────────────────────────── */
.page-main {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  letter-spacing: -0.01em;
}

h2 {
  max-width: 26ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 600;
}

p {
  margin: 0;
}

.answer {
  max-width: 64ch;
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--accent-bright);
  background: var(--bg-surface);
  color: var(--text);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

.meta {
  margin-top: 1rem;
  color: var(--text-dimmer);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── SECTIONS ───────────────────────────────────── */
.section {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.section > h2 + * {
  margin-top: 1.5rem;
}

.section > p,
.section > ul,
.section > ol {
  max-width: 64ch;
  color: var(--text-dim);
}

.section > p + p {
  margin-top: 1rem;
}

.section strong {
  color: var(--text);
  font-weight: 500;
}

/* numbered / ticked lists styled as a spec sheet */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
  border-top: 1px solid var(--border);
}

.list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: item;
}

.list li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--accent-bright);
  font-size: 0.75rem;
  line-height: 1.7rem;
}

ul.list li::before {
  content: "▸";
}

/* ── GRIDS ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.cell {
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.cell-label {
  margin-bottom: 0.8rem;
  color: var(--accent-bright);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cell p:not(.cell-label) {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

a.cell {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

a.cell:hover,
a.cell:focus-visible {
  background: var(--bg-surface);
}

a.cell h3::after {
  content: " →";
  color: var(--accent-bright);
}

/* ── TABLE ──────────────────────────────────────── */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-dim);
}

th {
  color: var(--accent-bright);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

td:first-child {
  color: var(--text);
  white-space: nowrap;
}

/* ── BUTTONS ────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.btn,
.btn-quiet {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn {
  background: var(--accent);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg);
}

.btn-quiet {
  border-color: var(--border);
  background: var(--bg-surface);
  color: var(--text);
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dimmer);
  font-size: 0.75rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-bright);
}

@media (max-width: 640px) {
  th,
  td {
    padding: 0.7rem 0.6rem;
    font-size: 0.82rem;
  }

  td:first-child {
    white-space: normal;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
