:root {
  color-scheme: dark;
  --ink: #f3efe4;
  --muted: #a9b8b3;
  --bg: #07100e;
  --panel: #0d1c18;
  --line: #29463e;
  --gold: #e3c468;
  --felt: #17644f;
  --warning: #ffdda0;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(23, 100, 79, .3), transparent 38rem),
    linear-gradient(180deg, #091512 0%, var(--bg) 70%);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(227, 196, 104, .16);
  background: rgba(7, 16, 14, .92);
  backdrop-filter: blur(14px);
}

.site-header > div,
.shell,
.site-footer {
  width: min(100% - 32px, 820px);
  margin-inline: auto;
}

.site-header > div {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img { width: 36px; height: 36px; }
.language-link { font-size: .88rem; font-weight: 700; }

.shell { padding-block: clamp(38px, 7vw, 74px); }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: .35rem 0 .75rem; font-size: clamp(2rem, 7vw, 3.8rem); line-height: 1.06; letter-spacing: -.045em; }
.lede { max-width: 66ch; margin: 0; color: var(--muted); font-size: 1.06rem; }
.revision { display: block; margin-top: 16px; color: var(--muted); font-size: .88rem; }

.release-blocker {
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 221, 160, .45);
  border-radius: 14px;
  color: var(--warning);
  background: rgba(101, 69, 15, .22);
}

.document-nav,
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.document-nav a,
.language-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 28, 24, .84);
  text-align: center;
  font-weight: 750;
  text-decoration: none;
}

.language-card { min-height: 130px; flex-direction: column; gap: 4px; }
.language-card strong { color: var(--ink); font-size: 1.25rem; }
.language-card span { color: var(--muted); font-size: .9rem; }
.document-nav a[aria-current="page"] { border-color: var(--gold); color: var(--ink); }

article { margin-top: 38px; }
section { padding: 24px 0; border-top: 1px solid rgba(41, 70, 62, .7); }
h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 4vw, 1.55rem); line-height: 1.25; }
p, ul { max-width: 72ch; }
li + li { margin-top: 7px; }
code { color: var(--warning); }

.site-footer {
  padding: 26px 0 44px;
  border-top: 1px solid rgba(41, 70, 62, .7);
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 620px) {
  .document-nav { grid-template-columns: 1fr; }
  .language-grid { grid-template-columns: 1fr; }
  .site-header > div { min-height: 58px; }
  .shell { padding-top: 34px; }
}

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