/* Base style */

body {
  background-color: #fffdf6;
  color: #1f2a33;
  font-size: 1.05rem;
  line-height: 1.65;
}

html,
body {
  overflow-x: clip;
}

/* Navbar */

.navbar {
  background-color: #fffdf6;
  border-bottom: 1px solid #e7dfcf;
}

.navbar-title {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Homepage hero */

.home-hero {
  margin-inline: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbf3d9 0%, #e5f2f5 58%, #f4eee8 100%);
  border-bottom: 1px solid #ded8cb;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.68;
  background: url("assets/images/hero-network.svg") center top / cover no-repeat;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
  gap: 3.5rem;
}

.hero-copy h1 {
  margin: 0.35rem 0 1.25rem;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #183342;
}

.hero-copy p {
  max-width: 760px;
}

.hero-eyebrow {
  color: #315f72;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow p,
.hero-lead p,
.hero-actions p {
  margin: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.38;
  color: #274955;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(31, 42, 51, 0.18);
}

/* Homepage sections */

.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}

.home-section > h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  color: #183342;
}

.home-section > p {
  max-width: 880px;
  font-size: 1.12rem;
}

.topic-tags,
#title-block-header .quarto-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-bottom: 0;
}

.topic-tag,
#title-block-header .quarto-category {
  display: inline-block;
  padding: 0.42rem 0.82rem;
  border: 1px solid #c7d8dc;
  border-radius: 999px;
  background-color: #edf6f7;
  color: #2f5f6e;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  opacity: 1;
}

/* Category links inherit the shared keyword label weight. */
.topic-tag a,
#title-block-header .quarto-category a {
  font-weight: inherit;
}

/* Reflection header: separate post metadata from the opening paragraph. */
#title-block-header.reflection-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #3e7286;
}

/* Content width */

main.content {
  max-width: 1100px;
}

/* Feature cards */

.feature-grid,
.node-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.node-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card,
.node-card {
  padding: 1.4rem;
  border: 1px solid #e2d8c7;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 42, 51, 0.06);
}

.feature-card h3,
.node-card h3 {
  margin-top: 0;
}

/* Node cards */

.node-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(31, 42, 51, 0.11);
}

.node-card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  font-weight: 600;
}

.node-one {
  border-top: 8px solid #3e7286;
}

.node-two {
  border-top: 8px solid #b99b4a;
}

.node-three {
  border-top: 8px solid #7a8f6a;
}

.node-four {
  border-top: 8px solid #9d6f7f;
}

.node-five {
  border-top: 8px solid #6d7f99;
}

/* Buttons */

.btn {
  margin: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
}

.btn-primary {
  background-color: #3e7286;
  border-color: #3e7286;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: #3e7286;
  color: #3e7286;
}

.selected-work {
  margin-top: 4rem;
  margin-bottom: 4.5rem;
  padding: 3rem;
  border: 1px solid #e2d8c7;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(31, 42, 51, 0.06);
}

@media (max-width: 767.98px) {
  .home-hero::after {
    opacity: 0.45;
    background-position: 52% top;
  }

  .home-hero-inner {
    padding: 3.5rem 1.25rem 4rem;
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-photo img {
    width: min(78vw, 330px);
  }

  .home-section {
    padding: 3.25rem 1rem 0.5rem;
  }

  .selected-work {
    margin: 3rem 1rem;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node-card {
    transition: none;
  }
}

/* Footer */

.nav-footer {
  border-top: 1px solid #e7dfcf;
  background-color: #fffdf6;
}
