:root {
  --bg: #0A1214;
  --surface: #0F1A1D;
  --rule: #1C2A2D;
  --text: #E9F1F0;
  --text-2: #8FA3A2;
  --teal: #2BC4B5;
  --teal-deep: #12615C;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal-deep); color: var(--text); }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.page { max-width: 760px; margin: 0 auto; padding: 40px 64px 96px; }
@media (max-width: 720px) { .page { padding: 24px 16px 72px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a {
  color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px;
  border: 1px solid transparent; transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { color: var(--text); border-color: var(--rule); background: var(--surface); }

h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 56px 0 8px; font-weight: 400; }
.updated { color: var(--text-2); margin: 0 0 40px; }
h2 { font-size: 20px; font-weight: 500; margin: 40px 0 10px; }
p, li { color: #C9D6D5; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.lead { font-size: 19px; color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.card p { margin: 0; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .9em; }

/* With JavaScript, only the chosen language is shown; without it, all of them stay readable. */
.js [data-lang] { display: none; }
.js [data-lang].on { display: block; }

footer { border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 24px; color: var(--text-2); display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
