:root {
  color-scheme: light dark;
  --page: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #e9edef;
  --text: #17191a;
  --muted: #5a6266;
  --line: #d6dcdf;
  --accent: #2d5d68;
  --accent-strong: #1f4650;
  --radius: 16px;
  --shadow: 0 24px 70px rgb(44 60 66 / 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
.home-main,
.document,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

nav { display: flex; gap: 24px; }

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible { color: var(--accent); }

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px;
}

.home-main { padding: 76px 0 84px; }

.hero {
  min-height: min(660px, calc(100dvh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: center;
  gap: 80px;
}

.context {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 720;
}

.lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-icon {
  width: min(100%, 320px);
  height: auto;
  justify-self: end;
  border-radius: 24%;
  box-shadow: var(--shadow);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.fact-grid article {
  min-height: 190px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact-grid article:last-child { background: var(--surface-muted); }

.fact-grid h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.fact-grid p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.link-list {
  margin-top: 76px;
  border-top: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-list a:hover strong,
.link-list a:focus-visible strong { color: var(--accent); }

.link-list span:first-child {
  display: grid;
  gap: 3px;
}

.link-list strong { font-size: 18px; }
.link-list small { color: var(--muted); font-size: 14px; }
.link-list span:last-child { color: var(--accent); font-weight: 650; }

.document {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 88px;
  padding: 86px 0 100px;
}

.document-aside { align-self: start; position: sticky; top: 32px; }

.document-aside h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 52px);
}

.document-aside p { margin: 0; color: var(--muted); }

.language-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.language-links a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.document-body {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-body article + article {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.document-body h2 { margin-bottom: 28px; font-size: 30px; }
.document-body h3 { margin: 32px 0 10px; font-size: 20px; }
.document-body p { margin: 0 0 16px; color: var(--muted); }
.document-body ul { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.document-body li + li { margin-top: 7px; }
.document-body a { color: var(--accent); font-weight: 600; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151819;
    --surface: #1d2123;
    --surface-muted: #252b2e;
    --text: #f0f2f3;
    --muted: #b4bdc1;
    --line: #353c40;
    --accent: #8bb5be;
    --accent-strong: #b0d2d9;
    --shadow: 0 24px 70px rgb(0 0 0 / 0.28);
  }
}

@media (max-width: 767px) {
  .site-header,
  .home-main,
  .document,
  footer { width: min(100% - 32px, 1120px); }

  .site-header { min-height: 68px; gap: 18px; }
  .brand span { display: none; }
  nav { gap: 18px; }
  .home-main { padding: 42px 0 64px; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-icon { width: min(68vw, 260px); justify-self: start; }
  .fact-grid { grid-template-columns: 1fr; margin-top: 72px; }
  .fact-grid article { min-height: 0; padding: 26px; }
  .link-list { margin-top: 60px; }
  .link-list a { align-items: flex-start; padding: 22px 2px; }

  .document {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0 72px;
  }

  .document-aside { position: static; }
  .document-body { padding: 26px 22px; }
  .document-body article + article { margin-top: 48px; padding-top: 48px; }
  footer { flex-direction: column; }
}

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