:root {
  color-scheme: light;
  --paper: #f7efe4;
  --paper-2: #fffaf2;
  --ink: #13233a;
  --body: #4f5360;
  --muted: #8f7a72;
  --rose: #b9787d;
  --line: #e6d7c8;
  --shadow: 0 18px 46px rgba(62, 40, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 25%, rgba(255, 255, 255, 0.92) 0 8%, transparent 22%),
    radial-gradient(circle at 91% 18%, rgba(214, 183, 148, 0.23), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 230px;
  height: 430px;
  opacity: 0.38;
  background:
    radial-gradient(circle, #d8c7a4 0 2px, transparent 3px),
    linear-gradient(80deg, transparent 49%, #b7a982 50% 51%, transparent 52%);
  background-size: 34px 34px, 100% 100%;
}

body::before {
  left: -46px;
  top: 120px;
  transform: rotate(-16deg);
}

body::after {
  right: -62px;
  top: 82px;
  transform: rotate(14deg);
}

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

button {
  font: inherit;
}

.topbar {
  height: 74px;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 20px;
  padding: 0 min(5vw, 72px);
  background: rgba(255, 252, 247, 0.82);
  border-bottom: 1px solid rgba(205, 188, 173, 0.6);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 31px;
  color: #1e2b3d;
}

.brand span,
.couple-switch,
.hero-copy h1 span,
.feature-heading span {
  color: var(--rose);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 58px);
  color: #252c38;
  font-size: 15px;
}

nav a {
  padding: 28px 0 23px;
  border-bottom: 2px solid transparent;
}

nav a.active {
  border-color: var(--ink);
}

.couple-switch {
  justify-self: end;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 8px 22px rgba(61, 38, 24, 0.08);
}

main {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 34px;
  padding: 52px 0 28px;
  position: relative;
}

.hero-copy {
  padding-left: min(10vw, 150px);
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

.hero-copy h1 {
  max-width: 480px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 430px;
  margin-top: 18px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 650;
}

.primary-action {
  color: #fff;
  background: #13233a;
  box-shadow: 0 13px 24px rgba(19, 35, 58, 0.2);
}

.secondary-action {
  color: var(--rose);
  border: 1px solid #d9a3a0;
  background: rgba(255, 255, 255, 0.44);
}

.hero-collage {
  min-height: 330px;
  position: relative;
}

.polaroid {
  position: absolute;
  width: 230px;
  padding: 12px 12px 32px;
  background: #fffaf3;
  border: 1px solid rgba(222, 204, 185, 0.85);
  box-shadow: 0 20px 34px rgba(61, 38, 24, 0.2);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 72px;
  width: 84px;
  height: 28px;
  background: rgba(218, 190, 151, 0.56);
  transform: rotate(-7deg);
}

.polaroid img,
.photo-scene {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 1px solid #eadfce;
}

.polaroid figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  color: #6b625e;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 17px;
  text-align: center;
}

.polaroid-1 {
  left: 4%;
  top: 10px;
  transform: rotate(-8deg);
}

.polaroid-2 {
  left: 34%;
  top: 46px;
  z-index: 1;
  transform: rotate(4deg);
}

.polaroid-3 {
  left: 64%;
  top: 36px;
  transform: rotate(7deg);
}

.scene-1 {
  background:
    radial-gradient(circle at 32% 70%, #18243a 0 9%, transparent 10%),
    radial-gradient(circle at 44% 70%, #27384f 0 8%, transparent 9%),
    linear-gradient(180deg, #f2b376 0 36%, #7389a8 37% 56%, #13233a 57% 100%);
}

.scene-2 {
  background:
    radial-gradient(circle at 39% 46%, #73523c 0 9%, transparent 10%),
    radial-gradient(circle at 61% 45%, #c79262 0 11%, transparent 12%),
    linear-gradient(135deg, #efdbc1 0 44%, #69533e 45% 100%);
}

.scene-3 {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(80, 58, 45, 0.32) 19% 22%, transparent 23% 44%, rgba(80, 58, 45, 0.28) 45% 48%, transparent 49%),
    linear-gradient(180deg, #f5c99c, #c98f66);
}

.scene-4 {
  background:
    radial-gradient(circle at 22% 44%, var(--rose) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 32%, var(--rose) 0 4%, transparent 5%),
    radial-gradient(circle at 51% 70%, var(--rose) 0 4%, transparent 5%),
    linear-gradient(120deg, #e8dccd, #f9f2e9);
}

.timeline-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 auto 18px;
  padding: 28px 34px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.timeline-panel h2,
.feature-card h3 {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 28px;
  font-weight: 500;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  border-top: 1px dashed #cbb5a4;
}

.timeline-list li {
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  color: var(--body);
  font-size: 13px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.timeline-list time {
  margin-top: 8px;
  color: #24344b;
  font-weight: 650;
}

.timeline-list strong {
  color: var(--body);
  font-weight: 500;
}

.timeline-list small {
  color: var(--rose);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 16px;
}

.feature-card {
  min-width: 0;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(61, 38, 24, 0.12);
  position: relative;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -8px;
  width: 74px;
  height: 22px;
  background: rgba(199, 143, 121, 0.42);
  transform: rotate(-7deg);
}

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

.feature-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 650;
}

.feature-media {
  min-height: 132px;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  border: 1px solid #ecdfd0;
}

.feature-media img,
.feature-media .photo-scene {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.map-media .photo-scene {
  background:
    radial-gradient(circle at 26% 54%, var(--rose) 0 4%, transparent 5%),
    radial-gradient(circle at 55% 30%, var(--rose) 0 4%, transparent 5%),
    radial-gradient(circle at 74% 63%, var(--rose) 0 4%, transparent 5%),
    linear-gradient(28deg, transparent 0 44%, rgba(150, 137, 123, 0.25) 45% 47%, transparent 48%),
    linear-gradient(-18deg, transparent 0 34%, rgba(150, 137, 123, 0.2) 35% 37%, transparent 38%),
    #efe8dc;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #13233a;
}

.paperclip {
  position: absolute;
  left: 22px;
  top: -12px;
  width: 24px;
  height: 58px;
  border: 4px solid #b8a896;
  border-radius: 14px;
  transform: rotate(-5deg);
}

.feature-card h4 {
  color: #1b2a40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 650;
}

.feature-copy {
  max-height: 58px;
  overflow: hidden;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.feature-card a {
  margin-top: auto;
  color: var(--rose);
  font-weight: 650;
  font-size: 14px;
}

footer {
  margin: 0 auto 24px;
  padding: 22px;
  color: #7d6e67;
  background: rgba(224, 207, 184, 0.45);
  text-align: center;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 21px;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

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

  .hero-copy {
    padding-left: 0;
  }

  .hero-collage {
    min-height: 300px;
  }

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

@media (max-width: 720px) {
  .topbar {
    height: auto;
    padding: 16px;
  }

  .couple-switch {
    display: none;
  }

  main {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 14vw, 68px);
  }

  .hero-collage {
    min-height: 520px;
  }

  .polaroid {
    width: min(74vw, 260px);
  }

  .polaroid-1 {
    left: 0;
  }

  .polaroid-2 {
    left: 18%;
    top: 170px;
  }

  .polaroid-3 {
    left: 6%;
    top: 340px;
  }

  .timeline-panel {
    grid-template-columns: 1fr;
    padding: 22px;
    overflow: hidden;
  }

  .timeline-list {
    grid-auto-columns: 170px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

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