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

html {
  scroll-behavior: smooth;
}

body {
  /* Make the page a column flex container so footer can be pushed to bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background-color: #f5f7fa;
}

/* Layout helpers */
.container {
  /* Responsive max width: scales with viewport but caps at 1200px */
  max-width: clamp(720px, 92vw, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: #111827;
  color: #f9fafb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Ensure main grows to fill available vertical space */
main {
  flex: 1 0 auto;
}

.site-header .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav {
  /* keep nav aligned to the bottom of the header on larger screens */
  align-self: flex-end;
  padding-bottom: 0.1rem; /* sensible spacing from header bottom */
}

/* Active / current nav link styling */
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background-color: rgba(255,255,255,0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.brand h1 {
  font-size: 1.5rem;
}

/* Make the brand clickable without changing visual style */
.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}
.brand-link:focus {
  outline: 2px solid rgba(37,99,235,0.3);
  outline-offset: 2px;
}

.tagline {
  font-size: 0.875rem;
  opacity: 0.8;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 4rem 0 2.5rem;
}

.hero-text h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

/* Button */
.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background-color: #2563eb;
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.button:hover {
  background-color: #1d4ed8;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #e5e7eb;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.section p {
  margin-bottom: 0.8rem;
}

/* Lists */
.item-list {
  list-style: none;
  margin-top: 0.5rem;
}

.item-list li {
  margin-bottom: 0.6rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 960px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  /* On narrow screens the nav stacks below the brand; remove bottom padding */
  .site-nav {
    margin-top: 0.5rem;
    align-self: auto;
    padding-bottom: 0;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    padding-top: 3rem;
  }
}
