/* Host sites (<slug>.bookdirectsetup.com). Shared by every site; scripts/build-site.mjs copies it into each site's
   folder, next to that site's theme.css (colors from the host's vibe, brand color, and accent, and its font pairing).
   Vacation mode: a full-screen photo hero, big type, 16px rounded images, fade-up on scroll, a photo lightbox, and a
   sticky "Get first dibs" bar on phones. Never BookDirectSetup's plum, gold, or sunset. Mobile first, 16px gutters,
   no inline styles (the CSP forbids them). Hero layouts: data-hero="full" | "split" | "mosaic". */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-underline-offset:3px;text-decoration-thickness:1px}
h1,h2,h3{font-family:var(--display);font-weight:var(--display-weight);letter-spacing:var(--display-tracking);line-height:1.05;margin:0}
h2{font-size:clamp(38px,9.5vw,62px)}
h3{font-size:clamp(23px,5.5vw,28px);line-height:1.15}
p{margin:0}
.wrap{width:100%;max-width:1184px;margin:0 auto;padding:0 16px}
@media (min-width:720px){.wrap{padding:0 32px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--link);outline-offset:3px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--link)}
.lede{font-size:19px;max-width:72ch}
.lede + .lede{margin-top:18px}
.muted{color:var(--muted)}

/* Sections alternate bright white and warm sand */
.sec{padding-block:72px}
@media (min-width:860px){.sec{padding-block:112px}}
.sec.alt{background:var(--alt)}
.sec-head{max-width:760px;margin-bottom:36px}
.sec-head h2 + p,.sec-head .eyebrow + h2{margin-top:14px}
.sec-head p{font-size:19px;color:var(--muted)}

/* Slim opening banner above everything, one line on phones; the header and hero sit just below it */
.banner{position:relative;z-index:6;height:38px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 16px;margin:0;
  background:var(--btn);color:var(--btn-ink);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.banner a{color:inherit;font-weight:600}
.banner ~ .top.over{top:38px}
.banner ~ .hero{min-height:calc(100vh - 38px);min-height:calc(100svh - 38px)}

/* Header: over the hero photo (white), or in the page flow (unsubscribe page) */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:18px}
.top.over{position:absolute;top:0;left:0;right:0;z-index:5;max-width:none;padding:18px 16px}
@media (min-width:720px){.top.over{padding:26px 32px}}
.brand{display:flex;align-items:center;color:var(--ink);text-decoration:none;font-family:var(--display);font-weight:var(--display-weight);font-size:26px;letter-spacing:var(--display-tracking);line-height:1}
.brand img{height:46px;width:auto;max-width:200px;object-fit:contain}
.over .brand img{height:56px;max-width:240px}
@media (min-width:720px){.over .brand img{height:72px;max-width:300px}}
.over .brand{color:#fff;text-shadow:0 1px 14px rgba(0,0,0,.35)}
.over .brand img{filter:drop-shadow(0 1px 8px rgba(0,0,0,.35))}
.theme{font:inherit;font-size:14px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:999px;padding:8px 16px;cursor:pointer}
.over .theme{color:#fff;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 28px;border-radius:999px;background:var(--btn);color:var(--btn-ink);font:inherit;font-weight:600;text-decoration:none;border:0;cursor:pointer;transition:transform .2s ease,filter .2s ease}
.btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
.btn[disabled]{opacity:.6;cursor:default;transform:none}
.btn.accent{background:var(--accent);color:var(--accent-ink)}
.glass{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:14px 30px;border-radius:999px;color:#fff;font-weight:600;font-size:17px;text-decoration:none;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.6);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);transition:background .2s ease}
.glass:hover{background:rgba(255,255,255,.3)}

/* Hero: the full-screen photo, a soft dark gradient, big white type, and a slow zoom */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;color:#fff;background:linear-gradient(160deg,var(--sea),var(--sea-deep))}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover}
@media (prefers-reduced-motion:no-preference){.hero-media img{animation:drift 26s ease-in-out infinite alternate;transform-origin:60% 40%}}
@keyframes drift{from{transform:scale(1)}to{transform:scale(1.09)}}
/* Dark behind the text (the bottom 45%), a light veil at the top for the logo, clear in between */
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(6,18,20,.9) 0%,rgba(6,18,20,.78) 22%,rgba(6,18,20,.45) 38%,rgba(6,18,20,0) 55%,rgba(6,18,20,0) 78%,rgba(6,18,20,.35) 100%)}
.hero-copy{position:relative;z-index:1;width:100%;max-width:1184px;margin:0 auto;padding:0 16px 64px}
@media (min-width:720px){.hero-copy{padding:0 32px 88px}}
.pill{display:inline-block;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:7px 14px;border-radius:999px;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hero h1{margin-top:18px;font-size:56px;line-height:1;color:#fff;text-shadow:0 2px 30px rgba(0,0,0,.3)}
.hero .tagline{margin-top:16px;font-size:24px;line-height:1.3;color:#fff;max-width:28ch}
.hero .facts{margin-top:10px;font-size:17px;letter-spacing:.02em;color:rgba(255,255,255,.9)}
.hero .glass{margin-top:30px;min-height:60px;padding:16px 36px;font-size:19px}
@media (min-width:720px){
  .hero h1{font-size:96px}
  .hero .tagline{font-size:32px}
  .hero .facts{font-size:18px}
}

/* Highlights: line icons in sea glass and coral */
.highlights{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:720px){.highlights{grid-template-columns:repeat(3,1fr);gap:16px}}
@media (min-width:1080px){.highlights{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
.highlights li{display:flex;flex-direction:column;gap:14px;padding:22px 18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-weight:600;font-size:16.5px;line-height:1.3}
.highlights svg{width:34px;height:34px;color:var(--accent-icon)}

/* Photo strip, mosaic, and figures: 16px corners */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:32px}
.strip img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px}
.strip.n1{grid-template-columns:1fr}
.strip.n1 img{aspect-ratio:16/9}
.strip.n2{grid-template-columns:1fr 1fr}
.strip.n2 img{aspect-ratio:4/3}
.mosaic{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:150px;gap:10px;margin-top:36px}
@media (min-width:720px){.mosaic{grid-template-columns:repeat(3,1fr);grid-auto-rows:230px;gap:14px}}
/* One photo fills the row; two make a big tile and a tall one */
.tile.solo{grid-column:1 / -1;grid-row:span 2}
.tile.tall{grid-row:span 2}
@media (max-width:719px){.tile.fill-phone{grid-column:span 2}}
@media (min-width:720px){.tile.fill-2{grid-column:span 2}.tile.fill-3{grid-column:span 3}}
.tile{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:16px;overflow:hidden;cursor:zoom-in;background:var(--alt);font:inherit}
/* A caption on the tile, like "Artist rendering..." so nobody mistakes a rendering for a photo */
.tile-cap{position:absolute;left:8px;right:8px;bottom:8px;padding:6px 10px;border-radius:10px;background:rgba(6,18,20,.66);color:#fff;font-size:12.5px;line-height:1.35;text-align:left;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media (min-width:720px){.tile-cap{left:12px;right:auto;bottom:12px;max-width:calc(100% - 24px);font-size:13.5px}}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.tile:hover img{transform:scale(1.04)}
.tile.big{grid-column:span 2;grid-row:span 2}
.figs{display:grid;gap:28px}
@media (min-width:860px){.figs{grid-template-columns:1fr 1fr;gap:32px}}
.figs.one{grid-template-columns:1fr;max-width:820px}
.fig{margin:0}
.fig img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;background:var(--surface)}
.fig.contain img{object-fit:contain;padding:14px;border:1px solid var(--line)}
.fig figcaption{margin-top:12px;font-size:15.5px;color:var(--muted)}

/* Lightbox: full screen, swipe or arrow keys */
.lb{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(5,14,16,.95);touch-action:pan-y}
.lb[hidden]{display:none}
.lb img{width:94vw;height:80vh;object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.lb-btn{position:absolute;display:grid;place-items:center;width:48px;height:48px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.lb-btn svg{width:22px;height:22px}
.lb-close{top:16px;right:16px}
.lb-prev{left:12px;top:calc(50% - 24px)}
.lb-next{right:12px;top:calc(50% - 24px)}
.lb-foot{position:absolute;left:16px;right:16px;bottom:20px;text-align:center;color:#fff}
.lb-cap{font-size:15.5px;line-height:1.4;max-width:60ch;margin:0 auto 6px}
.lb-count{font-size:14px;color:rgba(255,255,255,.8)}
body.lb-open{overflow:hidden}

/* Stay active */
.active{display:grid;gap:32px;align-items:center}
@media (min-width:860px){.active{grid-template-columns:5fr 7fr;gap:56px}}
.active .big{margin-top:16px;font-family:var(--display);font-weight:var(--display-weight);font-size:clamp(28px,6.5vw,42px);line-height:1.15}
.active-imgs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.active-imgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px}
@media (min-width:860px){.active-imgs img{aspect-ratio:4/5}}
/* Only what's there: no images leaves the words alone; one image goes wide */
@media (min-width:860px){.active.text-only{grid-template-columns:1fr}}
.active-imgs.one{grid-template-columns:1fr}
.active-imgs.one img{aspect-ratio:4/3}

/* Explore cards: swipe on phones, three across on desktop */
.cards{display:grid;grid-auto-flow:column;grid-auto-columns:80%;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;margin:0 -16px;padding:4px 16px 12px;scrollbar-width:none}
.cards::-webkit-scrollbar{display:none}
/* Desktop: the cards share the row however many there are, so two cards never leave a gap */
@media (min-width:860px){.cards{grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));overflow:visible;margin:0;padding:0;gap:24px}}
.card{scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card-body{padding:22px 22px 26px}
.card h3{margin-bottom:10px}
.card p{font-size:16.5px;color:var(--muted)}
.note{margin-top:28px;font-size:16.5px;color:var(--muted)}

/* Lists */
.two{display:grid;gap:48px}
@media (min-width:860px){.two{grid-template-columns:3fr 2fr;gap:72px}}
.two h2{margin-bottom:24px}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:12px 28px}
@media (min-width:560px){.ticks.cols{grid-template-columns:1fr 1fr}}
@media (min-width:860px){#details > .wrap > .ticks.cols,.more-amen .ticks.cols{grid-template-columns:repeat(3,1fr)}}
#details > .wrap > h2{margin-bottom:28px}
.more-amen{margin-top:24px}
.more-amen summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;color:var(--link);list-style:none;padding:10px 0}
.more-amen summary::-webkit-details-marker{display:none}
.more-amen summary::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
.more-amen[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.more-amen .ticks{margin-top:12px}
/* Resort rules as a clean list */
.rules-lead{color:var(--ink);font-weight:600}
.rule-list{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px;max-width:72ch}
@media (min-width:860px){.rule-list{grid-template-columns:1fr 1fr;gap:10px 40px;max-width:none}}
.rule-list li{position:relative;padding-left:22px;font-size:16.5px;color:var(--muted)}
.rule-list li::before{content:"";position:absolute;left:4px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent-icon)}
.ticks li{position:relative;padding-left:30px}
.ticks li::before{content:"";position:absolute;left:2px;top:.5em;width:13px;height:7px;border:solid var(--accent-icon);border-width:0 0 2px 2px;transform:rotate(-45deg)}
.sleep{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sleep li{padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-size:19px}
.sleep b{font-weight:600}
.facts-list{display:grid;margin:0}
.facts-list div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.facts-list dt{color:var(--muted)}
.facts-list dd{margin:0;text-align:right;font-weight:600}
.fine{margin-top:22px;font-size:16px;color:var(--muted);max-width:70ch}
.know{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media (min-width:720px){.know{grid-template-columns:1fr 1fr}}
.know li{padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-size:17px}

/* First dibs */
.dibs-in{max-width:640px}
.dibs form{margin-top:28px;display:grid;gap:16px}
.dibs label.field{display:grid;gap:8px;font-weight:600}
.dibs input[type=email]{font:inherit;font-size:17px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;min-height:54px;width:100%}
.dibs input[type=email]:focus{outline:2px solid var(--link);outline-offset:1px}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5}
.consent input{width:22px;height:22px;margin:2px 0 0;flex:none;accent-color:var(--btn)}
.dibs .btn{justify-self:start}
.small{font-size:14.5px;color:var(--muted)}
.msg{min-height:1.5em;font-size:16px}
.msg.ok{color:var(--ink);font-weight:600}
.msg.err{color:var(--err)}

/* Sticky "Get first dibs" bar on phones, shown once the hero is behind you and hidden at the form */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(0,0,0,.08);transition:transform .35s ease}
.sticky.away{transform:translateY(110%)}
.sticky p{font-size:15px;line-height:1.3}
.sticky b{display:block;font-family:var(--display);font-weight:var(--display-weight);font-size:19px}
.sticky span{color:var(--muted);font-size:14px}
.sticky .btn{min-height:46px;padding:10px 20px;flex:none}
@media (min-width:860px){.sticky{display:none}}

/* Fade up on scroll (only when site.js adds .anim, and never with reduced motion) */
@media (prefers-reduced-motion:no-preference){
  .anim .reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s ease}
  .anim .reveal.in{opacity:1;transform:none}
}

/* Footer */
.foot{padding-block:44px 120px;border-top:1px solid var(--line);font-size:15px;color:var(--muted)}
@media (min-width:860px){.foot{padding-bottom:56px}}
.foot p + p{margin-top:8px}
.foot-logo{margin-bottom:18px}
.foot-logo img,.top:not(.over) .brand img{height:52px;width:auto;max-width:220px}
/* Two logos: colored on light backgrounds, white in dark mode (whichever the theme shows) */
.on-dark{display:none}
:root[data-theme="dark"] .on-light{display:none}
:root[data-theme="dark"] .on-dark{display:block}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .on-light{display:none}:root:not([data-theme="light"]) .on-dark{display:block}}
.foot a{color:var(--muted)}

/* Simple pages (unsubscribe) */
.simple{padding-block:64px 96px;max-width:640px}
.simple h1{font-size:clamp(38px,9vw,56px)}
.simple p{margin-top:16px;font-size:18px}
