:root {
  color-scheme: light dark;
  --background: #f7f5f0;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5f625f;
  --border: #ddd8ce;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --shadow: 0 18px 50px rgba(24, 24, 24, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111312;
    --surface: #1b1f1d;
    --text: #f3f2ed;
    --muted: #b6b8b2;
    --border: #303732;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header,
.site-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.nav a:hover {
  color: var(--text);
}

.language-switch {
  margin-bottom: 24px;
}

.language-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.hero,
.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 52px;
}

.narrow {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 40px 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

p,
li {
  color: var(--muted);
}

.lead {
  max-width: 740px;
  margin: 20px 0 0;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.tile {
  display: block;
  min-height: 170px;
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.tile span {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.tile h2 {
  margin-top: 18px;
}

.document {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 64px;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.document h1 {
  font-size: clamp(34px, 6vw, 52px);
}

.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--background);
  background: var(--accent-strong);
  border-radius: 8px;
  text-decoration: none;
}

.site-footer {
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

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

  .hero {
    padding-top: 48px;
  }

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

  .document {
    padding: 28px 20px;
  }
}
