:root {
  --ink: #251b1c;
  --muted: #665e61;
  --paper: #fffaf6;
  --cream: #f7eadf;
  --rose: #b7354b;
  --wine: #6f1d32;
  --leaf: #274f45;
  --sky: #dceaf0;
  --gold: #c6903d;
  --shadow: 0 20px 50px rgba(62, 25, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px clamp(20px, 5vw, 72px) 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(37, 27, 28, 0.78), rgba(37, 27, 28, 0.34) 52%, rgba(37, 27, 28, 0.12)),
    url("assets/romantic-bg.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), var(--paper));
  pointer-events: none;
}

.topbar,
.hero__body,
.hero__stats {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar__links a {
  padding-block: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.hero__content {
  align-self: center;
  width: min(720px, 100%);
  padding-block: 64px;
}

.hero__montage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, minmax(54px, 1fr));
  gap: 12px;
  min-height: min(62vh, 620px);
  padding: 10px;
}

.hero__montage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 8, 10, 0.32);
}

.hero__montage img:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 7;
}

.hero__montage img:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.hero__montage img:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 3 / 5;
}

.hero__montage img:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 5 / 7;
}

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

.hero .eyebrow {
  color: #ffd899;
}

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

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 690px;
  font-size: clamp(3.3rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hero__copy {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

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

.button,
.upload-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button--primary,
.upload-button {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 12px 26px rgba(183, 53, 75, 0.28);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  overflow: hidden;
}

.hero__stats div {
  min-height: 94px;
  padding: 18px;
  background: rgba(37, 27, 28, 0.18);
}

.hero__stats strong,
.hero__stats span {
  display: block;
}

.hero__stats strong {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
}

.hero__stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.band,
.gallery-section,
.letter {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  background: linear-gradient(135deg, var(--paper), var(--sky));
}

.intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.gallery-section {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading--left {
  display: block;
}

.section-note {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
}

.photo-card {
  position: relative;
  min-height: 260px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #f3d9d2, #dceaf0);
  box-shadow: var(--shadow);
}

.photo-card:nth-child(1) {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.photo-card:nth-child(2),
.photo-card:nth-child(3),
.photo-card:nth-child(4) {
  grid-column: span 3;
}

.photo-card:nth-child(2) {
  transform: translateY(26px);
}

.photo-card:nth-child(4) {
  transform: translateY(14px);
}

.photo-card img,
.photo-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-card img {
  object-fit: cover;
  z-index: 1;
}

.photo-card__fallback {
  display: grid;
  place-items: center;
  color: rgba(111, 29, 50, 0.78);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #f6d6cf, #dceaf0 55%, #d8e6dd);
}

.photo-card__fallback span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

.photo-card__caption {
  position: absolute;
  z-index: 2;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(37, 27, 28, 0.62);
  backdrop-filter: blur(14px);
}

.photo-card__caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.photo-card__caption strong {
  text-align: right;
  font-size: 0.9rem;
}

.story {
  background: var(--leaf);
  color: #fff;
}

.story .eyebrow {
  color: #ffd899;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 220px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.08);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 42px;
  color: #ffd899;
  font-weight: 800;
}

.timeline p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.letter {
  background:
    linear-gradient(rgba(255, 250, 246, 0.8), rgba(255, 250, 246, 0.94)),
    url("assets/romantic-bg.png") center / cover;
}

.letter__content {
  width: min(820px, 100%);
}

.letter__content p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.9;
}

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

  .hero__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__content {
    padding-block: 42px 16px;
  }

  .hero__montage {
    min-height: 460px;
    grid-template-rows: repeat(5, minmax(56px, 1fr));
  }

  .hero__montage img:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 6;
  }

  .hero__montage img:nth-child(2) {
    grid-column: 5 / 7;
    grid-row: 1 / 3;
  }

  .hero__montage img:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 3 / 4;
  }

  .hero__montage img:nth-child(4) {
    grid-column: 5 / 7;
    grid-row: 4 / 6;
  }

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

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

  .photo-card:nth-child(n) {
    grid-column: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 94vh;
    padding-inline: 18px;
  }

  .hero__montage {
    min-height: 420px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1.4fr 1fr 1fr;
    gap: 10px;
    padding: 0;
  }

  .hero__montage img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .hero__montage img:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .hero__montage img:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .hero__montage img:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }

  .topbar__links {
    gap: 10px;
    font-size: 0.82rem;
  }

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

  .hero__stats div {
    min-height: 78px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .photo-card {
    min-height: 320px;
  }
}
