/* Theme: Minted "Grant Jones and Priscilla Lloyd Pérez" guest site (art by Jenna Holcomb).
   Real faces load from fonts/ (git-ignored: desktop licenses forbid web serving, so they
   only exist on licensed machines). Free fallbacks: Bellefair, Baskervville.
   Mrs Eaves Italic + Roman are not in the font package yet; body italic falls back. */
@font-face {
  font-family: "Adorn Story Serif";
  src: local("Adorn Story Serif"), url("fonts/adornstoryserif.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Mrs Eaves Petite Caps";
  src: local("Mrs Eaves OT Roman Petite Caps"), url("fonts/mrseavesot-romanpetitecaps.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Mrs Eaves All Petite Caps";
  src: local("Mrs Eaves OT Roman All Petite Caps"), url("fonts/mrseavesot-romanallpetitecaps.otf") format("opentype");
  font-display: swap;
}
:root {
  /* Palette: a deep green anchors the site (nav, text, headings); three lighter greens in its hue
     carry borders, fills and the map; tropical accents are used sparingly.
     Text-safe on --paper: --green-deep, --green-dark, --accent-red (5.2:1). Orange/coral: fills only. */
  --green-deep: #334a00;
  --green-light: #9ab955;
  --green-mid: #809d40;
  --green-dark: #5e742f;
  --accent-orange: #ff8a1f;
  --accent-coral: #ff4f6d;
  --accent-red: #c8174f;
  --paper: #f8f5ec;
  --card: #fffdf6;
  --rule: rgba(154, 185, 85, .45);   /* --green-light, softened for hairlines */
  --ink: var(--green-deep);
  --ink-soft: var(--accent-red);
  --white: #ffffff;
  --display: "Adorn Story Serif", "Bellefair", serif;
  --caps: "Mrs Eaves Petite Caps", "Baskervville", serif;
  --petite: "Mrs Eaves All Petite Caps", "Baskervville", serif;
  --body: "Baskervville", "MrsEavesRoman Regular", Baskerville, serif;
  --track: 1.5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
button, input, select, textarea { text-transform: inherit; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: var(--track);
  text-align: center;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; }

/* ---------- Nav bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 24px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-family: var(--caps);
  font-style: normal;
  font-size: 18.2px;
  text-transform: uppercase;
  letter-spacing: var(--track);
}
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; color: var(--paper); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { color: var(--white); border-bottom-color: var(--accent-orange); }
.page section[id] { scroll-margin-top: 80px; }


/* ---------- Home ---------- */
.photo-row {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 15px 0;
}
/* Countdown under the home photo */
.home-tagline { margin: 48px 15px 0; font-family: var(--caps); font-style: normal; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; letter-spacing: 3px; } /* body-text style, between photo and countdown */
.countdown { max-width: 900px; margin: 0 auto; padding: 40px 15px 80px; }
.countdown-units { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(14px, 5vw, 48px); }
.countdown-units li { display: flex; flex-direction: column; align-items: center; min-width: 3.2em; }
.countdown-num { font-family: var(--caps); font-size: clamp(22px, 4vw, 30px); line-height: 1.2; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: var(--ink); }
.countdown-label { margin-top: 6px; font-family: var(--caps); font-size: 13px; letter-spacing: 3px; color: var(--accent-red); }
.countdown-done { margin: 0; font-family: var(--display); font-size: clamp(28px, 5vw, 44px); }
.photo-row img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1350; object-fit: cover; object-position: center bottom; } /* trims the top 10% (sky) */
.home-head { padding: 50px 30px 0; }
.save {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 6.4vw, 64px);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 6px;
}
/* Date + place: the nav's petite-caps face */
.date, .home-head .place {
  display: block;
  margin: 0;
  font-family: var(--caps);
  font-style: normal;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.8;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.save { margin-bottom: 4px; }
/* Hibiscus from the original Minted theme, used as a mask so it takes a palette colour */
.hibiscus {
  background-color: var(--green-dark);
  -webkit-mask: url("assets/theme/small-graphic.png") center / contain no-repeat;
          mask: url("assets/theme/small-graphic.png") center / contain no-repeat;
}
.home-mark { display: block; width: 56px; height: 56px; margin: 0 auto 10px; }

/* ---------- Page body ---------- */
.page { max-width: 994px; margin: 0 auto; padding: 0 15px; }
.page-title, .section-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(38px, 5.3vw, 54px);
  line-height: 1.5;
  text-transform: uppercase;
  margin: 80px 0 30px;
}
.section-title { margin: 20px 0 40px; }
.page-title { font-size: clamp(30px, 4.1vw, 41px); } /* Details date: ~76% of the section-title size */
.page-title--day { margin: 56px 0 30px; } /* second day heading on Details */
/* Hibiscus above each day heading on Details */
.day-mark { display: block; width: 48px; height: 48px; margin: 46px auto 0; }
.day-mark--second { margin-top: 46px; }
.day-mark + .page-title { margin-top: 6px; }
/* Hibiscus above each Travel section heading (these replace the double-rule dividers) */
.section-mark { display: block; width: 48px; height: 48px; margin: 50px auto 0; }
.page > .block:first-child .section-mark { margin-top: 0; }
.section-mark + .section-title { margin-top: 6px; }
/* Pages with no page title: give the first section the title's breathing room */
.page > .block:first-child { padding-top: 70px; }
.block { padding: 30px 30px 10px; }
.block h3 { font-style: italic; }
.block h3 { font-size: 24px; line-height: 36px; font-weight: 400; margin: 0 0 50px; }
.block h4 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.block p { margin: 0 0 24px; }
.block .note { font-size: 18px; color: var(--ink-soft); }
.subnav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-family: var(--caps); font-style: normal; font-size: 16px; text-transform: uppercase; margin: 0 0 20px;
}
.subnav a { text-decoration: none; }
.subnav a:hover { text-decoration: underline; }

/* Instagram click-out */
.ig-btn {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 30px; padding: 14px 26px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--caps); font-style: normal; text-transform: uppercase; font-size: 17px;
  border-radius: 999px; transition: background .2s, transform .2s;
}
.ig-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.ig-btn .ig-handle { font-family: var(--body); font-style: italic; opacity: 0.8; }
.ig-btn:hover { background: var(--accent-red); transform: translateY(-1px); }

/* Map views */
.map-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 12px; }
.map-views button {
  font: inherit; font-family: var(--caps); font-style: normal; text-transform: uppercase; font-size: 14px;
  letter-spacing: var(--track); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px;
}
.map-views button[aria-pressed="true"], .map-views button:hover { background: var(--ink); color: var(--paper); }

/* Map pins: the element is the marker itself, centred on its point; the label hangs to the right. */
.pin { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--caps); font-style: normal; text-transform: uppercase; letter-spacing: 1px; }
.pin--air { width: 28px; height: 28px; }
.pin--air .pin-dot { inset: 6px; }
.pin--air .pin-label { left: calc(100% + 0px); }
.pin--venue { width: 46px; height: 46px; }
.pin-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 0 0 4px rgba(51,74,0,.15); }
.pin-seal { position: absolute; inset: 0; border-radius: 50%; background: var(--paper) url("assets/theme/small-graphic.png") center / 34px no-repeat; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(51,74,0,.3); }
.pin-label { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; white-space: nowrap; box-shadow: 0 1px 4px rgba(51,74,0,.18); }
.pin--venue .pin-label { background: var(--ink); color: var(--paper); font-size: 13px; }
.popbody { margin: 6px 0 0; font-size: 14px; line-height: 1.4; max-width: 230px; }

/* Maps */
.map { height: 520px; margin: 0 0 14px; background: #f1eddc; border: 1px solid var(--ink); }
.map--fallback { display: flex; align-items: center; justify-content: center; padding: 24px; }
.map-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  font-size: 17px; margin-bottom: 24px;
}
.key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1.5px solid var(--ink); }
.key--venue { background: var(--ink); }
.key--air { background: var(--paper); }
.key--stay { width: 18px; height: 12px; border-radius: 2px; background: rgba(51,74,0,.14); border: 1.5px dashed var(--ink); }
.key--route { width: 22px; height: 0; border-radius: 0; border: 0; border-top: 3px solid var(--ink); }
.mapboxgl-popup-content { font-family: var(--body); color: var(--ink); letter-spacing: 1px; }
.popsub { color: var(--ink-soft); }

/* Details: Instagram icon inline with the reception venue */
/* 20px circle in the card-border green (paper-coloured glyph) drawn inside a 24px box so the tap target stays at the 24px minimum */
.ig-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 2px; border-radius: 50%; background: var(--green-mid) content-box; color: var(--paper); transition: background-color .2s, color .2s; }
.ig-icon svg { width: 12px; height: 12px; }
.ig-icon:hover { background-color: var(--accent-red); color: var(--white); }
.fact-body { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }

/* Coming soon badge */
.soon { display: inline-block; margin: 0 0 18px; padding: 5px 16px; border: 1px solid var(--accent-coral); border-radius: 999px; color: var(--accent-red); font-family: var(--caps); font-style: normal; text-transform: uppercase; font-size: 14px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; text-align: left; }
.checklist > li { margin: 0 0 24px; padding: 26px 30px 12px; border: 1px solid var(--green-mid); background: var(--card); }
.checklist > li > h4 { font-size: 22px; }
/* Details: centred cards, small red label on top, the detail itself in the large display face */
.checklist--center > li { text-align: center; }
.checklist--center > li > h4 { font-family: var(--caps); font-size: 15px; color: var(--accent-red); margin: 0 0 4px; }
.checklist--center .steps { list-style: none; padding: 0; margin: 6px 0 14px; font-family: var(--display); font-size: 22px; line-height: 1.4; }
.checklist--center .steps li { padding: 0; margin: 0; }
.checklist--center .fact-body { justify-content: center; }
/* Welcome party is informal: smaller, in the body face rather than the display face */
#welcome-party .steps { font-family: var(--caps); font-size: 16px; line-height: 1.6; }
.steps { margin: 14px 0 0; padding-left: 1.2em; font-size: 16px; line-height: 1.5; }
/* Travel body text: the nav bar's petite-caps face */
.steps, .subcards p { font-family: var(--caps); font-style: normal; }
.steps li { margin: 0 0 12px; padding-left: 4px; }
.steps li::marker { color: var(--accent-coral); }
.subcards { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.subcards > li { padding: 16px 18px 4px; border: 1px solid var(--green-light); background: var(--paper); font-size: 16px; line-height: 1.5; }
.subcards h5 { margin: 0 0 8px; font-family: var(--caps); font-style: normal; font-weight: 400; font-size: 15px; color: var(--ink); }
.subcards p { margin: 0 0 12px; }
.subcards .soon { margin: 0; }
/* Untitled cards that open with a pill (Getting to the Beach, Where to Stay): centre the pill */
.checklist > li > .soon:first-child { display: table; margin: 0 auto 18px; }
/* Quick facts: sub-boxes two across (stacking on phones), each holding its own bullet list */
.subcards--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.subcards--stack h5 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.qf-icon { flex: none; width: 22px; height: 22px; color: var(--green-mid); }
/* Travel card titles carry an icon after the text, like the Quick facts sub-boxes */
.checklist:not(.checklist--center) > li > h4 { display: flex; align-items: center; gap: 10px; }
.checklist > li > h4 .qf-icon { width: 26px; height: 26px; }
.subcards--stack > .subcard--wide { grid-column: 1 / -1; } /* full-width row under the 2×2 */
@media (max-width: 600px) { .subcards--stack { grid-template-columns: 1fr; } }
.subcards--stack .steps { margin: 4px 0 8px; list-style-type: circle; }
.subcards--stack .soon { margin: 0 0 6px; }

/* Ecuador map */
.ec-map { width: 100%; max-width: 634px; /* 560 × 770/680: viewBox widened for the Galápagos inset */ height: auto; margin: 0 auto 10px; display: block; }
.ec-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: middle; }

/* Extend: destinations in one row, numbered to match the map */
.dests { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border-top: 1px solid var(--green-mid); }
.dests > li { min-width: 0; overflow-wrap: break-word; padding: 18px 14px 10px; border-right: 1px solid var(--rule); transition: background .2s; }
.dests > li:nth-child(3n), .dests > li:last-child { border-right: 0; }
.dests > li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } /* rule between the two rows of three */
.dests > li.is-hot { background: var(--card); }
.dests .soon { margin: 12px 0 2px; } /* evenly spaced between the title and the list */
.dest-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-red); color: var(--paper); font-size: 14px; }
.dests h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1.2; margin: 10px 0 2px; }
.dests ul { list-style: none; padding: 0; margin: 12px 0 0; font-family: var(--caps); font-style: normal; font-size: 14px; line-height: 1.6; } /* same face as the Travel body text */
.dests ul li { margin: 0 0 6px; padding-left: 14px; position: relative; }
.dests ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent-coral); }
.ec-dest { cursor: pointer; transition: transform .2s; }
.ec-dest.is-hot circle { fill: var(--accent-orange); }


@media (max-width: 760px) {
  body { font-size: 18px; }
  .block { padding: 20px 4px 4px; }
  .map { height: 400px; }
  .dests { grid-template-columns: 1fr 1fr; }
  .dests > li:nth-child(3n) { border-right: 1px solid var(--rule); }
  .dests > li:nth-child(2n) { border-right: 0; }
  .dests > li { border-bottom: 1px solid var(--rule); }
  .checklist > li { padding: 20px 18px 8px; }
  .nav { height: auto; flex-wrap: wrap; justify-content: center; gap: 2px 18px; padding: 10px 12px; overflow-x: visible; font-size: 13px; }
  .nav a { padding: 6px 0; }
  .ig-btn { flex-wrap: wrap; justify-content: center; padding: 12px 20px; font-size: 15px; }
}
@media (max-width: 420px) {
  .dests { grid-template-columns: 1fr; }
  .dests > li { border-right: 0; }
}
