/* ==========================================================
   Jess & Mike — styles
   Palette and type taken from the Canva design.
   ========================================================== */

:root {
  /* Palette: Jess's pick (Option C "Villa Verde" with Cypress from Option A) */
  --ink: #2e3b2b;        /* Cypress: headings, text, dark sections */
  --forest: #2f4e3e;     /* Forest: body copy, secondary dark */
  --ink-soft: #4e6151;   /* muted labels (derived) */
  --sage: #8da48c;       /* Sage: highlights, selected states */
  --deep: #1e281d;       /* deepest cypress for hero shading and the footer */
  --black: #000;
  --cream: #fbf8f0;      /* Cream: page background */
  --cream-deep: #f2eddf;
  --champagne: #d9cca6;  /* Champagne: accents, borders, the hero ampersand */
  --sage-pale: #dde5d5;  /* pale sage sections */
  --white: #fffefa;

  --font-script: 'Pinyon Script', cursive;
  /* The Seasons loads from Adobe Fonts once a kit ID is set in js/config.js;
     until then Cormorant Garamond stands in */
  --font-display: 'the-seasons', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'the-seasons', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui: 'Quattrocento', Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --section-y: clamp(100px, 12vw, 168px);   /* top/bottom breathing room for every section */
  --stack-gap: clamp(60px, 10vw, 80px);     /* space between columns once they stack on phones */
  --rule: rgba(46, 59, 43, .16);            /* fine divider lines (lighter on the dark green) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }

/* The Seasons has much taller lowercase letters than the stand-in, so when it's loaded
   its text is scaled to a matching x-height. Script and small-caps label fonts are excluded. */
html.has-seasons body { font-size-adjust: .42; }
html.has-seasons :is(.script, .heading-script, .btn, .map_touch-toggle, .nav_link, .chip, .link-arrow,
  .bfield_label, .booker_kicker, .booker_label, .seg small, .countdown_label, .day_kicker, .gate_kicker,
  .hero_place, .overview_date, .timeline_time, .route_row, .venue_address, .stay_meta, .stay_actions,
  .guide_dot, .guide_drive, .map_pin span, .contact_grid, .leaflet-popup-content a) { font-size-adjust: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.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; }
.center { text-align: center; }
.script { font-family: var(--font-script); font-weight: 400; }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* Section colours, in the order Jess chose: stone (cream), sage and Cypress green */
.tone-stone { background: var(--cream); }
.tone-sage { background: var(--sage-pale); }
.tone-cypress { background: var(--ink); color: var(--cream); --rule: rgba(217, 204, 166, .28); }

.container { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { width: min(860px, 100%); }

.heading-script {
  font-family: var(--font-script);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .4em;
}
.heading-script--xl { font-size: clamp(48px, 7.4vw, 96px); }
/* Small engraved ornament under centred section titles: rule · diamond · rule */
/* A fine olive sprig under the big headings, curving upwards (assets/images/olive-branch.svg) */
.heading-script--xl.center::after {
  content: ''; display: block; width: 170px; height: 31px; margin: .05em auto 0;
  /* --olive / --olive-o let the scroll animation grow it out from the middle */
  background: currentColor; opacity: var(--olive-o, .7); clip-path: inset(0 var(--olive, 0%));
  -webkit-mask: url('https://cdn.prod.website-files.com/6ad11cd1179690c344afb7aa/6aeba6779a06fb41aa935916_olive-branch.svg') center / contain no-repeat;
          mask: url('https://cdn.prod.website-files.com/6ad11cd1179690c344afb7aa/6aeba6779a06fb41aa935916_olive-branch.svg') center / contain no-repeat;
}

/* Fine paper grain over the whole page for a printed-stationery feel */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .05; transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .19 0 0 0 0 .12 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tbc { background: rgba(46, 59, 43, .1); padding: 0 .3em; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-ui); font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 30px; border: 1px solid currentColor; border-radius: 0;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--dark:hover { background: var(--deep); color: var(--cream); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--outline-light { color: var(--cream); border-color: rgba(251, 248, 240,.85); backdrop-filter: blur(2px); }
.btn--outline-light:hover { background: var(--cream); color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); padding: 16px 40px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.btn--light:hover { background: transparent; color: var(--cream); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { font-family: var(--font-ui); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: ' →'; }

/* ---------- Framed photo ---------- */
/* full width up to its max, so the frame has a size before its (lazy-loaded) photo arrives */
.frame { position: relative; margin: 0; padding: 0; width: 100%; max-width: 400px; justify-self: center; }
.frame_img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(24, 34, 26, .45); }
.frame_img img { width: 100%; height: 100%; object-fit: cover; }
.frame--small { max-width: 260px; }
.frame--small .frame_img { aspect-ratio: 3/4; }
.frame--right { justify-self: end; margin-left: auto; }
.frame--wide { max-width: 540px; margin: 0 auto 60px; }

/* ---------- Password gate ---------- */
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.gate_panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--cream); }
.gate_panel--top { top: 0; }
.gate_panel--bottom { bottom: 0; }
.gate_inner { position: relative; text-align: center; padding: 24px var(--gutter); width: min(520px, 100%); }
.gate_monogram { width: 150px; height: auto; margin: 0 auto 18px; }
.gate_kicker { font-family: var(--font-ui); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.gate_title { font-size: clamp(46px, 9vw, 70px); line-height: 1.2; margin-bottom: 26px; }
.gate_form { display: flex; gap: 10px; }
.gate_input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); padding: 12px 4px;
}
.gate_input::placeholder { color: var(--ink-soft); font-style: italic; }
.gate_input:focus { outline: none; border-bottom-color: var(--ink); }
.gate_error { margin-top: 14px; font-style: italic; color: #8a3b2a; }
.gate.is-shaking .gate_form { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate.is-gone { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  color: var(--cream); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s, transform .4s var(--ease);
}
.nav.is-solid { background: rgba(251, 248, 240, .97); color: var(--ink); box-shadow: 0 1px 0 rgba(46, 59, 43,.12); }
.nav.is-hidden { transform: translateY(-100%); }
.nav_logo img { width: 52px; height: auto; object-fit: contain; filter: brightness(0) invert(.95) sepia(.2); transition: filter .4s; }
.nav.is-solid .nav_logo img { filter: none; }
.nav_links { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav_link { font-family: var(--font-ui); font-size: 15px; letter-spacing: .06em; text-decoration: none; position: relative; padding: 4px 0; opacity: .85; }
.nav_link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.nav_link:hover, .nav_link.is-active { opacity: 1; color: inherit; }
.nav_link:hover::after, .nav_link.is-active::after { transform: scaleX(1); }
.nav_link--rsvp { border: 1px solid currentColor; padding: 6px 16px; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.nav_link--rsvp::after { display: none; }
.nav_toggle { display: none; }
/* Over the hero photo: lift the cream text off the sky */
.nav:not(.is-solid) { background: linear-gradient(180deg, rgba(14, 22, 15,.45), rgba(14, 22, 15,0)); }
.nav:not(.is-solid) .nav_link { text-shadow: 0 1px 10px rgba(14, 22, 15,.7); opacity: 1; }
.nav:not(.is-solid) .nav_link--rsvp { background: rgba(14, 22, 15,.28); }

/* ---------- Mobile menu ----------
   Deep green panel that grows out of the menu button; sections listed as
   serif names with a short line underneath; RSVP and countdown at the foot. */
.menu {
  position: fixed; inset: 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(141, 164, 140, .18), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--deep));
  color: var(--cream);
  clip-path: circle(0 at calc(100% - 38px) 30px); visibility: hidden;
  transition: clip-path .75s var(--ease), visibility 0s linear .75s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 30px); visibility: visible; transition: clip-path .75s var(--ease); }
.menu_inner {
  min-height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 18px) 24px calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto;
}
.menu_kicker { margin: 0 0 18px; font-family: var(--font-ui); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); opacity: .85; }
.menu_links { border-top: 1px solid rgba(217, 204, 166, .2); }
.menu_link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 15px 4px; border-bottom: 1px solid rgba(217, 204, 166, .2); color: var(--cream); text-decoration: none;
}
.menu_name { grid-column: 1; font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.menu_desc { grid-column: 1; font-family: var(--font-ui); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); opacity: .75; }
.menu_arrow { grid-column: 2; grid-row: 1 / 3; width: 20px; height: 20px; fill: var(--champagne); opacity: .7; transition: transform .35s var(--ease), opacity .35s; }
.menu_link:hover .menu_arrow, .menu_link:focus-visible .menu_arrow { transform: translateX(4px); opacity: 1; }
.menu_link[aria-current="true"] .menu_name { color: var(--champagne); }
.menu_link[aria-current="true"] .menu_name::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 12px; vertical-align: middle; background: var(--sage); transform: rotate(45deg); }
.menu_foot { margin-top: auto; padding-top: 30px; display: grid; gap: 12px; text-align: center; }
.menu_rsvp { padding: 17px 24px; font-size: 14px; }
.menu_rsvp:hover { color: var(--cream); border-color: var(--cream); }
.menu_count { margin: 4px 0 0; font-family: var(--font-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); }
.menu_count span { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; color: var(--cream); margin-right: 4px; }
.menu_tag { margin: 0; font-size: 34px; line-height: 1; color: var(--champagne); opacity: .8; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (min-width: 961px) { .menu { display: none; } }
/* shorter phones (e.g. iPhone SE): tighten so everything fits without scrolling */
@media (max-height: 740px) {
  .menu_link { padding: 11px 4px; }
  .menu_name { font-size: 26px; }
  .menu_foot { padding-top: 20px; gap: 8px; }
  .menu_tag { font-size: 28px; }
}

/* ---------- Hero ---------- */
.section_hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; color: var(--cream); background: var(--deep); }
.hero_media { position: absolute; inset: 0; }
.hero_media { will-change: transform; }
.hero_img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
/* Layered shade: dark band behind the names, soft centre, deep base behind the info card */
.hero_shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 38% at 50% 24%, rgba(14, 22, 15,.42), rgba(14, 22, 15,0) 72%),
  linear-gradient(180deg, rgba(14, 22, 15,.72) 0%, rgba(14, 22, 15,.34) 26%, rgba(14, 22, 15,.14) 46%, rgba(14, 22, 15,.42) 66%, rgba(14, 22, 15,.9) 100%); }
.hero_content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 4vh) var(--gutter) calc(4vh + 56px); }
.hero_names {
  font-size: clamp(60px, 10vw, 146px); line-height: 1.05; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em;
  text-shadow: 0 1px 2px rgba(14, 22, 15,.6), 0 4px 18px rgba(14, 22, 15,.55);
}
/* Same upright serif ampersand as the J&M monogram */
.hero_amp {
  /* the ampersand traced from the J&M logo, tinted champagne */
  display: inline-block; width: .44em; height: .57em; align-self: center; transform: translateY(.1em);
  background: var(--champagne);
  -webkit-mask: url('https://cdn.prod.website-files.com/6ad11cd1179690c344afb7aa/6aeba658b13048e178f76861_ampersand.svg') center / contain no-repeat;
          mask: url('https://cdn.prod.website-files.com/6ad11cd1179690c344afb7aa/6aeba658b13048e178f76861_ampersand.svg') center / contain no-repeat;
}
.hero_name .char { display: inline-block; }
.hero_sub {
  font-size: clamp(18px, 2.2vw, 30px); font-weight: 600; letter-spacing: .32em; margin-top: .4em; padding-left: .32em;
  text-shadow: 0 1px 2px rgba(14, 22, 15,.6), 0 3px 16px rgba(14, 22, 15,.55);
}
.hero_bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.hero_card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(480px, 100%); padding: 18px clamp(16px, 3vw, 30px) 16px;
  background: rgba(20, 31, 22, .62);
  border: 1px solid rgba(251, 248, 240, .28); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.hero_card::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(251, 248, 240, .14); pointer-events: none; }
.hero_date { font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: .16em; margin: 0; display: flex; align-items: center; gap: 16px; }
.hero_date::before, .hero_date::after { content: ''; width: clamp(22px, 5vw, 54px); height: 1px; background: rgba(251, 248, 240, .55); }
.hero_place { font-family: var(--font-ui); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 0; color: var(--champagne); line-height: 1.6; }
.hero_scroll { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(251, 248, 240,.7); border-radius: 12px; }
.hero_scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--cream); border-radius: 2px; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(251, 248, 240, .2); }
.countdown_unit { display: flex; flex-direction: column; align-items: center; }
.countdown_unit + .countdown_unit { border-left: 1px solid rgba(251, 248, 240, .2); }
.countdown_num { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; }
.countdown_label { font-family: var(--font-ui); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); margin-top: 6px; }

/* ---------- Welcome ---------- */
.section_welcome { padding: var(--section-y) 0; }
.welcome_grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.welcome_text { text-align: center; }
.welcome_letter { max-width: 520px; margin: 0 auto; color: var(--forest); }
.welcome_signoff { margin-top: 1.4em; margin-bottom: .2em; }
.welcome_signature { font-size: clamp(30px, 3vw, 40px); color: var(--ink); }
.welcome_grid .frame_img { aspect-ratio: 3/4; }

/* ---------- Marquee ---------- */
.section_marquee { background: var(--ink); overflow: hidden; padding-bottom: 6px; }
.marquee_row { display: flex; gap: 6px; width: max-content; margin-bottom: 6px; will-change: transform; }
.marquee_row img { height: clamp(220px, 28vw, 360px); width: auto; aspect-ratio: 3/4; object-fit: cover; }

/* ---------- Venue ---------- */
.section_venue { padding: var(--section-y) 0; overflow: hidden; }
.venue_grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.venue_collage { position: relative; aspect-ratio: 1 / 1.05; }
.venue_photo { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(24, 34, 26,.5); }
.venue_photo img { width: 100%; height: 100%; object-fit: cover; }
.venue_photo--a { left: 6%; top: 4%; width: 60%; aspect-ratio: 4/3; z-index: 1; }
.venue_photo--b { right: 4%; top: 22%; width: 30%; aspect-ratio: 3/4; z-index: 2; }
.venue_photo--c { left: 2%; bottom: 14%; width: 52%; aspect-ratio: 4/3; z-index: 2; }
.venue_photo--d { right: 8%; bottom: 4%; width: 46%; aspect-ratio: 1/1; z-index: 3; }
.venue_text { text-align: center; color: var(--forest); }
.venue_address { font-family: var(--font-ui); font-size: 15px; color: var(--ink); }

/* ---------- Overview ---------- */
.section_overview { padding: var(--section-y) 0; }
.overview_grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); margin-top: 52px; align-items: start; }
.overview_title { font-size: clamp(28px, 3vw, 38px); text-align: center; margin-bottom: 18px; }
.overview_row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 4px; text-decoration: none; position: relative; transition: padding .35s var(--ease); }
.overview_row::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--ink-soft); transform-origin: left; }
.overview_row:hover { padding-left: 14px; color: var(--ink); }
.overview_date { font-family: var(--font-ui); font-size: 15px; }
.overview_copy { color: var(--forest); }

/* ---------- Days ---------- */
.section_days { position: relative; }
.days_progress { position: fixed; left: 18px; top: 50%; height: 34vh; width: 1px; background: rgba(46, 59, 43,.18); transform: translateY(-50%); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .4s; }
.days_progress.is-visible { opacity: 1; }
.days_progress_fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }
.day { padding: var(--section-y) 0; }
.day_kicker { text-align: center; font-family: var(--font-ui); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0; }
.day_grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); margin-top: 44px; align-items: start; }
.day_title, .day_details_title { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.day_details h4 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 1.1em 0 .2em; }
.day_details { color: var(--forest); }
.day_details h4 { color: var(--ink); }
.day_schedule .frame { margin-top: 36px; justify-self: start; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline_row { display: grid; grid-template-columns: 58px 120px 1fr; align-items: center; gap: 14px; padding: 12px 0; position: relative; }
.timeline_row::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--ink-soft); transform-origin: left; }
/* All icons share one set and line weight; size sets the stroke (about 2.5px at 40px) */
.timeline_icon, .info_icon, .booker_icon { color: var(--ink); fill: currentColor; flex: none; }
.timeline_icon { width: 40px; height: 40px; justify-self: center; }
.timeline_time { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.timeline_what { font-size: 19px; }

.cal {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin: -4px 0 0;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.cal_icon { width: 18px; height: 18px; fill: currentColor; }
.cal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; transition: color .25s, text-decoration-color .25s; }
.cal a:hover { color: var(--forest); text-decoration-color: currentColor; }
.cal_sep { color: var(--sage); }

/* ---------- What to wear ---------- */
.section_wear { padding: var(--section-y) 0; }
.wear_lede { color: var(--forest); font-style: italic; margin-bottom: 52px; }
.wear_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wear_card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--white); border: 1px solid var(--champagne); border-radius: var(--radius); padding: 34px 24px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.wear_card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(24, 34, 26, .5); }
.wear_card_icon { width: 44px; height: 44px; color: var(--ink); fill: currentColor; margin-bottom: 10px; }
.wear_card_kicker { font-family: var(--font-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.wear_card_title { font-size: clamp(40px, 4vw, 52px); line-height: 1.15; color: var(--ink); }
.wear_card_code { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--forest); margin-bottom: 16px; }
.wear_card_keys { list-style: none; margin: -4px 0 18px; padding: 0; width: 100%; text-align: left; border-top: 1px solid var(--champagne); }
.wear_card_keys li { padding: 10px 2px; border-bottom: 1px solid var(--champagne); font-size: 16px; line-height: 1.4; color: var(--forest); }
.wear_card_keys b { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
/* the one rule Jess really wants noticed */
.wear_card_keys .wear_card_must { color: var(--ink); font-weight: 600; }
.wear_card_keys .wear_card_must b { color: var(--forest); }
.dress_callout { margin: 14px 0 6px; padding: 14px 18px; background: rgba(251, 248, 240, .55); border-left: 3px solid var(--forest); border-radius: 0 12px 12px 0; }
.dress_callout p { margin: 0; font-size: 17px; color: var(--ink); }
.dress_callout p + p { margin-top: 8px; }
.dress_callout b { font-family: var(--font-ui); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-right: 8px; }
.btn--inspo { gap: 10px; padding: 12px 22px; font-size: 13px; }
.btn--inspo .btn_icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.day_details .btn--inspo { margin: 6px 0 0; }

/* ---------- Lookbook (inspiration overlay) ----------
   Mood board full-height on the left, styling notes on the right,
   and a day switcher along the bottom. Content comes from js/lookbook.js. */
.modal.modal--look { width: min(1100px, calc(100% - 40px)); height: min(800px, calc(100dvh - 40px)); max-height: none; overflow: hidden; }
.look {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); height: 100%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(14, 22, 15, .7);
}
.look_media { position: relative; margin: 0; overflow: hidden; background: var(--deep); }
.look_img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  animation: look-pan 24s ease-in-out infinite alternate; transition: opacity .35s ease;
}
@keyframes look-pan { to { object-position: 50% 100%; } }
.look_media::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(14, 22, 15, .6)); pointer-events: none; }
.look_caption {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream);
}
.look_full { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); background: transparent; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; padding: 8px 14px; border: 1px solid rgba(251, 248, 240, .5); border-radius: 999px; transition: background .25s, color .25s; }
.look_full:hover { background: var(--cream); color: var(--ink); }
.look_full svg { width: 15px; height: 15px; fill: currentColor; }
/* Full board viewer: covers the screen, the board scrolls at full size */
.look_viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 22, 15, .95); color: var(--cream); overflow: hidden;
}
.look_viewer[open] { animation: modal-fade .35s ease; }
.look_viewer::backdrop { background: transparent; }
.look_viewer:focus { outline: none; }
.look_viewer_scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px calc(40px + env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; scrollbar-color: var(--champagne) transparent; }
.look_viewer_scroll img { display: block; width: min(860px, 100%); height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.look_viewer .look_viewer_close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 1; background: rgba(251, 248, 240, .92); }

.look_body { display: flex; flex-direction: column; min-height: 0; padding: 34px clamp(26px, 4vw, 52px) 0; color: var(--forest); }
.look_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.look_kicker { margin: 0; font-family: var(--font-ui); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.look_content {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--champagne) transparent; padding: 4px 6px 36px 12px; margin-left: -12px;
  /* soft fade at the bottom hints there's more to scroll */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent);
  transition: opacity .3s ease, transform .3s ease;
}
.look_content.is-swapping { opacity: 0; transform: translateY(10px); }
.look_title { font-size: clamp(54px, 5.6vw, 76px); line-height: 1; color: var(--ink); margin: 4px 0 16px; }
.look_code {
  display: inline-flex; align-items: baseline; gap: 14px; margin: 0; padding: 10px 20px;
  background: var(--cream); border: 1px solid var(--champagne); border-radius: 999px;
}
.look_code_label { font-family: var(--font-ui); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.look_code_value { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.look_note { margin: 16px 0 0; font-size: 20px; font-style: italic; color: var(--ink); }
.look_note:empty { display: none; }

.look_guide { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 28px; }
.look_guide--prose { grid-template-columns: 1fr; gap: 0; }
.look_guide h4, .look_palette h4 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-family: var(--font-ui); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.look_guide h4::after, .look_palette h4::after { content: ''; flex: 1; height: 1px; background: var(--champagne); }
.look_guide ul { list-style: none; margin: 0; padding: 0; }
.look_guide li { position: relative; padding-left: 20px; margin-bottom: 9px; line-height: 1.45; }
.look_guide li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--sage); transform: rotate(45deg); }
.look_guide p { margin: 0 0 10px; }
.look_credit { grid-column: 1 / -1; margin: 4px 0 0 !important; font-style: italic; color: var(--ink-soft); }

.look_palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 30px; margin-top: 26px; }
.look_swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.look_swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; font-family: var(--font-ui); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-align: center; line-height: 1.25; }
.look_swatch i { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(46, 59, 43, .18); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .08); }
.look_swatch--avoid i::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; margin-left: -.75px; background: #8a3b2a; transform: rotate(45deg); }

.look_nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--champagne); }
.look_tabs { display: flex; gap: 4px; justify-content: center; min-width: 0; }
.look_tab {
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  padding: 9px 12px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.look_tab:hover { border-color: var(--champagne); }
.look_tab[aria-current="true"] { background: var(--ink); color: var(--cream); }
.look_arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--champagne); background: var(--cream); color: var(--ink); cursor: pointer; transition: background .25s; }
.look_arrow:hover { background: var(--champagne); }
.look_arrow svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Travel ---------- */
.section_travel { padding: var(--section-y) 0; }
.travel_hero { padding: 0 var(--gutter); }
.travel_hero_clip { width: min(980px, 100%); max-height: 92vh; margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--deep); }
.travel_video { display: block; width: 100%; height: 100%; object-fit: cover; }

.section_flights { padding: var(--section-y) 0; }
.flights_grid, .stay_grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); margin-top: 52px; }
.info_block { position: relative; padding-left: 86px; color: var(--forest); }
.info_icon { position: absolute; left: 4px; top: 0; width: 52px; height: 52px; }
.info_title { font-size: clamp(24px, 2.4vw, 30px); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); margin-bottom: 12px; line-height: 1.2; }
.info_block .btn { margin-top: 18px; padding-inline: 24px; letter-spacing: .1em; text-align: center; }

.route { margin: 6px 0 22px; }
.route_row { display: grid; grid-template-columns: 74px 1fr 64px; gap: 22px; align-items: center; padding: 8px 0; font-family: var(--font-ui); font-size: 15px; color: var(--ink); }
.route_line { position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-soft) 0 5px, transparent 5px 10px); }
.route_fill { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); border-radius: 2px; }
.route_dot { position: absolute; top: 50%; right: -7px; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--champagne), 0 0 0 4px var(--ink); }

/* ---------- Stay ---------- */
.section_stay { padding: var(--section-y) 0; }
.stay_subhead { margin-top: calc(var(--section-y) * .8); }

/* ---------- Booking assistant ---------- */
/* ---------- Pop-ups (booking assistant, inspiration) ----------
   Native <dialog> over the page, with the page blurred behind */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.modal:focus { outline: none; }
.modal::backdrop { background: rgba(14, 22, 15, .42); -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9); }
.modal[open] { animation: modal-in .5s var(--ease); }
.modal[open]::backdrop { animation: modal-fade .5s ease; }
.modal.is-closing { animation: modal-out .28s ease forwards; }
.modal.is-closing::backdrop { animation: modal-fade .28s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes modal-fade { from { opacity: 0; } }
.booker {
  position: relative; background: var(--white); border: 1px solid var(--champagne); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(14, 22, 15, .6);
}
.modal_close {
  flex: none; margin-left: auto; align-self: flex-start; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--champagne); background: var(--cream); cursor: pointer; transition: background .25s, transform .35s var(--ease);
}
.modal_close:hover { background: var(--champagne); transform: rotate(90deg); }
.modal_close span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: var(--ink); }
.modal_close span:first-child { transform: rotate(45deg); }
.modal_close span:last-child { transform: rotate(-45deg); }
html.modal-open, html.modal-open body { overflow: hidden; }
.booker_head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--champagne); }
.booker_icon { width: 48px; height: 48px; }
.booker_kicker { font-family: var(--font-ui); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 2px; }
.booker_title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.booker_suggest { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px 28px; padding: 20px 0 6px; }
.booker_label, .bfield_label { display: block; font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.booker_val { display: block; font-size: 19px; color: var(--ink); line-height: 1.35; }
.booker_form { display: grid; gap: 18px; margin-top: 14px; }
.booker_row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bfield { border: 0; margin: 0; padding: 0; min-width: 0; display: block; }
.bfield input[type=date] {
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0;
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 17px; line-height: 1.2; text-align: left; color: var(--ink);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%232e3b2b'%3E%3Cpath d='M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  border: 1px solid rgba(46, 59, 43, .25); border-radius: 12px; padding: 14px 40px 14px 14px; min-height: 52px;
  accent-color: var(--ink); color-scheme: light;
}
.bfield input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.bfield input[type=date]::-webkit-calendar-picker-indicator { opacity: 0; width: 28px; margin-right: -32px; cursor: pointer; }
.bfield input[type=date]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(141, 164, 140, .35); }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; background: var(--cream); border: 1px solid rgba(46, 59, 43, .25); border-radius: 12px; min-height: 52px; overflow: hidden; }
.stepper button { height: 100%; min-height: 50px; border: 0; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: background .25s; }
.stepper button:hover:not(:disabled) { background: rgba(141, 164, 140, .25); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { text-align: center; font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.seg { display: grid; gap: 8px; }
.seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 100%; padding: 10px 8px; text-align: center; border: 1px solid rgba(46, 59, 43, .25); border-radius: 12px; background: var(--cream); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.2; transition: background .25s, color .25s, border-color .25s; }
.seg small { font-family: var(--font-ui); font-size: 11px; font-weight: 400; letter-spacing: .06em; color: var(--ink-soft); transition: color .25s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg input:checked + span small { color: var(--champagne); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.booker_summary { margin: 2px 0 0; text-align: center; font-style: italic; color: var(--forest); }
/* Booking.com greyed out until the dates are within its booking window */
.seg label.is-unavailable { cursor: not-allowed; }
.seg label.is-unavailable span {
  color: var(--ink-soft); border-style: dashed; opacity: .65;
  background: repeating-linear-gradient(135deg, var(--cream) 0 8px, rgba(46, 59, 43, .05) 8px 16px);
}
.seg label.is-unavailable small { color: var(--ink-soft); }
.bfield .booker_notice { margin: 10px 0 0; text-align: left; }
.booker_notice { margin: -4px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(141, 164, 140, .18); border: 1px solid rgba(141, 164, 140, .45); font-size: 15px; line-height: 1.45; color: var(--ink); text-align: center; }
.btn--sage { background: var(--sage); color: var(--ink); border-color: var(--sage); border-radius: 999px; padding: 17px 28px; font-size: 15px; }
.btn--sage:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--sage[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn_icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.booker_note { margin: -4px 0 0; text-align: center; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 560px) {
  /* Phones: slides up from the bottom as a sheet */
  .modal { width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .modal[open] { animation-name: sheet-in; }
  .modal.is-closing { animation-name: sheet-out; }
  .modal { touch-action: pan-y; }
  .booker { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
  .booker_head { gap: 12px; padding-bottom: 16px; }
  .booker_icon { width: 36px; height: 36px; }
  .booker_kicker { font-size: 11px; }
  .booker_title { font-size: 23px; }
  .booker_head .modal_close { width: 40px; height: 40px; }
  .booker_head .modal_close span { left: 11px; right: 11px; }
  /* suggested stay and venue sit together in one small summary box */
  .booker_suggest { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding: 14px 16px; background: var(--cream); border-radius: 14px; }
  .booker_val { font-size: 17px; }
  .booker_form { gap: 16px; margin-top: 18px; }
  .seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg span { font-size: 16px; padding: 9px 6px; }
  .bfield input[type=date] { font-size: 16px; padding-left: 12px; }
  /* the search button stays pinned to the bottom of the sheet */
  #bk-search { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 2; box-shadow: 0 0 0 10px var(--white), 0 -8px 24px 6px var(--white); }
}
.stay_cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 20px; }
.stay_card { background: var(--white); border: 1px solid rgba(46, 59, 43,.12); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.stay_card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(24, 34, 26,.45); }
.stay_meta { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stay_name { font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.15; }
.stay_desc { color: var(--forest); flex: 1; margin: 0; }
.stay_actions { display: flex; gap: 16px; margin-top: 10px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.stay_actions a, .stay_actions button { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Guide / map ---------- */
.section_guide { padding: var(--section-y) 0; }
.guide_lede { max-width: 640px; margin: 0 auto 34px; color: var(--forest); }
.guide_filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip { font-family: var(--font-ui); font-size: 13px; letter-spacing: .08em; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.chip:hover { background: rgba(46, 59, 43,.08); }
.chip.is-active { background: var(--ink); color: var(--cream); }
.guide_grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; height: min(640px, 76vh); }
.guide_map { border-radius: var(--radius); overflow: hidden; background: #e9ece3; box-shadow: 0 20px 40px -24px rgba(24, 34, 26,.5); z-index: 0; }
.guide_map .leaflet-tile-pane, .guide_map .map_base { filter: grayscale(1) sepia(.32) hue-rotate(42deg) saturate(.8) brightness(1.05) contrast(.9); }
.guide_list { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-soft) transparent; }
.guide_item { border-bottom: 1px dashed var(--ink-soft); }
.guide_item button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 6px; cursor: pointer; color: var(--ink); font: inherit; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; transition: background .25s; border-radius: 10px; }
.guide_item button:hover, .guide_item.is-active button { background: rgba(251, 248, 240,.55); }
.guide_dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid rgba(46, 59, 43, .3); }
.guide_dot .cat_icon { width: 20px; height: 20px; fill: currentColor; }
.guide_name { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; display: block; }
.guide_desc { font-size: 15px; color: var(--forest); display: block; line-height: 1.35; }
.guide_drive { font-family: var(--font-ui); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.guide_item[hidden] { display: none; }

.map_pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); border: 2px solid var(--cream); box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); display: grid; place-items: center; }
/* the pin is turned 45°, so its icon is turned back upright */
.map_pin .cat_icon { width: 18px; height: 18px; fill: var(--cream); transform: rotate(45deg); }
/* Clicking the map shouldn't leave a heavy outline; keyboard focus still shows one */
.guide_map.leaflet-container:focus { outline: none; }
.guide_map.leaflet-container:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* Grouped pins: a numbered bubble that opens up when tapped */
.map_cluster {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); border: 2px solid var(--cream);
  box-shadow: 0 0 0 5px rgba(46, 59, 43, .22), 0 8px 16px -6px rgba(0, 0, 0, .45);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; transition: transform .25s var(--ease);
}
.map_cluster:hover { transform: scale(1.08); }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }
.leaflet-cluster-spider-leg { transition: stroke-dashoffset .3s ease-out, stroke-opacity .3s ease-in; }

/* Venue: round monogram badge with a small pointer underneath */
.map_venue { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); border: 2px solid var(--cream); box-shadow: 0 0 0 4px rgba(24, 34, 26,.25), 0 10px 20px -6px rgba(0,0,0,.5); display: grid; place-items: center; }
.map_venue::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--cream); border-bottom: 0; }
/* Leaflet resets marker images to natural size, so this needs the extra specificity */
.leaflet-container .leaflet-marker-pane .map_venue img { width: 36px; height: auto; }

/* Phones: button to switch the map between page-scrolling and panning */
.map_touch-toggle {
  position: absolute; z-index: 1000; right: 10px; bottom: 26px;
  font-family: var(--font-ui); font-size: 13px; letter-spacing: .08em; padding: 9px 16px;
  background: var(--cream); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
.guide_map.is-active .map_touch-toggle { background: var(--ink); color: var(--cream); }
.guide_more { display: block; margin: 14px auto 0; }
.guide_more[hidden] { display: none; }
.leaflet-popup-content-wrapper { background: var(--cream); color: var(--ink); border-radius: 14px; font-family: var(--font-body); }
.leaflet-popup-tip { background: var(--cream); }
.leaflet-popup-content { margin: 14px 18px; font-size: 15px; line-height: 1.4; }
.leaflet-popup-content em { display: block; font-size: 13px; color: var(--ink-soft); margin: 2px 0 6px; }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 19px; display: block; }
.leaflet-popup-content a { font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink); }

/* ---------- RSVP ---------- */
.section_rsvp { position: relative; padding: var(--section-y) var(--gutter); overflow: hidden; }
.rsvp_bg { position: absolute; inset: -10% 0; }
.rsvp_bg img { width: 100%; height: 100%; object-fit: cover; }
.rsvp_bg::after { content: ''; position: absolute; inset: 0; background: rgba(24, 34, 26,.45); }
.rsvp_card { position: relative; width: min(640px, 100%); margin: 0 auto; background: var(--cream); padding: clamp(36px, 6vw, 64px) clamp(22px, 6vw, 64px); border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.rsvp_card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--champagne); pointer-events: none; }
.rsvp_monogram { width: 76px; height: auto; margin: 0 auto 6px; }
.rsvp_lede { font-style: italic; color: var(--forest); }
.rsvp_form { margin-top: 26px; display: grid; gap: 22px; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 19px; padding: 0; }
.field input[type=text], .field input[type=email], .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid rgba(46, 59, 43,.28); border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46, 59, 43,.1); }
.field input::placeholder, .field textarea::placeholder { color: #7b877a; font-style: italic; }
.field.is-invalid input, .field.is-invalid .choice { border-color: #8a3b2a; }
.field.is-invalid label, .field.is-invalid legend { color: #8a3b2a; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.choice_opt { position: relative; cursor: pointer; font-family: var(--font-body) !important; font-weight: 500 !important; font-size: 17px !important; }
.choice_opt input { position: absolute; opacity: 0; }
.choice_opt span { display: block; padding: 12px 14px; border: 1px solid rgba(46, 59, 43,.28); text-align: center; background: var(--white); transition: background .25s, color .25s, border-color .25s; }
.choice_opt input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice_opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rsvp_if-attending { display: grid; gap: 22px; overflow: hidden; }
.rsvp_if-attending[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp_error { color: #8a3b2a; font-style: italic; margin: 0; }
.rsvp_done { padding: 20px 0 0; outline: none; }
.rsvp_done .heading-script { font-size: clamp(48px, 7vw, 76px); }

/* ---------- FAQ ---------- */
.section_faq { padding: var(--section-y) 0; }
.faq { border-top: 1px dashed var(--ink-soft); margin-top: 20px; }
.faq_item { border-bottom: 1px dashed var(--ink-soft); }
.faq_item summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 4px; position: relative; font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); font-weight: 600; }
.faq_item summary::-webkit-details-marker { display: none; }
.faq_item summary::after, .faq_item summary::before { content: ''; position: absolute; right: 12px; top: 50%; width: 16px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.faq_item summary::before { transform: rotate(90deg); }
.faq_item[open] summary::before { transform: rotate(0deg); }
.faq_body { padding: 0 4px 18px; color: var(--forest); overflow: hidden; }

/* ---------- Gifts ---------- */
.section_gifts { padding: var(--section-y) 0; }
.gifts_grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.gifts_grid .frame { max-width: 440px; }
.gifts_grid .frame_img { aspect-ratio: 4/5; }
.gifts_text { color: var(--forest); }
.gifts_text .heading-script { text-align: right; }
.gifts_lead { font-size: clamp(24px, 2.4vw, 30px); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); line-height: 1.25; }
.gifts_qr { width: 150px; height: 150px; background: var(--white); padding: 12px; margin: 26px auto 0; box-shadow: 0 16px 30px -18px rgba(24, 34, 26,.5); display: grid; place-items: center; text-align: center; font-size: 14px; font-style: italic; }
.gifts_qr svg, .gifts_qr img { width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.section_contact { background: var(--deep); color: var(--champagne); padding: var(--section-y) 0 calc(64px + env(safe-area-inset-bottom, 0px)); }
.section_contact .heading-script { color: var(--champagne); }
.contact_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; font-family: var(--font-ui); font-size: 15px; }
.contact_grid a { text-decoration: none; }
.contact_tag { font-size: 40px; line-height: 1; color: var(--champagne); }
.contact_monogram { width: 64px; height: auto; margin: 50px auto 0; opacity: .7; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .wear_cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  /* Tablets and phones: board on top, notes underneath, whole sheet scrolls */
  .modal.modal--look { height: auto; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .look { grid-template-columns: 1fr; height: auto; }
  .look_media { height: 46vh; min-height: 280px; }
  .look_content { overflow: visible; }
  .look_nav { position: sticky; bottom: 0; background: var(--white); }
  :root { --nav-h: 60px; }
  .nav_toggle { display: block; position: relative; z-index: 2; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: inherit; }
  .nav_toggle span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
  .nav_toggle span:first-child { top: 15px; }
  .nav_toggle span:last-child { top: 24px; }
  .nav.is-open .nav_toggle span:first-child { top: 20px; transform: rotate(45deg); }
  .nav.is-open .nav_toggle span:last-child { top: 20px; transform: rotate(-45deg); }
  /* the desktop links give way to the full-screen menu */
  .nav_links { display: none; }
  /* while the menu is open the bar sits clear on top of the dark panel */
  .nav.is-open { background: transparent; box-shadow: none; color: var(--cream); transform: none; }
  .nav.is-open .nav_logo img { filter: brightness(0) invert(.95) sepia(.2); }

  .welcome_grid, .venue_grid, .overview_grid, .day_grid, .flights_grid, .stay_grid, .gifts_grid { grid-template-columns: 1fr; }
  .welcome_grid .frame { order: -1; max-width: 340px; }
  .venue_collage { max-width: 520px; width: 100%; margin: 0 auto; }
  .day_details .frame--right { margin: 0 auto 10px; }
  .day_schedule .frame { justify-self: center; margin-left: auto; margin-right: auto; }
  .guide_grid { grid-template-columns: 1fr; height: auto; }
  .guide_map { height: 60vh; }
  .guide_list { max-height: none; overflow: visible; }
  .guide_item.is-clipped { display: none; }
  .gifts_text .heading-script { text-align: center; }
  .gifts_text { text-align: center; }
  .days_progress { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .modal.modal--look { width: 100%; max-height: 94dvh; }
  .look { border-radius: var(--radius) var(--radius) 0 0; }
  .look_media { height: 40vh; }
  .look_body { padding: 20px 20px 0; }
  .look_guide { grid-template-columns: 1fr; gap: 18px; }
  .look_title { font-size: 54px; }
  .look_arrow { display: none; }
  .look_tab { font-size: 10px; letter-spacing: .1em; padding: 8px 10px; }
  .look_nav { justify-content: center; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  /* keep the close button reachable while the notes scroll */
  .look_head .modal_close { position: fixed; top: calc(6dvh + 12px); right: 12px; z-index: 3; background: rgba(251, 248, 240, .92); }
  .gate_form { flex-direction: column; }
  .info_block { padding-left: 0; padding-top: 74px; }
  .timeline_row { grid-template-columns: 44px 96px 1fr; gap: 10px; }
  .timeline_icon { width: 34px; height: 34px; }
  .timeline_what { font-size: 17px; }
  .overview_row { grid-template-columns: 110px 1fr; }
  .contact_grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .hero_place { letter-spacing: .18em; font-size: 12px; }
  .hero_card { padding: 16px 14px 14px; gap: 6px; }
  .hero_sub { letter-spacing: .22em; padding-left: .22em; }
  .hero_bottom { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .look_img { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* ---------- Cypress (dark green) sections ----------
   Text and details switch to cream and champagne so everything stays readable */
.tone-cypress :is(h1, h2, h3, h4, .heading-script, .display, .info_title, .day_title, .day_details_title,
  .timeline_what, .timeline_time, .overview_date, .overview_what, strong) { color: var(--cream); }
.tone-cypress :is(p, li, .day_details, .info_block, .overview_copy) { color: rgba(251, 248, 240, .86); }
.tone-cypress :is(.timeline_row, .overview_row)::after { border-color: rgba(217, 204, 166, .35); }
.tone-cypress :is(.timeline_icon, .info_icon) { color: var(--champagne); }
.tone-cypress :is(.day_kicker, .cal, .cal_label, .cal_sep) { color: var(--champagne); }
.tone-cypress .btn--outline { color: var(--cream); border-color: rgba(251, 248, 240, .7); }
.tone-cypress .btn--outline:hover { background: var(--cream); color: var(--ink); }
.tone-cypress .btn--dark { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.tone-cypress .btn--dark:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.tone-cypress .tbc { background: rgba(251, 248, 240, .15); }
.tone-cypress .frame_img { box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .6); }
/* places-to-stay cards become soft glass panels on the dark green */
.tone-cypress .stay_card { background: rgba(251, 248, 240, .06); border-color: rgba(217, 204, 166, .25); }
.tone-cypress .stay_card:hover { box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .6); }
.tone-cypress .stay_name { color: var(--cream); }
.tone-cypress .stay_meta { color: var(--champagne); }

/* Shorter screens (laptops, small phones): tighten the hero so the RSVP button is always on the first screen */
@media (max-height: 780px) {
  .hero_content { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2vh); padding-bottom: calc(2vh + 46px); }
  .hero_names { font-size: clamp(54px, 8.4vw, 118px); }
  .hero_card { padding-top: 14px; padding-bottom: 12px; }
}

/* ---------- Breathing room once columns stack (tablets and phones) ---------- */
@media (max-width: 960px) {
  .welcome_grid, .venue_grid, .overview_grid, .day_grid, .gifts_grid { row-gap: var(--stack-gap); }
  .guide_grid { gap: 30px; }
  /* stacked info blocks (flights, accommodation): a fine rule and generous space between them */
  .flights_grid, .stay_grid { row-gap: 0; }
  .info_block + .info_block { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
  .info_block + .info_block .info_icon { top: 56px; }
}
@media (max-width: 560px) {
  .info_block { padding-top: 72px; }
  .info_block + .info_block { padding-top: calc(56px + 72px); }
  .info_block .info_icon { width: 46px; height: 46px; left: 0; }
  /* full-width buttons are easier to tap and line up neatly */
  .info_block .btn { display: flex; width: 100%; margin-top: 24px; }
  .day_details .btn--inspo { display: flex; width: 100%; }
}

/* ---------- Scroll details (only while animations are on) ---------- */
/* dashed timeline rules draw across, row by row (--draw is animated from js/main.js) */
:is(.timeline_row, .overview_row)::after { transform: scaleX(var(--draw, 1)); }
/* hairline under the nav that fills as you read down the page */
.nav_progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sage); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nav.is-solid .nav_progress { opacity: .9; }
.nav.is-open .nav_progress { opacity: 0; }

/* ---------- Text links: one style everywhere ----------
   Underlined in the section's text colour (green on stone/sage, stone on the dark green);
   on hover the colours swap into a soft filled highlight */
:root { --link: var(--ink); --link-hover-bg: var(--ink); --link-hover-text: var(--cream); }
.tone-cypress, .section_contact { --link: var(--cream); --link-hover-bg: var(--cream); --link-hover-text: var(--ink); }
:is(p, li, .faq_body, .cal, .stay_actions, .contact_grid) a:not(.btn), .stay_actions button, .link-arrow {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor;
  border-radius: 3px; padding: 1px .2em; margin: -1px -.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .3s var(--ease), color .3s var(--ease), text-decoration-color .3s;
}
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; }
:is(p, li, .faq_body, .cal, .stay_actions, .contact_grid) a:not(.btn):is(:hover, :focus-visible),
.stay_actions button:is(:hover, :focus-visible), .link-arrow:is(:hover, :focus-visible) {
  background: var(--link-hover-bg); color: var(--link-hover-text); text-decoration-color: transparent; border-bottom-color: transparent;
}

/* ---------- Webflow adjustments ---------- */
/* buttons are links in Webflow */
a.chip, a.btn { cursor: pointer; }
.route_fill--florence { width: 66%; }
.route_fill--pisa { width: 100%; }
.guide_item button, .stay_actions button { font: inherit; }
.w-embed:empty { display: none; }
/* undo webflow.css defaults the original page never had */
h1, h2, h3, h4, h5, h6 { line-height: inherit; }
label { display: revert; margin-bottom: 0; font-weight: inherit; }
.field label, .field legend { display: block; }
.choice_opt { display: block; }
