@font-face {
  font-family: "Roscha Wedding";
  src: url("../wedd_arm/Roscha.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Linguistics Pro Wedding";
  src: url("../wedd_arm/LinguisticsPro-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Siegfried-01";
  src: url("../wedd_arm/Siegfried-01.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vujahday Ampersand";
  src: url("../wedd_arm/VujahdayScript-Ampersand.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --aa-blue: #3924ff;
  --aa-ink: #343053;
  --aa-bg: #efecfb;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #dcd8ef;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--aa-ink);
  background: #dcd8ef;
  font-family: "Linguistics Pro Wedding", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.aa-page {
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--aa-bg);
  box-shadow: 0 0 60px rgba(52, 48, 83, 0.16);
}

.aa-hero {
  position: relative;
  height: 448px;
  overflow: hidden;
  color: #fff;
}

.aa-hero-photo,
.aa-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aa-hero-photo {
  object-fit: cover;
}

.aa-hero-shade {
  background: linear-gradient(180deg, rgba(28, 34, 58, 0.08), rgba(34, 30, 54, 0.18));
}

.aa-hero-title {
  position: absolute;
  inset: 165px 26px auto;
  margin: 0;
  font-family: "Roscha Wedding", "Siegfried-01", serif;
  font-size: clamp(54px, 16vw, 69px);
  font-weight: 400;
  line-height: 0.66;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 10px rgba(21, 23, 41, 0.1);
}

.aa-hero-title span {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.aa-hero-title span:last-child {
  margin: -2px 0 0 auto;
}

.aa-hero-title em {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 54px;
  margin: -14px 0 -17px 47%;
  font-family: "Vujahday Ampersand", cursive;
  font-size: 40px;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0;
}

.aa-date {
  position: absolute;
  bottom: 43px;
  left: 50%;
  width: 129px;
  height: 54px;
  transform: translateX(-50%);
  object-fit: contain;
}

.aa-stars {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 44px;
  margin: -22px 0 0;
  background-image: url("../wedd_arm/121.svg");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 10% auto;
}

.aa-intro {
  position: relative;
  padding-top: 21px;
  text-align: center;
}

.aa-sea-copy,
.aa-invite-copy,
.aa-story > p,
.aa-place-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.05;
}

.aa-couple-heading {
  position: relative;
  height: 91px;
  margin-top: 5px;
}

.aa-couple-heading h2,
.aa-rsvp h2,
.aa-place h2 {
  margin: 0;
  color: var(--aa-blue);
  font-family: "Roscha Wedding", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.aa-couple-heading h2 {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  font-size: 47px;
  line-height: 0.8;
  white-space: nowrap;
}

.aa-couple-heading img {
  position: absolute;
  z-index: 1;
  width: 55px;
  height: 69px;
  object-fit: contain;
}

.aa-couple-heading img:first-child {
  top: 4px;
  left: 0;
}

.aa-couple-heading img:last-child {
  right: 0;
  bottom: 0;
}

.aa-invite-copy {
  padding-inline: 14px;
}

.aa-countdown {
  padding-top: 16px;
}

.aa-countdown-title {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.aa-countdown-items {
  display: flex;
  justify-content: center;
  gap: 43px;
  margin-top: 3px;
}

.aa-countdown-item {
  display: grid;
  justify-items: center;
  min-width: 50px;
  font-size: 16px;
  line-height: 0.9;
}

.aa-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: -1px;
  color: #fff;
  background: var(--aa-ink);
  clip-path: polygon(50% 0, 63% 11%, 80% 8%, 86% 24%, 100% 33%, 92% 50%, 100% 67%, 86% 76%, 80% 92%, 63% 89%, 50% 100%, 37% 89%, 20% 92%, 14% 76%, 0 67%, 8% 50%, 0 33%, 14% 24%, 20% 8%, 37% 11%);
}

.aa-badge strong {
  font-size: 21px;
  font-weight: 400;
}

.aa-story {
  position: relative;
  padding: 10px 34px 0;
  text-align: center;
}

.aa-place {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(135px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  text-align: left;
}

.aa-place h2 {
  font-size: 28px;
  line-height: 0.83;
}

.aa-place-copy p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.08;
}

.aa-place img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 317 / 212;
  object-fit: cover;
}

.aa-welcome {
  margin-top: 22px !important;
}

.aa-rsvp {
  padding: 18px 34px 0;
}

.aa-rsvp h2 {
  font-size: 27px;
  line-height: 1;
}

.aa-form {
  display: grid;
  margin-top: 5px;
}

.aa-form label,
.aa-food,
.aa-submit {
  display: block;
  width: 100%;
}

.aa-form input[type="text"],
.aa-form input:not([type]) {
  width: 100%;
  height: 37px;
  border: 1px solid var(--aa-blue);
  border-radius: 0;
  padding: 8px;
  outline: none;
  color: var(--aa-ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.aa-form input:focus-visible,
.aa-food-toggle:focus-visible,
.aa-submit:focus-visible {
  outline: 2px solid var(--aa-blue);
  outline-offset: 2px;
}

.aa-form > label + label {
  margin-top: 3px;
}

.aa-form input::placeholder {
  color: rgba(52, 48, 83, 0.38);
}

.aa-food {
  position: relative;
  margin: 3px 0 0;
  border: 1px solid var(--aa-blue);
  padding: 0;
}

.aa-food legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.aa-food-toggle {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 6px 10px 6px 8px;
  color: var(--aa-blue);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.aa-food-toggle > span:first-child {
  display: grid;
  gap: 3px;
  font-size: 13px;
}

.aa-food-toggle small {
  font-size: 9px;
  line-height: 0.83;
}

.aa-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.aa-plus::before,
.aa-plus::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transition: transform 160ms ease;
}

.aa-plus::after {
  transform: rotate(90deg);
}

.aa-food-toggle[aria-expanded="true"] .aa-plus::after {
  transform: rotate(0);
}

.aa-food-options {
  padding: 0 8px 8px;
  color: var(--aa-ink);
  font-size: 12px;
}

.aa-food-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}

.aa-food-options input {
  accent-color: var(--aa-blue);
}

.aa-submit {
  min-height: 37px;
  border: 0;
  border-radius: 0;
  padding: 8px 16px;
  color: #fff;
  background: var(--aa-ink);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.aa-submit:hover {
  background: #292642;
}

.aa-submit:active {
  transform: translateY(1px);
}

.aa-form-status {
  min-height: 0;
  margin: 0;
  color: var(--aa-blue);
  font-size: 12px;
  text-align: center;
}

.aa-form-status:not(:empty) {
  min-height: 22px;
  padding-top: 7px;
}

.aa-footer {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 26px 0 28px;
}

.aa-footer a {
  display: block;
  opacity: 0.55;
}

.aa-footer img {
  display: block;
  width: 63px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(32%) sepia(8%) saturate(1053%) hue-rotate(205deg) brightness(87%);
}

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

@media (min-width: 768px) {
  .aa-page {
    width: min(100%, 430px);
    margin-block: 24px;
    border-radius: 18px;
  }
}

@media (max-width: 359px) {
  .aa-hero-title {
    inset-inline: 20px;
    font-size: 54px;
  }

  .aa-couple-heading h2 {
    font-size: 46px;
  }

  .aa-story,
  .aa-rsvp {
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aa-hero-photo {
    animation: aa-hero-photo-in 1.8s cubic-bezier(0.2, 0.72, 0.22, 1) both;
  }

  .aa-hero-shade {
    animation: aa-hero-shade-in 1.25s ease-out both;
  }

  .aa-hero-title span:first-child {
    animation: aa-title-line-in 0.92s 0.14s cubic-bezier(0.18, 0.82, 0.25, 1) both;
  }

  .aa-hero-title em {
    animation: aa-ampersand-in 0.76s 0.48s cubic-bezier(0.2, 0.9, 0.28, 1.18) both;
  }

  .aa-hero-title span:last-child {
    animation: aa-title-line-in 0.92s 0.58s cubic-bezier(0.18, 0.82, 0.25, 1) both;
  }

  .aa-date {
    animation: aa-date-in 0.78s 0.88s cubic-bezier(0.2, 0.82, 0.25, 1.12) both;
  }

  .aa-stars {
    animation: aa-stars-in 0.95s 1.06s cubic-bezier(0.22, 0.76, 0.2, 1) both;
  }

  .aa-motion .aa-reveal {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
    transition:
      opacity 0.72s ease,
      transform 0.82s cubic-bezier(0.2, 0.76, 0.24, 1),
      filter 0.72s ease;
    transition-delay: var(--aa-reveal-delay, 0ms);
  }

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

  .aa-motion .aa-couple-heading.aa-reveal img:first-child {
    transform: translate(-10px, 8px) rotate(-8deg);
    transition: transform 0.9s 0.18s cubic-bezier(0.18, 0.82, 0.24, 1);
  }

  .aa-motion .aa-couple-heading.aa-reveal img:last-child {
    transform: translate(10px, 8px) rotate(8deg);
    transition: transform 0.9s 0.24s cubic-bezier(0.18, 0.82, 0.24, 1);
  }

  .aa-motion .aa-couple-heading.aa-reveal.is-visible img {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes aa-hero-photo-in {
  from {
    opacity: 0.72;
    transform: scale(1.075);
    filter: saturate(0.86) brightness(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes aa-hero-shade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes aa-title-line-in {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes aa-ampersand-in {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(-9deg) scale(0.68);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes aa-date-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes aa-stars-in {
  from {
    opacity: 0;
    clip-path: inset(0 50% 0 50%);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

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

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