:root {
  --eden-green: #224b43;
  --eden-green-deep: #17372f;
  --eden-green-soft: #dce9e4;
  --eden-terracotta: #9a5128;
  --eden-cream: #f7f3ec;
  --eden-paper: #fffdf9;
  --eden-ink: #1d1d1b;
  --eden-muted: #5f6965;
  --eden-line: #d8e0dd;
  --page-pad: clamp(1.1rem, 4vw, 4rem);
  --radius: 1.15rem;
  --shadow: 0 12px 32px rgba(23, 55, 47, 0.13);
  --hero-frame-ratio: 3 / 2;
  --poster-frame-ratio: 2 / 3;
  --explore-frame-width: 8.5rem;
  --content-frame-width: 10rem;
  --content-frame-height: 15rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--eden-paper);
  background-image:
    linear-gradient(rgba(255, 253, 249, .82), rgba(255, 253, 249, .82)),
    url("/leisure/images/processed/homepage-hero.jpg");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: max(1400px, 100%) auto;
  color: var(--eden-ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  background: #fff;
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.draft-notice {
  background: #f4e6da;
  color: #743a1e;
  font-size: .9rem;
  padding: .55rem var(--page-pad);
  text-align: center;
}
main { overflow: hidden; padding-bottom: 6rem; }
.eyebrow { color: var(--eden-terracotta); font-family: Poppins, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 .55rem; text-transform: uppercase; }
h1, h2, h3 { font-family: Poppins, sans-serif; letter-spacing: -.025em; }
h1 { color: var(--eden-green-deep); }

.featured { padding: 1.1rem 0 .45rem; position: relative; }
.featured-track, .rail-track {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-auto-flow: column;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  padding: .25rem .1rem 1rem;
  scroll-snap-type: none;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar,
.rail-track::-webkit-scrollbar { display: none; height: 0; width: 0; }
.featured-track { grid-auto-columns: min(84vw, 830px); }
.featured > .featured-track {
  display: flex;
  padding-left: 0;
  padding-right: 0;
  scroll-snap-type: none;
}
.featured > .featured-track::before,
.featured > .featured-track::after {
  content: "";
  flex: 0 0 max(0px, calc(var(--page-pad) - 1rem));
}
.feature-card {
  aspect-ratio: var(--hero-frame-ratio);
  border-radius: calc(var(--radius) + .25rem);
  color: #fff;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  width: clamp(28rem, 47vw, 36rem);
  scroll-snap-align: none;
}
.feature-link { color: inherit; display: block; height: 100%; position: relative; text-decoration: none; width: 100%; }
.feature-card img { height: 100%; object-fit: cover; width: 100%; }
.featured > .rail-controls {
  display: flex;
  justify-content: space-between;
  left: calc(var(--page-pad) + .55rem);
  pointer-events: none;
  position: absolute;
  right: calc(var(--page-pad) + .55rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.featured > .rail-controls .rail-button {
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 5px 16px rgba(10, 39, 32, .22);
  pointer-events: auto;
}

.section-block { padding: 1.6rem 0; }
.section-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; padding: 0 var(--page-pad) .7rem; }
.section-heading h2 { color: var(--eden-green-deep); font-size: clamp(1.35rem, 3vw, 2rem); margin: 0; }
.section-heading p { color: var(--eden-muted); margin: .3rem 0 0; max-width: 55rem; }
.view-all { color: var(--eden-green); flex: 0 0 auto; font-weight: 700; text-underline-offset: .2rem; }

.category-track,
.content-rail .rail-track {
  grid-auto-columns: auto;
  padding-left: 0;
  padding-right: 0;
}
.category-track::before,
.category-track::after,
.content-rail .rail-track::before,
.content-rail .rail-track::after {
  content: "";
  display: block;
  width: max(0px, calc(var(--page-pad) - 1rem));
}
.category-card {
  aspect-ratio: var(--poster-frame-ratio);
  background: var(--eden-green);
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  position: relative;
  width: var(--explore-frame-width);
  text-decoration: none;
}
.category-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }

.content-card { align-self: start; background: transparent; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(23,55,47,.12); height: var(--content-frame-height); overflow: hidden; position: relative; width: var(--content-frame-width); }
.content-card a { display: block; inset: 0; position: absolute; text-decoration: none; }
.card-media { inset: 0; overflow: hidden; position: absolute; }
.card-media img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .25s ease; width: 100%; }
.content-card a:hover img { transform: scale(1.025); }
.rail-controls { display: flex; gap: .4rem; }
.rail-button { background: #fff; border: 1px solid var(--eden-line); border-radius: 999px; cursor: pointer; height: 42px; width: 42px; }

:focus-visible { outline: 3px solid #c87932; outline-offset: 3px; }
.rail-button:disabled { opacity: .35; }

.subscription-card {
  align-items: center;
  background: linear-gradient(135deg, #f4e6da, #f7f3ec 58%, #dce9e4);
  border: 1px solid #dfc8b6;
  border-radius: calc(var(--radius) + .3rem);
  display: grid;
  gap: clamp(1.2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
  margin: 2rem var(--page-pad);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.subscription-card h2 { color: var(--eden-green-deep); font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.08; margin: 0 0 .5rem; }
.subscription-card p { line-height: 1.45; margin: .4rem 0; }
.subscription-card form { background: rgba(255,255,255,.72); border-radius: var(--radius); padding: 1.1rem; }
.subscription-card label { display: block; font-weight: 700; margin-bottom: .4rem; }
.subscription-fields { display: flex; gap: .55rem; }
.subscription-fields input { border: 1px solid #899b95; border-radius: .75rem; min-height: 48px; min-width: 0; padding: .7rem .8rem; width: 100%; }
.subscription-fields button { background: var(--eden-green); border: 0; border-radius: .75rem; color: #fff; cursor: pointer; flex: 0 0 auto; font-family: Poppins, sans-serif; font-weight: 700; padding: .7rem 1rem; }
#subscription-note { color: var(--eden-muted); font-size: .84rem; }
#subscription-status { color: var(--eden-green); font-weight: 700; min-height: 1.3rem; }

.mobile-bottom-nav { display: none; }

@media (max-width: 760px) {
  .feature-card { width: min(82vw, 25rem); }
  .featured > .rail-controls { display: none; }
  .rail-controls { display: none; }
  .section-heading { align-items: start; }
  .section-heading .view-all { font-size: .9rem; }
  .subscription-card { grid-template-columns: 1fr; }
  .subscription-fields { align-items: stretch; flex-direction: column; }
  .mobile-bottom-nav {
    align-items: stretch;
    background: rgba(255,253,249,.98);
    border-top: 1px solid var(--eden-line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 50;
  }
  .mobile-bottom-nav > * { align-items: center; color: var(--eden-green); display: flex; flex-direction: column; font-size: .7rem; gap: .1rem; justify-content: center; min-height: 62px; padding: .3rem .15rem; text-align: center; text-decoration: none; }
  .mobile-bottom-nav > * > span { font-size: 1.15rem; }
  .mobile-bottom-nav [aria-current="page"] { background: var(--eden-green-soft); font-weight: 700; }
  .mobile-bottom-nav [aria-disabled="true"] { color: #777f7c; }
  .mobile-bottom-nav small { font-size: .58rem; }
  .footer { padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .featured-track, .rail-track { scroll-behavior: auto !important; }
  .card-media img { transition: none; }
}

/* Keep the sticky header's layout space while sliding it out of view. */
.header[data-eden-discovery-bar] {
  transition: transform 180ms ease;
}
.header[data-eden-discovery-bar].header-is-hidden {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .header[data-eden-discovery-bar] { transition: none; }
}

/* Progressive discovery retains a keyboard and no-script path. */
.discovery-more { padding: 24px 26px 42px; text-align: center; }
.discovery-more button { min-height: 44px; padding: 12px 24px; border: 0; border-radius: 24px; background: #173e54; color: white; font: inherit; cursor: pointer; }
.discovery-more button:disabled { opacity: .6; cursor: wait; }
.discovery-more p { min-height: 1.5em; }
.discovery-more a { color: #173e54; text-underline-offset: 4px; }

@media (max-width: 360px) {
  .section-heading { flex-wrap: wrap; gap: .5rem; }
  .section-heading .view-all { max-width: 100%; overflow-wrap: anywhere; }
}

/* Conditions stay with the particular recommendation, below its full portrait. */
.content-card[data-pathway-note] { height: auto; overflow: visible; box-shadow: none; list-style: none; }
.content-card[data-pathway-note] > a { position: relative; inset: auto; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 20px rgba(23,55,47,.12); }
.content-card .pathway-note { margin: .8rem 0 0; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.content-card .pathway-note a { position: static; display: inline; text-decoration: underline; }

/* Version 2 footer: flexible columns, readable links and room for mobile navigation. */
.footer .footer-content {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 36px;
  padding: 48px var(--page-pad);
}
.footer .footer-section-logo { display: contents; }
.footer .footer-section,
.footer .footer-section-content { min-width: 0; width: auto; }
.footer .footer-section h4 { margin-bottom: 12px; }
.footer .footer-section ul { gap: 4px; }
.footer .footer-section li { min-width: 0; }
.footer .footer-section a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.footer .footer-section a:focus-visible { outline: 2px solid white; outline-offset: 4px; border-radius: 3px; }
.footer .footer-social-links { flex-wrap: wrap; gap: 8px; }
.footer .footer-social-link { padding: 0; }
.footer .footer-bottom { padding: 24px var(--page-pad); line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
}
@media (max-width: 599px) {
  .footer .footer-content { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .footer .footer-logo-box { width: 104px; height: 104px; }
  .footer .footer-logo { max-height: 84px; }
}
@media (max-width: 760px) {
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* A compact VIP invitation with one clear action. */
.subscription-card { background: #f8f3eb; padding: clamp(1.2rem, 3vw, 2rem); gap: 1.2rem 2rem; }
.subscription-card form { background: transparent; padding: 0; }
.subscription-card h2 { margin-bottom: .5rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.subscription-card > div > p { margin: 0; }
#subscription-status:empty { display: none; }

.vip-signup-link{display:inline-flex;align-items:center;justify-content:center;background:#204b42;color:white;padding:14px 24px;border-radius:12px;font-weight:800;text-decoration:none;min-height:48px}.vip-signup-link:focus-visible{outline:3px solid #b85620;outline-offset:4px}.vip-confirmation{font-size:.85rem;margin:.5rem 0 0}

/* Inline existing MailerLite form; no separate signup page. */
[data-vip-inline]{min-width:0}
[data-vip-inline] .ml-field-group{flex:1;min-width:0}
[data-vip-inline] .subscription-fields input{box-sizing:border-box}
[data-vip-inline] button{min-height:48px}
[data-vip-inline] .vip-confirmation{font-size:.85rem;margin:.5rem 0 0}
[data-vip-inline] .vip-field-error{display:none;color:#8a271b;font-size:.85rem}
[data-vip-inline] .ml-error .vip-field-error{display:block}
[data-vip-inline] .ml-error input{border-color:#8a271b}
[data-vip-inline] .d-none{display:none}
[data-vip-inline] .ml-server-error{color:#8a271b;font-size:.85rem}
[data-vip-inline] input:focus-visible,[data-vip-inline] button:focus-visible{outline:3px solid #b85620;outline-offset:3px}

/* Compact VIP invitation with direct email entry. */
.subscription-card{box-sizing:border-box;width:calc(100% - 2 * var(--page-pad));max-width:36rem;grid-template-columns:minmax(0,1fr);margin:2rem auto;padding:1.2rem;gap:.9rem}
.subscription-card h2{font-size:1.5rem;line-height:1.15;margin-bottom:.4rem}
.subscription-card [data-vip-inline] .subscription-fields{width:100%;max-width:22rem;flex-direction:row;align-items:stretch;gap:0}
.subscription-card [data-vip-inline] input{border-radius:.65rem 0 0 .65rem}
.subscription-card [data-vip-inline] button{border-radius:0 .65rem .65rem 0;padding:.65rem 1rem}
