:root {
  color-scheme: dark;
  --background: #07100f;
  --surface: rgba(17, 35, 32, 0.78);
  --surface-strong: #12231f;
  --border: rgba(144, 255, 218, 0.2);
  --text: #f4fbf8;
  --muted: #abc1b9;
  --mint: #74f8c5;
  --mint-strong: #32dca1;
  --focus: #ffffff;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(50, 220, 161, 0.18), transparent 38rem),
    linear-gradient(180deg, #0a1513 0%, var(--background) 72%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--mint);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b7ffe3;
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--mint);
  border-radius: 0.45rem;
  box-shadow: 0 0 1.5rem rgba(116, 248, 197, 0.24);
}

.brand-mark::before {
  width: 0.62rem;
  height: 0.62rem;
  border: 0.2rem solid var(--mint);
  content: "";
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--text);
}

main {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.hero,
.document-header {
  max-width: 52rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 1rem var(--mint);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.document-header h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

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

.lead {
  max-width: 43rem;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button-primary {
  border-color: transparent;
  background: var(--mint);
  color: #06110d;
}

.button-primary:hover {
  background: #a1ffdb;
  color: #06110d;
}

.card-grid {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 15rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 1.8rem 5rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1.5rem);
}

.card p {
  margin-bottom: 1.5rem;
}

.card a {
  font-weight: 700;
}

.document {
  max-width: 52rem;
}

.document-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.updated {
  margin-top: 1.25rem;
  color: var(--mint);
  font-size: 0.92rem;
}

.document-section {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--border);
}

.document-section:last-child {
  border-bottom: 0;
}

.document-section p:last-child,
.document-section ul:last-child,
.document-section ol:last-child {
  margin-bottom: 0;
}

.document-section li + li {
  margin-top: 0.55rem;
}

.callout {
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(116, 248, 197, 0.34);
  border-radius: 1rem;
  background: rgba(50, 220, 161, 0.08);
}

.callout strong {
  color: var(--text);
}

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

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

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 44rem) {
  .shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-nav,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

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

  main {
    padding-top: 3.5rem;
  }
}

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