:root {
  color-scheme: light dark;
  --background: #f8f7f3;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #20211e;
  --muted: #686a63;
  --line: rgba(32, 33, 30, 0.1);
  --accent: #5a6548;
  --accent-soft: rgba(90, 101, 72, 0.11);
  --shadow: 0 20px 60px rgba(64, 68, 53, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(184, 199, 158, 0.36), transparent 31rem),
    radial-gradient(circle at 96% 16%, rgba(200, 117, 85, 0.15), transparent 28rem),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(64, 68, 53, 0.2);
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: 82px 0 60px;
  text-align: center;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero > p:not(.eyebrow) {
  max-width: 650px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

.card,
.document {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card {
  padding: 30px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 101, 72, 0.38);
}

.card h2 {
  margin: 0 0 8px;
}

.card p,
.updated {
  color: var(--muted);
}

.document {
  margin: 36px 0 80px;
  padding: clamp(26px, 6vw, 64px);
}

.document h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
}

.document h2 {
  margin-top: 2.2em;
  line-height: 1.2;
}

.language-block + .language-block {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
}

footer {
  padding: 0 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

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

  .card {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161714;
    --surface: rgba(32, 33, 30, 0.88);
    --text: #f4f3ed;
    --muted: #b4b5ae;
    --line: rgba(244, 243, 237, 0.1);
    --accent: #b8c79e;
    --accent-soft: rgba(184, 199, 158, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
}

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

  nav {
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .hero {
    padding-top: 44px;
  }

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