:root {
  --bg: #0a0a0a;
  --bg-elev: #121412;
  --ink: #f2f7f0;
  --muted: #9aaa94;
  --line: #1e261e;
  --accent: #b8ff2e;
  --accent-dim: #6a9a1a;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 255, 46, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(184, 255, 46, 0.05), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, footer { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(184, 255, 46, 0.25);
}
.brand span { font-size: 1.05rem; }

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav a:hover { color: var(--accent); }

main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: rise 0.7s ease both;
}
.hero-mark {
  border-radius: 24px;
  margin-bottom: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(184, 255, 46, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.45);
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 auto 1rem;
  max-width: 36rem;
}
.meta {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2rem);
  animation: rise 0.8s 0.1s ease both;
}
.panel h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 0.85rem;
}
.panel p { margin: 0 0 1rem; color: var(--muted); }
.panel p strong { color: var(--ink); }
.panel ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.panel li { margin-bottom: 0.4rem; }
.panel li::marker { color: var(--accent); }
.note {
  margin: 0 !important;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(184, 255, 46, 0.06);
  color: var(--ink) !important;
  font-size: 0.95rem;
}

.doc h1 {
  text-align: left;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.35rem;
}
.doc .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
  color: var(--accent);
}
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}
.foot-brand img { border-radius: 7px; }
.foot-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.foot-links a:hover { color: var(--accent); }
.fine {
  margin: 0;
  color: #667066;
  font-size: 0.8rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; }
}
