:root {
  color-scheme: light;
  color: #122b39;
  background: #f3f8fa;
  font: 100%/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #15566c; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #b24922; outline-offset: 4px; }
.wrap { width: min(76rem, calc(100% - 2rem)); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid #bed1d9;
}

.brand { font-weight: 800; color: inherit; text-decoration: none; }
nav, footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.hero { display: grid; grid-template-columns: 4fr 6fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 8vw, 6rem); }
figure { min-width: 0; margin: 0; }
img { display: block; width: 100%; height: auto; border-radius: 1rem; background: #c7e1ea; }
figcaption { margin-top: .55rem; color: #415e6b; font-size: .875rem; }
.eyebrow { margin: 0 0 .6rem; color: #15566c; font-size: .875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(3.2rem, 7.5vw, 7rem); letter-spacing: -.06em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.5rem; }
.intro > p:not(.eyebrow) { max-width: 38ch; font-size: 1.12rem; }
.button { display: inline-block; padding: .65rem 1rem; border-radius: .5rem; background: #14536a; color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #103d50; }
.section { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid #bed1d9; }
.species { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.4rem; }
article { padding: clamp(1rem, 3vw, 2rem); border-radius: 1rem; background: #e0edf2; }
article p:last-child, .ocean p:last-child { margin-bottom: 0; }
.latin { margin-top: .3rem; color: #415e6b; font-style: italic; }
.ocean { display: grid; grid-template-columns: 4fr 6fr; gap: 1.4rem; }
.ocean p:first-child { margin-top: 0; }
details { max-width: 48rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid #bed1d9; border-radius: .5rem; }
details p { margin-bottom: 0; }
summary { cursor: pointer; font-weight: 650; }
footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid #bed1d9; }
footer p { margin: 0; }
footer ul { margin: .4rem 0 0; padding: 0; list-style: none; }

@media (max-width: 46rem) {
  .hero, .ocean, .species { grid-template-columns: 1fr; }
}
