@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:     #fdf8f5;
  --mauve:     #e8d5d8;
  --rose:      #c4848a;
  --wine:      #5c2737;
  --sage:      #697e5f;
  --ink:       #2a1f1f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
}

body {
  background-color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 0;
  max-width: 560px;
  width: 100%;
}

.hero__preamble {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
}

.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.8rem;
  color: var(--wine);
}

.hero__rule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  max-width: 110px;
}

.hero__rule span {
  display: block;
  height: 1px;
  background: var(--wine);
  opacity: 0.5;
}

.hero__rule span:first-child { opacity: 0.25; }

.hero__fleuron {
  font-size: 1.1rem;
  margin: 0 1rem;
  color: var(--wine);
  opacity: 0.85;
  line-height: 1;
}

.hero__names {
  font-weight: 300;
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  color: var(--wine);
  line-height: 1.05;
}

.hero__ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  font-size: 0.85em;
}

.hero__divider {
  width: 60%;
  max-width: 260px;
  height: 1px;
  margin: 2.6rem auto;
  background: linear-gradient(
    to right,
    rgba(106, 45, 62, 0),
    rgba(106, 45, 62, 0.35),
    rgba(106, 45, 62, 0)
  );
}

.hero__date {
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--wine);
  letter-spacing: 0.11em;
}

.hero__location {
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--wine);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.hero__location-subline {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-top: 0.35rem;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--mauve);
  border-bottom: 1px solid var(--mauve);
}

.wedding-btn {
  flex: 1 1 0%;
  min-height: 44px;
  min-width: 0;
  display: block;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--wine);
  padding: 10px;
  background-color: transparent;
  letter-spacing: 0.15em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  cursor: pointer;
}

.wedding-btn:hover,
.wedding-btn:focus-visible {
  background-color: rgba(232, 213, 216, 0.45); /* soft mauve wash */
  box-shadow:
    inset 0 1px 0 rgba(92, 39, 55, 0.18),
    inset 0 -1px 0 rgba(92, 39, 55, 0.18);
  color: var(--ink);
}

.wedding-btn:active {
  background-color: rgba(196, 132, 138, 0.6); /* slightly deeper rose on press */
  box-shadow:
    inset 0 1px 0 rgba(92, 39, 55, 0.3),
    inset 0 -1px 0 rgba(92, 39, 55, 0.3);
  transform: translateY(1px);
}

.rsvp-style {
  font-weight: 600;
}

.vertical-divider {
  width: 1px;
  height: 35px;
  background-color: var(--mauve);
}

.details {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.details__heading {
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  padding-left: 20px;
  display: inline-block;
  margin: 0 auto;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 1.3rem;
  bottom: 1.3rem;
  width: 1px;
  background-color: var(--mauve);
  z-index: 1;
}

.event {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 0.8rem 0 1.7rem;
}

.dot {
  position: relative;
  margin-top: 7px;
  width: 7px;
  height: 7px;
  background-color: var(--cream);
  border: 1px solid var(--wine);
  border-radius: 50%;
  z-index: 2;
}

.icon-space {
  margin-right: 15px;
}

.event-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  text-transform: uppercase;
}

.event-name {
  letter-spacing: 0.1rem;
  color: var(--wine);
}

.event-time {

}

.hero__preamble {
  animation: fade-up 0.42s ease-out 0.08s both;
}
.hero__ornament {
  animation: fade-up 0.42s ease-out 0.18s both;
}
.hero__names {
  animation: fade-up 0.42s ease-out 0.28s both;
}
.hero__divider {
  animation: fade-up 0.38s ease-out 0.38s both;
}
.hero__date {
  animation: fade-up 0.42s ease-out 0.5s both;
}

.hero__location {
  animation: fade-up 0.42s ease-out 0.58s both;
}

.hero__location-subline {
  animation: fade-up 0.42s ease-out 0.64s both;
}

.action-row {
  animation: fade-up 0.42s ease-out 0.72s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details__section {
  opacity: 0;
  animation: fade-up 0.42s ease-out both;
}
.details__section:nth-child(1) { animation-delay: 0.85s; }
.details__section:nth-child(2) { animation-delay: 1s; }
.details__section:nth-child(3) { animation-delay: 1.15s; }
.details__section:nth-child(4) { animation-delay: 1.3s; }
.details__section:nth-child(5) { animation-delay: 1.45s; }
