:root {
  color-scheme: dark;
  --midnight: #07110f;
  --surface: #0d1c18;
  --surface-raised: #112720;
  --emerald: #31e6a1;
  --emerald-soft: #9cf5d3;
  --text: #f2fff9;
  --muted: #aec8bd;
  --border: #24473b;
  --focus: #fff3a6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(49, 230, 161, 0.12), transparent 32rem),
    var(--midnight);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--emerald-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  left: 1rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  background: var(--focus);
  color: #07110f;
  padding: 0.75rem 1rem;
  top: 1rem;
}

.shell {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.25rem;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--emerald);
  border-radius: 0.8rem;
  color: var(--midnight);
  display: inline-flex;
  font-size: 1.25rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 650;
}

nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-thickness: 0.18em;
}

main {
  padding: 4rem 0 5rem;
}

.hero {
  max-width: 50rem;
}

.eyebrow {
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.045em;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 44rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.card,
.policy-section,
.callout {
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.architecture {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.architecture li {
  background: rgba(49, 230, 161, 0.06);
  border-left: 0.25rem solid var(--emerald);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
}

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

.evidence-grid {
  margin: 1rem 0 1.5rem;
}

.card p,
.muted {
  color: var(--muted);
}

.policy {
  max-width: 52rem;
}

.policy-section {
  margin-top: 1rem;
}

.policy-section p:last-child,
.policy-section ul:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.callout {
  border-color: var(--emerald);
  margin: 2rem 0;
}

.button {
  background: var(--emerald);
  border-radius: 0.75rem;
  color: var(--midnight);
  display: inline-block;
  font-weight: 800;
  margin-top: 1rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button:hover {
  color: var(--midnight);
  filter: brightness(1.08);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 2rem 0 3rem;
}

footer p {
  margin: 0.25rem 0;
}

@media (max-width: 48rem) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 2.75rem;
  }
}

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