@font-face {
  font-family: "Meow Script";
  src: url("fonts/MeowScript-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

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

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

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

:root {
  --blue: #0742a2;
  --green: #294d39;
  --orange: #c65012;
  --gold: #e8a51f;
  --ink: #28303a;
  --cream: #fffaf0;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --script-text-visibility: visible;
}

.script-font-loading {
  --script-text-visibility: hidden;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 300;
  text-wrap: balance;
}

.invitation {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--cream);
  background-image: url("./img/bg.png");
  background-repeat: repeat;
  background-size: 200px 200px;
  box-shadow: 0 0 35px rgba(50, 43, 29, 0.16);
}

.corner {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  width: clamp(280px, 36vw, 560px);
}

.corner--top-left {
  top: 0;
  left: 0;
}
.corner--top-right {
  top: 0;
  right: 0;
}
.corner--bottom-left {
  bottom: 0;
  left: 0;
}
.corner--bottom-right {
  bottom: 0;
  right: 0;
}

.language-nav {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1em;
  color: rgba(40, 48, 58, 0.45);
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  background: #fbf6eb;
  width: 100px;
  margin: 1em auto;
  border-radius: 2em;
}

.language-nav a {
  color: rgba(40, 48, 58, 0.55);
  text-decoration: none;
  transition: color 150ms ease;
}

.language-nav a:hover,
.language-nav a:focus-visible {
  color: var(--blue);
}

.language-nav a.active {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  padding: 98px 24px 95px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 15;
  inset: -25%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 250, 240, 0.92) 0%,
    rgba(255, 250, 240, 0.76) 30%,
    rgba(255, 250, 240, 0.28) 48%,
    rgba(255, 250, 240, 0) 64%
  );
}

.hero > *,
.destination-header,
.destination-inner,
.venue-card,
.rsvp > *,
.trip > *,
.detail-card,
footer > * {
  position: relative;
  z-index: 20;
}

.hero h1,
.destination h2,
footer h2 {
  margin: 0;
  font-family: "Meow Script", cursive;
  font-weight: 400;
  visibility: var(--script-text-visibility);
}

.hero h1 {
  color: var(--blue);
  font-size: 116px;
  line-height: 1;
}
.eyebrow {
  margin: 34px 0 0;
  color: var(--green);
  font-size: 25px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.divider {
  display: block;
  object-fit: contain;
}
.divider--small {
  width: 82px;
  height: 22px;
  margin: 16px auto 18px;
}
.date {
  margin: 0;
  color: var(--blue);
  font-size: 34px;
  font-weight: 400;
}

.invitation > section,
.invitation > footer {
  border-top: 1px solid rgba(226, 166, 48, 0.28);
}

.destination {
  position: relative;
  padding: 72px 24px;
  background: rgba(233, 245, 247, 0.68);
  background-image: url("./img/bg2.jpg");
  background-position: center center;
  background-size: cover;
  text-align: center;
}

.destination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 28px 54px;
  gap: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(233, 245, 247, 0.96) 0%,
    rgba(233, 245, 247, 0.82) 48%,
    rgba(233, 245, 247, 0.3) 72%,
    rgba(233, 245, 247, 0) 94%
  );
}
.destination-header {
  width: fit-content;
  margin: 0 auto 12px;
  text-align: center;
}
.portugal {
  width: 200px;
  height: 300px;
  object-fit: contain;
}
.destination h2 {
  color: var(--green);
  font-size: 65px;
  line-height: 1;
}
.flag {
  display: block;
  margin: 7px 0 7px;
  font-size: 35px;
  line-height: 1;
}
.destination-text {
  max-width: 600px;
  text-align: center;
}
.destination p {
  margin: 1em 0;
  font-size: 20px;
  line-height: 1.55;
}

.venue {
  position: relative;
  padding: 55px clamp(90px, 15vw, 260px);
}
.venue-card {
  display: flex;
  align-items: center;
  min-height: 280px;
  border: 1.5px solid var(--gold);
  outline: 1px solid rgba(232, 165, 31, 0.7);
  outline-offset: -7px;
}
.venue-brand {
  padding: 38px 48px;
  text-align: center;
  width: 33%;
}
.venue-brand img {
  width: 100%;
}
.venue-copy {
  min-height: 182px;
  padding: 38px clamp(32px, 4vw, 72px);
  border-left: 1px solid var(--gold);
  text-align: center;
  width: 66%;
}
.venue-copy p {
  margin: 1em 0;
  font-size: 19px;
  line-height: 1.9;
}

.rsvp {
  position: relative;
  padding: 45px 24px 50px;
  text-align: center;
  background-image: url("./img/bg3.jpg");
  background-position: center center;
  background-size: cover;
}
.rsvp p {
  margin: 0 auto 22px;
  color: var(--blue);
  font-size: 18px;
  width: 50%;
  line-height: 1.9;
}
.rsvp > .rsvp-decoration {
  position: absolute;
  z-index: 15;
  top: 50%;
  width: clamp(78px, 7vw, 108px);
  height: auto;
  pointer-events: none;
  transform: translateY(-50%);
}
.rsvp-decoration--branch {
  left: calc(25% - 100px);
}
.rsvp-decoration--flower {
  right: calc(25% - 100px);
}
.button {
  display: inline-block;
  min-width: 238px;
  padding: 12px 32px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(100deg, #bc3b08, #e2730d, #b93407);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.22);
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.trip {
  position: relative;
  padding: 58px clamp(90px, 20vw, 340px) 28px;
  text-align: center;
}
.trip h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Meow Script", cursive;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  visibility: var(--script-text-visibility);
}
.trip-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  object-fit: contain;
}
.trip-copy {
  max-width: 850px;
  margin: 0 auto;
}
.trip-copy p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.8;
}

.details {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 42px clamp(90px, 15vw, 260px);
  background: rgba(237, 246, 249, 0.73);
  background-image: url("./img/bg2.jpg");
  background-position: center center;
  background-size: cover;
}
.detail-card {
  display: flex;
  width: min(100%, 480px);
  min-height: 270px;
  padding: 30px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 118, 123, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  text-align: center;
}
.detail-card > img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}
.detail-card h3 {
  margin: 5px 0 8px;
  color: var(--green);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.detail-card a,
.coming-link {
  margin-top: 11px;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}
.detail-card--soon > img {
  width: 92px;
  height: 25px;
  margin: 16px 0;
}
.detail-card--soon p {
  margin: 12px 0;
  color: var(--blue);
  font-family: "Meow Script", cursive;
  font-size: 43px;
  line-height: 0.95;
  visibility: var(--script-text-visibility);
}

footer {
  position: relative;
  min-height: 255px;
  padding: 62px 24px calc(88px + var(--safe-area-bottom));
  text-align: center;
}
footer h2 {
  color: var(--green);
  font-size: 48px;
  line-height: 1;
}
footer img {
  display: block;
  width: 85px;
  height: 18px;
  margin: 14px auto 16px;
  object-fit: contain;
}
footer a {
  color: var(--blue);
  font-size: 17px;
  text-decoration: none;
}

.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;
}

@media (max-width: 1000px) {
  .rsvp p {
    width: 80%;
  }
  .rsvp-decoration--branch {
    left: calc(10% - 50px);
  }
  .rsvp-decoration--flower {
    right: calc(10% - 50px);
  }
}

@media (max-width: 760px) {
  .corner {
    width: 58%;
    opacity: 0.82;
  }
  .hero {
    padding: 120px 18px 90px;
  }
  .hero::before {
    inset: -25%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 250, 240, 0.96) 0%,
      rgba(255, 250, 240, 0.84) 32%,
      rgba(255, 250, 240, 0.34) 50%,
      rgba(255, 250, 240, 0) 66%
    );
  }
  .hero h1 {
    font-size: clamp(72px, 22vw, 104px);
  }
  .eyebrow {
    font-size: 16px;
  }
  .date {
    font-size: 25px;
  }
  .destination {
    padding: 65px 20px;
  }
  .destination-inner {
    display: block;
    width: 100%;
    max-width: calc(100% - 12px);
    padding: 30px 20px;
    background: radial-gradient(
      ellipse at center,
      rgba(233, 245, 247, 0.98) 0%,
      rgba(233, 245, 247, 0.92) 48%,
      rgba(233, 245, 247, 0.46) 74%,
      rgba(233, 245, 247, 0) 98%
    );
  }
  .portugal {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 410px;
    opacity: 0.7;
    transform: translate(-50%, -50%);
  }
  .destination-text {
    position: relative;
    z-index: 1;
    text-align: center;
    text-shadow:
      0px 0px 10px #ebf6f8,
      0px 0px 3px #ebf6f8;
  }
  .destination h2 {
    font-size: 55px;
  }
  .venue {
    padding: 45px 18px;
  }
  .venue-card {
    flex-direction: column;
    padding: 22px;
  }
  .venue-brand img {
    width: 75%;
  }
  .venue-brand {
    width: 100%;
    padding: 28px 24px 36px;
  }
  .venue-copy {
    width: 100%;
    min-height: 0;
    padding: 24px 12px 0;
    border-top: 1px solid var(--gold);
    border-left: 0;
  }
  .trip {
    padding: 48px 10% 24px;
  }
  .trip h2 {
    font-size: 48px;
  }
  .trip-icon {
    width: 52px;
    height: 52px;
  }
  .trip-copy p {
    font-size: 17px;
    line-height: 1.7;
  }
  .details {
    padding: 45px 10%;
  }
  .detail-card {
    min-height: 220px;
  }
  .rsvp {
    padding: 45px 20px 50px;
  }
  .rsvp > .rsvp-decoration {
    display: none;
  }
  .rsvp p {
    width: 80%;
  }
  footer {
    min-height: 245px;
    padding: 64px 24px calc(94px + var(--safe-area-bottom));
  }
  footer::before {
    content: "";
    position: absolute;
    z-index: 15;
    inset: -25%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 250, 240, 0.96) 0%,
      rgba(255, 250, 240, 0.84) 32%,
      rgba(255, 250, 240, 0.34) 50%,
      rgba(255, 250, 240, 0) 66%
    );
    pointer-events: none;
  }
}
