:root {
  color-scheme: light dark;
  --ink: #162019;
  --muted: #5b695f;
  --paper: #f3f6f2;
  --panel: #ffffff;
  --line: #d9e2da;
  --leaf: #17653a;
  --leaf-deep: #0b4526;
  --leaf-soft: #e8f4eb;
  --draft: #78520b;
  --draft-bg: #fff7dc;
  --shadow: 0 16px 42px rgb(24 58 34 / 9%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf5ef;
    --muted: #afc1b3;
    --paper: #0d1510;
    --panel: #152019;
    --line: #34463a;
    --leaf: #82d99f;
    --leaf-deep: #b7edc8;
    --leaf-soft: #1d3827;
    --draft: #ffd985;
    --draft-bg: #3a2d12;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  font: 100%/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

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

body {
  color: var(--ink);
  margin: 0;
}

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--leaf);
  outline-offset: 4px;
}

.site-shell {
  margin: 0 auto;
  max-width: 70rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 1.5rem;
}

.brand {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.top-nav,
.language-nav,
.card-links,
.site-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.top-nav a,
.language-nav a {
  font-weight: 650;
}

.top-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero,
.content-page,
.facts,
.link-grid {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero {
  background:
    radial-gradient(circle at 90% 10%, var(--leaf-soft), transparent 42%),
    var(--panel);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.card-label {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 13ch;
}

.content-page h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
  margin-top: 1.8rem;
}

p,
li,
dd,
dt {
  font-size: 1rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  max-width: 46rem;
}

.release-status,
.draft-notice {
  background: var(--draft-bg);
  border-left: 0.3rem solid var(--draft);
  color: var(--draft);
  margin: 1.5rem 0 0;
  max-width: 50rem;
  padding: 0.85rem 1rem;
}

.link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.card h2 {
  margin: 0;
}

.card p:not(.card-label),
.meta {
  color: var(--muted);
}

.card-links a {
  background: var(--leaf-soft);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

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

.facts h2 {
  margin-top: 0;
}

.facts-grid {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facts-grid h3 {
  margin-bottom: 0.35rem;
}

.facts-grid p {
  color: var(--muted);
  margin-top: 0;
}

.content-page {
  margin: 0 auto;
  max-width: 58rem;
}

.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.meta {
  font-size: 1.1rem;
  margin: 0.4rem 0;
}

.language-nav {
  margin-top: 1rem;
}

.language-section {
  scroll-margin-top: 1rem;
}

.language-section > h2 {
  border-top: 1px solid var(--line);
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
}

.contact-card,
.policy-details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.2rem;
}

.contact-card p {
  margin: 0;
}

.safety-callout {
  background: var(--leaf-soft);
  border-radius: 0.8rem;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
}

.safety-callout h3 {
  margin-top: 0;
}

.safety-callout p {
  margin-bottom: 0;
}

.policy-details div {
  min-width: 0;
}

.policy-details dt {
  color: var(--muted);
  font-weight: 700;
}

.policy-details dd {
  margin: 0.2rem 0 0;
}

code {
  overflow-wrap: anywhere;
}

.site-footer {
  color: var(--muted);
  justify-content: space-between;
  padding: 1.5rem 0 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 44rem) {
  .link-grid,
  .facts-grid,
  .contact-card,
  .policy-details {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .site-shell {
    max-width: none;
    padding: 0;
  }

  main {
    border: 0;
    box-shadow: none;
  }

  .top-nav,
  .language-nav {
    display: none;
  }
}

/* Public operator details appear once, in the privacy policy only. */
.operator-contact {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 2.5rem;
  overflow-wrap: anywhere;
  padding-top: 1rem;
}

.operator-contact h2 {
  font-size: 1em;
  margin: 0 0 0.5rem;
}

.operator-contact address {
  font-style: normal;
}
