@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,700;1,300&family=Source+Serif+4:ital,wght@0,300;0,400;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ocean:        #0077a8;
  --ocean-dark:   #005577;
  --ocean-deep:   #003a52;
  --ocean-visited:#4a7a8f;
  --sand:         #fdf8f0;
  --sand-warm:    #f5ece0;
  --ink:          #1a2a30;
  --ink-mid:      #3a5060;
  --ink-light:    #6a8090;
  --rule:         #cde4ee;
  --teal:         #00b4d8;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body.is-stellar {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--sand);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-dark); text-decoration: underline; }
a:visited { color: var(--ocean-visited); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

/* ── Wrapper ── */
#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
#header {
  background: linear-gradient(160deg, var(--ocean-deep) 0%, var(--ocean) 60%, var(--teal) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
#header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cellipse cx='100' cy='80' rx='200' ry='60' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") bottom center / 100% auto no-repeat;
  pointer-events: none;
}

.site-title {
  position: relative;
  margin-bottom: 1.5rem;
}
.site-title a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.site-title a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-title a:visited { color: rgba(255,255,255,0.5); }

#header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
  position: relative;
}

.meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
  position: relative;
}
.meta a { color: rgba(255,255,255,0.88); }
.meta a:hover { color: #fff; text-decoration: underline; }
.meta a:visited { color: rgba(255,255,255,0.65); }

.label-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  position: relative;
}
.label-tag {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.12);
  transition: background 0.2s, border-color 0.2s;
}
.label-tag:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.7); text-decoration: none; }
a.label-tag:visited { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
a.label-tag:focus-visible { outline: 2px solid rgba(255,255,255,0.8); border-radius: 999px; }

/* ── Main ── */
#main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, rgba(173,216,230,0.10) 0%, rgba(0,85,119,0.08) 100%);
}

#ocean-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Intro section ── */
#intro.main {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 1;
  background: rgba(253,248,240,0.82);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#intro.main.visible {
  opacity: 1;
  transform: none;
}

.dive-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: sway 4s ease-in-out infinite;
}
@keyframes sway {
  0%,100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

.tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.sub-lead {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

.highlight-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ocean-dark);
  border: none;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,119,168,0.07), rgba(0,180,216,0.07));
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  margin: 0 auto 1.25rem;
  max-width: 500px;
  text-align: left;
}

.answer {
  font-size: 1.1rem;
  color: var(--ink-mid);
}
.answer strong {
  color: var(--ocean);
  font-size: 1.25em;
}

/* Hairline rule between sections */
#details.main {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
  position: relative;
  z-index: 1;
  background: rgba(253,248,240,0.82);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#details.main.visible { opacity: 1; transform: none; }

.event-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}
.event-body a { color: var(--ocean); }
.event-body a:hover { color: var(--ocean-dark); text-decoration: underline; }
.event-body a:visited { color: var(--ocean-visited); }

/* ── Footer ── */
#footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-family: 'Raleway', sans-serif;
}
#footer a { color: rgba(255,255,255,0.6); }
#footer a:hover { color: #fff; text-decoration: none; }
#footer a:visited { color: rgba(255,255,255,0.4); }
.sep { margin: 0 0.5rem; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #header { padding: 2.5rem 1rem 2.5rem; }
  #main { padding: 2.5rem 1rem; }
  .lead { font-size: 1.25rem; }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}
