.bw-habitat {
  --bw-habitat-ink: #082b3f;
  --bw-habitat-green: #174b38;
  --bw-habitat-sage: #dce8d9;
  --bw-habitat-gold: #d7ba61;
  --bw-habitat-rust: #c65b37;
  --bw-habitat-paper: #f8f5eb;
  background: #f3f6f1;
  color: #344746;
  font-family: Inter, Arial, sans-serif;
}

.bw-habitat-shell {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.bw-habitat-hero {
  min-height: 590px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  background-image: var(--bw-habitat-hero);
  background-position: center;
  background-size: cover;
}

.bw-habitat-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 30, 39, .94), rgba(23, 75, 56, .78) 52%, rgba(23, 75, 56, .18));
}

.bw-habitat-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  align-items: end;
  position: relative;
  padding: 70px 0;
  color: #fff;
}

.bw-habitat-kicker {
  margin: 0;
  color: var(--bw-habitat-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bw-habitat-hero h1 {
  max-width: 900px;
  margin: 11px 0 16px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: .98;
}

.bw-habitat-hero-grid > div > p:not(.bw-habitat-kicker) {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, .87);
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
}

.bw-habitat-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 25px;
  padding: 13px 16px;
  background: #fff;
  color: var(--bw-habitat-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.bw-habitat-note {
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(248, 245, 235, .92);
  color: var(--bw-habitat-green);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.bw-habitat-note p,
.bw-habitat-note strong,
.bw-habitat-note span {
  display: block;
}

.bw-habitat-note p {
  margin: 0 0 8px;
  color: var(--bw-habitat-rust);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bw-habitat-note strong {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.06;
}

.bw-habitat-note span {
  margin-top: 8px;
  color: #66746e;
  font-size: 12px;
  line-height: 1.5;
}

.bw-habitat-overview,
.bw-habitat-clues,
.bw-habitat-birds,
.bw-habitat-related {
  padding: 78px 0;
}

.bw-habitat-overview {
  background: #fff;
}

.bw-habitat-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 72px;
}

.bw-habitat h2 {
  margin: 8px 0 0;
  color: var(--bw-habitat-ink);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1.06;
}

.bw-habitat-overview-grid > div:last-child {
  padding-top: 17px;
  border-top: 4px solid var(--bw-habitat-gold);
}

.bw-habitat-overview-grid p {
  margin: 0 0 16px;
  color: #657570;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

.bw-habitat-clues {
  background: #edf3ed;
}

.bw-habitat-section-heading {
  max-width: 700px;
}

.bw-habitat-clue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.bw-habitat-clue-grid article {
  padding: 24px;
  border-top: 5px solid var(--bw-habitat-green);
  background: #fff;
  box-shadow: 0 9px 20px rgba(8, 43, 63, .06);
}

.bw-habitat-clue-grid article:nth-child(2) {
  border-color: var(--bw-habitat-gold);
}

.bw-habitat-clue-grid article:nth-child(3) {
  border-color: var(--bw-habitat-rust);
}

.bw-habitat-clue-grid span {
  color: var(--bw-habitat-rust);
  font-size: 11px;
  font-weight: 900;
}

.bw-habitat-clue-grid h3 {
  margin: 12px 0 8px;
  color: var(--bw-habitat-ink);
  font-family: Georgia, serif;
  font-size: 26px;
}

.bw-habitat-clue-grid p {
  margin: 0;
  color: #697872;
  font-size: 14px;
  line-height: 1.6;
}

.bw-habitat-birds {
  background: #fff;
}

.bw-habitat-birds-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.bw-habitat-birds-heading a {
  color: var(--bw-habitat-green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.bw-habitat-bird-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bw-habitat-bird-card {
  border: 1px solid #dbe5df;
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 43, 63, .05);
}

.bw-habitat-bird-card a,
.bw-habitat-bird-image,
.bw-habitat-bird-copy,
.bw-habitat-bird-copy small,
.bw-habitat-bird-copy strong,
.bw-habitat-bird-copy em,
.bw-habitat-bird-copy b {
  display: block;
}

.bw-habitat-bird-card a {
  color: inherit;
  text-decoration: none;
}

.bw-habitat-bird-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bw-habitat-sage);
}

.bw-habitat-bird-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.bw-habitat-bird-card:hover img {
  transform: scale(1.045);
}

.bw-habitat-bird-copy {
  padding: 17px;
}

.bw-habitat-bird-copy small {
  color: var(--bw-habitat-rust);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bw-habitat-bird-copy strong {
  margin-top: 7px;
  color: var(--bw-habitat-ink);
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.04;
}

.bw-habitat-bird-copy em {
  margin-top: 5px;
  color: #788680;
  font-family: Georgia, serif;
  font-size: 14px;
}

.bw-habitat-bird-copy p {
  margin: 11px 0 0;
  color: #687771;
  font-size: 13px;
  line-height: 1.55;
}

.bw-habitat-bird-copy b {
  margin-top: 13px;
  color: var(--bw-habitat-green);
  font-size: 12px;
}

.bw-habitat-bird-copy i {
  font-style: normal;
}

.bw-habitat-related {
  background: var(--bw-habitat-ink);
}

.bw-habitat-related-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1fr);
  gap: 70px;
}

.bw-habitat-related h2 {
  color: #fff;
}

.bw-habitat-related-grid > div:last-child {
  display: grid;
}

.bw-habitat-related a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
}

.bw-habitat-related a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.bw-habitat-related span {
  color: var(--bw-habitat-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bw-habitat-related strong {
  font-family: Georgia, serif;
  font-size: 19px;
}

.bw-habitat-empty {
  padding: 20px;
  background: var(--bw-habitat-paper);
}

@media (max-width: 980px) {
  .bw-habitat-hero h1 {
    font-size: 62px;
  }

  .bw-habitat-overview-grid,
  .bw-habitat-related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .bw-habitat-shell {
    width: min(100% - 28px, 1420px);
  }

  .bw-habitat-hero {
    min-height: 630px;
  }

  .bw-habitat-hero-grid {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .bw-habitat-hero h1 {
    font-size: 50px;
  }

  .bw-habitat-hero-grid > div > p:not(.bw-habitat-kicker) {
    font-size: 18px;
  }

  .bw-habitat-note {
    width: min(100%, 280px);
  }

  .bw-habitat-overview,
  .bw-habitat-clues,
  .bw-habitat-birds,
  .bw-habitat-related {
    padding: 56px 0;
  }

  .bw-habitat h2 {
    font-size: 39px;
  }

  .bw-habitat-clue-grid,
  .bw-habitat-bird-grid {
    grid-template-columns: 1fr;
  }

  .bw-habitat-birds-heading {
    display: grid;
  }
}
