:root {
  color-scheme: light dark;
  --bg: #f7f8f5;
  --text: #172018;
  --muted: #526056;
  --panel: #ffffff;
  --border: #d9ded7;
  --accent: #2f6f4e;
  --accent-dark: #1f4f37;
}

* {
  box-sizing: border-box;
}

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.brand-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

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

nav a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main {
  display: grid;
  gap: 18px;
}

.hero,
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

h1,
h2,
h3 {
  color: var(--text);
}

h2 {
  margin: 0 0 8px;
}

p,
ul {
  margin-top: 0;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111612;
    --text: #eff5ed;
    --muted: #b8c5bb;
    --panel: #1a211c;
    --border: #344238;
    --accent: #66a979;
    --accent-dark: #93d3a5;
  }
}

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