:root {
  color-scheme: light dark;
  --background: #f5f7f7;
  --surface: #ffffff;
  --text: #1e2933;
  --muted: #51606c;
  --border: #d6dde1;
  --accent: #176b5a;
  --accent-dark: #0e4e42;
  --focus: #b45309;
  --shadow: 0 0.5rem 1.25rem rgba(23, 42, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.16em;
}

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

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

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: -5rem;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  color: #ffffff;
  background: var(--accent-dark);
}

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

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

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-decoration: none;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

nav a {
  white-space: nowrap;
}

main {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.hero {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.18;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 2.3rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 36rem;
  margin: 1.1rem 0;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.hero > p:not(.eyebrow):not(.lead),
.legal > p,
.legal li {
  max-width: 49rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 2px solid var(--accent-dark);
  border-radius: 0.35rem;
  color: #ffffff;
  background: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  color: var(--accent-dark);
  background: transparent;
}

.button-secondary:hover {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.2rem, 5vw, 4rem);
}

.cards article,
.plain-section {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cards h2,
.plain-section h2 {
  margin-top: 0;
  font-size: 1.18rem;
}

.cards p,
.plain-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.plain-section {
  max-width: 48rem;
  margin-top: 1.25rem;
}

.link-list {
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.legal {
  max-width: 58rem;
}

.legal h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.legal h2 {
  padding-top: 0.5rem;
}

.legal ul,
.legal ol {
  max-width: 52rem;
  padding-left: 1.4rem;
}

.updated,
.language-note {
  color: var(--muted);
}

.language-note {
  margin-top: 2.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 44rem) {
  .header-content,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101718;
    --surface: #172123;
    --text: #edf4f2;
    --muted: #bdcbc7;
    --border: #40504d;
    --accent: #73cbb6;
    --accent-dark: #a0e5d2;
    --focus: #f6bd60;
    --shadow: none;
  }

  .button {
    color: #10211d;
    background: var(--accent-dark);
  }

  .button:hover {
    color: #10211d;
    background: var(--accent);
  }

  .button-secondary {
    color: var(--accent-dark);
    background: transparent;
  }

  .button-secondary:hover {
    color: var(--accent-dark);
    background: #243c37;
  }
}
