:root {
  color-scheme: light;
  --background: #f4f1e9;
  --surface: #fffdf8;
  --ink: #18231f;
  --muted: #52615b;
  --line: #cbd2ca;
  --accent: #176b5b;
  --accent-strong: #0c5144;
  --focus: #bd4d00;
  --max-width: 70rem;
  --text-width: 46rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

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

.site-header,
.site-footer {
  background: var(--surface);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.main-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 740;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav ul,
.language-nav ul,
.page-links,
.language-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.language-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.language-nav a {
  color: var(--accent-strong);
}

main {
  min-height: 65vh;
}

.main-inner {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero,
.prose {
  max-width: var(--text-width);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

p,
ul,
dl {
  max-width: 68ch;
}

.lede {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.language-entry {
  gap: 1rem;
  margin-top: 2rem;
}

.language-entry a,
.contact-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 2px solid var(--accent-strong);
  border-radius: 0.65rem;
  background: var(--surface);
  font-weight: 720;
  text-decoration: none;
}

.language-entry a:hover,
.contact-link:hover {
  background: #e7f2ed;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.section-grid > section,
.content-section {
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.section-grid > section {
  padding: 1.25rem;
  border-radius: 0 0 0.55rem 0.55rem;
}

.content-section {
  margin-top: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-section:first-of-type {
  margin-top: 2.75rem;
}

.content-section > :last-child,
.section-grid > section > :last-child {
  margin-bottom: 0;
}

.fact-list {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 1.5rem;
}

.fact-list dt,
.fact-list dd {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  padding-right: 1rem;
  font-weight: 720;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--focus);
  background: #fff7eb;
}

.source-credit {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1.5rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 45rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }

  .fact-list dt {
    padding-bottom: 0.15rem;
    border-bottom: 0;
  }

  .fact-list dd {
    padding-top: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .skip-link,
  .site-nav,
  .language-nav {
    display: none;
  }

  html,
  .site-header,
  .site-footer,
  .content-section,
  .section-grid > section {
    background: #fff;
  }
}
