:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #e8e2d4;
  --ink: #1b211d;
  --muted: #596158;
  --rule: #c9c2b4;
  --accent: #0a6655;
  --accent-dark: #074a3e;
  --white: #fffdf7;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(27, 33, 29, .035) 49.8% 50.2%, transparent 50.3%),
    var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .85rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 241, 232, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

nav { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; }
nav a {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

main { width: min(100% - 2.5rem, 920px); margin: 0 auto; }

.intro {
  min-height: min(74vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}

.eyebrow, .section-number, .updated {
  color: var(--accent-dark);
  font-family: "Trebuchet MS", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; }
h1 { max-width: 760px; margin: .3rem 0 1.5rem; font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 400; }
h2 { margin: 0 0 2.75rem; font-size: clamp(2.15rem, 6vw, 4rem); font-weight: 400; }
h3 { margin: 2.5rem 0 .5rem; font-family: "Trebuchet MS", sans-serif; font-size: 1.05rem; }

.lede { max-width: 700px; margin: 0; color: #343c35; font-size: 1.35rem; }
.updated { margin-top: 2.25rem; color: var(--muted); }

section:not(.intro) { padding: 6rem 0; border-bottom: 1px solid var(--rule); }
.section-number { margin: 0 0 .5rem; }
p, ul, dl { max-width: 760px; }
li + li { margin-top: .75rem; }

.facts { margin-top: 2rem; }
.facts div { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-family: "Trebuchet MS", sans-serif; font-size: .85rem; font-weight: 700; }
.facts dd { margin: 0; }

.document-link, .contact a {
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.contact { font-size: clamp(1.35rem, 5vw, 2.5rem); overflow-wrap: anywhere; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2.5rem, 920px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: .8rem;
}

footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  nav { gap: .3rem 1rem; }
  .intro { min-height: 64vh; }
  section:not(.intro) { padding: 4rem 0; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  footer { flex-direction: column; gap: .75rem; }
  .language-choices { grid-template-columns: 1fr; }
}

.language-link {
  min-width: 2.2rem;
  padding: .2rem .45rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Trebuchet MS", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.translation-note { max-width: 700px; margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.language-page main { width: min(100% - 2.5rem, 1060px); }
.language-intro { min-height: 100vh; border-bottom: 0; }
.language-intro h1 span { color: var(--muted); }
.language-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(100%, 700px); margin-top: 2.5rem; }
.language-choices a { display: flex; flex-direction: column; min-height: 8rem; justify-content: space-between; padding: 1.35rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.language-choices a:hover { background: var(--white); color: var(--accent-dark); }
.language-choices strong { font-family: "Trebuchet MS", sans-serif; font-size: 1.35rem; }
.language-choices span { color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .language-choices { grid-template-columns: 1fr; }
}

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