:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5d6678;
  --accent: #1768d5;
  --border: #dce2ec;
  --shadow: 0 16px 45px rgba(29, 46, 76, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1420;
    --surface: #181f2e;
    --text: #f2f5fb;
    --muted: #b6bfd0;
    --accent: #77adff;
    --border: #313b4e;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

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

.shell { width: min(100% - 2rem, 780px); margin-inline: auto; }

header { padding: 1.25rem 0; }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
}

.brand { color: var(--text); font-size: 1.1rem; font-weight: 760; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.15rem; }

main { padding: 2.5rem 0 4rem; }

.hero, .document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

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

h1, h2 { line-height: 1.18; }
h1 { margin: 0.25rem 0 1rem; font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -0.035em; }
h2 { margin-top: 2.3rem; font-size: 1.35rem; }
h3 { margin-top: 1.5rem; }
p, li { color: var(--muted); }
strong { color: var(--text); }

.lead { max-width: 58ch; font-size: 1.1rem; }

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

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
}

.card strong { display: block; margin-bottom: 0.35rem; }
.card span { color: var(--muted); }

.language { margin: 0 0 1.4rem; font-size: 0.93rem; }
.language a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }

.notice {
  border-left: 0.25rem solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem 0.75rem 0.75rem 0.25rem;
}

footer { padding: 0 0 3rem; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 580px) {
  .cards { grid-template-columns: 1fr; }
  main { padding-top: 1rem; }
}
