:root {
  --paper: #f7f5f0;
  --white: #fff;
  --ink: #202522;
  --muted: #68706a;
  --red: #9b2f2b;
  --green: #3d5949;
  --gold: #ae8954;
  --line: rgba(32, 37, 34, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  position: relative;
}

.section__inner {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.section__kicker {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

h1,
h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.25;
}

.hero {
  position: relative;
  height: min(72svh, 720px);
  min-height: 520px;
  color: var(--white);
  overflow: hidden;
}

.hero__media,
.hero__media img,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 42%;
}

.hero__veil {
  background: rgba(10, 16, 14, 0.28);
}

.hero__content {
  position: absolute;
  z-index: 1;
  top: 16%;
  left: 50%;
  width: min(960px, calc(100% - 48px));
  text-align: center;
  transform: translateX(-50%);
}

.hero__eyebrow {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 18px;
}

.hero h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.hero h1 span {
  display: inline-block;
  color: #f4d6b2;
  font-family: Georgia, serif;
  font-size: 0.56em;
  vertical-align: 0.2em;
}

.hero__date {
  font-size: 16px;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 12px;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero__scroll i {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  transform-origin: top;
  animation: breathe 2s ease-in-out infinite;
}

.invitation {
  padding: 130px 0 120px;
  background: var(--white);
  text-align: center;
}

.invitation__inner {
  max-width: 820px;
}

.invitation__copy {
  margin-bottom: 18px;
  color: #4f5651;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 20px;
}

.signature i {
  color: var(--red);
  font-size: 12px;
  font-style: normal;
}

.date-band {
  padding: 100px 0;
  background: var(--green);
  color: var(--white);
}

.date-band__inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 88px;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.calendar {
  display: grid;
  place-items: center;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.calendar strong {
  font-family: Georgia, serif;
  font-size: 100px;
  font-weight: 400;
  line-height: 0.9;
}

.calendar span {
  font-size: 13px;
}

.date-band .section__kicker {
  color: #e8c99d;
}

.date-band h2 {
  margin-bottom: 16px;
}

.date-band__copy > p:not(.section__kicker) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.text-action {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
}

.text-action span,
.primary-action span,
.share-button span {
  margin-left: 8px;
}

.countdown {
  padding: 100px 0;
  text-align: center;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(800px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown__grid div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.countdown__grid div:not(:last-child)::after {
  position: absolute;
  top: 30%;
  right: 0;
  width: 1px;
  height: 40%;
  background: var(--line);
  content: "";
}

.countdown__grid strong {
  font-family: Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.countdown__grid span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.countdown__status {
  min-height: 24px;
  margin: 24px 0 0;
  color: var(--green);
  font-family: var(--serif);
}

.story {
  padding: 120px 0 0;
  background: var(--white);
}

.story__heading {
  margin-bottom: 70px;
  text-align: center;
}

.story__heading > p:last-child {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
}

.gallery__wide {
  grid-column: span 7;
  aspect-ratio: 3 / 2;
}

.gallery__portrait {
  grid-column: span 5;
  aspect-ratio: 2 / 3;
}

.gallery figure:nth-child(4),
.gallery figure:nth-child(5) {
  grid-column: span 7;
}

.gallery figure:nth-child(3),
.gallery figure:nth-child(6) {
  grid-column: span 5;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.venue {
  padding: 140px 0;
  background: var(--paper);
}

.venue__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 80px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.venue__copy h2 {
  max-width: 480px;
}

.venue__hall {
  margin-bottom: 26px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 21px;
}

.venue address {
  margin-bottom: 34px;
  color: #555d57;
  font-size: 15px;
  font-style: normal;
  line-height: 1.9;
}

.primary-action,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: var(--white);
  font: 600 14px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.primary-action:hover,
.share-button:hover {
  background: transparent;
  color: var(--green);
}

.venue__video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  object-fit: cover;
}

.venue__video > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.closing {
  display: grid;
  place-items: center;
  min-height: 720px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.closing > img,
.closing__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing > img {
  object-fit: cover;
  object-position: center 48%;
}

.closing__veil {
  background: rgba(13, 19, 16, 0.5);
}

.closing__content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 48px));
}

.closing__content > p:first-child {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 17px;
}

.closing h2 {
  margin-bottom: 36px;
  font-size: clamp(44px, 6vw, 80px);
}

.share-button {
  border-color: var(--white);
  background: transparent;
}

.share-button:hover {
  background: var(--white);
  color: var(--ink);
}

.share-status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 12px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
}

footer p span {
  color: #e8c99d;
  font-family: Georgia, serif;
}

footer a {
  text-decoration: none;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes breathe {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .date-band__inner,
  .venue__inner {
    grid-template-columns: 1fr;
  }

  .date-band__inner {
    gap: 48px;
  }

  .calendar {
    width: min(240px, 70vw);
  }

  .venue__inner {
    gap: 56px;
  }

  .venue__copy {
    text-align: center;
  }

  .venue__copy h2 {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .section__inner,
  .date-band__inner,
  .venue__inner {
    width: min(100% - 32px, 620px);
  }

  .hero {
    height: min(78svh, 680px);
    min-height: 500px;
  }

  .hero__media img {
    object-position: center 46%;
  }

  .hero__veil {
    background: rgba(9, 14, 12, 0.3);
  }

  .hero__content {
    top: 10%;
    width: calc(100% - 32px);
  }

  .hero__eyebrow {
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero h1 span {
    display: block;
    margin: 10px 0;
  }

  .invitation,
  .story {
    padding-top: 92px;
  }

  .invitation {
    padding-bottom: 90px;
  }

  h2 {
    font-size: 34px;
  }

  .desktop-only {
    display: none;
  }

  .invitation__copy {
    font-size: 16px;
    line-height: 1.95;
  }

  .signature {
    gap: 16px;
    font-size: 18px;
  }

  .date-band,
  .countdown {
    padding: 80px 0;
  }

  .date-band__copy {
    text-align: center;
  }

  .calendar {
    margin: 0 auto;
  }

  .countdown__grid div {
    min-height: 110px;
  }

  .countdown__grid strong {
    font-size: 38px;
  }

  .story__heading {
    margin-bottom: 44px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: calc(100% - 12px);
  }

  .gallery figure,
  .gallery figure:nth-child(3),
  .gallery figure:nth-child(4),
  .gallery figure:nth-child(5),
  .gallery figure:nth-child(6) {
    grid-column: span 1;
  }

  .gallery figure:first-child,
  .gallery figure:nth-child(4),
  .gallery figure:nth-child(5) {
    grid-column: span 2;
  }

  .venue {
    padding: 96px 0;
  }

  .closing {
    min-height: 620px;
  }

  .closing > img {
    object-position: 58% center;
  }

  footer {
    min-height: 88px;
    padding: 0 20px;
  }
}

@media (max-height: 700px) {
  .hero {
    min-height: 480px;
  }

  .invitation {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll i,
  .gallery img,
  .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
