@font-face {
  font-family: "Nunito";
  src: url("../assets/assets/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f2f5f2;
  --surface: #fffefb;
  --text: #202a27;
  --muted: #56645f;
  --accent: #113f39;
  --border: #d7deda;
  --focus: #113f39;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.7;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding: 12px 16px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img { display: block; flex: none; }

.language-nav { display: flex; flex-wrap: wrap; gap: 4px; }

.language-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
}

main, footer { max-width: 72ch; margin: 0 auto; }

.page-intro { padding: clamp(36px, 6vw, 72px) 0 32px; }

.eyebrow, .updated { color: var(--muted); }
.eyebrow { margin: 0 0 12px; font-weight: 700; }
.updated { margin: 20px 0 0; font-size: 0.9375rem; }

h1, h2, h3 {
  color: var(--accent);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { margin: 0; font-size: clamp(2rem, 1.2rem + 3vw, 3rem); font-weight: 800; }
h1 span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.7em; font-weight: 650; }
h2 { margin: 0; font-size: 1.5rem; }
h3 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 16px; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }

article {
  padding: 28px 0 52px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.language-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.language-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.lead { font-size: 1.125rem; font-weight: 650; }
section { margin-top: 36px; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0 max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

footer a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 0.3em; min-height: 44px; }

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1816;
    --surface: #151f1d;
    --text: #f2f5f1;
    --muted: #b5c0bb;
    --accent: #91d0bd;
    --border: #354641;
    --focus: #f0a17e;
    line-height: 1.75;
  }
}

@media print {
  :root { color-scheme: light; background: white; color: black; }
  body { padding: 0; }
  .site-header, .skip-link, footer, .language-heading a { display: none; }
  .page-intro { padding-top: 0; }
  article + article { break-before: page; }
  h1, h2, h3, a, .eyebrow, .updated, h1 span { color: black; }
  h2, h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
