:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --paper-light: #fcfaf6;
  --ink: #20201f;
  --muted: #716c65;
  --red: #701c24;
  --red-dark: #4d1218;
  --line: #d8d0c5;
  --white: #fffdf8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: calc(60px + var(--safe-bottom));
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--white);
  background: var(--red);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  height: calc(100svh - 48px);
  min-height: 600px;
  max-height: 880px;
  overflow: hidden;
  background: var(--paper-light);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 640px);
  margin: 0 auto;
  padding-top: max(72px, env(safe-area-inset-top, 0px));
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.venue h2,
.closing h2 {
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-size: 39px;
  line-height: 1.25;
}

.ampersand {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
}

.hero__date {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.hero__motto {
  margin: 18px 0 0;
  color: var(--red);
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 14px;
}

.hero__venue {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: translateX(-50%);
  color: var(--red);
  font-size: 22px;
  text-decoration: none;
}

.section {
  position: relative;
  width: min(100% - 48px, 720px);
  margin: 0 auto;
  padding: 92px 0;
  text-align: center;
}

.section-number {
  position: absolute;
  top: 32px;
  left: 0;
  margin: 0;
  color: #b9b0a5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.section h2,
.venue h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
}

.invitation {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.invitation__copy {
  width: min(100%, 560px);
  margin: 32px 0 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 16px;
  line-height: 2.1;
}

.invitation__copy p {
  margin: 0;
}

.invitation__copy p + p {
  margin-top: 22px;
}

.invitation__salutation {
  text-align: left;
}

.double-happiness {
  margin-top: 44px;
  color: var(--red);
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 42px;
  line-height: 1;
}

.event-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 300px;
  padding: 72px max(24px, calc((100% - 720px) / 2));
  color: var(--white);
  background: var(--red);
}

.event-band__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.event-band__item + .event-band__item {
  border-left: 1px solid rgb(255 253 248 / 35%);
}

.event-band p,
.event-band span {
  margin: 0;
  font-size: 13px;
}

.event-band p {
  margin-bottom: 18px;
  color: rgb(255 253 248 / 72%);
}

.event-band time {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event-band span {
  margin-top: 6px;
  color: rgb(255 253 248 / 72%);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 44px;
}

.countdown__grid div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 22px 2px 0;
}

.countdown__grid strong {
  display: block;
  min-height: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

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

.countdown__message {
  margin: 48px 0 0;
  color: var(--red);
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 22px;
}

.promise {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise__copy {
  max-width: 560px;
  margin: 36px auto 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", SimSun, serif;
  line-height: 2.1;
}

.promise__copy p {
  margin: 0;
}

.promise__copy p + p {
  margin-top: 22px;
}

.promise__names {
  margin: 42px 0 0;
  color: var(--red);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 14px;
}

.promise__names span {
  margin: 0 9px;
  font-style: italic;
}

.schedule__line {
  display: grid;
  grid-template-columns: 70px 16px minmax(0, 1fr);
  align-items: center;
  width: min(100%, 460px);
  margin: 48px auto 0;
  text-align: left;
}

.schedule__line time {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.schedule__line > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.schedule__line div {
  border-left: 1px solid var(--line);
  padding: 16px 0 16px 24px;
}

.schedule__line h3,
.schedule__line p {
  margin: 0;
}

.schedule__line h3 {
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 20px;
  font-weight: 400;
}

.schedule__line p {
  color: var(--muted);
  font-size: 14px;
}

.venue {
  position: relative;
  padding: 96px 24px;
  color: var(--white);
  background: var(--ink);
}

.venue__inner {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.venue .section-number {
  color: #8d8982;
}

.venue .eyebrow {
  color: #cf9a9f;
}

.venue address {
  max-width: 520px;
  margin: 28px auto 0;
  color: #cbc6bd;
  font-size: 15px;
  font-style: normal;
}

.venue__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-width: 132px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 18px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

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

.button--outline {
  border-color: #716d68;
  color: var(--white);
  background: transparent;
}

.button--primary {
  margin-top: 30px;
  color: var(--white);
  background: var(--red);
}

.guest-note__copy {
  max-width: 540px;
  margin: 36px auto 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", SimSun, serif;
  line-height: 2.1;
}

.guest-note__copy p {
  margin: 0;
}

.guest-note__copy p + p {
  margin-top: 8px;
}

.guest-note__copy > span {
  display: block;
  width: 40px;
  height: 1px;
  margin: 30px auto;
  background: var(--red);
}

.contact__phone {
  display: block;
  margin-top: 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.closing {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 24px;
  color: var(--white);
  text-align: center;
  background: var(--red-dark);
}

.closing__copy {
  margin-bottom: 34px;
}

.closing__copy p {
  margin: 0;
  color: rgb(255 253 248 / 72%);
  font-family: "Songti SC", "STSong", SimSun, serif;
}

.closing__copy p + p {
  margin-top: 4px;
}

.closing__copy strong {
  display: block;
  margin-top: 22px;
  font-family: "Songti SC", "STSong", SimSun, serif;
  font-size: 17px;
  font-weight: 400;
}

.closing h2 {
  margin: 0;
  font-size: 28px;
}

.closing time {
  margin-top: 14px;
  color: rgb(255 253 248 / 72%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.quick-actions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgb(252 250 246 / 96%);
  backdrop-filter: blur(10px);
}

.quick-actions a {
  display: grid;
  min-width: 0;
  place-items: center;
  font-size: 14px;
  text-decoration: none;
}

.quick-actions a + a {
  border-left: 1px solid var(--line);
  color: var(--white);
  background: var(--red);
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: calc(76px + var(--safe-bottom));
  left: 50%;
  min-width: 120px;
  max-width: calc(100% - 48px);
  border-radius: 4px;
  padding: 10px 16px;
  transform: translate(-50%, 12px);
  color: var(--white);
  background: rgb(32 32 31 / 92%);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

footer {
  padding: 38px 24px 28px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  text-align: center;
}

footer p {
  margin: 0;
}

.photo-credit {
  margin-top: 4px;
  color: #9a938a;
  font-size: 10px;
}

.photo-credit a {
  text-underline-offset: 2px;
}

.js .reveal {
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
}

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

:focus-visible {
  outline: 2px solid #b84f58;
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .hero h1 {
    flex-direction: column;
    gap: 2px;
    font-size: 36px;
  }

  .ampersand {
    font-size: 18px;
  }

  .event-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .event-band__item {
    padding-right: 10px;
    padding-left: 10px;
  }

  .event-band time {
    font-size: 20px;
  }

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

@media (max-width: 360px) {
  .venue__actions {
    gap: 8px;
  }

  .venue__actions .button {
    min-width: 0;
    flex: 1;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .hero__image {
    object-position: center 40%;
  }

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

  .section h2,
  .venue h2 {
    font-size: 36px;
  }

  .quick-actions {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 320px;
    height: 56px;
    padding-bottom: 0;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgb(32 32 31 / 12%);
  }
}

@media (max-height: 680px) {
  .hero__copy {
    padding-top: max(44px, env(safe-area-inset-top, 0px));
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
