:root {
  color-scheme: dark;
  --bg: #0a0d0c;
  --panel: #111714;
  --panel-2: #17201b;
  --text: #eef7f0;
  --muted: #9fb0a5;
  --line: #26342c;
  --accent: #7dfc9a;
  --accent-ink: #07140b;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, #1b4a2d 0, transparent 32rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

a:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}

.language {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 34px 8px 12px;
  background: var(--panel);
  color: var(--text);
}

.hero { padding: 84px 0 52px; }

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 20px);
}

.updated {
  display: inline-block;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 96px;
}

nav { align-self: start; position: sticky; top: 96px; }

nav a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

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

article section {
  scroll-margin-top: 96px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

h3 { margin: 28px 0 8px; font-size: 18px; }

p, li { color: #c4d0c8; }

li + li { margin-top: 8px; }

.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: #14251a;
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
}

.language-copy[hidden] { display: none; }

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .layout { display: block; }
  nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

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