:root {
  color-scheme: light dark;
  --bg: #fdfdfd;
  --fg: #1d1d1f;
  --accent: #3c7dd9;
  --accent-dark: #2a5aa0;
  --muted: #646b79;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101218;
    --fg: #f5f5f7;
    --accent: #6ca6ff;
    --accent-dark: #89b9ff;
    --muted: #a0a7b6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  border-bottom: 1px solid rgba(100, 107, 121, 0.15);
  background: rgba(253, 253, 253, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--fg);
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--accent);
}

.site-main .wrapper {
  padding: 3rem 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--accent-dark);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 3rem;
}

.feature-grid article {
  border: 1px solid rgba(100, 107, 121, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(16, 18, 24, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .feature-grid article {
    background: rgba(16, 18, 24, 0.6);
    border-color: rgba(160, 167, 182, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

.feature-grid article:hover,
.feature-grid article:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(16, 18, 24, 0.15);
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.page-body {
  margin-top: 1.5rem;
}

.page-body p {
  margin-bottom: 1rem;
}

.intro {
  border-top: 1px solid rgba(100, 107, 121, 0.15);
  padding-top: 2rem;
  color: var(--muted);
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.page-list li {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(100, 107, 121, 0.15);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

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