/* Dark theme — home page. */
.theme-dark {
  background: var(--neutral-950);
  color: var(--neutral-50);
}

.theme-dark .site-nav__brand {
  color: var(--neutral-50);
}

.theme-dark .site-nav__links a {
  color: var(--neutral-300);
}

/* Hero: the SVG fills the section, title pinned to the lower-left in brand-500. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 520px;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  background-image: url("/assets/hero-code-signal-abstract.svg");
  background-size: cover;
  background-position: center;
}

.hero__title {
  position: relative;
  margin: 0;
  font: var(--type-display-lg);
  font-size: clamp(20px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brand-500);
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Section scaffolding */
.section {
  padding-block: 64px;
}

.section__title {
  font: var(--type-heading-lg);
  color: var(--neutral-50);
  margin-bottom: 28px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section__head .section__title {
  margin-bottom: 0;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Latest posts on the dark home: lightweight list, not full white cards. */
.post-list {
  display: grid;
  gap: 20px;
}

.post-teaser {
  display: block;
  padding: 24px;
  border: 1px solid var(--neutral-800);
  border-radius: var(--radius-card);
  background: var(--neutral-900);
  color: var(--neutral-50);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.post-teaser:hover {
  border-color: var(--brand-500);
}

.post-teaser__title {
  font: var(--type-heading-md);
  color: var(--neutral-50);
  margin-bottom: 6px;
}

.post-teaser__date {
  font: var(--type-body-sm);
  color: var(--brand-500);
  margin-bottom: 10px;
}

.post-teaser__blurb {
  font: var(--type-body-md);
  color: var(--neutral-400);
}

/* Brand-styled link / button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  background: var(--brand-500);
  color: var(--neutral-900);
  font: var(--type-body-md);
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  background: var(--brand-300);
}

.section__head .btn-link {
  flex: none;
}

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--neutral-800);
  color: var(--neutral-500);
  font: var(--type-body-sm);
}
