:root {
  --paper: #fcf7ef;
  --paper-deep: #f2e8da;
  --paper-warm: #f7eee2;
  --sand-soft: #f3e6d5;
  --sand-deep: #ead8c2;
  --sand-muted: #efe1d0;
  --ink: #765f55;
  --ink-strong: #5d463f;
  --sage: #aeb49d;
  --line: #d9c8b9;
  --sans: "Manrope", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-strong);
  background:
    radial-gradient(circle at 12% 18%, rgb(255 255 255 / 70%), transparent 24rem),
    radial-gradient(circle at 88% 78%, rgb(232 219 199 / 46%), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  padding: 1.4rem clamp(1.25rem, 4vw, 4.5rem);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.site-nav { display: flex; gap: 1.5rem; }

.site-nav a, .menu-button {
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-nav a:hover, .site-nav a:focus-visible { border-color: var(--ink); }

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1280px;
  min-height: calc(100svh - 80px);
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
}

.hero-copy { max-width: 640px; text-align: center; }
.hero-name-lockup { position: relative; }
.hero-boat {
  height: auto;
  left: calc(50% - clamp(42rem, 50vw, 54rem));
  margin: 0;
  max-width: 500px;
  position: absolute;
  top: clamp(13rem, 19vw, 18rem);
  width: clamp(300px, 30vw, 500px);
}

.eyebrow {
  color: var(--ink);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .22em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: .95;
}

h1 {
  font-size: clamp(4.3rem, 8vw, 8.6rem);
  letter-spacing: .01em;
  margin-bottom: .7rem;
}

.hero-script {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-style: italic;
  margin-bottom: 1.65rem;
}

.rule { background: var(--ink); height: 1px; margin: 0 auto 1.65rem; opacity: .62; width: 44px; }

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  letter-spacing: .09em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.hero-place { font-size: .83rem; letter-spacing: .12em; line-height: 1.8; text-transform: uppercase; }

.button {
  background: var(--ink-strong);
  color: #fffaf3;
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .16em;
  margin-top: 1.3rem;
  padding: .9rem 1.45rem;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.button:hover, .button:focus-visible { background: #8c7468; transform: translateY(-2px); }

.watercolor-frame { margin: 0 auto; max-width: 900px; min-width: 0; width: 100%; }

.watercolor-frame img { display: block; height: auto; max-width: 100%; width: 100%; }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.25rem, 8vw, 7rem); }

.celebration { background: #fffaf3; text-align: center; }
.celebration .section-heading > p { color: var(--ink); margin-left: auto; margin-right: auto; max-width: 580px; }

.celebration-art { margin: clamp(2.5rem, 5vw, 4.25rem) auto 0; max-width: 650px; }

.section-heading { margin: 0 auto; max-width: 760px; }
.section-heading.narrow { max-width: 620px; text-align: center; }

h2 { font-size: clamp(3rem, 5vw, 5.4rem); margin-bottom: 1.35rem; }

.section-heading > p:last-child, .rsvp > p { color: var(--ink); margin-left: auto; margin-right: auto; max-width: 580px; }

.details-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 3.8rem auto 0;
  max-width: 920px;
}

.details-grid div { border-top: 1px solid var(--line); padding-top: 1rem; }
.details-grid dt { font-size: .67rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.details-grid dd { font-family: var(--serif); font-size: 1.45rem; margin: .3rem 0 0; }
.details-map-link {
  border-bottom: 1px solid rgb(118 95 85 / 42%);
  color: var(--ink);
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .06em;
  line-height: 1.35;
  margin-top: .55rem;
}
.details-note { color: rgb(118 95 85 / 76%); font-size: .68rem; line-height: 1.45; margin: .55rem 0 0; }

.story { background: var(--sand-deep); text-align: center; }
.story-note { border-top: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-size: 1.5rem; margin: 3.2rem auto 0; max-width: 320px; padding-top: 1rem; }

.information { background: var(--paper-warm); }

.information-cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 3.5rem auto 0;
  max-width: 1120px;
}

.information-cards article { background: rgb(255 253 248 / 72%); min-height: 195px; padding: 2rem; }
.information-cards span { color: var(--sage); font-size: .72rem; font-weight: 600; letter-spacing: .12em; }
.information-cards h3 { font-size: 2rem; margin: 1.2rem 0 .55rem; }
.information-cards p { color: var(--ink); font-size: .9rem; }

.text-link {
  border-bottom: 1px solid var(--ink);
  color: var(--ink-strong);
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  margin-top: .4rem;
  text-transform: uppercase;
}

.lodging { background: var(--sand-soft); }
.lodging-note { color: var(--ink); font-size: .8rem; margin: 2rem auto 0; max-width: 720px; text-align: center; }

.lodging-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 3.5rem auto 0;
  max-width: 1120px;
}

.lodging-card {
  align-items: start;
  background: rgb(255 253 248 / 76%);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.lodging-card--celebration {
  background: #ead5b9;
  box-shadow: inset 0 0 0 2px rgb(118 95 85 / 42%);
}

.hotel-number, .place-distance { color: var(--sage); font-size: .7rem; font-weight: 600; letter-spacing: .14em; margin: 0; text-transform: uppercase; }
.lodging-card h3, .explore-grid h3 { font-size: clamp(1.85rem, 3vw, 2.45rem); margin-bottom: .45rem; }
.lodging-card > div:nth-child(2) > p:not(.hotel-distance):not(.hotel-links), .explore-grid article > p:not(.place-distance) { color: var(--ink); font-size: .88rem; margin-bottom: 1rem; }
.hotel-highlight {
  background: var(--ink-strong);
  color: #fff8ee !important;
  display: inline-block;
  font-size: .6rem !important;
  font-weight: 600;
  letter-spacing: .13em;
  margin: 0 0 .8rem !important;
  padding: .35rem .5rem;
  text-transform: uppercase;
}
.hotel-distance { color: var(--ink-strong); font-size: .72rem; font-weight: 600; letter-spacing: .09em; margin-bottom: .75rem; text-transform: uppercase; }
.hotel-links { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 0; }
.hotel-links a { border-bottom: 1px solid var(--ink); color: var(--ink-strong); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hotel-price { color: var(--ink-strong); font-family: var(--serif); font-size: 2.3rem; line-height: .9; margin: 0; text-align: right; white-space: nowrap; }
.hotel-price span, .hotel-price small { color: var(--ink); display: block; font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }

.explore { background: #fbf4ea; }
.costa-intro {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  margin: 3rem auto 0;
  max-width: 720px;
  padding-top: 1.35rem;
  text-align: center;
}
.explore-grid { display: grid; gap: 1px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 3.5rem auto 0; max-width: 1240px; }
.explore-grid article { background: rgb(255 253 248 / 76%); border-top: 3px solid transparent; display: flex; flex-direction: column; min-height: 255px; padding: 1.65rem; }
.explore-card--beach { border-color: #a9cbd2 !important; }
.explore-card--nature { border-color: #b6c99f !important; }
.explore-card--town { border-color: #d4ad98 !important; }
.place-type { display: block; font-size: .56rem; letter-spacing: .12em; margin-bottom: .35rem; }
.explore-card--beach .place-type { color: #5c8892; }
.explore-card--nature .place-type { color: #718458; }
.explore-card--town .place-type { color: #a6725f; }
.explore-grid h3 { font-size: 2rem; }
.explore-grid .text-link { margin-top: auto; }

.arrival { background: var(--sand-muted); }

.ermita-history {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 3rem auto 0;
  max-width: 760px;
  padding: 1.5rem 0;
  text-align: center;
}
.ermita-history .eyebrow { color: var(--sage); margin-bottom: .7rem; }
.ermita-history > p:last-child { color: var(--ink); font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.4; margin-bottom: 0; }
.boat-illustration { display: block; height: auto; }
.boat-illustration--sailing { margin: 2rem auto -1.35rem; max-width: 325px; width: min(80%, 325px); }
.boat-illustration--galleon { margin: 1.5rem auto -1.15rem; max-width: 380px; width: min(88%, 380px); }

.arrival-logistics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 3.5rem auto 0;
  max-width: 920px;
}
.arrival-logistics article { background: rgb(255 252 246 / 76%); padding: clamp(1.5rem, 3vw, 2.25rem); }
.arrival-logistics .eyebrow {
  background: var(--ink-strong);
  color: #fff8ee;
  display: inline-block;
  margin-bottom: .85rem;
  padding: .35rem .55rem;
}
.arrival-logistics h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .75rem; }
.arrival-logistics article > p:not(.eyebrow) { color: var(--ink); font-size: .92rem; margin-bottom: 0; }
.arrival-logistics-note { border-top: 1px solid var(--line); font-size: .72rem !important; margin-top: 1.3rem !important; padding-top: .8rem; }

.arrival-map {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 3.8rem auto 0;
  max-width: 1240px;
}

.map-figure { grid-column: 1 / -1; }
.map-visual { position: relative; }
.map-visual > img { display: block; height: auto; width: 100%; }
.map-mobile-details { display: none; }

.map-compass {
  align-items: center;
  background: rgb(255 252 246 / 82%);
  border: 1px solid rgb(118 95 85 / 45%);
  bottom: 9%;
  display: flex;
  gap: .65rem;
  padding: .55rem .7rem;
  position: absolute;
  right: 5%;
}

.map-compass p { line-height: 1.2; margin: 0; }
.map-compass strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.map-compass small { color: var(--ink); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; }

.compass-rose { border: 1px solid var(--ink); border-radius: 50%; height: 52px; position: relative; width: 52px; }
.compass-rose span { color: var(--ink-strong); font-size: .55rem; font-weight: 600; line-height: 1; position: absolute; }
.compass-n { left: 50%; top: 3px; transform: translateX(-50%); }
.compass-e { right: 3px; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 3px; left: 50%; transform: translateX(-50%); }
.compass-o { left: 3px; top: 50%; transform: translateY(-50%); }
.compass-needle { border-bottom: 20px solid var(--ink-strong); border-left: 5px solid transparent; border-right: 5px solid transparent; height: 0; left: 50%; position: absolute; top: 8px; transform: translateX(-50%); width: 0; }
.compass-needle::after { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 20px solid #d9c8b9; content: ""; left: -5px; position: absolute; top: 20px; }

.map-label {
  background: rgb(255 252 246 / 88%);
  border: 1px solid rgb(118 95 85 / 35%);
  box-shadow: 0 3px 10px rgb(76 59 49 / 8%);
  line-height: 1.25;
  margin: 0;
  padding: .4rem .55rem;
  position: absolute;
  width: max-content;
  z-index: 1;
}

.map-label span { display: block; font-family: var(--serif); font-size: 1.05rem; }
.map-label small { color: var(--ink); display: block; font-size: .55rem; letter-spacing: .06em; max-width: 130px; text-transform: uppercase; }
.map-markers { inset: 0; position: absolute; }
.map-marker {
  background: transparent;
  border: 0;
  cursor: help;
  height: 5.5%;
  min-height: 38px;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -60%);
  width: 5.5%;
  z-index: 2;
}

.map-marker:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 3px; }
.marker-barcelona { left: 10.8%; top: 66.9%; }
.marker-girona { left: 20.2%; top: 12.7%; }
.marker-pyrenees { left: 52.7%; top: 8.3%; }
.marker-portbou { left: 90%; top: 7.3%; }
.marker-lloret { left: 74.5%; top: 21.7%; }
.marker-ermita { left: 56.8%; top: 43.9%; }
.marker-hotel { left: 70.8%; top: 37.1%; }
.marker-cala { left: 65.7%; top: 48.3%; }
.marker-blanes { left: 40.4%; top: 59.7%; }

.map-tooltip {
  background: rgb(255 252 246 / 96%);
  border: 1px solid rgb(96 73 62 / 55%);
  box-shadow: 0 5px 14px rgb(76 59 49 / 16%);
  display: block;
  left: 50%;
  line-height: 1.2;
  opacity: 0;
  padding: .45rem .6rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + .35rem);
  transform: translateX(-50%) translateY(-.2rem);
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  width: max-content;
}

.map-tooltip strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.map-tooltip small { color: var(--ink); display: block; font-size: .55rem; letter-spacing: .06em; max-width: 145px; text-transform: uppercase; }
.map-marker:hover .map-tooltip,
.map-marker:focus .map-tooltip,
.map-marker:focus-visible .map-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
.marker-barcelona .map-tooltip { bottom: calc(100% + .35rem); top: auto; transform: translateX(-20%) translateY(.2rem); }
.marker-barcelona:hover .map-tooltip,
.marker-barcelona:focus .map-tooltip,
.marker-barcelona:focus-visible .map-tooltip { transform: translateX(-20%) translateY(0); }
.marker-ermita .map-tooltip { left: auto; right: calc(100% + .35rem); top: -20%; transform: translateY(-.2rem); }
.marker-ermita:hover .map-tooltip,
.marker-ermita:focus .map-tooltip,
.marker-ermita:focus-visible .map-tooltip { transform: translateY(0); }
.marker-hotel .map-tooltip { left: calc(100% + .35rem); top: -15%; transform: translateY(-.2rem); }
.marker-hotel:hover .map-tooltip,
.marker-hotel:focus .map-tooltip,
.marker-hotel:focus-visible .map-tooltip { transform: translateY(0); }
.marker-portbou .map-tooltip { left: auto; right: calc(100% + .35rem); top: -15%; transform: translateY(-.2rem); }
.marker-portbou:hover .map-tooltip,
.marker-portbou:focus .map-tooltip,
.marker-portbou:focus-visible .map-tooltip { transform: translateY(0); }

.map-distance-note,
.map-region {
  color: var(--ink-strong);
  margin: 0;
  position: absolute;
  z-index: 1;
}

.map-distance-note {
  background: rgb(255 252 246 / 90%);
  border: 1px solid rgb(96 73 62 / 30%);
  bottom: 3%;
  font-size: .58rem;
  left: 2%;
  letter-spacing: .09em;
  padding: .35rem .45rem;
  text-transform: uppercase;
  top: auto;
}

.map-region {
  background: rgb(255 252 246 / 76%);
  border: 1px solid rgb(96 73 62 / 26%);
  box-shadow: 0 3px 10px rgb(76 59 49 / 5%);
  color: var(--ink-strong);
  margin: 0;
  padding: .45rem .65rem;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.map-region span { display: block; font-family: var(--serif); font-size: 1.25rem; font-style: italic; letter-spacing: .04em; }
.map-region small { display: block; font-size: .52rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.map-region { right: 4%; top: 64%; }
.map-region span { font-size: 1.65rem; }

.arrival-note {
  margin: 3rem auto 0;
  max-width: 650px;
  text-align: center;
}

.arrival-note > p:last-child { color: var(--ink); font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin-bottom: 0; }

.streaming {
  align-items: end;
  background: var(--ink-strong);
  color: #fff9f0;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr .8fr;
}

.streaming .eyebrow { color: #d8c8b9; }
.streaming h2 { margin-bottom: 0; max-width: 630px; }
.streaming-copy { color: #f4e9dc; font-family: var(--serif); font-size: 1.75rem; line-height: 1.25; margin: 0; }

.gifts { background: #faf1e6; text-align: center; }
.gifts-note { border-top: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-size: 1.5rem; margin: 3.2rem auto 0; max-width: 320px; padding-top: 1rem; }

.rsvp { margin: 0 auto; max-width: 850px; padding-bottom: clamp(5rem, 10vw, 9rem); padding-top: clamp(5rem, 10vw, 9rem); text-align: center; }
.button-quiet { background: transparent; border: 1px solid var(--ink); color: var(--ink-strong); }
.button-quiet:hover, .button-quiet:focus-visible { background: var(--paper-deep); }

.site-footer { border-top: 1px solid var(--line); display: flex; font-size: .7rem; justify-content: space-between; letter-spacing: .14em; padding: 1.5rem clamp(1.25rem, 8vw, 7rem); text-transform: uppercase; }
.site-footer p { margin: 0; }

@media (max-width: 960px) {
  .site-header { padding-bottom: 1rem; padding-top: 1rem; }
  .menu-button { display: block; }
  .site-nav { background: var(--paper); box-shadow: 0 12px 25px rgb(91 68 56 / 10%); display: none; flex-direction: column; gap: 1rem; padding: 1.2rem; position: absolute; right: 1.25rem; top: 4rem; z-index: 2; }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero-copy { margin: 0 auto; }
  .hero-boat { display: block; margin: -.15rem auto 1.15rem; position: static; width: min(38vw, 150px); }
  .watercolor-frame { max-width: min(96vw, 680px); width: 100%; }
  .details-grid, .information-cards, .lodging-list, .arrival-logistics, .streaming { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { gap: 1.15rem; }
  .streaming { gap: 1.8rem; }
  .site-footer { gap: .8rem; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(3.25rem, 15vw, 4.8rem); }
  .hero-date { font-size: 1.45rem; letter-spacing: .07em; }
  .hero-place { font-size: .72rem; letter-spacing: .08em; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .button { min-height: 46px; padding: .9rem 1.25rem; }
  .section { padding-bottom: 4rem; padding-top: 4rem; }
  .information-cards article { min-height: auto; }
  .lodging-card { grid-template-columns: auto minmax(0, 1fr); }
  .hotel-price { grid-column: 2; text-align: left; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-grid article { min-height: auto; }
  .streaming-copy { font-size: 1.55rem; }
  .site-footer { align-items: center; flex-direction: column; text-align: center; }
  .arrival-map { margin-top: 2.5rem; }
  .map-compass { bottom: 28%; gap: .35rem; padding: .4rem; right: 3%; }
  .map-compass strong { font-size: .85rem; }
  .map-compass small { font-size: .5rem; }
  .compass-rose { height: 42px; transform: scale(.8); transform-origin: center; width: 42px; }
  .map-label { padding: .25rem .3rem; }
  .map-label span { font-size: .72rem; }
  .map-label small { font-size: .4rem; max-width: 82px; }
  .map-marker,
  .map-visual .map-distance-note,
  .map-visual .map-cala-label,
  .map-visual .map-region { display: none; }
  .map-mobile-details { display: grid; gap: .4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .65rem; }
  .map-mobile-details .map-distance-note { background: transparent; grid-column: 1 / -1; padding: 0; position: static; text-align: center; }
  .map-mobile-details .map-label { box-shadow: none; inset: auto; min-height: 3.75rem; padding: .4rem; position: static; width: auto; }
  .map-mobile-details .map-label span { font-size: .85rem; }
  .map-mobile-details .map-label small { font-size: .44rem; max-width: none; }
  .map-mobile-details .map-label-cala { grid-column: 1 / -1; min-height: auto; text-align: center; }
  .map-mobile-details .map-label-pyrenees { grid-column: 1 / -1; min-height: auto; text-align: center; }
  .map-mobile-details .map-region { grid-column: 1 / -1; margin-top: .25rem; position: static; text-align: center; }
  .map-mobile-details .map-region span { font-size: 1.25rem; }
  .map-mobile-details .map-region small { font-size: .42rem; }
  .arrival-note > p:last-child { font-size: 1.3rem; }
}
