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

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

:root {
  --ink: #202027;
  --muted: #77777e;
  --paper: #ffffff;
  --mint: #c5ffd9;
  --sage: #c8d3bd;
  --accent: #22ef74;
  --max: 1120px;
  --serif: "Vetrino", "Times New Roman", serif;
  --sans: "Tilda Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 255, 217, 0.52), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f6fff9 100%);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

main,
section,
article,
img {
  max-width: 100%;
}

.first-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding: clamp(1.5rem, 4svh, 3rem) 0 clamp(1.4rem, 4svh, 3rem);
}

.hero {
  display: grid;
  flex: 0 1 min(38rem, 78svh);
  min-height: 0;
  padding: 0 1.5rem;
  overflow: visible;
  place-items: center;
  transform: translateY(clamp(0.5rem, 3svh, 1.8rem));
}

.hero__inner {
  position: relative;
  width: min(100%, calc(100vw - 3rem));
  max-width: 38rem;
  height: 100%;
  min-height: 0;
}

.hero__eyebrow,
.hero__details {
  position: absolute;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.hero__eyebrow {
  top: 1.5rem;
  left: clamp(1rem, 10vw, 4rem);
  margin: 0;
  color: #4b4b53;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 700;
}

.hero__image {
  position: absolute;
  inset: -0.2rem auto auto 44%;
  width: min(82vw, 20.5rem, 58svh);
  transform: translateX(-50%);
}

.hero__details {
  top: clamp(13.5rem, 59vw, 18.5rem);
  right: clamp(1.4rem, 7vw, 2.8rem);
  width: 56vw;
  max-width: 14rem;
  text-align: center;
}

.hero__details h1 {
  margin: 0;
  font-size: clamp(0.76rem, 2.9vw, 0.98rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
}

.hero__details h1 span {
  display: inline-block;
}

.hero__title-accent {
  position: relative;
  margin-left: 0.45em;
}

.hero__title-accent::before {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: 100%;
  height: 1px;
  background: #222;
  content: "";
}

.hero__details p,
.hero__details time {
  display: block;
  margin: 0.2rem 0 0;
  font-size: clamp(0.62rem, 2.35vw, 0.78rem);
  font-weight: 400;
}

.hero__details p {
  text-align: center;
}

.hero__details time {
  margin-top: 1.15rem;
  letter-spacing: 0.2em;
  padding-right: 0.15rem;
}

.countdown {
  display: flex;
  justify-content: space-between;
  gap: clamp(0.2rem, 2vw, 2rem);
  width: min(100%, calc(100vw - 2rem));
  max-width: 42rem;
  margin: clamp(1.4rem, 4svh, 2.8rem) auto 0;
  text-align: center;
  overflow: hidden;
}

.countdown__item {
  min-width: 0;
  flex: 0 0 clamp(3.35rem, 15vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown__item strong {
  display: block;
  width: 100%;
  font-size: clamp(1.45rem, 7vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.countdown__item span {
  display: block;
  margin-top: 0.18rem;
  color: #4d4d55;
  font-size: clamp(0.58rem, 1.7vw, 0.82rem);
}

.mint-section {
  padding: clamp(2.8rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.7), transparent 18rem),
    linear-gradient(135deg, #bdffd3 0%, var(--mint) 48%, #d6ffe2 100%);
}

.invitation-card {
  width: min(100%, calc(100vw - 2rem));
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1.2rem, 6vw, 4.7rem);
  background: var(--paper);
  box-shadow: 0 1.8rem 5rem rgba(38, 83, 55, 0.1);
  text-align: center;
}

.invitation-card section + section {
  margin-top: clamp(2.1rem, 6vw, 4.2rem);
}

h2 {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.86;
  max-width: 100%;
  overflow-wrap: normal;
}

.uppercase-heading h2 {
  text-transform: uppercase;
}

p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(0.86rem, 2.2vw, 1.12rem);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.intro p,
.schedule {
  max-width: 39rem;
}

.schedule p + p {
  margin-top: 0.35rem;
}

.schedule--spaced p + p {
  margin-top: clamp(1.9rem, 5vw, 3rem);
}

.map {
  display: block;
  width: 100%;
  max-width: 38rem;
  margin: 0.7rem auto 0;
}

.map-link {
  display: inline-block;
  margin: 0.8rem auto clamp(2rem, 5vw, 3.4rem);
  color: #177c44;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-transform: uppercase;
}

.palette {
  display: flex;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  margin-top: 1.4rem;
}

.palette span {
  width: clamp(2rem, 6vw, 3.2rem);
  aspect-ratio: 1;
  border: 1px solid rgba(19, 177, 85, 0.32);
  border-radius: 50%;
  background: var(--color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (min-width: 760px) {
  .hero {
    transform: none;
  }

  .hero__inner {
    max-width: min(62rem, calc(100vw - 3rem));
  }

  .hero__image {
    top: clamp(0rem, 2svh, 2rem);
    width: min(36rem, 58svh, 70vw);
  }

  .hero__details {
    top: auto;
    right: clamp(0rem, 6vw, 4rem);
    bottom: clamp(3rem, 9vw, 5.2rem);
    width: 58vw;
    max-width: 18rem;
  }

  .hero__details h1 {
    font-size: clamp(0.95rem, 2.05vw, 1.16rem);
    letter-spacing: 0.28em;
  }

  .hero__details p,
  .hero__details time {
    font-size: clamp(0.72rem, 1.65vw, 0.88rem);
  }

  .mint-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .invitation-card {
    border-radius: 1.6rem;
  }
}

@media (min-width: 1040px) {
  main {
    overflow: clip;
  }

  .hero__inner {
    width: 100%;
    max-width: var(--max);
  }

  .hero__image {
    top: clamp(0rem, 1svh, 1rem);
    width: min(36rem, 58svh, 50vw);
  }

  .hero__eyebrow {
    left: 14rem;
  }

  .hero__details {
    right: 13rem;
    bottom: 3rem;
  }

  .countdown {
    max-width: 48rem;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-inline: 0.8rem;
  }

  .invitation-card {
    padding-inline: 1rem;
  }
}

@media (max-width: 520px) {
  .hero__inner {
    width: min(100%, calc(100vw - 2rem));
  }

  .hero__image {
    left: 43%;
    width: min(78vw, 54svh);
  }

  .hero__details {
    top: clamp(13rem, 58vw, 17rem);
    right: auto;
    left: 46%;
    width: min(43vw, 11.75rem);
  }

  .hero__details h1 {
    font-size: clamp(0.6rem, 2.55vw, 0.72rem);
    letter-spacing: 0.015em;
  }

  .hero__title-accent::before {
    bottom: calc(100% + 0.55rem);
  }

  .hero__details p,
  .hero__details time {
    font-size: clamp(0.46rem, 1.95vw, 0.6rem);
    letter-spacing: 0.025em;
  }

  .hero__details time {
    padding-right: 0;
    text-align: center;
  }

  .countdown {
    gap: 0.15rem;
    width: min(100%, calc(100vw - 1rem));
  }

  .countdown__item {
    flex-basis: clamp(3rem, 18vw, 4.4rem);
  }

  .countdown__item strong {
    font-size: clamp(1.55rem, 7.4vw, 2.25rem);
  }

  .countdown__item span {
    font-size: clamp(0.5rem, 1.9vw, 0.62rem);
  }

  .mint-section {
    padding: 3.25rem 0;
  }

  .invitation-card {
    width: min(100%, calc(100vw - 4.5rem));
    padding: 2rem clamp(1rem, 5vw, 1.45rem);
  }

  h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 10.5vw, 3rem);
    line-height: 0.86;
  }

  p {
    font-size: clamp(0.78rem, 3.1vw, 0.92rem);
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: clamp(2.1rem, 10.4vw, 2.65rem);
  }
}
