:root {
  --bg: #fbfaf7;
  --text: #1f2428;
  --muted: #5f686f;
  --line: #d8d6cf;
  --panel: #ffffff;
  --accent: #24605a;
  --accent-soft: #e9f1ef;
  --shadow: 0 1px 2px rgba(31, 36, 40, 0.05);
  color-scheme: light;
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-bottom: 0;
  padding: 4px 0;
}

.nav-github svg {
  display: block;
}

.nav-github:hover {
  color: var(--text);
  border-bottom: 0;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 88px;
}

.hero,
.page-intro {
  max-width: 820px;
}

.eyebrow,
.repo-kicker,
.feature-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 880px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
}

.page-intro h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.section-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-link,
.repo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.feature-link {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.feature-link strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.25;
}

.feature-link span:last-child {
  color: var(--muted);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.repo-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.repo-list {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.repo-card {
  min-height: 270px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.repo-card-wide {
  min-height: 0;
  padding: 28px;
}

.repo-card h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.repo-card h2 a {
  border-bottom: 1px solid transparent;
}

.repo-card h2 a:hover {
  border-color: var(--accent);
}

.repo-card p:not(.repo-kicker) {
  color: var(--muted);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f514c;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, 1120px);
    padding-top: 20px;
  }

  main {
    width: min(100% - 28px, 1120px);
    padding: 54px 0 64px;
  }

  .section-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    margin-top: 48px;
  }

  .repo-grid,
  .repo-list {
    margin-top: 40px;
  }
}
