:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #1f6feb;
  --border: #e3e3df;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.nav {
  display: flex;
  gap: 22px;
}

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

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

main.container {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.25;
}

.hero p {
  color: var(--muted);
  margin-bottom: 10px;
  max-width: 62ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.link:hover {
  text-decoration: underline;
}

.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.page h1 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.page h2 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
}

.page p {
  margin-bottom: 12px;
  max-width: 70ch;
}

.page a {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .container {
  height: 60px;
  display: flex;
  align-items: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .hero, .page {
    padding: 26px 20px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .nav {
    gap: 14px;
  }
}
