:root {
  color-scheme: light;
  --ink: #26231f;
  --muted: #716b62;
  --paper: #fbf7f0;
  --panel: #fffdf8;
  --line: #e4ddd2;
  --red: #a4322a;
  --red-dark: #76231f;
  --moss: #526246;
  --sky: #dbe8ee;
  --gold: #c59448;
  --shadow: 0 20px 55px rgba(38, 35, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.74), rgba(20, 18, 16, 0.38) 48%, rgba(20, 18, 16, 0.08)),
    url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=2200&q=84")
      center / cover;
  color: #fffaf2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(to bottom, rgba(251, 247, 240, 0), var(--paper));
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.44);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.14);
}

.nav-actions a {
  padding: 10px 12px;
  text-decoration: none;
  color: rgba(255, 250, 242, 0.86);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12vh 0 18vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c76e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
}

h3 {
  font-size: 1.08rem;
}

.intro {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: 1.16rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  cursor: pointer;
}

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

.button.primary {
  background: var(--red);
  color: #fffaf2;
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.ghost {
  border-color: rgba(255, 250, 242, 0.42);
  color: #fffaf2;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

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

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 48px;
  align-items: end;
}

.section-copy p,
.payment-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.route-map {
  padding: 12px;
  background: #eaf2f1;
  border: 1px solid rgba(82, 98, 70, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(38, 35, 31, 0.08);
}

.honeymoon-map {
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 6px;
  background: #dcecf0;
}

.leaflet-container img {
  max-width: none;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.leaflet-pane,
.leaflet-layer,
.leaflet-tile-container,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
}

.leaflet-tile {
  border: 0;
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas {
  transform-origin: 0 0;
}

.leaflet-map-pane {
  position: absolute;
}

.leaflet-overlay-pane svg {
  max-width: none;
}

.leaflet-tooltip {
  position: absolute;
  padding: 6px 9px;
  pointer-events: none;
  white-space: nowrap;
}

.leaflet-tooltip-left {
  margin-left: -6px;
}

.leaflet-tooltip-right {
  margin-left: 6px;
}

.leaflet-tooltip-top {
  margin-top: -6px;
}

.leaflet-tooltip-bottom {
  margin-top: 6px;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted;
  pointer-events: auto;
}

.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  bottom: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-control-attribution {
  border-radius: 4px 0 0 0;
  color: rgba(38, 35, 31, 0.62);
  font-size: 0.62rem;
}

.stop-icon-wrap {
  background: none !important;
  border: none !important;
}

.stop-icon-wrap span {
  display: block;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  filter: drop-shadow(0 2px 5px rgba(38, 35, 31, 0.35));
}

.route-tooltip {
  border: 1px solid rgba(228, 221, 210, 0.9);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 6px 16px rgba(38, 35, 31, 0.12);
  padding: 5px 10px !important;
}

.tip-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
}

.tip-date {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}

.route-caption {
  margin: 12px 4px 0;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.5;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.gift-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(38, 35, 31, 0.07);
}

.gift-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gift-body {
  padding: 20px;
}

.gift-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.amount {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 900;
}

.gift-body p {
  min-height: 78px;
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.58;
}

.gift-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  color: var(--moss);
  font-size: 0.88rem;
  font-weight: 850;
}

.payment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.3fr);
  gap: 36px;
  align-items: start;
}

.payment-panel {
  display: grid;
  gap: 14px;
}

.payment-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.payment-card.featured {
  background: var(--ink);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.payment-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fffaf2;
  font-weight: 950;
}

.payment-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.payment-card .payment-address {
  margin-top: -4px;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-qr {
  width: min(190px, 100%);
  margin-top: 18px;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(38, 35, 31, 0.1);
}

.payment-card.featured .payment-icon {
  background: var(--red);
}

.payment-card.featured dl {
  margin: 0;
}

.payment-card.featured div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 250, 242, 0.18);
}

dt {
  color: rgba(255, 250, 242, 0.62);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 850;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 850;
  text-decoration: none;
}

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

  .story-section,
  .payment-section {
    grid-template-columns: 1fr;
  }

  .registry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions a {
    padding-left: 0;
  }

  .hero-content {
    padding-bottom: 14vh;
  }

  h1 {
    font-size: 3.1rem;
  }

  .intro {
    font-size: 1rem;
  }

  .section {
    padding: 54px 0;
  }

  .registry-grid {
    grid-template-columns: 1fr;
  }

  .gift-body p {
    min-height: auto;
  }

  .payment-card.featured div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-map {
    margin-inline: -2px;
    padding: 8px;
  }

  .honeymoon-map {
    height: 360px;
  }

  .footer {
    flex-direction: column;
  }
}
