:root {
  --green: #3e473a;
  --green-deep: #334032;
  --beige: #d7cfc9;
  --brown: #604633;
  --ink: #181815;
  --white: #fff;
  --serif: "Cormorant Infant", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Florisel Script", "Cormorant Infant", Georgia, serif;
  --accent: "Angst", "Cormorant Infant", Georgia, serif;
  --and-font: "Marianna", "Cormorant Infant", Georgia, serif;
}

@font-face {
  font-family: "Marianna";
  src: url("assets/fonts/marianna.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Florisel Script";
  src: url("assets/fonts/Floriselscript.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Angst";
  src: url("assets/fonts/Angst-Normal.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Angst";
  src: url("assets/fonts/Angst-Thin.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ede8e4;
  color: var(--ink);
  font-family: var(--serif);
}

a {
  color: inherit;
}

.invitation {
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--beige);
}

.section-pad {
  padding: 64px 26px;
  text-align: center;
}

.script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal--delay-1 {
  --reveal-delay: 120ms;
}

.reveal--delay-2 {
  --reveal-delay: 240ms;
}

.reveal--delay-3 {
  --reveal-delay: 360ms;
}

.hero {
  position: relative;
  height: 700px;
  min-height: 700px;
  display: grid;
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.34) 100%),
    url("assets/hero-bg.png") -37px 0 / 496px 745px no-repeat;
}

.hero__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 315px;
  background: url("assets/black-vertical-gradient.png") center bottom / 100% 100% no-repeat;
  opacity: 0.68;
  pointer-events: none;
}

.hero__shade--top {
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  height: 265px;
  opacity: 0.6;
  transform: rotate(180deg);
}

.hero__content {
  position: relative;
  z-index: 1;
  height: 270px;
  padding: 68px 23px 0;
  text-align: center;
}

.couple {
  position: relative;
  height: 64px;
  display: block;
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
}

.couple span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.couple span:first-child {
  right: calc(50% + 54px);
}

.couple span:last-child {
  left: calc(50% + 54px);
}

.couple__and {
  left: 50%;
  font-family: var(--and-font);
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  transform: translate(-50%, 3px);
}

.hero__date {
  margin: 6px 0 0;
  font-size: 40px;
  line-height: 1;
}

.hero__line {
  margin: 26px auto 0;
  max-width: 398px;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.08;
  opacity: 0.94;
}

.countdown {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 12px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(22, 22, 20, 0.34);
  backdrop-filter: blur(4px);
  color: var(--white);
  text-align: center;
}

.countdown__item {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
}

.countdown__number {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.countdown__label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 200;
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0.86;
}

.intro {
  position: relative;
  height: 410px;
  min-height: 410px;
  background: var(--beige);
  color: var(--green);
  padding: 38px 42px 0;
}

.ornament {
  pointer-events: none;
  user-select: none;
}

.ornament--top {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 31px;
  width: 360px;
  max-width: 88%;
  transform: translateX(-50%);
  opacity: 0.9;
  filter:
    brightness(0.88)
    contrast(1.28)
    drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.26))
    drop-shadow(0 4px 7px rgba(78, 68, 60, 0.36));
  mix-blend-mode: multiply;
}

.intro__title {
  margin: 0 0 28px;
  font-size: 60px;
  font-weight: 300;
  line-height: 0.95;
}

.dress p,
.wishes p {
  margin: 0 auto 18px;
  max-width: 360px;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.15;
}

.intro p {
  margin: 0 auto 27px;
  max-width: 340px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.18;
}

.event {
  height: 1521px;
  min-height: 1521px;
  padding: 0;
  color: var(--white);
  background: var(--beige);
}

.event__inner {
  position: relative;
  width: 390px;
  height: 1521px;
  min-height: 1521px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 58px;
  overflow: hidden;
  background: var(--green-deep) url("assets/green-bg.png") center / cover no-repeat;
  border-radius: 195px;
  margin: 0 auto;
}

.event__inner > * {
  margin-left: auto;
  margin-right: auto;
}

.event__date {
  margin: 0;
  display: grid;
  width: 100%;
  gap: 0;
  font-family: var(--script);
  font-size: 66px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.06;
  text-align: center;
}

.divider {
  width: 1px;
  height: 132px;
  margin: 46px auto 48px;
  background: rgba(255, 255, 255, 0.75);
}

.place h3 {
  margin: 0 0 38px;
  font-size: 42px;
  line-height: 0.98;
  text-align: center;
}

.place {
  width: 100%;
  text-align: center;
}

.place__name {
  margin: 0 auto 24px;
  max-width: 320px;
  font-family: var(--accent);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
}

.place__address {
  margin: 0 auto 26px;
  max-width: 290px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.12;
  text-align: center;
}

.pill {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill--light {
  color: var(--white);
}

.pill--light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pill--dark {
  color: var(--green);
  background: var(--white);
}

.pill--dark:hover {
  color: var(--white);
  background: var(--green);
}

.timeline {
  display: grid;
  gap: 56px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.timeline article {
  display: grid;
  width: 100%;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.timeline time {
  display: block;
  width: 100%;
  font-size: 63px;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.timeline p {
  max-width: 310px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 200;
  line-height: 1.15;
  text-align: center;
}

.event__ornament {
  display: block;
  width: 300px;
  max-width: 78%;
  margin-top: 40px;
  opacity: 0.92;
  filter: contrast(1.25) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
}

.dress {
  position: relative;
  height: 546px;
  min-height: 546px;
  background: linear-gradient(180deg, var(--beige) 0%, #f4f2ef 14%, #fff 32%, #fff 100%);
  color: var(--green);
  padding: 78px 22px 0;
}

.ornament--green {
  display: none;
  width: min(84%, 360px);
  margin: 0 auto 44px;
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.dress h2 {
  margin: 0 auto 28px;
  font-family: var(--accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
}

.dress p {
  max-width: 310px;
  font-size: 18px;
  line-height: 1.22;
}

.dress__image {
  display: block;
  width: 100%;
  max-width: 386px;
  height: auto;
  margin: 46px auto 0;
  object-fit: contain;
}

.wishes {
  position: relative;
  height: 702px;
  min-height: 702px;
  padding: 145px 30px 0;
  background: #d7d2ce;
}

.wishes h2 {
  margin: 0 0 38px;
  color: var(--brown);
  font-size: 62px;
  line-height: 0.95;
}

.wishes p {
  max-width: 350px;
  font-size: 27px;
  line-height: 1.17;
}

.lace {
  position: absolute;
  left: 0;
  right: 0;
  height: 112px;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 1;
}

.lace--top {
  top: -1px;
  background-image: url("assets/wishes-lace-top.png");
  transform: none;
}

.lace--bottom {
  bottom: -1px;
  background-image: url("assets/wishes-lace-bottom.png");
  transform: none;
}

.contacts {
  position: relative;
  height: 287px;
  padding: 68px 28px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: #fff;
}

.contacts::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%);
}

.contacts::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 200px;
  height: 70px;
  background: url("assets/contact-ornament.png") center / contain no-repeat;
  opacity: 0.92;
  filter: contrast(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
  transform: translateX(-50%);
}

.contacts p {
  position: relative;
  z-index: 1;
  margin: 0 auto 32px;
  max-width: 310px;
  font-family: var(--accent);
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}

.contacts .pill {
  position: relative;
  z-index: 1;
  min-height: 39px;
  padding: 7px 22px;
  font-size: 17px;
}

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

@media (max-width: 360px) {
  .section-pad {
    padding-left: 20px;
    padding-right: 20px;
  }

  .event {
    padding-left: 0;
    padding-right: 0;
  }

  .event__inner {
    width: calc(100% - 40px);
    padding-left: 18px;
    padding-right: 18px;
    border-radius: calc((100vw - 40px) / 2);
  }
}
