:root {
  --bg:#fff; --ink:#12324a; --muted:#3f5567; --sand:#f5efe6; --line:#e3dcd1;
  --sun:#f2b232; --on-sun:#12324a; --orange:#e06a2c; --orange-text:#b8462e;
  --band:#12324a; --on-band:#fff; --band-accent:#f2b232; --card:#fff; --tri3:#12324a;
  --heading:"Bricolage Grotesque","DM Sans",system-ui,sans-serif;
  --body:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --hand:"Caveat","Comic Sans MS",cursive;
  color-scheme:light;
}
@media (prefers-color-scheme:dark) {
  :root {
    --bg:#0f2232; --ink:#f2ede4; --muted:#c2ccd3; --sand:#16304a; --line:#2a4560;
    --orange-text:#f29a68; --band:#0a1926; --card:#16304a; --tri3:#fff; color-scheme:dark;
  }
}
*,::before,::after { box-sizing:border-box }
[hidden] { display:none!important }
html { scroll-padding-top:calc(env(safe-area-inset-top,0px) + 82px); scroll-behavior:smooth }
body { margin:0; background:var(--bg); color:var(--ink); font:400 18px/1.6 var(--body) }
h1,h2,h3 { margin:0; font:800 1.35rem/1.08 var(--heading); letter-spacing:-.01em }
h1 { font-size:clamp(2.5rem,5.2vw,4rem) }
h2 { font-size:clamp(1.9rem,3.6vw,2.9rem) }
p,figure,ul { margin:0 }
a { color:inherit; text-underline-offset:.2em }
img { display:block; max-width:100% }
button,input,select { font:inherit }
button { cursor:pointer }
:focus-visible { outline:3px solid var(--orange); outline-offset:3px; border-radius:6px }
.shell { width:min(1132px,calc(100% - 48px)); margin-inline:auto }
.skip { position:absolute; top:6px; left:12px; transform:translateY(-180%); z-index:40; padding:8px 15px; background:var(--bg) }
.skip:focus { transform:none }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }

.site-header { position:sticky; top:0; z-index:20; background:var(--bg); border-bottom:1px solid var(--line); padding-top:env(safe-area-inset-top,0px) }
.bar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:70px; max-width:1440px; margin-inline:auto; padding:9px 24px }
.logo { display:inline-flex; flex:none; align-items:center; gap:10px; text-decoration:none; line-height:1 }
.logo span { font:700 2.1rem/1 var(--hand); white-space:nowrap }
.header-actions,.lang-switch { display:flex; align-items:center; gap:12px }
.lang-switch { gap:4px }
.lang-switch a {
  display:grid; place-items:center; border:1px solid var(--line); border-radius:999px;
  min-width:41px; min-height:36px; text-decoration:none; font-size:.82rem; font-weight:700;
}
.lang-switch [aria-current="page"] { background:var(--ink); color:var(--bg); border-color:var(--ink) }
.btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 21px;
  font-size:1rem; font-weight:700; line-height:1.18; color:var(--ink); background:none; border:2px solid transparent;
  border-radius:999px; text-decoration:none; text-align:center;
}
.btn.sun { background:var(--sun); color:var(--on-sun) }
.btn.sun:hover { filter:brightness(.95) }
.btn.line { border-color:currentColor }
.btn.line:hover,.text-link:hover { color:var(--orange-text) }
.book-short { display:none }
.text-link { font-weight:700 }

.hero { display:grid; grid-template-columns:1fr 1.06fr; align-items:center; gap:clamp(24px,5vw,71px); padding-block:46px 42px }
.hero .kicker { color:var(--orange-text); font:700 1.7rem/1.15 var(--hand); margin-bottom:9px }
.hero .lead { max-width:35ch; margin-top:17px; color:var(--muted); font-size:1.12rem }
.hero-actions { margin-top:24px; display:flex; flex-wrap:wrap; align-items:center; gap:11px 17px; font-size:1rem }
.hero-photo { position:relative; min-width:0; margin:0 }
.hero-photo>img { height:clamp(245px,29vw,357px); width:100%; object-fit:cover; object-position:50% 56%; border-radius:24px }
.hero-photo figcaption {
  position:absolute; left:15px; bottom:14px; padding:3px 10px 5px; border-radius:8px;
  background:var(--bg); font:700 1.2rem/1.16 var(--hand); transform:rotate(-3deg);
}
.sun-rhythm { position:absolute; width:76px; height:72px; inset:12px 13px auto auto; isolation:isolate }
.sun-face {
  position:absolute; width:50px; height:50px; top:13px; left:12px; border-radius:50%; background:var(--sun);
  box-shadow:0 0 0 5px #fff6; color:var(--on-sun);
}
.sun-face::before { content:""; position:absolute; inset:17px auto auto 14px; width:4px; height:4px; border-radius:50%; background:currentColor; box-shadow:17px 0 currentColor }
.sun-face::after { content:""; position:absolute; left:19px; top:23px; width:12px; height:7px; border:2px solid currentColor; border-top:0; border-radius:0 0 12px 12px }
.sun-note { position:absolute; color:#12324a; font:700 18px/1 var(--heading); text-shadow:0 1px 4px #ffefd0 }
.sun-note:nth-child(2) { inset:3px auto auto 1px }
.sun-note:nth-child(3) { inset:0 0 auto auto }
.sun-note:nth-child(4) { inset:auto 0 1px auto }
.rhythm-trigger { position:absolute; width:76px; height:72px; inset:12px 13px auto auto; background:none; border:0; border-radius:50% }
.rhythm-trigger:focus-visible { outline-color:var(--sun); box-shadow:0 0 0 6px var(--on-sun) }
@media (prefers-reduced-motion:no-preference) {
  .is-dancing .sun-face { animation:sun-beat .68s ease-in-out 3 }
  .is-dancing .sun-note { animation:sun-notes 1.22s .1s ease-in-out 1 both }
  .is-dancing .sun-note:nth-child(3) { animation-delay:.53s }
  .is-dancing .sun-note:nth-child(4) { animation-delay:.88s }
}
@keyframes sun-beat {
  0%,100% { transform:translateY(0) rotate(0) }
  44% { transform:translateY(-6px) rotate(-11deg) }
  72% { transform:translateY(1px) rotate(7deg) }
}
@keyframes sun-notes {
  0%,100% { transform:translateY(0) rotate(0); opacity:1 }
  50% { transform:translate(3px,-9px) rotate(16deg); opacity:.83 }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  .rhythm-trigger { display:none }
}

.note { display:grid; grid-template-columns:1.55fr 1fr; border-radius:22px; overflow:hidden }
.note-story,.note-practical { padding:clamp(20px,3vw,34px) }
.note-story { background:var(--sand) }
.note-story h2 { font-size:clamp(1.72rem,3.1vw,2.55rem); margin:6px 0 9px }
.note-label { font:700 1.54rem/1.12 var(--hand); color:var(--orange-text) }
.note-practical { background:var(--band); color:var(--on-band); display:grid; align-content:center; gap:4px; font-size:1rem }
.note-practical .small { font-size:.91rem; color:var(--band-accent); font-weight:700 }
.note-practical h3 { margin:3px 0 }
.note-practical h3 a:hover { color:var(--band-accent) }

#agenda { padding-block:38px 36px }
.agenda-top { display:flex; align-items:end; justify-content:space-between; gap:11px; margin-bottom:16px }
.agenda-top p,.list-note { color:var(--muted); font-size:.93rem }
.filters { display:flex; flex-wrap:wrap; align-items:center; gap:9px 15px; padding-bottom:12px }
.filter-dates,.lookup,.range { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.filters button,.range button {
  color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:999px;
  min-height:44px; padding:7px 13px; font-weight:700; white-space:nowrap; font-size:.95rem;
}
.filters button:hover,.range button:hover { border-color:var(--ink) }
.filters button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink) }
.lookup { justify-content:flex-end; flex:1 1 305px }
.lookup input,.lookup select,.range input {
  min-width:0; min-height:44px; padding:8px 12px; background:var(--bg); color:var(--ink);
  border:1px solid var(--muted); border-radius:12px; font-size:1rem;
}
.lookup input { flex:1 0 180px; max-width:255px }
.lookup input::placeholder { opacity:1; color:var(--muted) }
.range { align-items:end; padding:12px; margin-bottom:12px; background:var(--sand); border-radius:16px }
.range label { display:flex; flex-direction:column; gap:3px; font-size:.92rem; font-weight:700 }
.range button { padding-inline:16px; background:var(--ink); color:var(--bg) }
.list-note { line-height:1.36; min-height:21px; margin-bottom:11px }
.empty { padding:18px; border:1px solid var(--line); border-radius:14px; color:var(--muted) }

.events { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; list-style:none; padding:0 }
.events li { background:var(--card); border:1px solid var(--line); border-radius:22px; overflow:hidden }
.event-media { position:relative; background:var(--sand) }
.event-media img { width:100%; aspect-ratio:2.6; object-fit:cover }
.event-media .photo-music { object-position:center 42% }
.event-media .photo-carnival { object-position:center 62% }
.event-media .photo-cesaria { object-position:center 42% }
.date {
  position:absolute; inset:12px auto auto 12px; display:grid; place-items:center; align-content:center; gap:2px;
  min-width:63px; min-height:63px; padding:6px; border-radius:13px; background:#fff; color:#12324a;
}
.date b { font:800 1.62rem/.97 var(--heading) }
.date span { font-size:.75rem; line-height:1.15; font-weight:700 }
.event-content { padding:16px 20px 19px }
.event-type { color:var(--orange-text); font-size:.87rem; font-weight:700 }
.events h3 { margin:4px 0 8px; font-size:clamp(1.28rem,2vw,1.56rem) }
.events h3 a:hover,.event-links a:hover,.bottom a:hover { color:var(--orange-text) }
.events .details { color:var(--muted); font-size:1rem; line-height:1.44; margin-bottom:5px }
.event-links { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:.94rem; font-weight:700; margin-top:8px }
.event-checked { color:var(--muted); font-size:.83rem; margin-top:9px }

.stay { padding-bottom:39px }
.stay-panel { background:var(--sand); border-radius:22px; display:grid; grid-template-columns:160px minmax(0,1fr) auto; align-items:center; gap:22px; padding:16px }
.stay-panel img { height:101px; width:160px; object-fit:cover; border-radius:15px }
.stay h2 { font-size:clamp(1.55rem,3vw,2rem); margin-bottom:5px }
.stay p { font-size:1rem; color:var(--muted) }
.stay .btn { justify-self:start }
.bottom { border-top:1px solid var(--line); background:var(--sand); padding-block:26px 30px }
.bottom-inner { display:grid; gap:15px; font-size:.97rem }
.bottom h2 { font-size:1.3rem; margin-bottom:8px }
.source-links,.footer-nav { display:flex; flex-wrap:wrap; gap:6px 18px; padding:0; list-style:none; margin-bottom:6px }
.photo-credits summary { cursor:pointer; font-weight:700 }
.photo-credits ul { margin-top:5px; padding-inline-start:20px }
.photo-credits p,.photo-credits li { font-size:.88rem }

@media (max-width:830px) {
  .hero { gap:27px }
  .lookup { justify-content:flex-start }
  .lookup input { max-width:none }
  .stay-panel { grid-template-columns:115px minmax(0,1fr) auto; gap:16px }
  .stay-panel img { width:115px }
}
@media (max-width:620px) {
  body { font-size:17px }
  .shell { width:calc(100% - 34px) }
  .bar { min-height:62px; padding:8px 17px }
  .logo { gap:5px }
  .logo svg { width:29px; height:27px }
  .logo span { font-size:1.62rem }
  .header-actions { gap:6px }
  .lang-switch a { min-width:33px; min-height:34px }
  .header-book { min-height:40px; padding:8px 12px; font-size:.92rem }
  .header-book .book-full { display:none }
  .header-book .book-short { display:inline }
  .hero { grid-template-columns:1fr; gap:20px; padding-block:27px 24px }
  .hero .lead { margin-top:10px }
  .hero-actions { margin-top:15px }
  .hero-photo>img { height:clamp(155px,46vw,235px); border-radius:19px }
  .hero-photo figcaption { font-size:1.03rem }
  .note { grid-template-columns:1fr; border-radius:18px }
  #agenda { padding-block:28px }
  .agenda-top { align-items:start; flex-direction:column; gap:3px; margin-bottom:11px }
  .lookup { width:100%; flex-wrap:nowrap }
  .lookup input { flex:1 1 120px }
  .lookup select { flex:0 1 160px; max-width:47% }
  .filters button { padding-inline:10px }
  .events { grid-template-columns:1fr; gap:14px }
  .event-media img { aspect-ratio:2.25 }
  .event-content { padding:14px 16px 17px }
  .stay-panel { grid-template-columns:86px minmax(0,1fr); gap:12px }
  .stay-panel img { height:82px; width:86px }
  .stay-panel .btn { grid-column:1/-1 }
}
@media (max-width:350px) {
  .bar { padding-inline:10px }
  .logo span { font-size:1.45rem }
  .logo svg { width:24px }
  .lang-switch a { min-width:30px }
  .header-book { padding-inline:8px }
}

/* ---- Plan ahead: the year in Mindelo ---- */
.year { margin-top:72px }
.year-top { display:grid; gap:10px; max-width:46em; margin-bottom:24px }
.year-top p { color:var(--muted) }
.year-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px }
.year-card { display:grid; grid-template-columns:74px 1fr; gap:16px; padding:20px; border:1px solid var(--line); border-radius:22px; background:var(--card) }
.year-card[data-status="confirmed"] { border-color:var(--sun); box-shadow:inset 0 0 0 1px var(--sun) }
.year-month { display:grid; place-items:center; align-content:center; height:74px; border-radius:18px; background:var(--sand); text-align:center; line-height:1 }
.year-month span { font:800 1.25rem/1 var(--heading) }
.year-month small { font-size:.8rem; color:var(--muted); margin-top:4px }
.year-card[data-status="confirmed"] .year-month { background:var(--sun); color:var(--on-sun) }
.year-card[data-status="confirmed"] .year-month small { color:var(--on-sun) }
.year-body { display:grid; gap:6px; align-content:start }
.year-body h3 { font-size:1.2rem }
.year-body p { color:var(--muted); font-size:.97rem }
.year-body .year-when { color:var(--ink); font-weight:700; font-size:.92rem }
.year-chip { justify-self:start; font-size:.78rem!important; font-weight:700; padding:2px 10px; border-radius:999px; border:1px dashed var(--muted) }
.year-chip.is-confirmed { border:0; background:rgba(242,178,50,.25); color:var(--ink)!important }
.year-body .text-link { justify-self:start; margin-top:4px; font-weight:700 }
@media (max-width:560px) { .year-list { grid-template-columns:1fr } .year-card { grid-template-columns:58px 1fr; padding:16px } .year-month { height:58px } }
