.habitability {
  max-width: 1120px;
  padding-bottom: 4rem;
}
.habitat-intro {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}
.habitat-intro h1 {
  font: 500 clamp(2.1rem, 6.5vw, 4.5rem)/1.05 var(--serif);
  margin: .25em 0 .4em;
}
.habitat-intro > p:not(.eyebrow) {
  max-width: 63ch;
  font-size: clamp(1rem, 2vw, 1.23rem);
  color: var(--muted);
}
.habitat-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.45rem;
  margin-top: 1.4rem;
}
.habitat-jump a,
.habitat-section p a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.habitat-jump a:hover,
.habitat-section p a:hover {
  color: var(--paper);
}
.habitat-section {
  padding: clamp(2rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.habitat-section h2 {
  font: 500 clamp(1.75rem, 4vw, 2.65rem)/1.13 var(--serif);
  margin: 0 0 .65em;
}
.habitat-section h3 {
  font: 500 clamp(1.35rem, 2.5vw, 1.7rem)/1.18 var(--serif);
  margin: 1.8rem 0 .4em;
}
.habitat-section p {
  max-width: 75ch;
  margin: .75rem 0;
}
.habitat-photo, .habitat-transect {
  margin: 1.5rem 0;
}
.habitat-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.habitability figcaption {
  margin-top: .58rem;
  color: var(--muted);
  font-size: .88rem;
}
.habitat-cards, .habitat-stages {
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: .85rem;
}
.habitat-cards li, .habitat-stages li {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #191611;
}
.habitat-cards strong, .habitat-stages strong {
  display: block;
  font: 600 1.13rem/1.25 var(--serif);
  color: var(--gold);
  margin-bottom: .45rem;
}
.habitat-cards span, .habitat-stages li > span {
  display: block;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.45;
}
.habitat-cut {
  --sea: 52%;
  --rise: 0%;
  overflow: hidden;
  position: relative;
  height: clamp(6.5rem, 12vw, 8rem);
  margin: 0 0 .85rem;
  isolation: isolate;
  border: 1px solid #504d43;
  background: linear-gradient(#213243, #464d50);
}
.habitat-cut--shallow {
  --sea: 42%;
  --rise: -20%;
}
.habitat-cut--exposed {
  --sea: 41%;
  --rise: -37%;
}
.habitat-water, .habitat-rock, .habitat-datum {
  position: absolute;
  display: block;
  inset-inline: 0;
}
.habitat-water {
  top: var(--sea);
  bottom: 0;
  background: repeating-linear-gradient(#4b8198 0, #2b5366 2px 8px);
  border-top: 2px solid #c1e4e8;
}
.habitat-rock {
  inset-block: var(--rise) calc(-1 * var(--rise) - 40%);
  background: repeating-linear-gradient(172deg, #816349 0 5px, #6f553d 6px 10px, #987858 11px 13px);
  clip-path: polygon(0 28%, 8% 36%, 17% 63%, 26% 66%, 35% 59%, 44% 52%, 54% 54%, 62% 60%, 70% 64%, 79% 63%, 87% 47%, 94% 34%, 100% 29%, 100% 100%, 0 100%);
}
.habitat-datum {
  top: 52%;
  border-top: 1px dashed #f2d3a0;
}

.basin-figure {
  margin: 1.5rem 0;
}
.basin-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.basin-map img {
  width: 100%;
  height: auto;
}
.basin-marker {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(1.42rem, 3.3vw, 2.25rem);
  aspect-ratio: 1;
  font: 700 clamp(.74rem, 1.5vw, 1rem)/1 var(--sans);
  border: 2px solid #221711;
  border-radius: 50%;
  background: #f5ce8f;
  color: #20160e;
  box-shadow: 0 1px 5px #190f08;
}
.basin-marker:hover {
  color: #20160e;
  background-color: #fff3d0;
}
.basin-list {
  display: grid;
  gap: .4rem;
  padding-inline-start: 1.8rem;
}
.basin-list li {
  padding: .4rem .65rem;
}
.basin-list li:target {
  border-left: 2px solid var(--gold);
  background: #211a10;
}
