/* ============ RESET & BASE ============ */

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

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --text: #e6edf3;
  --text-muted: #9ea7b0;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --border: #30363d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ============ LAYOUT ============ */

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ============ NAV ============ */

.site-nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

/* ============ HERO ============ */

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

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

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--accent-hover);
}

/* ============ TYPOGRAPHY ============ */

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section p {
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ============ CARD GRID ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.section-alt .card {
  background: var(--bg);
}

/* ============ SKIP TO CONTENT ============ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
  text-decoration: none;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============ QUOTES ============ */

.quotes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

/* ============ SECONDARY LINKS ============ */

.secondary-links {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* ============ GET INVOLVED ============ */

#get-involved {
  text-align: center;
}

#get-involved p {
  margin-left: auto;
  margin-right: auto;
}

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

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* ============ SUBPAGE HEADER ============ */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ============ PROSE ============ */

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-style: normal;
}

/* ============ EVENTS ============ */

.event-date {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

#events-empty {
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 640px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  blockquote {
    font-size: 1.1rem;
  }
}
