:root {
  --paper: #f7f2e8;
  --ivory: #fffaf0;
  --stone: #d9cbb7;
  --stone-deep: #9d8f7d;
  --ink: #1f2821;
  --muted: #687065;
  --olive: #5e6f4e;
  --olive-dark: #344231;
  --citrus: #d88a24;
  --citrus-soft: #f3c35f;
  --clay: #b46c43;
  --line: rgba(31, 40, 33, 0.15);
  --shadow: 0 24px 70px rgba(31, 40, 33, 0.12);
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --body: Inter, "Noto Serif SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.72;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 58px);
  color: var(--ivory);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 242, 232, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand-people {
  width: 42px;
  height: 30px;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-people circle:not(.brand-sun) {
  fill: rgba(255, 250, 240, 0.86);
  stroke: currentColor;
  stroke-width: 2;
}

.brand-people path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-sun {
  fill: var(--citrus);
  stroke: none;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  column-gap: 9px;
}

.brand-names {
  font-size: 1.02rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.brand-date {
  margin-top: 1px;
  font-family: var(--body);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.86rem;
  font-weight: 700;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 250, 240, 0.08);
}

.language-option {
  min-width: 44px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.language-option.is-active {
  background: var(--ivory);
  color: var(--ink);
}

.site-header.is-scrolled .language-option.is-active {
  background: var(--ink);
  color: var(--paper);
}

.nav-links a,
.footer a,
.text-link,
.inline-map-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 7vw, 86px) 70px;
  color: var(--ivory);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 7vw, 86px);
  right: clamp(20px, 7vw, 86px);
  bottom: 28px;
  height: 1px;
  background: rgba(255, 250, 240, 0.38);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 29, 22, 0.84), rgba(21, 29, 22, 0.48) 46%, rgba(21, 29, 22, 0.16)),
    linear-gradient(0deg, rgba(21, 29, 22, 0.56), rgba(21, 29, 22, 0.02) 55%),
    url("assets/mallorca-mountains-sea-hero.png") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  max-width: 840px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 13px;
  color: var(--citrus);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d082;
}

h1,
h2,
h3,
p,
summary,
span {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 13.5ch;
  font-size: clamp(3.7rem, 7.8vw, 7.1rem);
}

html[lang="zh-Hans"] h1 {
  max-width: 13.5ch;
  font-size: clamp(3.7rem, 7.8vw, 7.1rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.35rem, 5.8vw, 5.15rem);
}

h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.08;
}

p {
  margin: 0;
}

.hero-date {
  margin-top: 18px;
  max-width: 720px;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-weight: 700;
}

.hero-note {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(255, 250, 240, 0.84);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--clay);
  color: var(--ivory);
}

.button.secondary {
  border-color: currentColor;
  background: rgba(255, 250, 240, 0.08);
}

.section .button.secondary {
  background: transparent;
}

.countdown {
  position: absolute;
  right: clamp(20px, 6vw, 76px);
  bottom: 58px;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 250, 240, 0.52);
  border-radius: 50%;
  background: rgba(31, 40, 33, 0.22);
  backdrop-filter: blur(10px);
}

.countdown span {
  font-family: var(--serif);
  font-size: 3.05rem;
  line-height: 1;
}

.countdown small {
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 7vw, 86px);
  scroll-margin-top: 86px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: clamp(30px, 8vw, 106px);
  align-items: end;
  background: var(--ivory);
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(48px, 7vw, 82px);
}

.intro-copy,
.section-heading,
.dress-copy,
.rsvp-copy {
  display: grid;
  gap: 18px;
}

.intro-copy p,
.section-heading p,
.timeline p,
.card p,
.guide-card p,
.dress p,
.rsvp-copy p,
.faq p,
.rsvp-form p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(280px, 1fr);
  gap: clamp(32px, 8vw, 98px);
}

.section-heading.full {
  grid-column: 1 / -1;
  max-width: 860px;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.timeline article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 27px;
  background: var(--ivory);
}

.timeline time {
  color: var(--olive-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.inline-map-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--olive-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.dress {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(260px, 0.62fr);
  gap: clamp(30px, 8vw, 96px);
  align-items: center;
}

.travel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.rsvp-form {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 12px 34px rgba(31, 40, 33, 0.06);
}

.card {
  min-height: 236px;
  padding: 28px;
}

.travel .card {
  min-height: 176px;
  padding: 22px;
}

.card-kicker {
  display: block;
  color: var(--olive);
}

.guide {
  display: grid;
  gap: 28px;
  background: #efe7d8;
}

.guide-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) auto;
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
}

.guide-tabs {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  border: 1px solid rgba(52, 66, 49, 0.28);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 250, 240, 0.7);
}

.guide-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--olive-dark);
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.guide-tab.is-active {
  background: var(--olive-dark);
  color: var(--ivory);
}

.guide-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.guide-panel.is-active {
  display: grid;
}

.guide-tile {
  display: grid;
  grid-template-rows: 184px 1fr;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(31, 40, 33, 0.06);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.guide-tile:hover {
  border-color: rgba(216, 138, 36, 0.55);
  transform: translateY(-1px);
}

.tile-media {
  min-height: 184px;
  background:
    linear-gradient(180deg, rgba(31, 40, 33, 0.02), rgba(31, 40, 33, 0.24)),
    var(--tile-image) center / cover;
  transition: transform 240ms ease;
}

.guide-tile:hover .tile-media {
  transform: scale(1.025);
}

.tile-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
}

.tile-deia {
  --tile-image: url("assets/guide-deia-village.png");
}

.tile-tramuntana {
  --tile-image: url("assets/guide-tramuntana.png");
}

.tile-soller {
  --tile-image: url("assets/guide-port-soller.png");
}

.tile-citrus-orchard {
  --tile-image: url("assets/guide-citrus-orchard.png");
}

.tile-valldemossa {
  --tile-image: url("assets/guide-valldemossa.png");
}

.tile-cala-deia {
  --tile-image: url("assets/mallorca-mountains-sea-hero.png");
}

.tile-olive-harvest {
  --tile-image: url("assets/guide-olive-harvest.png");
}

.tile-culture {
  --tile-image: url("assets/guide-culture.png");
}

.tile-palma {
  --tile-image: url("assets/guide-palma.png");
}

.tile-tennis {
  --tile-image: url("assets/guide-tennis.png");
}

.tile-climbing {
  --tile-image: url("assets/guide-climbing.png");
}

.tile-ebike {
  --tile-image: url("assets/guide-ebike.png");
}

.tile-caves {
  --tile-image: url("assets/guide-drach-caves-v2.png");
}

.tile-sea {
  --tile-image: url("assets/guide-clear-coves.png");
}

.tile-kicker {
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.02;
}

.tile-summary {
  display: -webkit-box;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tile-detail {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
}

.tile-detail,
.tile-links {
  display: none;
}

.tile-detail p {
  margin: 0;
}

.guide-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.guide-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.guide-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 40, 33, 0.48);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.guide-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(280px, 1fr);
  width: min(800px, 100%);
  max-height: min(540px, 82vh);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 30px 90px rgba(31, 40, 33, 0.28);
}

.guide-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 40, 33, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.guide-modal-media {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.guide-modal-body {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
}

.guide-modal-body .tile-title {
  font-size: clamp(1.95rem, 3.6vw, 3.05rem);
}

.guide-modal-body .tile-summary {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.guide-modal-body .tile-links {
  display: flex;
}

.guide-modal-body .tile-note {
  margin-top: 6px;
}

.tile-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--olive-dark);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.58;
}

.tile-links {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tile-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(52, 66, 49, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.tile-links a:hover {
  border-color: var(--citrus);
  color: var(--clay);
}

.dress {
  background: var(--ivory);
}

.climate-panel {
  display: grid;
  align-content: center;
  justify-items: end;
}

.dress-details {
  width: min(100%, 500px);
  display: grid;
  gap: 22px;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-label {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.55;
}

.dress-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.swatch {
  --swatch-color: var(--paper);
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(31, 40, 33, 0.16);
  border-radius: 6px;
  background: var(--swatch-color);
  color: var(--ink);
  padding: 8px 6px;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.swatch-cream {
  --swatch-color: #f4ead8;
}

.swatch-sage {
  --swatch-color: #b8c3a8;
}

.swatch-olive {
  --swatch-color: #6f7b58;
  color: var(--ivory);
}

.swatch-brown {
  --swatch-color: #b38b69;
}

.swatch-blue {
  --swatch-color: #b9c7d7;
}

.weather-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
}

.weather-list span {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1fr;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 13px 15px;
}

.weather-list span:first-child {
  border-top: 0;
}

.weather-list strong {
  color: var(--olive-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.weather-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 650;
}

@media (max-width: 700px) {
  .dress-palette {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .swatch {
    min-height: 48px;
    padding: 6px 4px;
    font-size: 0.68rem;
  }

  .weather-list span {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.rsvp {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(30px, 7vw, 86px);
}

.todo {
  padding: 14px 16px;
  border-left: 4px solid var(--citrus);
  background: rgba(216, 138, 36, 0.1);
  color: var(--olive-dark) !important;
  font-weight: 700;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.hidden-field {
  display: none;
}

label,
legend {
  color: var(--olive-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(216, 138, 36, 0.24);
  border-color: var(--citrus);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.choice input {
  width: auto;
  margin: 0;
}

.form-status {
  min-height: 24px;
  color: var(--olive-dark);
  font-weight: 800;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thank-you {
  width: min(760px, calc(100% - 40px));
  padding: clamp(36px, 8vw, 86px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.thank-you-language {
  display: inline-flex;
  gap: 0.2rem;
  margin: 0 auto 2rem;
  padding: 0.22rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.thank-you h1 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 600;
  line-height: 0.95;
}

.thank-you p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.thank-you .button {
  margin-top: 26px;
}

.faq {
  display: grid;
  gap: 12px;
  background: var(--ivory);
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--olive-dark);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 7vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    min-height: 88vh;
  }

  .intro,
  .split,
  .dress,
  .rsvp {
    grid-template-columns: 1fr;
  }

  .travel,
  .guide-panel {
    grid-template-columns: 1fr;
  }

  .guide-top {
    grid-template-columns: 1fr;
  }

  .guide-tabs {
    justify-self: start;
  }

  .climate-panel {
    justify-items: start;
  }

  .dress-details {
    justify-self: start;
  }

  .dress-palette {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .guide-tile {
    height: auto;
    min-height: 390px;
  }

  .guide-modal-card {
    grid-template-columns: 1fr;
    max-height: 82vh;
  }

  .guide-modal-media {
    min-height: 180px;
  }

  .guide-modal-body {
    gap: 10px;
    padding: 22px;
  }

  .guide-modal-body .tile-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .countdown {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 36px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    max-width: 230px;
    font-size: 0.76rem;
  }

  .language-toggle {
    padding: 2px;
  }

  .language-option {
    min-width: 42px;
    min-height: 28px;
  }

  .hero {
    min-height: 90vh;
    padding-top: 122px;
  }

  h1 {
    max-width: 12.5ch;
    font-size: clamp(2.45rem, 12vw, 4.05rem);
  }

  html[lang="zh-Hans"] h1 {
    max-width: 12.5ch;
    font-size: clamp(2.45rem, 12vw, 4.05rem);
  }

  .hero-date,
  .hero-note {
    max-width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

}
