:root {
  color-scheme: light;
  --ink: #20332b;
  --muted: #5f6e67;
  --paper: #f6f5f0;
  --surface: #ffffff;
  --brand: #325d4a;
  --accent: #5e5ce6;
  --line: #d8ded9;
  --mint: #e7f2ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
nav { display: flex; gap: 18px; align-items: center; margin-bottom: 64px; }
nav a, a { color: var(--brand); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.button { display: inline-block; padding: 12px 18px; border-radius: 12px; background: var(--brand); color: white; font-weight: 700; text-decoration: none; }
.brand { margin-right: auto; font-weight: 700; text-decoration: none; }
h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 20px; }
h2 { margin-top: 42px; }
.lede { color: var(--muted); font-size: 1.18rem; max-width: 640px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; margin: 28px 0; box-shadow: 0 8px 30px rgba(32, 51, 43, .08); }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
footer { color: var(--muted); font-size: .9rem; margin-top: 56px; }
code { background: rgba(50, 93, 74, .08); padding: .1em .35em; border-radius: 5px; }
.language-selector { position: relative; }
.language-selector summary {
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  list-style: none;
  transition: background-color 120ms ease, color 120ms ease;
  width: 40px;
}
.language-selector summary::-webkit-details-marker { display: none; }
.language-selector summary:hover,
.language-selector[open] summary { background: var(--mint); color: var(--brand); }
.language-selector summary:focus-visible { outline: 3px solid rgba(50, 93, 74, .28); outline-offset: 2px; }
.language-selector svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 20px; }
.language-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(32, 51, 43, .16);
  display: grid;
  inset-inline-end: 0;
  margin-top: 8px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  width: min(260px, calc(100vw - 40px));
  z-index: 10;
}
.language-option { border-radius: 8px; min-height: 36px; padding: 6px 10px; text-decoration: none; }
.language-option:hover { background: rgba(50, 93, 74, .07); }
.language-option[aria-current="page"] { background: var(--mint); font-weight: 700; }
@media (max-width: 620px) {
  main { padding-top: 32px; }
  nav { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .nav-links { gap: 14px; justify-content: space-between; width: 100%; }
  .language-menu { inset-inline-end: 0; }
}
