:root {
  --abyss: #061a2b;
  --deep: #0a2a44;
  --sea: #0e4a6e;
  --teal: #12a4b8;
  --teal-ink: #0b7887; /* 4.6:1 on --sand */
  --glow: #5fe0e8;
  --sand: #f5f1ea;
  --paper: #ffffff;
  --ink: #12202c;
  --muted: #5a6b78;
  --line: #e2e6ea;
  --orange: #ba592d; /* white button text 4.6:1 (WCAG AA) */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 26, 43, 0.06), 0 8px 24px rgba(6, 26, 43, 0.08);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--teal-ink);
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
}
h3 {
  font-size: 1.5rem;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--orange);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 35%, transparent);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn-sm {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}
.btn-light {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--abyss) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-text {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:not(.btn):hover,
.nav a[aria-current] {
  color: #fff;
}
.nav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--glow);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font: inherit;
}
/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 88px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(
      1000px 500px at 85% -10%,
      color-mix(in srgb, var(--glow) 22%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, color-mix(in srgb, var(--abyss) 55%, transparent), color-mix(in srgb, var(--abyss) 92%, transparent)),
    url("assets/img/cavern-sidemount.jpg") center/cover,
    var(--abyss);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--glow);
  margin: 0 0 14px;
}
.eyebrow.dark {
  color: var(--teal-ink);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
}
.hero h1 span {
  color: var(--glow);
}
.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.hero-facts strong {
  font-family: var(--display);
  font-size: 2.2rem;
  color: #fff;
  min-width: 4.2ch;
}
.hero-facts span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  fill: var(--paper);
}
/* Sections */
.section {
  padding: 80px 0;
}
.section.alt {
  background: var(--sand);
}
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}
/* Gear shop */
.shop-hero {
  color: #fff;
  padding: 84px 0 92px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--abyss) 92%, transparent), color-mix(in srgb, var(--abyss) 50%, transparent)),
    url("assets/img/training-lake-sidemount.jpg") center 44% / cover,
    var(--abyss);
}
.shop-hero-inner {
  max-width: 720px;
}
.shop-hero h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: 3.5rem;
  text-transform: uppercase;
}
.shop-hero .lede {
  margin: 0;
}
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.shop-section-head {
  max-width: 720px;
  margin-bottom: 32px;
}
.shop-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shop-category {
  padding: 24px 26px 24px 0;
}
.shop-category + .shop-category {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.shop-category h3 {
  margin-bottom: 8px;
  text-transform: uppercase;
}
.shop-category p {
  margin: 0;
  color: var(--muted);
}
.shop-store-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}
.shop-embed-frame {
  width: 100%;
  height: 1180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.shop-embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}
.shop-status {
  max-width: 760px;
  padding: 28px;
  border-left: 4px solid var(--teal);
  background: var(--paper);
}
.shop-status h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.shop-status p {
  margin: 0;
  color: var(--muted);
}
.shop-status .shop-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-weight: 600;
}
/* Tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.tier:hover {
  transform: translateY(-3px);
}
.tier-img {
  aspect-ratio: 16 / 9;
  background: var(--deep) center/cover;
}
.tier-body {
  padding: 24px;
}
.tier h3 {
  font-size: 1.9rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price {
  margin: 0;
  color: var(--muted);
}
.price span {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.price-alt {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--teal-ink);
  font-size: 0.95rem;
}
.tier dl {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.tier dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}
.tier dd {
  margin: 0;
}
.tier.featured {
  border-color: var(--teal);
  box-shadow:
    0 0 0 1px var(--teal),
    var(--shadow);
}
/* Open water */
.ow {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--deep), var(--sea));
  color: #fff;
}
.ow .eyebrow {
  color: var(--glow);
}
.ow h3 {
  font-size: 2.2rem;
  text-transform: uppercase;
}
.ow p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.ow-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ow-tier {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ow-who {
  font-weight: 600;
}
.ow-n {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.ow-tier strong {
  font-family: var(--display);
  font-size: 2.2rem;
  margin-top: 10px;
  line-height: 1;
}
.ow-tier em {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.ow-tier.best {
  background: var(--glow);
  color: var(--abyss);
  border-color: var(--glow);
}
.ow-tier.best .ow-n,
.ow-tier.best em {
  color: color-mix(in srgb, var(--abyss) 70%, transparent);
}
/* Fees */
.fees {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fee {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fee strong {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
}
.fee span {
  color: var(--muted);
  font-size: 0.92rem;
}
.fee.accent {
  background: color-mix(in srgb, var(--orange) 6%, white);
  border-color: color-mix(in srgb, var(--orange) 23%, white);
}
.fee.accent strong {
  color: var(--orange);
}
/* Policies */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
}
.card h3 {
  text-transform: uppercase;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.ticks,
.crosses {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ticks li,
.crosses li {
  padding-left: 28px;
  position: relative;
}
.ticks li::before,
.crosses li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.ticks li::before {
  content: "✓";
  background: color-mix(in srgb, var(--teal) 12%, white);
  color: var(--teal-ink);
}
.crosses li::before {
  content: "✕";
  background: #fdecec;
  color: #c0392b;
}
/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  height: auto;
}
.about .role {
  font-weight: 600;
  color: var(--teal-ink);
  margin-top: -6px;
}
.about p {
  color: color-mix(in srgb, var(--ink) 81%, var(--muted));
}
.about-stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.about-stats li {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}
.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.about-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}
/* CTA */
.cta {
  background: linear-gradient(135deg, var(--abyss), var(--sea));
  color: #fff;
  padding: 80px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}
.visit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.visit h3 {
  text-transform: uppercase;
  color: var(--glow);
}
.visit address {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.visit p {
  font-size: 0.92rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-list span {
  color: rgba(255, 255, 255, 0.6);
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}
.link-light {
  color: var(--glow);
  font-weight: 600;
  text-decoration: none;
}
/* Footer */
.site-footer {
  background: var(--abyss);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px 0;
  font-size: 0.9rem;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-row img {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}
.foot-row p {
  margin: 0;
}
/* Social links (data/business.json → business.social); empty ones aren't rendered */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.social a {
  color: rgba(255, 255, 255, 0.85);
}
.social a:hover {
  color: #fff;
}
/* Announcement bar (data/business.json → announcement.text) */
.announce {
  margin: 0;
  padding: 10px 16px;
  background: var(--teal-ink);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.foot-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
/* Content pages (how-we-train/, learn-to-scuba-dive/, blog posts; built by generate.mjs) */
.article {
  padding: 56px 0 72px;
  background: var(--paper);
}
.article-wrap {
  width: min(760px, 100% - 32px);
  display: grid;
  gap: 28px;
}
.article-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.article-head .eyebrow {
  margin-bottom: 10px;
}
.article .lede {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0;
}
.article-hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  height: auto;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose:empty {
  display: none;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 1.6em 0 0.5em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose a {
  font-weight: 600;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--deep);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery a:hover img {
  transform: scale(1.04);
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sand);
}
.article-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.article-cta p {
  margin: 0;
  color: var(--muted);
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-ghost-dark {
  background: transparent;
  color: var(--deep);
  border-color: var(--deep);
}
.btn-ghost-dark:hover {
  background: color-mix(in srgb, var(--deep) 6%, transparent);
  box-shadow: none;
}
/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .ow,
  .cta-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .tiers {
    grid-template-columns: 1fr 1fr;
  }
  .tiers .featured {
    grid-column: span 2;
  }
  .fees {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--abyss);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav a[aria-current] {
    box-shadow: none;
    color: var(--glow);
  }
  .nav .btn {
    margin-top: 12px;
    justify-content: center;
  }
}
@media (max-width: 620px) {
  .hero {
    padding: 56px 0 96px;
  }
  .section {
    padding: 56px 0;
  }
  .tiers,
  .fees,
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .tiers .featured {
    grid-column: auto;
  }
  .tier-img {
    aspect-ratio: 21 / 9;
  }
  .brand-text {
    font-size: 1.25rem;
  }
  .shop-hero {
    padding: 58px 0 64px;
  }
  .shop-hero h1 {
    font-size: 2.6rem;
  }
  .shop-categories {
    grid-template-columns: 1fr;
  }
  .shop-category,
  .shop-category + .shop-category {
    padding: 18px 0;
    border-left: 0;
  }
  .shop-category + .shop-category {
    border-top: 1px solid var(--line);
  }
  .shop-status {
    padding: 22px;
  }
  .ow {
    padding: 22px;
  }
  .ow-tiers {
    grid-template-columns: 1fr;
  }
  .ow-tier {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }
  .ow-tier strong {
    margin: 0 0 0 auto;
    font-size: 1.8rem;
  }
  .ow-tier .ow-n {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Adventures (home page): the newest logbook posts ({{latestPosts|posts}}, cards from sbs-pkg's
   pages.css), three across on wide screens like the price tiers */
@media (min-width: 961px) {
  #adventures .post-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Adventures (home page): logbook posts as cards */
a.tier {
  color: inherit;
  text-decoration: none;
}
img.tier-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.adventure h3 {
  font-size: 1.5rem;
}
.adventure p {
  margin: 0;
  color: var(--muted);
}
/* How we train (home page): text first, photo second */
@media (min-width: 961px) {
  .about-grid.flip {
    grid-template-columns: 1.25fr 1fr;
  }
}
/* Hero facts: a two-word label stays on one line */
.hero-facts strong {
  white-space: nowrap;
  flex-shrink: 0;
}
