/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f172a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg-white: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #f1f5f9;
    --bg-white: #0f1419;
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e293b;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
}

.muted {
  color: var(--text-muted);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.inline-link {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.inline-link:hover {
  border-bottom-color: var(--accent-hover);
}

.divider {
  color: var(--border);
  margin: 0 0.5rem;
}

/* Main Container */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
}

.hero-card h1 {
  margin-bottom: 0.5rem;
}

.hero-card .muted {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Card Sections */
.card {
  margin-bottom: 3rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 10%, var(--border));
}

.card h2 {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .card {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0 1.5rem;
  }

  .hero-card .muted {
    font-size: 0.95rem;
  }

  .card {
    margin-bottom: 2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .site-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    font-size: 0.85rem;
  }
}
