:root {
  color-scheme: light;
  --ink: #17313b;
  --muted: #61747b;
  --paper: #fffaf2;
  --white: #ffffff;
  --reef: #007f8a;
  --reef-dark: #075b63;
  --leaf: #2d6a4f;
  --sun: #f4b942;
  --line: rgba(23, 49, 59, 0.16);
  --shadow: 0 18px 50px rgba(23, 49, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--reef-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(320px, 64vw);
  max-height: 42px;
  height: auto;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--leaf);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  min-height: 520px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 96px) clamp(24px, 6vw, 92px);
}

.eyebrow,
.panel-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-image {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(23, 49, 59, 0.16), rgba(23, 49, 59, 0)),
    var(--hero-image, url("/assets/photos/fiji-beach.jpg")) center / cover;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 64px);
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto;
}

.main-copy,
.side-rail {
  min-width: 0;
}

.highlights,
.content-section,
.affiliate-panel,
.quick-guide,
.email-capture,
.planning-notes,
.related {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 34px;
}

.highlights:first-child {
  margin-top: 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

li {
  margin: 10px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.affiliate-panel {
  padding: 28px;
  background: #f4fbfa;
  border: 1px solid rgba(0, 127, 138, 0.18);
  border-radius: 8px;
}

.affiliate-panel button,
.email-capture button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--reef-dark);
  font-weight: 800;
  cursor: pointer;
}

.affiliate-panel button:disabled,
.email-capture button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.side-rail {
  align-self: start;
  position: sticky;
  top: 96px;
}

.quick-guide,
.email-capture {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-capture form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.email-capture label {
  font-weight: 800;
}

.email-capture input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.form-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.planning-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto;
}

code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92em;
}

.related {
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto 84px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-card span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-card strong {
  font-size: 20px;
}

.site-footer {
  padding: 32px clamp(18px, 4vw, 52px);
  background: var(--ink);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.affiliate-disclosure {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .page-grid,
  .planning-notes {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
    order: -1;
  }

  .side-rail {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
