:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  --tech-border: rgba(0, 0, 0, 0.1);
  --tech-surface: rgba(0, 0, 0, 0.025);
  --tech-grid: rgba(0, 0, 0, 0.04);
}

main#content {
  background-image: linear-gradient(var(--tech-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
}

.section-kicker,
.section-title,
.featured-eyebrow,
.toolbox-chip,
.post-date,
.featured-card-meta {
  font-family: var(--font-mono);
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  opacity: 0.7;
  margin: 0 0 0.75rem;
}

.section-title {
  letter-spacing: -0.02em;
}

.home-mission {
  max-width: 38rem;
  margin: 0.75rem auto 0;
  opacity: 0.82;
  line-height: 1.55;
  font-size: 0.98rem;
}

.home-tagline {
  margin-bottom: 0;
}

.home-social {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.home-intro .social-icons-list {
  margin-top: 0;
}

/* Toolbox */
.toolbox-strip {
  max-width: 42rem;
  margin: 1.75rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.toolbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.toolbox-chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--tech-border);
  background: var(--tech-surface);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.toolbox-chip:hover,
a.toolbox-chip:focus-visible {
  border-color: color-mix(in srgb, currentColor 25%, var(--tech-border));
  background: color-mix(in srgb, currentColor 8%, var(--tech-surface));
  transform: translateY(-1px);
  color: inherit;
}

.toolbox-chip--static {
  opacity: 0.85;
}

/* Featured */
.home-featured,
.home-projects {
  width: min(920px, 92%);
  margin: 2rem auto 0;
}

.featured-slot {
  max-width: 720px;
  margin: 0 auto;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--tech-border);
  background: var(--tech-surface);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.featured-eyebrow {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  pointer-events: none;
}

.featured-card--post.is-external .external-badge {
  top: 12px;
  right: 12px;
}

.featured-card-link {
  display: block;
  color: inherit;
}

.featured-card-media-wrap .featured-card-media.post-image,
.featured-card-media-wrap .post-image {
  height: 220px;
  object-fit: cover;
  object-position: center 28%;
}

.featured-card--post .featured-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.featured-card--post .featured-eyebrow--inset {
  margin-bottom: 0.5rem;
}

.featured-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.featured-card-summary {
  margin: 0.65rem 0 0;
  line-height: 1.55;
  opacity: 0.88;
}

.featured-card-meta {
  font-size: 0.78rem;
  opacity: 0.65;
  margin: 0.35rem 0 0;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.project-showcase-cell {
  min-width: 0;
}

.project-showcase-cell .card {
  margin: 0 !important;
  max-width: none;
  min-width: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: left;
}

.project-card--featured {
  position: relative;
  border-width: 1.5px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.featured-eyebrow--inset {
  position: static;
  display: block;
  margin: 0 0 0.65rem;
  pointer-events: auto;
}

.project-card--featured h2 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }

  .toolbox-strip,
  .home-featured,
  .home-posts {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .toolbox-list {
    gap: 0.4rem;
    padding: 0 0.15rem;
  }

  .featured-slot {
    width: 100%;
  }

  .featured-card-media-wrap .post-image,
  .home-posts .post-image {
    height: clamp(10.5rem, 36vw, 13.75rem);
    object-fit: cover;
    object-position: center 28%;
  }

  .featured-card--post .featured-card-body {
    padding: 1.05rem 1rem 1.2rem;
  }

  .featured-card .post-title {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    line-height: 1.3;
  }

  .featured-eyebrow {
    top: 10px;
    left: 10px;
    font-size: 0.58rem;
  }
}

/* Scroll reveals */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

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