:root {
  color-scheme: light dark;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #15171a;
  --muted: #4d535a;
  --accent: #2e6e4a;
  --border: #d7dbe0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111315;
    --surface: #1c1f22;
    --text: #f5f7f9;
    --muted: #c1c7ce;
    --accent: #4d9e69;
    --border: #3d4349;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.2rem;
  border-radius: 0.15rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 0.125rem solid var(--accent);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

header,
main,
footer {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

header {
  padding-block: 2rem 1rem;
}

main {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

section,
.card {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 0.0625rem solid var(--border);
  border-radius: 0.85rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 3rem);
}

h2 {
  margin-top: 0;
}

h3 {
  margin-bottom: 0.25rem;
}

p,
ul,
ol {
  max-width: 70ch;
}

.lede,
.meta {
  color: var(--muted);
}

.language-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  list-style: none;
}

.notice {
  border-left: 0.3rem solid var(--accent);
  padding-left: 0.9rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 0.5rem 1rem;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 0.0625rem solid var(--border);
}

.data-table th {
  font-weight: 600;
}

.data-table td:last-child,
.data-table th:last-child {
  padding-right: 0;
  white-space: nowrap;
}

footer {
  padding-block: 0 2rem;
  color: var(--muted);
}

@media (forced-colors: active) {
  section,
  .card {
    border: 0.125rem solid CanvasText;
  }
}
