:root {
  color-scheme: dark;
  --background: #0b0e0d;
  --surface: #141917;
  --surface-raised: #1a211e;
  --text: #f4f7f5;
  --muted: #a8b2ad;
  --border: #29332f;
  --accent: #b8f33d;
  --accent-ink: #172000;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 75% -10%, rgba(184, 243, 61, 0.1), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner,
.page,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.page {
  padding-block: 72px 96px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.35;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 52px);
}

h2 {
  margin: 52px 0 12px;
  font-size: 22px;
}

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

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: #d8dfdb;
  font-size: 18px;
}

.updated {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-body {
  margin-top: 56px;
  padding-top: 1px;
  border-top: 1px solid var(--border);
}

.legal-body ol,
.legal-body ul {
  padding-left: 1.4em;
}

.legal-body li + li {
  margin-top: 8px;
}

.note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: #d8dfdb;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.link-card {
  display: block;
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.link-card:hover {
  border-color: rgba(184, 243, 61, 0.65);
  color: var(--text);
  transform: translateY(-2px);
}

.link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.link-card span {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 137px);
  place-content: center;
  text-align: center;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  color: var(--accent-ink);
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 60px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
  }

  .page {
    padding-block: 52px 72px;
  }

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