/* ===== Hybrid "Day & Night" version =====
   60% cream (reading, warmth), 30% navy (structure, emotion, proof), 10% gold (the DOT, signals, CTAs).
   Day chapters = cream paper with grain. Night chapters = navy with Costa Rica style topographic lines.
   The final call to action is the golden hour. Gold is only ever #b8862f. */
:root{--navy:#0a1d30;--navy2:#10283f;--navy3:#081626;--gold:#b8862f;--goldl:#b8862f;--cream:#f6f1e8;--white:#ffffff;
  --dot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='10' fill='%23b8862f'/%3E%3Ccircle cx='20' cy='20' r='18' fill='none' stroke='%23b8862f' stroke-width='2' opacity='.55'/%3E%3C/svg%3E")}
html{scrollbar-color:var(--navy) var(--cream)}
::selection{background:var(--gold);color:var(--navy)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
body{background:var(--cream) url(/grain.png);color:var(--navy)}
.progress{display:none}

/* header: always night, like the dark logo */
header,body.has-hero header.solid{background:rgba(10,29,48,.92);color:var(--cream);border-bottom-color:rgba(184,134,47,.25);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 30px rgba(8,22,38,.25)}
body:not(.has-hero) header{background:var(--navy)}
body.has-hero header:not(.solid){background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
header .lang{border-color:rgba(246,241,232,.6)}

/* hero melts into a navy strip, then the day starts */
.hero::before{background:linear-gradient(90deg,rgba(10,29,48,.6) 0%,rgba(10,29,48,.1) 65%),linear-gradient(180deg,rgba(10,29,48,.5) 0%,rgba(10,29,48,.05) 32%,rgba(10,29,48,.45) 62%,#0a1d30 100%)}
.hero .btn{background:var(--gold);color:var(--navy)}
.hero .btn.ghost{background:transparent;color:var(--cream);border-color:rgba(246,241,232,.75)}
.strip{background:var(--navy);color:var(--cream);border:0;padding:1.3em 5vw 1.6em;position:relative}
.strip span{position:relative;padding-left:1.35em}
.strip span::before{content:"";position:absolute;left:0;top:50%;width:.95em;height:.95em;transform:translateY(-50%);background:var(--dot) center/contain no-repeat}
.strip .num{color:var(--gold)}

/* chapters */
.ch{position:relative;isolation:isolate}
.ch-day{background:transparent}
.ch-night{background:var(--navy);color:#e9e2d4}
.ch-night::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/topo-gold.svg) center/cover no-repeat;opacity:.09;pointer-events:none}
.ch-night::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(120% 80% at 50% 0%,rgba(22,52,82,.55),transparent 60%);pointer-events:none}
.ch-night+.ch-night::after{display:none}

/* signature eyebrow: the brand DOT instead of a line */
.eyebrow{color:var(--gold);display:flex;align-items:center}
.center .eyebrow{justify-content:center}
.eyebrow::before,.eyebrow.in::before,.hero .eyebrow::before{width:1.3em;height:1.3em;margin-right:.7em;background:var(--dot) center/contain no-repeat!important;flex:none;transform:scale(.2);opacity:0;transition:transform .8s cubic-bezier(.2,.8,.2,1) .15s,opacity .5s ease .15s}
.eyebrow.in::before,.hero .eyebrow::before,html:not(.js) .eyebrow::before{transform:none;opacity:1}
.hero .eyebrow{color:var(--cream)}

/* day */
.ch-day h1,.ch-day h2,.ch-day h3{color:var(--navy)}
.ch-day .card,.ch-day .day .m,.ch-day .quote,.ch-day details{background:var(--white)}
.ch-day .card,.ch-day .day .m{border:1px solid rgba(10,29,48,.08);box-shadow:0 1px 0 rgba(10,29,48,.04),0 18px 36px -24px rgba(10,29,48,.35)}
.ch-day .card:hover,.ch-day .day .m:hover{border-color:var(--gold);box-shadow:0 22px 44px -22px rgba(10,29,48,.4)}
.ch-day details{background:transparent;border-color:rgba(10,29,48,.12)}
.ch-day .btn{background:var(--navy);color:var(--cream)}
.ch-day .btn.ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.ch-day .chips a{border-color:var(--navy);color:var(--navy)}
.ch-day .chips a:hover{background:var(--navy);color:var(--cream)}
.ch-day .two img,.ch-day .aud img{box-shadow:16px 16px 0 -1px var(--cream),16px 16px 0 0 rgba(184,134,47,.6)}
.ch-day .aud.alt{background:transparent}
.ch-day .aud-tag{background:var(--navy);color:var(--cream)}
.ch-day .lk{color:var(--navy);text-decoration-color:var(--gold)}

/* night */
.ch-night h1,.ch-night h2,.ch-night h3,.ch-night summary{color:var(--cream)}
.ch-night .lead{color:#f0e9dc}
.ch-night .card,.ch-night .quote,.ch-night .day .m{background:rgba(16,40,63,.82);color:#e9e2d4;border-color:rgba(184,134,47,.28);backdrop-filter:blur(2px)}
.ch-night .card:hover,.ch-night .day .m:hover{border-color:var(--gold);box-shadow:0 22px 44px -20px rgba(0,0,0,.55)}
.ch-night .quote p{color:var(--cream)}
.ch-night .quote cite{color:#d9d1c2}
.ch-night details{border-color:rgba(184,134,47,.25)}
.ch-night .btn{background:var(--gold);color:var(--navy)}
.ch-night .btn.ghost{background:transparent;color:var(--cream);border-color:rgba(246,241,232,.7)}
.ch-night .chips a{border-color:rgba(184,134,47,.6);color:var(--cream)}
.ch-night .chips a:hover{background:var(--gold);color:var(--navy)}
.ch-night .lk{color:var(--gold)}
.ch-night .aud.alt{background:transparent}
.ch-night .aud-tag{background:var(--gold);color:var(--navy)}
.ch-night .thought{color:var(--cream)}
.ch-night .two img,.ch-night .aud img{box-shadow:16px 16px 0 -1px var(--navy),16px 16px 0 0 rgba(184,134,47,.55)}
.ch-night .gets li,.ch-night .aud{border-color:rgba(184,134,47,.2)}
.ch-night table,.ch-night th,.ch-night td{border-color:rgba(184,134,47,.25)}
.ch-night th{background:var(--navy2)}
.ch-night input,.ch-night textarea,.ch-night select{background:var(--navy2);color:var(--cream);border-color:rgba(184,134,47,.35)}
.ch-night .routemap .land{fill:#163452;stroke:#2a4a6b}
.ch-night .routemap text{fill:var(--cream);stroke:var(--navy)}
.ch-night .routemap .sea{fill:#8fa3b8;stroke:none}
.ch-night .routemap .route.r2,.ch-night .routemap .boat.r2{stroke:var(--cream);opacity:.85}
.ch-night .routemap .lg.l2{background:var(--cream)}
.ch-night .routemap .legend,.ch-night .stoplist{color:#e9e2d4}

/* golden hour: the final call to action */
.band{background:var(--gold);color:var(--navy)}
.band::before{width:auto;height:auto;inset:0;left:0;top:0;border-radius:0;background:url(/topo-navy.svg) center/cover no-repeat;opacity:.12;animation:none}
.band::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(90% 120% at 85% 110%,rgba(246,241,232,.35),transparent 55%)}
.band h1,.band h2,.band h3{color:var(--navy)}
.band .lead,.band p{color:#13263b}
.band .eyebrow{color:var(--navy)}
.band .btn{background:var(--navy);color:var(--cream)}
.band .btn.ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.band .lk{color:var(--navy)}

/* footer: deepest night */
footer{background:var(--navy3);color:#d9d1c2;border-top:0;position:relative;isolation:isolate}
footer::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/topo-gold.svg) center/cover no-repeat;opacity:.06}
footer a{color:#e9e2d4}

/* WhatsApp: visible on cream, navy and gold */
.btn.wa{background:var(--navy);color:var(--cream);box-shadow:0 0 0 1.5px var(--gold),0 12px 30px rgba(8,22,38,.35)}

/* the road: a scroll indicator where the DOT is the traveler */
.road{position:fixed;left:26px;top:96px;bottom:40px;width:2px;z-index:4;pointer-events:none;opacity:0;transition:opacity .6s ease}
.road.on{opacity:1}
.road::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(180deg,rgba(184,134,47,.55) 0 9px,transparent 9px 18px)}
.road i{position:absolute;left:0;top:0;width:2px;height:calc(var(--p,0) * 100%);background:var(--gold)}
.road b{position:absolute;left:50%;top:calc(var(--p,0) * 100%);width:26px;height:26px;margin:-13px 0 0 -13px;background:var(--dot) center/contain no-repeat}
@media(max-width:1279px){.road{display:none}}
@media(max-width:820px){
 .ch-day .two img,.ch-day .aud img,.ch-night .two img,.ch-night .aud img{box-shadow:10px 10px 0 -1px var(--cream),10px 10px 0 0 rgba(184,134,47,.6)}
 .ch-night .two img,.ch-night .aud img{box-shadow:10px 10px 0 -1px var(--navy),10px 10px 0 0 rgba(184,134,47,.55)}
 .two img,.aud img{width:calc(100% - 10px)}
}
@media(prefers-reduced-motion:reduce){.eyebrow::before{transform:none!important;opacity:1!important}}

/* keep the offset photo frame visible after the reveal */
.js .ch .rvimg.in{clip-path:inset(0 -18px -18px 0 round 14px)}
.ch-day .eyebrow{color:var(--navy)}
.band .eyebrow{color:var(--navy)}
.ch-night .day .t,.ch-night .story .card h3,.ch-night .tag{color:var(--gold)}
.ch-night .routemap .land.nb{fill:#0f2538;stroke:#2a4a6b}
.ch-night .routemap .lake{fill:#0a1d30;stroke:#2a4a6b}
.ch-night .routemap .country{fill:#6f86a0}
.ch-day :focus-visible{outline-color:var(--navy)}
.ch-day form .chip span{background:#fff}
.ch-night form .chip span{background:var(--navy2);color:var(--cream);border-color:rgba(184,134,47,.45)}
.ch-night form .chip input:checked+span{background:var(--gold);color:var(--navy);border-color:var(--gold)}
