:root {
  --ink: #17202a;
  --muted: #5d6b7a;
  --soft: #eef4f8;
  --panel: #ffffff;
  --line: #d9e4ec;
  --blue: #2f6f9f;
  --green: #4f8a70;
  --bg: #f7fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 111, 159, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
}

a {
  color: inherit;
}

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

.container {
  max-width: 1140px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark,
.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--blue);
  background: #fff;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--blue);
}

.hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.hero-copy {
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cfe0dc;
  border-radius: 999px;
  background: #eef7f3;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 750;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: #255a82;
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.project-card:hover {
  border-color: #b6c9d8;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1rem;
  margin-bottom: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
  overflow: hidden;
}

.feature-strip div {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
}

.metric,
.label {
  display: block;
}

.metric {
  font-size: 1.05rem;
  font-weight: 800;
}

.label {
  margin-top: 0.35rem;
  color: var(--muted);
}

.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  min-height: 17rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(40, 66, 88, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(40, 66, 88, 0.10);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.language-list {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.language,
.resource-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

.language .fa-python {
  color: #3776ab;
}

.language .fa-rust {
  color: #7b4b2a;
}

.language .fa-js,
.resource-kind .fa-js {
  color: #f7df1e;
}

.language .fa-typescript {
  color: #3178c6;
}

.resource-kind {
  color: var(--green);
}

.project-card h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.project-card p {
  min-height: 5.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-link {
  color: var(--blue);
  font-weight: 800;
}

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

.resource-card {
  min-height: 14rem;
}

.resource-card p {
  min-height: 3.9rem;
}

.site-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

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

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 20% -4rem, rgba(47, 111, 159, 0.10), transparent 18rem),
      linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark,
  .project-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }

  .eyebrow {
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .eyebrow i {
    width: 1.75rem;
    height: 1.75rem;
  }

  h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.35rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.75rem 1rem;
  }

  .section-block {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .feature-strip,
  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    gap: 0.85rem;
  }

  .project-card,
  .resource-card {
    min-height: 0;
    padding: 1rem;
    border-radius: 0.9rem;
    box-shadow: 0 10px 26px rgba(40, 66, 88, 0.055);
  }

  .project-card:hover {
    transform: none;
  }

  .card-topline {
    gap: 0.75rem;
  }

  .language-list {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .language,
  .resource-kind {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.9rem;
  }

  .project-card h3 {
    margin: 1rem 0 0.55rem;
    font-size: 1.18rem;
  }

  .project-card p,
  .resource-card p {
    min-height: 0;
    margin-bottom: 1rem;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .card-link {
    font-size: 0.95rem;
  }

  .site-footer {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  .site-nav a {
    font-size: 0.86rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .project-card,
  .resource-card {
    padding: 0.9rem;
  }
}
