:root {
  color-scheme: dark;
  --ink: #0c1624;
  --navy: #1a3258;
  --navy-deep: #0f1f38;
  --gold: #a6894b;
  --gold-soft: #c4a86a;
  --cream: #e8e2d6;
  --fog: rgba(232, 226, 214, 0.88);
  --muted: rgba(232, 226, 214, 0.72);
  --line: rgba(166, 137, 75, 0.45);
  --text: var(--cream);
  --heading: var(--cream);
  --body-bg: var(--ink);
  --header-bg: rgba(12, 22, 36, 0.88);
  --header-border: rgba(166, 137, 75, 0.28);
  --chip-border: rgba(166, 137, 75, 0.45);
  --chip-hover: rgba(26, 50, 88, 0.65);
  --section-overlay: linear-gradient(180deg, rgba(15, 31, 56, 0.92), rgba(12, 22, 36, 0.94));
  --footer-bg: var(--ink);
  --glyph-bg: rgba(26, 50, 88, 0.55);
  --header-h: 3.75rem;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #0c1624;
    --navy: #1a3258;
    --navy-deep: #f4f1ea;
    --gold: #8a7040;
    --gold-soft: #a6894b;
    --cream: #14202e;
    --fog: rgba(20, 32, 46, 0.82);
    --muted: rgba(20, 32, 46, 0.62);
    --line: rgba(166, 137, 75, 0.4);
    --text: #14202e;
    --heading: #0c1624;
    --body-bg: #f4f1ea;
    --header-bg: rgba(244, 241, 234, 0.92);
    --header-border: rgba(12, 22, 36, 0.12);
    --chip-border: rgba(12, 22, 36, 0.18);
    --chip-hover: rgba(232, 226, 214, 0.95);
    --section-overlay: linear-gradient(180deg, rgba(244, 241, 234, 0.94), rgba(235, 230, 220, 0.96));
    --footer-bg: #ebe6dc;
    --glyph-bg: rgba(232, 226, 214, 0.85);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #0c1624;
  --navy: #1a3258;
  --navy-deep: #f4f1ea;
  --gold: #8a7040;
  --gold-soft: #a6894b;
  --cream: #14202e;
  --fog: rgba(20, 32, 46, 0.82);
  --muted: rgba(20, 32, 46, 0.62);
  --line: rgba(166, 137, 75, 0.4);
  --text: #14202e;
  --heading: #0c1624;
  --body-bg: #f4f1ea;
  --header-bg: rgba(244, 241, 234, 0.92);
  --header-border: rgba(12, 22, 36, 0.12);
  --chip-border: rgba(12, 22, 36, 0.18);
  --chip-hover: rgba(232, 226, 214, 0.95);
  --section-overlay: linear-gradient(180deg, rgba(244, 241, 234, 0.94), rgba(235, 230, 220, 0.96));
  --footer-bg: #ebe6dc;
  --glyph-bg: rgba(232, 226, 214, 0.85);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #0c1624;
  --navy: #1a3258;
  --navy-deep: #0f1f38;
  --gold: #a6894b;
  --gold-soft: #c4a86a;
  --cream: #e8e2d6;
  --fog: rgba(232, 226, 214, 0.88);
  --muted: rgba(232, 226, 214, 0.72);
  --line: rgba(166, 137, 75, 0.45);
  --text: var(--cream);
  --heading: var(--cream);
  --body-bg: var(--ink);
  --header-bg: rgba(12, 22, 36, 0.88);
  --header-border: rgba(166, 137, 75, 0.28);
  --chip-border: rgba(166, 137, 75, 0.45);
  --chip-hover: rgba(26, 50, 88, 0.65);
  --section-overlay: linear-gradient(180deg, rgba(15, 31, 56, 0.92), rgba(12, 22, 36, 0.94));
  --footer-bg: var(--ink);
  --glyph-bg: rgba(26, 50, 88, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #e8e2d6;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* —— Sticky header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0;
}

.header-brand {
  min-width: 0;
  text-decoration: none;
  color: var(--heading);
}

.header-brand strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.35rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--chip-border);
  color: var(--heading);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--chip-hover);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  min-height: 44px;
}

.header-chip {
  min-width: 2.75rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-chip--icon {
  width: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-chip--icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-chip--lang {
  text-transform: none;
  letter-spacing: 0.01em;
  min-width: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* —— Hero / parallax —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  isolation: isolate;
  color: #e8e2d6;
}

.parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.parallax__layer {
  position: absolute;
  inset: -12% 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.parallax__far {
  background-image: url("../images/hub-parallax-far.jpg");
  background-image: image-set(
    url("../images/hub-parallax-far.webp") type("image/webp"),
    url("../images/hub-parallax-far.jpg") type("image/jpeg")
  );
}

.parallax__mid {
  background-image: url("../images/hub-parallax-mid.jpg");
  background-image: image-set(
    url("../images/hub-parallax-mid.webp") type("image/webp"),
    url("../images/hub-parallax-mid.jpg") type("image/jpeg")
  );
  opacity: 0.78;
  mix-blend-mode: soft-light;
}

.parallax__vignette {
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, transparent 0%, rgba(12, 22, 36, 0.35) 55%, rgba(12, 22, 36, 0.92) 100%),
    linear-gradient(180deg, rgba(12, 22, 36, 0.45) 0%, transparent 35%, rgba(12, 22, 36, 0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 2.5rem));
  text-align: center;
  padding: 2rem 0 3rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .parallax__layer {
    will-change: auto;
    transform: none !important;
  }
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #e8e2d6;
  text-shadow: 0 2px 24px rgba(12, 22, 36, 0.55);
}

.brand span {
  display: block;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4a86a;
  margin-bottom: 0.35em;
}

.lede {
  margin: 0 auto 2rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(232, 226, 214, 0.88);
  font-weight: 300;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: center;
  align-items: center;
}

.cta-group a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8e2d6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cta-group a:hover,
.cta-group a:focus-visible {
  color: #c4a86a;
  border-bottom-color: #a6894b;
  outline: none;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.72);
  opacity: 0;
  animation: hero-in 1s ease 1.1s forwards;
}

/* —— Destinations —— */
.destinations {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(4rem, 10vw, 7rem);
  background-color: var(--navy-deep);
  background-image: var(--section-overlay),
    url("../images/hub-section-paper.jpg");
  background-image: var(--section-overlay),
    image-set(
      url("../images/hub-section-paper.webp") type("image/webp"),
      url("../images/hub-section-paper.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  color: var(--text);
}

.destinations__inner {
  width: min(40rem, 100%);
  margin: 0 auto;
}

.destinations h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.destinations__intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 28rem;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.product-list li {
  border-bottom: 1px solid var(--line);
}

.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.35rem 0.15rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product:hover,
.product:focus-visible {
  transform: translateX(0.35rem);
  opacity: 0.95;
  outline: none;
}

.product:focus-visible {
  box-shadow: inset 0 0 0 1px var(--gold);
}

.product__mark {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem;
}

.product__glyph {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
  background: var(--glyph-bg);
}

/* Bible-in-a-Year: colored latin-cross emoji in white circle (match .product__mark) */
.product__glyph--emoji {
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: unset;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  padding: 0.15rem;
}

.product__copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  color: var(--heading);
}

.product__copy span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 26rem;
}

.product__arrow {
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.product:hover .product__arrow,
.product:focus-visible .product__arrow {
  transform: translateX(0.25rem);
}

.site-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--footer-bg);
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .product {
    grid-template-columns: auto 1fr;
  }

  .product__arrow {
    display: none;
  }

  .header-brand strong {
    font-size: 0.95rem;
    max-width: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product,
  .product__arrow,
  .cta-group a {
    transition: none;
  }

  .product:hover,
  .product:focus-visible {
    transform: none;
  }
}
