/* =============================================================
   Go Places with Lisa — Main Stylesheet
   Beach palette: ocean blue · sand · sunshine
   ============================================================= */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand colours */
  --ocean-deep:  #4ab3d4; 
  --ocean-mid:   #72cce3;
  --ocean-dark:  #2e8aaa;
  --sand:        #f5e9d0;
  --sand-dark:   #e8d4a8;
  --sun:         #f6c94e;
  --sun-glow:    #fde89a;
  --green-foam:  #a8dbb0;

  /* Text */
  --text-dark:   #2c4a5a;
  --text-mid:    #4a7a8a;
  --text-light:  #7aaab8;
  --text-faint:  #5a8a9a; /* darkened from #a0bfc8 for WCAG AA contrast */

  /* Backgrounds */
  --bg-page:     #eef6fa;
  --bg-card:     rgba(255, 255, 255, 0.76);
  --bg-card-solid: #ffffff;
  --bg-nav:      rgba(255, 255, 255, 0.95);
  --bg-footer:   rgba(44, 74, 90, 0.92);

  /* Gradient (body bg) */
  --grad-body:   linear-gradient(175deg, #7ad0e4 0%, #00b3dc 40%, #00a8d5 70%, #00667d 100%);

  /* Button colours — deep in light mode for contrast against light bg */
  --btn-primary-bg:    #1b6a88;
  --btn-primary-hover: #14536e;
  --btn-outline-clr:   #1b6a88;

  /* Misc */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-card: 0 8px 40px rgba(74, 122, 138, 0.18), 0 2px 8px rgba(74, 122, 138, 0.10);
  --shadow-nav:  0 2px 20px rgba(44, 74, 90, 0.12);
  --transition:  0.2s ease;
  --font-ui:     'Inter', sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Lora', Georgia, serif;
  --max-w:       1100px;
  --max-w-prose: 740px;
}

/* ── Dark mode ────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-page:     #1a2f3a;
  --bg-card:     rgba(30, 50, 62, 0.88);
  --bg-card-solid: #1e3240;
  --bg-nav:      rgba(20, 38, 48, 0.96);
  --bg-footer:   rgba(14, 26, 34, 0.96);
  --text-dark:   #dff0f5;
  --text-mid:    #9bc8d8;
  --text-light:  #6aa8b8;
  --text-faint:  #8ab8c8; /* lightened from #4a7a8a for WCAG AA contrast on dark bg */
  --sand:        #243640;
  --sand-dark:   #1c2c36;
  --grad-body:   linear-gradient(175deg, #1a2f3a 0%, #1e3a48 50%, #203e50 100%);

  /* Button colours — bright in dark mode for contrast against dark bg */
  --btn-primary-bg:    #4ab3d4;
  --btn-primary-hover: #2e8aaa;
  --btn-outline-clr:   #4ab3d4;
}

/* ── Body ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-ui);
  font-size:   16px;
  color:       var(--text-dark);
  background:  var(--grad-body);
  min-height:  100dvh;
  overflow-x:  hidden;
  position:    relative;
}

/* ── Animated background ──────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sun {
  position: absolute;
  top: -40px;
  right: 6%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-glow) 30%, var(--sun) 65%, transparent 100%);
  opacity: 0.5;
  will-change: transform;
  animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { scale: 1;    opacity: 0.5; }
  50%       { scale: 1.06; opacity: 0.62; }
}

/* Sun rays — 8 soft rays rotating slowly around the sun */
.sun::before {
  content: '';
  position: absolute;
  /* extend 50% of the sun's own dimensions in each direction → 280×280 px halo */
  inset: -50%;
  background: repeating-conic-gradient(
    from 22.5deg,
    color-mix(in srgb, var(--sun-glow) 50%, transparent) 0deg 15deg,
    transparent                                           15deg 45deg
  );
  /* Ring mask: hide the center (where the sun disc is) and fade outer edge */
  mask-image: radial-gradient(
    circle,
    transparent 48%,
    rgba(0,0,0,0.85) 53%,
    rgba(0,0,0,0.55) 72%,
    transparent 92%
  );
  -webkit-mask-image: radial-gradient(
    circle,
    transparent 48%,
    rgba(0,0,0,0.85) 53%,
    rgba(0,0,0,0.55) 72%,
    transparent 92%
  );
  animation: sunRaysRotate 24s linear infinite;
}

@keyframes sunRaysRotate {
  to { transform: rotate(360deg); }
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  border-radius: 50% 50% 0 0 / 14px 14px 0 0;
  will-change: transform;
}
.wave-1 { height: 70px;  background: rgba(255,255,255,0.14); animation: waveLull-1 9s  ease-in-out infinite; }
.wave-2 { height: 50px;  background: rgba(255,255,255,0.09); animation: waveLull-2 13s ease-in-out -4s infinite; }
.wave-3 { height: 34px;  background: rgba(248,233,200,0.18); animation: waveLull-3 7s  ease-in-out -2s infinite; }

/* Waves lull gently back and forth — all values ≤ 0 so no left-edge gap ever appears */
@keyframes waveLull-1 {
  0%, 100% { transform: translateX(-20px); }
  50%       { transform: translateX(-55px); }
}
@keyframes waveLull-2 {
  0%, 100% { transform: translateX(-40px); }
  50%       { transform: translateX(-8px); }
}
@keyframes waveLull-3 {
  0%, 100% { transform: translateX(-10px); }
  50%       { transform: translateX(-44px); }
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-nav);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .logo-em {
  font-family: 'Oleo Script Swash Caps', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--ocean-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ocean-deep); background: rgba(74,179,212,0.1); }
.nav-link.active { color: var(--ocean-deep); font-weight: 600; }
.nav-yt { color: var(--text-light); }
.nav-yt:hover { color: #ff4444; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--sun); background: rgba(246,201,78,0.12); }
.theme-toggle:focus-visible {
  outline: 3px solid var(--ocean-deep);
  outline-offset: 3px;
}
.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-mid);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hamburger:focus-visible {
  outline: 3px solid var(--ocean-deep);
  outline-offset: 3px;
}

/* ── Main content sits above bg-layer ────────────────────── */
main { position: relative; z-index: 1; padding-bottom: 5rem; }

/* ── Frosted glass card ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── Hero (homepage) ──────────────────────────────────────── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 3rem;
}

.hero-card {
  max-width: 560px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  text-align: center;
  animation: cardIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title em { font-family: 'Oleo Script Swash Caps', cursive; font-style: normal; font-weight: 400; color: var(--ocean-deep); }

.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.divider span {
  font-size: 0.55rem;
  color: var(--sand-dark);
  display: inline-block;
}
.divider span:nth-child(2) { transform: scale(1.4); color: var(--ocean-mid); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(27,106,136,0.35);
}
.btn-primary:hover { background: var(--btn-primary-hover); box-shadow: 0 6px 22px rgba(27,106,136,0.3); }
.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--btn-primary-bg); }

.btn-outline {
  background: transparent;
  color: var(--btn-outline-clr);
  border: 2px solid var(--btn-outline-clr);
  box-shadow: none;
}
.btn-outline:hover { background: var(--btn-outline-clr); color: #fff; }


/* ── Section headers ──────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.section-header { margin-bottom: 2.5rem; }

/* ── Post grid ────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(74,122,138,0.22); }

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, var(--ocean-mid), var(--green-foam));
}
.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--green-foam) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.7;
}
.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.post-card-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  margin-bottom: 0.5rem;
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}
.post-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-mid);
  flex: 1;
}
.post-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean-deep);
  letter-spacing: 0.03em;
}
.post-card-yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cc0000;
  background: rgba(204,0,0,0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

/* ── Single post ──────────────────────────────────────────── */
.post-header {
  padding: 3rem 0 1.5rem;
  text-align: center;
  max-width: var(--max-w-prose);
  margin: 0 auto;
}
.post-meta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  margin-bottom: 1rem;
}
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.post-excerpt-lede {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

.post-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 1.5rem 0;
  display: block;
}

/* ── YouTube embed ────────────────────────────────────────── */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px rgba(74,122,138,0.22);
  margin: 1.5rem 0 2rem;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}
.video-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ── Post content (Quill output) ──────────────────────────── */
.post-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dark);
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 0 2rem;
}
.post-content p   { margin-bottom: 0.85em; }
/* Collapse empty Quill paragraphs (<p><br></p>) to a minimal spacer */
.post-content p:has(> br:only-child) { line-height: 0; margin-bottom: 0.4em; }
.post-content h2  { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin: 2em 0 0.6em; line-height: 1.25; }
.post-content h3  { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--text-mid); margin: 1.8em 0 0.5em; }
.post-content img { max-width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-card); margin: 1rem 0; display: block; }
.post-content blockquote {
  border-left: 3px solid var(--ocean-mid);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: rgba(74,179,212,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-mid);
}
.post-content a { color: var(--ocean-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--ocean-dark); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: 0.4em; }
.post-content strong { font-weight: 600; color: var(--text-dark); }

/* ── Post gallery ─────────────────────────────────────────── */
.post-gallery {
  max-width: var(--max-w-prose);
  margin: 2rem auto;
}
.post-gallery-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
  display: block;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(74,122,138,0.2); }
.gallery-thumb:focus-visible { outline: 3px solid var(--ocean-mid); outline-offset: 3px; transform: scale(1.03); }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,20,28,0.94);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { visibility: visible; opacity: 1; pointer-events: auto; }

/* Stage: holds prev button + frame + next button in a row */
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  flex: 1 1 auto;
  min-height: 0;
}

/* Frame: contains the image, close button, and counter */
.lightbox-frame {
  position: relative;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.3);
  max-width: min(80vw, 1000px);
  max-height: calc(100vh - 10rem);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.lightbox.open .lightbox-frame { transform: scale(1); }
.lightbox-frame img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

/* Shared base for all lightbox buttons */
.lightbox-btn {
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}
.lightbox-btn:hover { color: #fff; border-color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.75); }
.lightbox-btn:focus-visible { outline: 3px solid rgba(255,255,255,0.8); outline-offset: 3px; }

/* Close button: top-right corner of the frame */
.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  z-index: 2;
}

/* Nav buttons: beside the frame, not overlapping the image */
.lightbox-nav {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.lightbox-nav:disabled { opacity: 0.15; cursor: not-allowed; pointer-events: none; }

/* Counter: bottom of the frame */
.lightbox-counter {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
  white-space: nowrap;
  background: rgba(0,0,0,0.5);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  z-index: 2;
}

/* Thumbnail strip at bottom */
.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0;
  overflow-x: auto;
  max-width: 100%;
  justify-content: center;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-track { background: transparent; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }
.lightbox-thumb-btn {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.5;
  transition: opacity var(--transition), border-color var(--transition);
}
.lightbox-thumb-btn:hover { opacity: 0.8; }
.lightbox-thumb-btn.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.85);
}
.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Post navigation (prev/next) ──────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: var(--max-w-prose);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(74,122,138,0.15);
}
.post-nav-link {
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74,122,138,0.18);
  transition: border-color var(--transition), background var(--transition);
}
.post-nav-link:hover { border-color: var(--ocean-mid); background: rgba(74,179,212,0.06); }
.post-nav-link.next { text-align: right; }
.post-nav-dir { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.25rem; }
.post-nav-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.pagination a { color: var(--text-mid); border: 1px solid rgba(74,122,138,0.2); }
.pagination a:hover { background: var(--ocean-deep); color: #fff; border-color: var(--ocean-deep); }
.pagination .current { background: var(--ocean-deep); color: #fff; border: 1px solid var(--ocean-deep); }
.pagination .dots { color: var(--text-faint); border: none; pointer-events: none; }

/* ── Sponsors page ────────────────────────────────────────── */
.sponsors-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.sponsors-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.sponsors-hero-sub { color: var(--text-mid); font-size: 1rem; line-height: 1.6; max-width: 520px; margin: 0 auto; }

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.sponsor-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, var(--sand) 0%, var(--ocean-mid) 100%);
  display: block;
}
.sponsor-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--sun-glow) 0%, var(--ocean-mid) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.6;
}
.sponsor-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.sponsor-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}
.sponsor-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-mid);
  flex: 1;
}
.sponsor-code-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
[data-theme="dark"] .sponsor-code-wrap { background: var(--sand-dark); }
.sponsor-code-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  white-space: nowrap;
}
.sponsor-code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--ocean-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.copy-btn:hover { background: var(--ocean-dark); }
.copy-btn:focus-visible { outline: 3px solid var(--ocean-dark); outline-offset: 2px; }
.copy-btn.copied { background: #2d9e5f; }
.sponsor-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--sun);
  color: var(--text-dark);
  border-radius: 100px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s ease;
  text-align: center;
}
.sponsor-link-btn:hover { background: #e8b830; transform: translateY(-1px); }

/* ── About page ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 4rem;
}
.about-avatar-card { padding: 2rem; text-align: center; }
.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
  border: 3px solid var(--ocean-mid);
}
.about-avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-mid), var(--green-foam));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto 1.25rem;
}
.about-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.about-role { font-size: 0.85rem; color: var(--ocean-deep); font-weight: 500; margin-bottom: 1rem; }
.about-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-mid);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}
.about-social a:hover { color: var(--ocean-deep); }
.about-content h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 2rem 0 0.75rem; }
.about-content p { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1.25rem; }

/* ── 404 page ─────────────────────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
}
.error-card { text-align: center; padding: 3rem 2.5rem; max-width: 480px; }
.error-code { font-family: var(--font-serif); font-size: 6rem; font-weight: 700; color: var(--ocean-mid); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text-dark); margin-bottom: 1rem; }
.error-body { color: var(--text-mid); line-height: 1.7; margin-bottom: 2rem; }

/* ── Page header (blog archive, sponsors, etc.) ───────────── */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.page-subtitle { color: var(--text-mid); font-size: 0.95rem; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-mid);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state p { font-size: 1rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-footer);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo em { font-family: 'Oleo Script Swash Caps', cursive; font-style: normal; font-weight: 400; color: var(--ocean-mid); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.85rem; text-decoration: none; transition: color var(--transition); }
.footer-nav a:hover { color: var(--ocean-mid); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ── Scroll-reveal animation ──────────────────────────────── */
.animate-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.flash-success { background: rgba(45,158,95,0.12); color: #1e7a46; border: 1px solid rgba(45,158,95,0.25); }
.flash-error   { background: rgba(220,53,69,0.1);  color: #b02a37; border: 1px solid rgba(220,53,69,0.2); }
[data-theme="dark"] .flash-success { background: rgba(45,158,95,0.18); color: #5cc98a; border-color: rgba(45,158,95,0.3); }
[data-theme="dark"] .flash-error   { background: rgba(220,53,69,0.15); color: #e8767f; border-color: rgba(220,53,69,0.25); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-avatar-card { max-width: 320px; margin: 0 auto; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 8px 24px rgba(44,74,90,0.15);
  }
  .main-nav.open { display: flex; }
  .site-header { position: sticky; }

  .nav-link { padding: 0.65rem 0.75rem; font-size: 0.95rem; min-height: 44px; display: flex; }
  .theme-toggle.nav-theme { align-self: flex-start; width: 44px; height: 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 2.25rem 1.5rem; }
}

@media (max-width: 480px) {
  .sun { width: 100px; height: 100px; top: -30px; right: 5%; }
  .wave-1 { height: 50px; }
  .wave-2 { height: 36px; }
  .wave-3 { height: 24px; }
  .sponsors-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 1rem 0.5rem; }
  .lightbox-stage { gap: 0.5rem; }
  .lightbox-frame { max-width: calc(100vw - 6rem); }
  .lightbox-frame img { max-height: calc(100vh - 12rem); }
  .lightbox-nav { width: 2.25rem; height: 2.25rem; }
  .lightbox-nav svg { width: 14px; height: 14px; }
  .lightbox-close { width: 1.75rem; height: 1.75rem; top: 0.4rem; right: 0.4rem; }
  .lightbox-close svg { width: 14px; height: 14px; }
  .lightbox-thumb-btn { width: 44px; height: 33px; }
}

/* ── Skip navigation link ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--ocean-deep);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* ── Accessibility: Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .sun::before, .wave { animation: none; }
  .animate-reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .post-card:hover { transform: none; }
  .skip-link { transition: none; }
  .lightbox, .lightbox-frame, .lightbox-frame img { transition: none; }
  .lightbox-frame { transform: none; }
}
