:root {
  --ink: #251817;
  --paper: #faf7f1;
  --porcelain: #fffdf8;
  --cherry: #711f32;
  --rose: #d87672;
  --coral: #f0a07d;
  --moss: #173f35;
  --sage: #7e9b83;
  --gold: #c59a43;
  --line: rgba(37, 24, 23, 0.14);
  --shadow: 0 24px 80px rgba(44, 25, 21, 0.18);
  --serif: "Noto Serif SC", serif;
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(113, 31, 50, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 63, 53, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: var(--serif);
  line-height: 1.7;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(37, 24, 23, 0.42);
  color: var(--porcelain);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--porcelain);
  color: var(--cherry);
}

.nav-links {
  gap: 6px;
  font-size: 14px;
}

.nav-links a {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  overflow: hidden;
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 74px;
  color: var(--porcelain);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=86");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 12, 13, 0.82), rgba(21, 12, 13, 0.42) 48%, rgba(21, 12, 13, 0.18)),
    linear-gradient(0deg, rgba(21, 12, 13, 0.86), rgba(21, 12, 13, 0.08) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  animation: revealUp 900ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(54px, 9vw, 106px);
  line-height: 0.95;
  text-wrap: balance;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: 18px;
}

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

.primary-link,
.secondary-link,
.letter-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link {
  padding: 12px 22px;
  background: var(--porcelain);
  color: var(--cherry);
}

.secondary-link {
  padding: 12px 22px;
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--porcelain);
}

.primary-link:hover,
.secondary-link:hover,
.letter-button:hover {
  transform: translateY(-2px);
}

.anniversary-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 52px;
  z-index: 2;
  display: grid;
  width: 230px;
  min-height: 180px;
  align-content: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(18px);
}

.panel-label {
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
}

.anniversary-panel strong {
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
}

.intro-band,
.travel-section,
.memory-section,
.gallery-section,
.future-section {
  padding: 92px max(24px, calc((100vw - 1120px) / 2));
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 44px;
  align-items: center;
  background: var(--porcelain);
}

.intro-copy h2,
.section-heading h2,
.letter-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  text-wrap: balance;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.intro-stats div {
  min-height: 132px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-stats strong {
  display: block;
  color: var(--cherry);
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
}

.intro-stats span {
  display: block;
  margin-top: 14px;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 46px;
}

.travel-section {
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.92), rgba(255, 253, 248, 0.96)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=84") center / cover fixed;
}

.trip-grid {
  display: grid;
  gap: 26px;
}

.trip-album {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(37, 24, 23, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 22px 70px rgba(37, 24, 23, 0.12);
}

.trip-album:nth-child(even) .trip-cover {
  order: 2;
}

.trip-cover {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--moss);
}

.trip-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03);
  transition: transform 700ms ease;
}

.trip-album:hover .trip-cover img {
  transform: scale(1.04);
}

.trip-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(23, 15, 14, 0.62));
}

.trip-cover span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255, 253, 248, 0.86);
  font-family: var(--display);
  font-size: 78px;
  line-height: 0.9;
}

.trip-story {
  display: grid;
  align-content: center;
  padding: 42px;
}

.trip-meta {
  margin: 0 0 12px;
  color: var(--cherry);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.trip-story h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  text-wrap: balance;
}

.trip-summary {
  margin: 20px 0 0;
  color: rgba(37, 24, 23, 0.76);
  font-size: 17px;
}

.trip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trip-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(113, 31, 50, 0.18);
  border-radius: 999px;
  background: rgba(216, 118, 114, 0.1);
  color: var(--cherry);
  font-size: 13px;
}

.trip-moments {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trip-moments li {
  position: relative;
  padding-left: 22px;
  color: rgba(37, 24, 23, 0.78);
}

.trip-moments li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.trip-photos {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 0.8fr);
  gap: 8px;
  margin-top: 26px;
}

.trip-photos img {
  width: 100%;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
}

.trip-photos img:first-child {
  grid-row: span 2;
  height: 244px;
}

.timeline {
  display: grid;
  gap: 22px;
}

.memory-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 14px 42px rgba(37, 24, 23, 0.08);
}

.memory-date {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 22px;
  background: var(--moss);
  color: var(--porcelain);
}

.memory-date span:first-child {
  color: var(--coral);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.memory-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.1;
}

.memory-card p {
  margin: 12px 0 0;
  color: rgba(37, 24, 23, 0.76);
}

.quote-section {
  padding: 92px max(24px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(135deg, rgba(113, 31, 50, 0.92), rgba(23, 63, 53, 0.92)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: var(--porcelain);
}

.quote-section blockquote {
  width: min(920px, 100%);
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.08;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.photo-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--moss);
  color: var(--porcelain);
}

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

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

.photo-card:nth-child(5),
.photo-card:nth-child(6) {
  grid-column: span 6;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  background: rgba(37, 24, 23, 0.58);
  backdrop-filter: blur(14px);
}

.photo-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
}

.photo-caption span {
  display: block;
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
}

.letter-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
  background: var(--porcelain);
}

.letter-visual {
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(37, 24, 23, 0.26), rgba(37, 24, 23, 0.04)),
    url("https://images.unsplash.com/photo-1504196606672-aef5c9cefc92?auto=format&fit=crop&w=1300&q=84") center / cover;
  box-shadow: var(--shadow);
}

.letter-copy p {
  margin: 24px 0 0;
  color: rgba(37, 24, 23, 0.74);
  font-size: 18px;
}

.letter-button {
  margin-top: 32px;
  padding: 12px 24px;
  background: var(--cherry);
  color: var(--porcelain);
}

.future-section {
  background:
    linear-gradient(180deg, rgba(23, 63, 53, 0.95), rgba(23, 63, 53, 0.88)),
    url("https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: var(--porcelain);
}

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

.future-item {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.1);
  backdrop-filter: blur(12px);
}

.future-item strong {
  display: block;
  color: var(--coral);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.future-item h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.future-item p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px max(24px, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: var(--porcelain);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--coral);
}

.modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 15, 14, 0.68);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 44px;
  border-radius: 8px;
  background: var(--porcelain);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.08;
}

.modal-card p {
  margin: 16px 0 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 22px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    flex: 1;
    justify-content: flex-end;
    gap: 2px;
  }

  .nav-links a {
    min-width: 42px;
    padding: 8px 7px;
    font-size: 13px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 112px;
    padding-bottom: 230px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .anniversary-panel {
    right: 24px;
    bottom: 28px;
    left: 24px;
    width: auto;
    min-height: 150px;
  }

  .intro-band,
  .trip-album,
  .letter-section {
    grid-template-columns: 1fr;
  }

  .trip-album:nth-child(even) .trip-cover {
    order: 0;
  }

  .trip-story {
    padding: 30px 24px;
  }

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

  .memory-card {
    grid-template-columns: 1fr;
  }

  .memory-date {
    min-height: 112px;
  }

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

  .photo-card,
  .photo-card:nth-child(1),
  .photo-card:nth-child(2),
  .photo-card:nth-child(3),
  .photo-card:nth-child(4),
  .photo-card:nth-child(5),
  .photo-card:nth-child(6) {
    grid-column: auto;
    min-height: 360px;
  }

  .letter-visual {
    min-height: 360px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .intro-band,
  .travel-section,
  .memory-section,
  .gallery-section,
  .future-section,
  .letter-section,
  .quote-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy,
  .letter-copy p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .letter-button {
    width: 100%;
  }

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

  .trip-cover {
    min-height: 320px;
  }

  .trip-story h3 {
    font-size: 34px;
  }

  .trip-photos {
    grid-template-columns: 1fr 1fr;
  }

  .trip-photos img,
  .trip-photos img:first-child {
    grid-row: auto;
    height: 138px;
  }

  .modal-card {
    padding: 34px 22px 28px;
  }

  .modal-card h2 {
    font-size: 36px;
  }
}
