:root {
  --bg: #173825;
  --surface: #0f2a1b;
  --fg: #f5f2e6;
  --muted: #b8cbbc;
  --accent: #f47a1f;
  --accent-text: #f8a366;
  --focus: #ffb27a;
  --rule: #4f6d5a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--fg);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }
.page { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem; }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.language-switch a { min-width: 36px; min-height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--fg); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.language-switch a:hover { color: var(--accent-text); }
.language-switch a[aria-current="true"], .language-switch a[aria-current="true"]:hover { color: var(--surface); background: var(--accent-text); }
.crumbs { flex-basis: 100%; }
.brand { color: var(--fg); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.brand span { color: var(--accent-text); }
.crumbs ol { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; }
p, ul, ol, dl, table, pre { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
.lead { font-size: 1.15rem; color: var(--fg); }
.meta { color: var(--muted); font-size: 0.95rem; }
.note {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}
.note p:last-child { margin-bottom: 0; }
dt { font-weight: 600; }
dd { margin: 0 0 0.75rem; color: var(--fg); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
th, td { border: 1px solid var(--rule); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
thead th { background: var(--surface); }
pre {
  background: var(--surface);
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.email { font-size: 1.25rem; font-weight: 600; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; }
  .note, pre, thead th { background: #fff; border-color: #000; }
}

@media (forced-colors: active) { .language-switch a[aria-current="true"] { text-decoration: underline; } }
