:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --ink: #18212f;
  --muted: #667085;
  --line: rgba(24, 33, 47, 0.12);
  --accent: #f97316;
  --accent-dark: #c2410c;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #eef4ff 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
  min-height: 78vh;
  padding: 72px 0 52px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow,
.tag,
.card-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
}

.hero-card,
.feature-card,
.link-panel,
.timeline,
.quote-card,
.thought-grid article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.focus-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.focus-list span {
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section p {
  color: var(--muted);
}

.feature-grid,
.thought-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.thought-grid article {
  padding: 26px;
}

.feature-card h3,
.timeline h3,
.thought-grid h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.feature-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.link-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  text-decoration: none;
}

.resource-link:hover {
  outline: 2px solid rgba(37, 99, 235, 0.2);
}

.resource-link small {
  display: block;
  color: var(--muted);
}

.timeline {
  padding: 28px;
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.accent {
  padding-inline: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(37, 99, 235, 0.14));
}

.quote-card {
  padding: 28px;
}

.quote-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.thought-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .feature-grid,
  .thought-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Repositories section ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inline-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.repos-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  max-width: none;
}

.repo-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.repo-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.repo-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.repo-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(24, 33, 47, 0.08);
}

.repo-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.repo-search input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
}

.repo-search input::placeholder {
  color: var(--muted);
}

.repo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.repo-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.repo-select select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  outline: none;
}

.repo-reset {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.repo-reset:hover {
  background: var(--ink);
  color: white;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.repo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 33, 47, 0.22);
  box-shadow: 0 28px 80px rgba(24, 33, 47, 0.16);
}

.repo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.repo-card-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.repo-card-title a {
  color: var(--blue);
  text-decoration: none;
}

.repo-card-title a:hover {
  text-decoration: underline;
}

.repo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.repo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo-badge-muted {
  background: rgba(24, 33, 47, 0.08);
  color: var(--muted);
}

.repo-card-desc {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.5;
}

.repo-card-desc-empty {
  color: var(--muted);
  font-style: italic;
}

.repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.repo-topic {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
}

.repo-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.repo-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.repo-language-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.repo-stat svg {
  width: 14px;
  height: 14px;
}

.repo-updated {
  margin-left: auto;
}

.repo-skeleton {
  height: 180px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.6) 30%,
    rgba(24, 33, 47, 0.06) 50%,
    rgba(255, 255, 255, 0.6) 70%
  );
  background-size: 200% 100%;
  animation: repo-shimmer 1.4s linear infinite;
}

.repo-grid.is-loading .repo-card {
  display: none;
}

@keyframes repo-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.repo-empty,
.repo-error {
  margin: 12px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.repo-error {
  border-style: solid;
  border-color: rgba(194, 65, 12, 0.4);
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent-dark);
}

@media (max-width: 820px) {
  .repos-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .repo-filters {
    width: 100%;
  }

  .repo-select {
    flex: 1 1 140px;
  }

  .repo-reset {
    flex: 1 1 100%;
  }

  .repo-updated {
    margin-left: 0;
  }
}
