/* The same bed of shell limestone runs behind every section. As the layers
   descend, less sand and more of the darker rock face show through. */
.seabed {
  --wet-sand: #c9c5a8;
  --shell-sand: #d6cdad;
  --packed-sand: rgb(217 195 157 / .95);
  --rock-shelf: rgb(144 124 94 / .54);
  --deep-rock: rgb(34 40 35 / .84);
  --sand-ink: #18352f;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.13' filter='url(%23g)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  color: var(--sand-ink);
  background: #776c56 url("coquina-beds.webp") 50% 0 / max(100%, 900px) auto repeat-y;
}

/* The water settles into fine sand. Below it, a shallow slice of the same
   coquina bed exposes the wavy shell seams before the mission begins. */
.seabed::before {
  content: "";
  display: block;
  height: clamp(78px, 8vw, 128px);
  background-color: var(--shell-sand);
  background-image:
    linear-gradient(to bottom,
      var(--wet-sand) 0%,
      rgb(201 197 168 / .93) 8%,
      rgb(214 204 169 / .72) 22%,
      rgb(217 201 162 / .58) 39%,
      rgb(210 194 159 / .45) 56%,
      rgb(215 202 166 / .60) 72%,
      rgb(214 205 173 / .88) 89%,
      var(--shell-sand) 100%),
    url("coquina-beds.webp");
  background-position: center, 50% 38%;
  background-size: 100% 100%, max(100%, 760px) clamp(420px, 40vw, 620px);
  background-repeat: no-repeat;
}
.seabed .marker-strip {
  border: 0;
  color: #284238;
  background: var(--shell-sand);
}
.seabed .marker-strip .wrap { border-bottom: 1px solid rgb(72 79 54 / .33); }
.seabed .marker-strip span + span::before { background: none; border-color: rgb(72 79 54 / .45); }
.seabed .marker-strip .icon { color: #4a614a; }

.seabed .mission {
  --caustic-alpha: .28;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: transparent;
  background-image: var(--grain), linear-gradient(var(--shell-sand), #e6d7b5 45%, var(--packed-sand));
}
.seabed .mission::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -8px auto;
  height: clamp(120px, 15vw, 245px);
  background: url("eye-level-shallows.webp") 50% 100% / max(125%, 1400px) auto no-repeat;
  mask-image: linear-gradient(transparent, #000 23%, #000 46%, transparent);
  mix-blend-mode: luminosity;
  opacity: var(--caustic-alpha);
  pointer-events: none;
  animation: sand-caustics 9s ease-in-out infinite alternate paused;
}
html[data-ocean-motion="playing"] .seabed .mission::before { animation-play-state: running; }
@keyframes sand-caustics {
  from { transform: translate(-4px, -1px); opacity: calc(var(--caustic-alpha) - .04); }
  to { transform: translate(4px, 2px); opacity: var(--caustic-alpha); }
}
.seabed .mission .folio, .seabed .field-guide .folio { color: #3d5542; }
.seabed .mission .ink-link:hover, .seabed .field-notes a:hover { color: #263e2a; }
.seabed .field-photo {
  border-color: #b3a27f;
  background: #f9f0d8;
  box-shadow: 0 5px 9px rgb(72 58 36 / .12);
}

.seabed .field-guide {
  isolation: isolate;
  position: relative;
  background-color: transparent;
  background-image: var(--grain), linear-gradient(var(--packed-sand), rgb(207 180 138 / .94) 48%, rgb(196 167 123 / .82) 76%, var(--rock-shelf));
  color: var(--sand-ink);
}
.sand-laminae {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  width: 100%;
  height: clamp(65px, 8vw, 125px);
  color: #61523d;
  pointer-events: none;
}
.seabed .field-guide header > p:last-child, .seabed .field-notes details > div { color: #263e34; }
.seabed .field-notes {
  padding-inline: clamp(14px, 2.1vw, 30px);
  border-color: #776849;
  background: linear-gradient(110deg, rgb(252 237 204 / .55), rgb(248 227 190 / .27));
}
.seabed .field-notes details { border-color: rgb(82 75 51 / .60); }
.seabed .field-notes summary span, .seabed .field-notes summary i { color: #67521d; }
.seabed .field-notes a { color: #214d43; }

.seabed .dock-shop {
  --dock-rule: #9c9a7f;
  --dock-teal: #f2dca1;
  color: #fff4da;
  background: linear-gradient(var(--rock-shelf), rgb(56 59 49 / .78) clamp(34px, 4.7vw, 68px), rgb(44 50 43 / .81) 34%, var(--deep-rock));
}
.seabed .dock-intro h2, .seabed .dock-bag-link, .seabed .dock-footnote a { color: inherit; }
.seabed .dock-catalog-id { color: #e9dbb6; border-color: rgb(225 213 182 / .64); }
.seabed .dock-product > p, .seabed .dock-footnote, .seabed .dock-buy label { color: #e8e5ce; }
.seabed .dock-plate {
  border: 1px solid rgb(252 242 215 / .55);
  background: linear-gradient(144deg, rgb(244 232 198 / .94), rgb(211 201 166 / .88)), url("coquina-beds.webp") center / cover;
  box-shadow: 0 3px 9px rgb(15 22 18 / .2);
}
.seabed .dock-shop :focus-visible, .seabed .flag-section :focus-visible { outline-color: #ffdd79; }

.seabed .flag-section {
  border: 0;
  color: #fff4da;
  background: linear-gradient(var(--deep-rock), rgb(25 39 34 / .72) 45%, rgb(25 38 34 / .86) 84%, #202e2b);
}
.seabed .flag-grid .folio { color: #ebd28f; }
.seabed .flag-section .ink-link { color: #ffdd79; }
.seabed .flag-section .ink-link:hover { color: #fff3cc; }
.site-footer { background: #202e2b; }
.site-footer > .wrap { padding-top: 22px; border-top: 1px solid #58645b; }

@media (max-width: 700px) {
  .seabed .mission { --caustic-alpha: .24; }
  .seabed .mission::before { height: 105px; background-size: 1000px auto; }
  .seabed .field-notes { padding-inline: 14px; }
}
