:root {
  color-scheme: light;
  --paper: #f9f6ff;
  --white: #fff;
  --ink: #211639;
  --muted: #594d70;
  --deep: #150c2e;
  --deep-text: #fcf8ff;
  --lavender: #ece2fa;
  --yellow: #ffe476;
  --line: #dfd3ef;
  --link: #582b91;
  --body: system-ui, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
h3 { line-height: 1.24; }
h1 { font-size: clamp(2.55rem, 6vw, 4.85rem); }
h2 { font-size: clamp(2rem, 3.85vw, 3.3rem); }
:focus-visible { outline: 3px solid #6d37b4; outline-offset: 4px; }
.wrap { width: min(100% - 6rem, 1160px); margin-inline: auto; }
.narrow { max-width: 43rem; }
section[id], article[id], div[id] { scroll-margin-top: 1.25rem; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  color: var(--deep);
  background: var(--white);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-masthead, .hero-shell, .footer { background: var(--deep); color: var(--deep-text); }
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  font-size: 1.5rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.06em;
  text-decoration: none;
}
.brand-mark { flex: 0 0 31px; width: 31px; height: 31px; filter: hue-rotate(-28deg) saturate(1.12); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.95rem, 3.3vw, 2.3rem);
  font-weight: 620;
}
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); text-decoration: underline; }
.site-masthead :focus-visible, .hero-shell :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.hero-shell {
  position: relative;
  isolation: isolate;
  background: #160c2e;
}
.hero-scene, .reef-wallpaper, .hero-shell::after { position: absolute; inset: 0; }
.hero-scene { z-index: -2; }
.hero-scene img, .reef-wallpaper { width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.reef-wallpaper {
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.reef-wallpaper.is-playing { opacity: 1; }
.hero-shell::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, #120a2bf5 0%, #160c31cb 25%, #1c0e4377 51%, #170e3a12 82%),
    linear-gradient(0deg, #110829a3 0%, transparent 39%);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: clamp(31rem, 68vh, 43rem);
  padding-block: 3.4rem;
}
.hero-copy h1 { max-width: 11ch; font-size: clamp(3.2rem, 7.1vw, 6.55rem); }
.hero-copy h1 em { display: block; color: var(--yellow); font-weight: inherit; }
.hero-copy p { max-width: 39ch; margin-top: 1.25rem; color: #f4ebff; font-size: clamp(1.02rem, 1.55vw, 1.19rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; margin-top: 1.7rem; }
.reef-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  justify-self: end;
  align-self: end;
  gap: .5rem;
}
.reef-motion {
  min-height: 44px;
  padding: .44rem .75rem;
  border: 1px solid #e4ccff90;
  border-radius: 2rem;
  background: #22123fdf;
  color: var(--deep-text);
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
}
.reef-motion:hover { background: #392063; border-color: var(--yellow); }
.reef-launch {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  width: fit-content;
  min-height: 46px;
  padding: .52rem .9rem .52rem .55rem;
  border: 1px solid #dfc4fe96;
  border-radius: 2rem;
  background: #20113feb;
  color: #fff9ff;
  font-size: .9rem;
  font-weight: 730;
  text-decoration: none;
}
.reef-launch:hover { color: #fff; border-color: #ffe476; background: #392063; }
.reef-play {
  display: grid;
  width: 1.82rem;
  height: 1.82rem;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
}
.reef-play::before {
  content: "";
  margin-inline-start: 2px;
  border: .32rem solid transparent;
  border-inline-start: .5rem solid #190e35;
  border-inline-end: 0;
}
.reef-dialog {
  width: min(66rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #674098;
  border-radius: .95rem;
  background: #1a0e35;
  color: #fcf8ff;
}
.reef-dialog::backdrop { background: #0d061ddd; }
.reef-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.reef-dialog-header h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.reef-close { border-color: #9d80c1; background: #38205e; color: #fcf8ff; cursor: pointer; }
.reef-close:hover { background: #522f81; }
.reef-close:focus-visible { outline-color: var(--yellow); }
.reef-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #100821; }
.reef-film-error { padding: .7rem 1rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: .58rem .95rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .93rem;
  font-weight: 710;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button-primary { background: #5c32a0; color: var(--white); }
.button-primary:hover { background: #44247b; }
.button-light { background: var(--yellow); color: var(--deep); }
.button-light:hover { background: #fff09c; }
.button-outline { border-color: #bfa8dd; color: var(--deep-text); }
.button-outline:hover { background: #38205e; }
.button-secondary { border-color: #baa5d2; color: var(--link); background: var(--white); }
.button-secondary:hover { background: var(--lavender); }
.text-link { color: var(--link); font-weight: 680; }
.text-link:hover { color: var(--deep); }

.choice-band {
  border-top: 2px solid var(--yellow);
  border-bottom: 1px solid #dcd0ed;
  background: linear-gradient(110deg, #f0e4ff, #faf4ff 65%, #fff7d8);
}
.choice-layout { display: grid; grid-template-columns: 1fr 1fr; }
.choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding-block: 1.1rem 1.2rem;
  padding-inline-end: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.choice + .choice { border-left: 1px solid #d4c3e8; padding-inline-start: clamp(1.1rem, 5vw, 3rem); }
.choice strong { font-size: clamp(1.03rem, 2vw, 1.3rem); }
.choice span { color: var(--muted); }
.choice:hover strong { text-decoration: underline; }

.section-space { padding-block: clamp(2.8rem, 6.2vw, 5rem); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem 1.75rem; margin-bottom: 1.65rem; }
.section-header h2, .planning h2 { margin-bottom: .55rem; }
.section-header p, .planning-intro, .intro-text { color: var(--muted); }
.filters {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  flex-shrink: 0;
  gap: .24rem;
  padding: .25rem;
  border-radius: .75rem;
  background: #eee5fb;
}
.filters button {
  min-height: 40px;
  padding: .43rem .75rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  font-size: .91rem;
  font-weight: 670;
  cursor: pointer;
}
.filters button:hover { border-color: #ad90d6; }
.filters button[aria-pressed="true"] { background: var(--deep); color: var(--deep-text); }
.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.trip {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}
.trip-figure { position: relative; background: var(--lavender); }
.trip-photo { width: 100%; height: auto; aspect-ratio: 2.18; object-fit: cover; }
.trip-photo-waikiki { object-position: 50% 58%; }
.trip-photo-bali { object-position: 50% 43%; }
.trip-photo-cozumel { object-position: 50% 53%; }
.trip-photo-keys { object-position: 50% 49%; }
.level-tag {
  display: inline-block;
  border-radius: 999px;
  padding: .27rem .62rem;
  background: var(--yellow);
  color: var(--deep);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.32;
}
.trip-figure .level-tag { position: absolute; inset: .8rem auto auto .8rem; }
[data-level="certified"] .level-tag, .certified-tag { background: var(--lavender); }
.trip-content { flex: 1; display: flex; flex-direction: column; align-items: start; padding: clamp(1rem, 2.7vw, 1.55rem); }
.trip-location { color: var(--link); font-size: .88rem; font-weight: 710; }
.trip h3 { margin: .25rem 0 .52rem; font-family: var(--display); font-size: clamp(1.55rem, 3.15vw, 2.3rem); font-weight: 400; }
.trip h3 a { text-decoration: none; }
.trip h3 a:hover { text-decoration: underline; }
.trip-summary { color: var(--muted); max-width: 49ch; }
.trip-details {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-block: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.trip-details dt, .quick-facts dt { color: var(--link); font-size: .84rem; font-weight: 725; }
.trip-details dd, .quick-facts dd { margin: .12rem 0 0; line-height: 1.4; }
.trip-actions { display: flex; gap: .25rem .9rem; align-items: center; flex-wrap: wrap; margin-top: auto; }
.trip-actions > .text-link { font-size: .92rem; }
.booking-action { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; }
.paid-link {
  display: inline-block;
  font-size: .875rem;
  line-height: 1.3;
  color: var(--muted);
}
.booking-note { margin-top: .7rem; color: var(--muted); font-size: .93rem; }

.planning { border-block: 1px solid #e1d3f3; background: #f0e7fc; }
.planning-intro { margin-bottom: 1.5rem; }
.planning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.planning-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 10.5rem;
  padding: 1.2rem;
  border: 1px solid #dacce9;
  border-radius: .8rem;
  background: #fdfaff;
  color: var(--ink);
  text-decoration: none;
}
.planning-card:hover { border-color: var(--link); }
.planning-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.52rem; }
.planning-card:hover h3 { text-decoration: underline; }
.planning-card p { color: var(--muted); }
.planning-card .text-link { margin-top: auto; font-size: .9rem; }

.faq-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.55fr); gap: 2rem clamp(2rem, 6vw, 5rem); }
.faq-layout header p { margin-top: .75rem; color: var(--muted); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { min-height: 44px; padding: .76rem 0; cursor: pointer; font-weight: 680; }
.questions details p { max-width: 65ch; padding: 0 0 .95rem 1.14rem; color: var(--muted); }
.questions details a { color: var(--link); }

.footer { padding-block: 2rem; }
.footer-row { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 1.15rem 2.5rem; }
.footer-brand p { color: #ddceef; margin-top: .45rem; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.credits { margin-top: 1rem; border-top: 1px solid #52396f; padding-top: .55rem; color: #ddceef; font-size: .88rem; }
.credits summary { width: fit-content; padding-block: .35rem; cursor: pointer; }
.credits ul { margin-block: .5rem; padding-inline-start: 1.2rem; }

.guide-page { padding-block: 1.35rem clamp(2.7rem, 5.75vw, 4.75rem); }
.guide-breadcrumbs { margin-bottom: 1.3rem; font-size: .88rem; color: var(--muted); }
.guide-breadcrumbs ol { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .6rem; margin: 0; padding: 0; }
.guide-breadcrumbs li + li::before { content: " / "; margin-inline-end: .6rem; color: #8267a1; }
.guide-breadcrumbs a { color: var(--link); }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); align-items: center; gap: 1.45rem clamp(1.65rem, 6vw, 4.8rem); margin-bottom: 2.1rem; }
.guide-intro h1 { margin: .6rem 0 1rem; }
.guide-intro .intro-text { max-width: 55ch; font-size: 1.13rem; }
.guide-intro .booking-action, .guide-intro .button-secondary { margin-top: 1.15rem; }
.guide-intro-text { display: block; max-width: 58rem; padding-block: .35rem 1rem; }
.guide-image img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; border-radius: .9rem; background: var(--lavender); }
.guide-image figcaption { margin-top: .38rem; font-size: .81rem; color: var(--muted); }
.guide-body { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(1.8rem, 6vw, 5rem); padding-top: 1.55rem; border-top: 1px solid var(--line); }
.quick-facts { padding: 1.25rem; border: 1px solid #ddcfef; border-radius: .85rem; background: #f0e7fc; }
.quick-facts h2 { margin-bottom: .75rem; font-size: 1.75rem; }
.quick-facts dl div + div { margin-top: .7rem; }
.quick-facts .text-link { display: inline-block; margin-top: .85rem; }
.guide-copy h2 { margin-bottom: .6rem; font-size: clamp(1.62rem, 3vw, 2.25rem); }
.guide-copy p + p { margin-top: .65rem; }
.guide-copy section + section { margin-top: 1.45rem; }
.guide-copy :is(ul, ol) { padding-inline-start: 1.2rem; margin-block: .5rem 0; }
.guide-copy li + li { margin-top: .32rem; }
.guide-copy a { color: var(--link); }
.guide-copy p, .guide-copy li { max-width: 68ch; }
.guide-booking { margin-top: clamp(2.3rem, 5vw, 3.8rem); padding: clamp(1.05rem, 3.25vw, 2rem); border: 1px solid #ddcfef; border-radius: .95rem; background: #f0e7fc; }
.guide-booking h2 { margin-bottom: .6rem; }
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .9rem; margin-top: 1rem; }
.booking-option { display: flex; flex-direction: column; align-items: start; gap: .5rem; padding: 1.05rem; border: 1px solid #ddcfef; border-radius: .65rem; background: var(--white); }
.booking-option h3 { font-size: 1.15rem; }
.booking-option p { color: var(--muted); }
.booking-option .booking-action { margin-top: auto; padding-top: .27rem; }
.guide-sources { margin-top: 1.35rem; }
.guide-sources :is(p, a) { color: var(--muted); font-size: .92rem; }
.guide-related { margin-top: 2.35rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.guide-related h2 { margin-bottom: .65rem; font-size: 1.8rem; }
.guide-related ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.guide-related a { display: inline-flex; align-items: center; min-height: 40px; color: var(--link); font-weight: 670; }
.guide-related p { margin-bottom: .65rem; color: var(--muted); }

.quote { margin-block: 2rem; padding: clamp(1rem, 3vw, 1.7rem); background: #f0e7fc; border: 1px solid #ddcfef; border-radius: .85rem; }
.quote h2 { margin-bottom: .55rem; font-size: 2rem; }
.quote > p { margin-bottom: 1rem; color: var(--muted); }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quote fieldset { min-width: 0; margin: 0; padding: .85rem 1rem 1rem; border: 1px solid #d2c0e7; border-radius: .6rem; background: var(--white); }
.quote legend { padding-inline: .3rem; color: var(--ink); font-weight: 740; }
.quote label { display: grid; grid-template-columns: 1fr minmax(4.8rem, 6.5rem); gap: .5rem; align-items: center; margin-top: .52rem; }
.quote label:first-of-type { margin-top: 0; }
.quote input { width: 100%; min-height: 42px; padding: .3rem .45rem; border: 1px solid #9b82b4; border-radius: .35rem; }
.quote .button { margin-top: .8rem; cursor: pointer; }
.quote output { display: block; min-height: 1.7em; margin-top: .8rem; font-weight: 660; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 4rem); }
  .section-header { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero {
    min-height: clamp(32rem, 74vh, 39rem);
    grid-template-columns: 1fr;
    align-content: end;
    gap: 1rem;
    padding-block: clamp(9rem, 32vw, 14rem) 1.7rem;
  }
  .hero-scene img, .reef-wallpaper { object-position: 50% 42%; }
  .hero-shell::after {
    background: linear-gradient(0deg, #160b30 0%, #150a31ee 29%, #20114080 57%, #20114012 82%);
  }
  .reef-controls { justify-content: start; justify-self: start; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-copy h1 em { display: inline; }
  .hero-copy p { margin-top: .9rem; }
  .hero-actions { margin-top: 1.05rem; }
  .faq-layout, .guide-intro, .guide-body { grid-template-columns: 1fr; }
  .guide-body { gap: 1.45rem; }
  .guide-image { max-width: 34rem; }
  .guide-image img { aspect-ratio: 1.65; }
  .planning-grid { grid-template-columns: 1fr; gap: .65rem; }
  .planning-card { min-height: auto; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .header { flex-wrap: wrap; gap: .35rem 1rem; min-height: 0; padding-top: .92rem; }
  .header .nav { width: 100%; gap: 0 1.15rem; }
  .hero { padding-top: 1rem; }
  .hero-copy h1 { font-size: clamp(2.95rem, 12vw, 4.15rem); }
  .choice-layout, .trip-grid, .quote-grid { grid-template-columns: 1fr; }
  .choice { padding-block: .7rem .8rem; }
  .choice + .choice { padding-inline-start: 0; border: 0; border-top: 1px solid #d4c3e8; }
  .trip-photo { aspect-ratio: 1.95; }
  .guide-intro .intro-text { font-size: 1.03rem; }
  .footer-links a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reef-wallpaper { transition: none; }
}
