:root {
  color-scheme: light;
  --paper: #faf4ea;
  --linen: #f0e2d2;
  --ink: #332920;
  --muted: #665649;
  --rust: #9a3f28;
  --rust-dark: #79301e;
  --clay-light: #edd2c0;
  --line: #d9c7b7;
  --white: #fffaf3;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2, h3 { line-height: 1.09; }
a { color: var(--rust-dark); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #286875; outline-offset: 4px; }
#main:focus { outline: none; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 7rem)); margin-inline: auto; }
.section, .cover { scroll-margin-top: 4.5rem; }
.section { padding-block: clamp(3.8rem, 7vw, 7.25rem); }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 6; transform: translateY(-200%); background: var(--white); padding: .6rem 1rem; }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: 4.45rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .42rem; color: var(--rust-dark); font-weight: 750; font-size: .91rem; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.brand svg { margin-right: .38rem; }
.brand span { font-family: var(--display); font-size: 1.06rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1.05rem, 2.6vw, 2.35rem); }
.nav-links a { font-size: .91rem; font-weight: 620; color: var(--ink); text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .nav-rsvp { color: var(--white); background: var(--rust); padding: .52rem 1.15rem; border-radius: .25rem; }
.nav-links .nav-rsvp:hover { background: var(--rust-dark); text-decoration: none; }
.menu-button { display: none; }

.cover {
  background: radial-gradient(ellipse at left bottom, #efd9c6, transparent 56%), var(--linen);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 6.5vw, 6.8rem) clamp(2.65rem, 5.5vw, 5.75rem);
}
.cover-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(2rem, 4.5vw, 4.75rem); align-items: center; }
.cover-copy { padding-bottom: 1.55rem; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; font-weight: 750; text-transform: uppercase; }
.cover-date { color: var(--rust-dark); margin-bottom: clamp(.9rem, 2vw, 1.5rem); }
h1 { font: 400 clamp(2.05rem, 4.55vw, 4.35rem)/.96 var(--display); letter-spacing: -.065em; margin-inline-start: -.035em; }
h1 span { color: var(--rust); font-size: .66em; letter-spacing: -.02em; }
.cover-place { font-size: clamp(.92rem, 1.5vw, 1.13rem); font-weight: 700; margin-top: clamp(1.5rem, 3vw, 2.4rem); }
.cover-place span { color: var(--rust); margin-inline: .17em; }
.cover-invite { margin-top: .45rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.55rem; }
.button { min-height: 2.9rem; display: inline-flex; justify-content: center; align-items: center; gap: .55em; padding: .65rem 1.15rem; color: var(--rust-dark); border: 1px solid var(--rust); border-radius: .25rem; text-decoration: none; font-size: .91rem; font-weight: 700; }
.button.primary { color: var(--white); background: var(--rust); }
.button.primary:hover { background: var(--rust-dark); }
.button.outline:hover { background: var(--clay-light); }
.cover-gallery { min-width: 0; }
.gallery-frame {
  padding: clamp(.65rem, 1.55vw, 1.2rem);
  border: 1px solid #9a5d43;
  border-radius: .55rem;
  background: linear-gradient(145deg, #fff9ee, #ead7c0);
  box-shadow: inset 0 0 0 3px var(--clay-light), 0 .7rem 1.6rem #79301e26;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--rust) var(--clay-light);
  scrollbar-width: thin;
  border: 1px solid #a8795e;
  border-radius: .22rem;
  background: var(--linen);
}
.gallery-track img {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-top: .65rem;
}
.gallery-controls button {
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid var(--rust);
  border-radius: .25rem;
  background: transparent;
  color: var(--rust-dark);
  font: 700 .875rem var(--body);
  cursor: pointer;
}
.gallery-controls button:not([aria-disabled="true"]):hover { background: var(--clay-light); }
.gallery-controls button[aria-disabled="true"] { border-color: var(--line); color: var(--muted); cursor: default; }
.gallery-count { color: var(--muted); font-size: .875rem; }

h2 { font: 400 clamp(2.65rem, 5.1vw, 4.75rem)/.99 var(--display); letter-spacing: -.055em; margin-bottom: 1.4rem; }
h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.55rem, 2.45vw, 2rem); }
.lead { font-size: 1.11rem; }
.schedule { color: var(--white); background: var(--rust); }
.schedule h2 { margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 6rem); }
.schedule-day h3 { display: flex; align-items: baseline; gap: .55em; flex-wrap: wrap; color: var(--white); margin-bottom: .85rem; }
.schedule-day h3 span { color: #ffe1d3; font: 650 .83rem var(--body); }
.schedule-note { font-size: .87rem; color: #ffe9dc; margin-bottom: .85rem; }
.timeline { padding: 0; margin: 0; list-style: none; border-top: 1px solid #ffffff51; }
.timeline li { display: grid; grid-template-columns: minmax(6.3rem, .42fr) 1fr; gap: .6rem; padding-block: .9rem; border-bottom: 1px solid #ffffff51; }
.timeline p { color: #ffe9dc; font-size: .92rem; margin-top: .22rem; }
.event-time { font-variant-numeric: tabular-nums; font-size: .94rem; }

.travel-layout, .lodging-layout, .rsvp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.35rem, 6vw, 5.7rem); }
.route-card { align-self: start; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); padding: clamp(1rem, 2.5vw, 1.55rem); }
.route-card > figcaption { font-weight: 750; margin-bottom: .75rem; }
.route-visual { overflow: hidden; border-radius: .35rem; background: #ede0cf; }
.route-map { display: block; width: 100%; }
.map-water { fill: #c6d8d3; }
.map-river { stroke: #abc8c4; stroke-width: 4; fill: none; }
.map-terrain { stroke: #cab39c; stroke-width: 1.5; stroke-linejoin: round; fill: none; }
.map-border { fill: none; stroke: #b79a86; stroke-dasharray: 4 6; }
.map-road-under, .map-road { fill: none; stroke-linecap: round; }
.map-road-under { stroke: #fff7ed; stroke-width: 10; }
.map-road { stroke: var(--rust); stroke-width: 4; }
.map-stop text, .map-highway { font-family: var(--body); font-weight: 700; font-size: 17px; fill: #3d2820; }
.map-highway { font-size: 14px; fill: var(--muted); }
.map-dot { fill: var(--rust-dark); stroke: var(--white); stroke-width: 2; }
.map-halo { fill: #b34b2c; opacity: 0; }
[data-active-stop="yvr"] .stop-yvr .map-halo, [data-active-stop="hope"] .stop-hope .map-halo, [data-active-stop="resort"] .stop-resort .map-halo { opacity: .23; }
.route-stops { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.route-stops button { padding: .4rem .65rem; min-height: 2.35rem; color: var(--rust-dark); border: 1px solid var(--line); border-radius: .28rem; background: var(--white); font: 650 .82rem var(--body); cursor: pointer; }
.route-stops button:hover { background: var(--linen); }
.route-stops button[aria-pressed="true"] { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--white); }
.route-note { margin-top: .75rem; min-height: 2.9em; font-size: .9rem; }
.map-key { font-size: .72rem; color: var(--muted); margin-top: .25rem; }

.lodging { background: var(--linen); border-block: 1px solid var(--line); }
.booking-date { padding-left: .85rem; border-left: 3px solid var(--rust); }
.lodging-list { padding-left: 1.15em; margin-block: 1.15rem 0; }
.lodging-list li + li { margin-top: .25rem; }
.text-link { font-weight: 650; font-size: .92rem; }
.booking-card { align-self: start; padding: clamp(1.3rem, 3.1vw, 2rem); background: var(--white); border-radius: .6rem; border: 1px solid var(--line); }
.booking-card h3 { margin-bottom: .75rem; }
.booking-card address { font-style: normal; font-weight: 650; margin-bottom: .85rem; overflow-wrap: anywhere; }
.booking-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.3rem 0; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: 2rem; }
.faq-items { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.faq details p { max-width: 70ch; margin: .9rem 1rem 0 0; color: var(--muted); }
.faq summary { list-style: none; font-weight: 700; display: flex; gap: 1rem; cursor: pointer; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.55rem/1 var(--body); color: var(--rust-dark); }
.faq details[open] summary::after { content: '−'; }

.rsvp { background: var(--clay-light); }
.rsvp-layout { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); }
.rsvp-form-card { min-width: 0; background: white; padding: .5rem; border: 1px solid #cbad9a; border-radius: .6rem; }
.rsvp-form-card iframe { display: block; min-width: 0; width: 100%; min-height: 1560px; border: 0; border-radius: .3rem; }
.site-footer { background: #482b20; color: #faedde; padding-block: 2rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer p, .site-footer a { font-size: .89rem; color: inherit; }

@media (max-width: 850px) {
  .rsvp-form-card iframe { min-height: 1680px; }
  .shell { width: calc(100% - 3rem); }
  .cover-layout { gap: 1.75rem; }
  .cover-copy { padding-bottom: .5rem; }
  .nav-links { gap: 1.1rem; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 2.3rem); }
  .nav { min-height: 3.7rem; }
  .section, .cover { scroll-margin-top: 3.75rem; }
  .menu-button { display: block; background: var(--paper); color: var(--rust-dark); border: 1px solid var(--line); border-radius: .25rem; padding: .43rem .7rem; min-height: 2.4rem; font: 700 .88rem var(--body); cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; padding: .55rem 1.15rem .9rem; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #43281922; }
  .nav-links.is-open { display: grid; }
  .nav-links a { padding: .6rem 0; }
  .nav-links .nav-rsvp { margin-top: .3rem; justify-self: start; }
  .cover { padding-block: 2.6rem 2.2rem; }
  .cover-layout, .schedule-grid, .travel-layout, .lodging-layout, .faq-layout, .rsvp-layout { grid-template-columns: minmax(0, 1fr); }
  .cover-layout { gap: 1.55rem; }
  h1 { font-size: clamp(2.35rem, 8.2vw, 3.9rem); }
  .cover-place { margin-top: 1.15rem; }
  .faq-layout { gap: .5rem; }
}
@media (max-width: 360px) {
  .rsvp-form-card iframe { min-height: 1820px; }
  .shell { width: calc(100% - 1.75rem); }
  .site-footer .shell { align-items: flex-start; flex-direction: column; }
}
