:root {
  color-scheme: light;
  --bg: #fbfbf7;
  --surface: #ffffff;
  --text: #1c211a;
  --muted: #60675c;
  --border: #e3e4dc;
  --accent: #48683f;
  --accent-strong: #2f4d2a;
  --accent-soft: #eef5e9;
  --shadow: 0 20px 60px rgba(32, 41, 28, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

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

.site-header,
.site-footer {
  margin: 0 auto;
  max-width: 920px;
  padding: 28px 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.site-nav a,
.locale-switcher a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.locale-switcher a:hover,
.locale-switcher a[aria-current="true"] {
  color: var(--accent-strong);
}

.locale-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: flex-end;
}

.locale-switcher a {
  font-size: 13px;
}

.page {
  margin: 0 auto;
  max-width: 920px;
  padding: 28px 24px 64px;
}

.home {
  display: grid;
  min-height: calc(100vh - 174px);
  place-items: center;
}

.home-panel,
.document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-panel {
  max-width: 700px;
  padding: 42px;
}

.home-panel.wide {
  max-width: 860px;
}

.home-panel h1,
.document h1 {
  font-size: clamp(32px, 6vw, 58px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 18px;
}

.home-panel p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

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

.language-section h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.link-list li {
  list-style: none;
}

.link-list a {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #d8e8ce;
  border-radius: var(--radius);
  color: var(--accent-strong);
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  padding: 15px 16px;
  text-decoration: none;
}

.link-list a::after {
  content: ">";
  font-size: 18px;
  line-height: 1;
}

.document {
  padding: clamp(24px, 5vw, 56px);
}

.document-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
  padding-bottom: 24px;
}

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

.document h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 38px 0 12px;
}

.document h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.document p,
.document li {
  font-size: 16px;
}

.document p {
  margin: 0 0 14px;
}

.document ul,
.document ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.document li + li {
  margin-top: 6px;
}

.document strong {
  font-weight: 700;
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .locale-switcher {
    justify-content: flex-start;
  }

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

  .home-panel {
    padding: 28px;
  }

  .document {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page {
    padding-left: 0;
    padding-right: 0;
  }

  .home {
    padding-left: 20px;
    padding-right: 20px;
  }
}
