:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f6f4;
  --surface-strong: #ececea;
  --ink: #171717;
  --muted: #62625d;
  --line: #d8d8d3;
  --accent: #20201e;
  --error: #9d2a22;
  --success: #28653f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(100% - 40px, 1240px);
  --text: 680px;
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 20px;
  white-space: nowrap;
}
.desktop-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  width: 48px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle-icon { width: 22px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-toggle-icon i { display: block; width: 100%; height: 1px; background: var(--ink); transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 90;
  background: var(--bg);
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(25px, 8vw, 38px);
  line-height: 1.15;
}
.mobile-menu a::after { content: "↘"; font-family: var(--sans); font-size: 17px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 11px 18px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.button:hover { background: white; color: var(--ink); }
.button-secondary { background: white; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: white; }
.button-small { min-height: 40px; padding: 8px 13px; font-size: 12px; }
.button[disabled] { cursor: not-allowed; opacity: 0.48; }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 650;
}
button.text-link {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.chapter-shell { width: var(--page); margin: 0 auto; }
.section-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-title {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(42px, 13vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: anywhere;
}
.section-intro {
  max-width: var(--text);
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 4.7vw, 25px);
  line-height: 1.45;
}
.subsection-title {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 400;
  line-height: 1.05;
}
.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder::before, .placeholder::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 1px;
  background: var(--line);
}
.placeholder::before { transform: rotate(36deg); }
.placeholder::after { transform: rotate(-36deg); }
.placeholder span { position: relative; z-index: 1; background: var(--surface); padding: 8px 10px; }
.placeholder-wide { aspect-ratio: 16 / 10; }

.hero {
  min-height: min(870px, calc(100svh - 28px));
  padding: calc(var(--header-height) + 36px) 0 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
}
.hero-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-name { margin-bottom: 12px; color: var(--muted); font-family: var(--serif); font-size: 16px; }
.hero-kicker { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-title { font-family: var(--serif); font-size: clamp(53px, 16vw, 112px); font-weight: 400; line-height: 0.88; overflow-wrap: anywhere; }
.hero-meta { margin-top: 24px; display: grid; gap: 1px; font-size: 15px; }
.hero-quote { max-width: 540px; margin-top: 28px; font-family: var(--serif); font-size: clamp(23px, 6vw, 34px); line-height: 1.15; }
.hero-quote-translation { margin-top: 8px; color: var(--muted); font-size: 13px; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.hero-visual .placeholder { min-height: 240px; }
.continue-cue { display: none; }

.story { padding: 96px 0 0; }
.story-intro { padding-bottom: 80px; }
.story-intro-copy { display: grid; gap: 18px; max-width: 820px; margin-top: 32px; font-family: var(--serif); font-size: clamp(26px, 7vw, 46px); line-height: 1.18; }
.story-map {
  padding: 56px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.story-map h3 { margin-top: 8px; font-family: var(--serif); font-size: clamp(34px, 9vw, 56px); font-weight: 400; line-height: 1; }
.story-map-copy { max-width: 610px; margin-top: 18px; color: var(--muted); }
.story-map-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; }
.story-map-list li { border-top: 1px solid var(--line); }
.story-map-list li:last-child { border-bottom: 1px solid var(--line); }
.story-map-list a { min-height: 66px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.map-number, .story-number { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.map-label { font-family: var(--serif); font-size: 21px; }
.map-theme { color: var(--muted); font-size: 12px; }
.story-chapters { position: relative; }
.story-chapter { padding: 88px 0; border-bottom: 1px solid var(--line); }
.story-chapter-grid { width: var(--page); margin: 0 auto; display: grid; gap: 34px; }
.story-chapter-copy { max-width: 640px; }
.story-chapter h3 { margin-top: 14px; font-family: var(--serif); font-size: clamp(42px, 12vw, 72px); font-weight: 400; line-height: 0.98; }
.story-opening { margin-top: 18px; color: var(--muted); font-size: 18px; }
.story-body { margin-top: 32px; display: grid; gap: 18px; }
.story-body p { max-width: 62ch; }
.story-highlight { max-width: 600px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(24px, 6vw, 34px); line-height: 1.25; }
.story-annotation { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }

.celebration { padding: 104px 0; border-bottom: 1px solid var(--line); }
.celebration-head { display: grid; gap: 34px; }
.events-grid { margin-top: 64px; display: grid; gap: 16px; }
.event-card { border-top: 1px solid var(--ink); padding: 22px 0 30px; }
.event-day { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.event-card h3 { margin-top: 10px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.05; }
.event-time { margin-top: 14px; font-weight: 700; }
.event-description { margin-top: 12px; color: var(--muted); }
.event-schedule { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.event-schedule li { min-height: 46px; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.event-schedule time { font-weight: 700; }
.event-schedule span { color: var(--muted); }
.event-details { margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.event-detail { display: grid; gap: 2px; }
.event-detail dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.event-detail dd { margin: 0; font-size: 14px; }
.event-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.celebration-cta { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.celebration-cta p { max-width: 500px; font-family: var(--serif); font-size: 24px; line-height: 1.25; }

.information { padding: 104px 0; background: var(--surface); }
.information-head { padding-bottom: 68px; }
.info-section { padding: 64px 0; border-top: 1px solid var(--line); }
.info-heading { max-width: 700px; margin-bottom: 32px; }
.info-heading p { margin-top: 12px; color: var(--muted); }
.rsvp-layout { display: grid; gap: 36px; }
.rsvp-aside { padding: 24px; border: 1px solid var(--line); background: white; }
.rsvp-aside strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.rsvp-aside span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.rsvp-form { display: grid; gap: 20px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 13px; font-weight: 700; }
.form-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 12px 14px;
}
.form-field input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.attendance-picker { min-width: 0; margin: 4px 0 0; padding: 0; border: 0; }
.attendance-picker legend { margin-bottom: 4px; padding: 0; font-size: 13px; font-weight: 700; }
.attendance-table { margin-top: 14px; border-top: 1px solid var(--line); }
.attendance-row { min-height: 68px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.attendance-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.attendance-row span { min-width: 0; display: grid; gap: 2px; }
.attendance-row strong { font-size: 14px; }
.attendance-row small { color: var(--muted); font-size: 12px; }
.form-status { min-height: 24px; font-size: 13px; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }
.rsvp-form .button { justify-self: start; }

.airport-grid, .accommodation-grid, .destination-grid { display: grid; gap: 16px; }
.info-card { border: 1px solid var(--line); background: white; padding: 22px; }
.info-card-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info-card h4 { margin-top: 8px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.05; }
.info-card p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.info-card dl { margin: 20px 0 0; display: grid; gap: 12px; }
.info-card dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.info-card dd { margin: 2px 0 0; font-size: 14px; }
.inline-notes { margin-top: 24px; display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.accommodation-visual { margin-bottom: 20px; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
}
.accordion-trigger span:first-child { font-weight: 650; }
.accordion-icon { font-size: 24px; font-weight: 300; transition: transform 160ms ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { padding: 0 28px 20px 0; color: var(--muted); font-size: 14px; }
.accordion-panel[hidden] { display: none; }
.source-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.source-links a { min-height: 40px; display: inline-flex; align-items: center; border-bottom: 1px solid currentColor; color: var(--ink); font-size: 12px; font-weight: 650; }

.gifts-grid { display: grid; gap: 16px; }
.copy-field { margin-top: 18px; display: flex; align-items: stretch; }
.copy-field code { min-width: 0; flex: 1; padding: 12px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.copy-field button { min-width: 72px; border: 1px solid var(--ink); background: var(--ink); color: white; cursor: pointer; }

.brazil-travel { padding: 104px 0 0; }
.destination-grid { margin-top: 64px; }
.destination-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.destination-card .placeholder { margin-bottom: 20px; }
.destination-card h3 { font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.05; }
.destination-status { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.destination-days { margin-top: 8px; color: var(--muted); font-size: 12px; }
.destination-intro { margin-top: 18px; font-size: 15px; }
.destination-meta { margin-top: 22px; display: grid; gap: 14px; }
.destination-meta span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.destination-meta p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.destination-stops { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.destination-stops li { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.destination-stops div { min-width: 0; display: grid; }
.destination-stops strong { font-size: 14px; }
.destination-stops span { color: var(--muted); font-size: 11px; }
.destination-stops a { min-height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; }

.site-footer { margin-top: 104px; padding: 86px 0 30px; border-top: 1px solid var(--line); background: var(--ink); color: white; }
.footer-quote { max-width: 900px; font-family: var(--serif); font-size: clamp(42px, 12vw, 82px); line-height: 0.98; }
.footer-date { margin-top: 22px; color: #c9c9c5; }
.footer-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .button { border-color: white; background: white; color: var(--ink); }
.site-footer .button:hover { background: transparent; color: white; }
.site-footer .button-secondary { background: transparent; color: white; }
.footer-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid #40403d; display: grid; gap: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; color: #d7d7d3; font-size: 12px; }
.language-switcher { display: flex; gap: 8px; }
.language-switcher button { border: 1px solid #666; background: transparent; color: white; padding: 8px 12px; cursor: pointer; }
.privacy { max-width: 720px; color: #a9a9a5; font-size: 11px; line-height: 1.5; }

.status-toast { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 180; max-width: 460px; margin-left: auto; padding: 14px 16px; background: var(--ink); color: white; font-size: 13px; }
.status-toast[hidden] { display: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (min-width: 700px) {
  :root { --page: min(100% - 72px, 1240px); --header-height: 72px; }
  .hero-inner { grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr); gap: 56px; }
  .hero-visual .placeholder { min-height: 470px; }
  .story-map-list { grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
  .story-map-list li, .story-map-list li:last-child { border: 0; }
  .story-map-list li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .story-map-list a { min-height: 96px; padding: 12px 16px; grid-template-columns: 28px 1fr; }
  .map-theme { grid-column: 2; }
  .story-chapter { padding: 112px 0; }
  .story-chapter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 70px; }
  .story-chapter:nth-child(even) .story-chapter-copy { order: 2; }
  .story-chapter:nth-child(even) .story-chapter-visual { order: 1; }
  .celebration-head { grid-template-columns: 1fr 0.8fr; align-items: end; }
  .events-grid { grid-template-columns: repeat(3, 1fr); }
  .event-card { padding-right: 24px; }
  .event-card + .event-card { padding-left: 24px; border-left: 1px solid var(--line); }
  .rsvp-layout { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); align-items: start; }
  .rsvp-aside { position: sticky; top: calc(var(--header-height) + 24px); }
  .airport-grid { grid-template-columns: repeat(2, 1fr); }
  .accommodation-grid, .gifts-grid { grid-template-columns: repeat(3, 1fr); }
  .destination-grid { grid-template-columns: repeat(2, 1fr); gap: 54px 24px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .privacy { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
  .desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; font-weight: 650; }
  .desktop-nav a:hover { color: var(--ink); }
  .desktop-nav a.is-emphasis { color: var(--ink); border-bottom: 1px solid var(--ink); }
  .menu-toggle { display: none; }
  .header-rsvp { display: none; }
  .hero-inner { gap: clamp(70px, 8vw, 130px); }
  .hero-visual .placeholder { min-height: 620px; }
  .story-map-list { grid-template-columns: repeat(6, 1fr); }
  .story-map-list li:not(:first-child) { border-left: 1px solid var(--line); }
  .story-map-list a { min-height: 126px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; }
  .map-theme { margin-top: auto; }
  .story-chapter-grid { gap: clamp(80px, 10vw, 150px); }
  .information-head { display: grid; grid-template-columns: 1fr 0.7fr; align-items: end; gap: 60px; }
  .information-head .section-intro { margin: 0; }
  .info-section { display: grid; grid-template-columns: minmax(230px, 0.35fr) minmax(0, 1fr); gap: 70px; }
  .info-heading { margin: 0; }
  .rsvp-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .destination-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1500px) {
  :root { --page: 1360px; }
  .hero-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (max-width: 359px) {
  :root { --page: calc(100% - 28px); }
  .header-rsvp { padding-inline: 10px; }
  .hero-title { font-size: 49px; }
  .hero { padding-top: calc(var(--header-height) + 24px); padding-bottom: 24px; }
  .hero-inner { gap: 20px; }
  .hero-visual .placeholder { min-height: 190px; }
  .hero-quote { margin-top: 22px; }
  .button { padding-inline: 14px; }
  .map-theme { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
