:root {
  --taupe: #7d7166;
  --taupe-soft: rgba(125, 113, 102, 0.18);
  --paper: #fff;
  --warm-paper: #fbfaf8;
  --shadow: 0 24px 70px rgba(68, 58, 48, 0.1);
  color: var(--taupe);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-color: rgba(125, 113, 102, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(125, 113, 102, 0.32);
  outline-offset: 4px;
}

h1,
h2,
p,
figure {
  margin: 0;
}

img {
  max-width: 100%;
}

.invitation-hero {
  display: grid;
  min-height: 100svh;
  padding: clamp(2rem, 4vw, 4rem) 1rem;
  place-items: center start;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      rgba(255, 255, 255, 0.98) 18%,
      rgba(255, 255, 255, 0.82) 36%,
      rgba(255, 255, 255, 0.22) 58%,
      rgba(255, 255, 255, 0) 74%
    ),
    var(--hero-image) 68% center / cover no-repeat;
  text-align: center;
}

.hero-inner {
  width: min(45vw, 620px);
  margin-left: clamp(1rem, 5vw, 5rem);
}

.names-art {
  display: grid;
  gap: 0.12em;
  width: 100%;
  margin: 0 auto clamp(1.7rem, 4vw, 3rem);
  font-family: "Blosta Script", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.8rem, 7.6vw, 8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
}

.names-art span {
  display: block;
}

.names-art span:nth-child(2) {
  font-size: 0.34em;
  line-height: 0.5;
}

.announcement,
.main-date,
.main-place,
.place-copy p,
.gift-copy,
.info-columns p {
  font-weight: 400;
  line-height: 1.45;
}

.announcement {
  max-width: 34rem;
  margin: 0 auto clamp(1.8rem, 4.5vw, 3rem);
  font-size: clamp(1.28rem, 2.5vw, 1.7rem);
  font-style: italic;
  letter-spacing: 0.045em;
}

.main-date {
  margin-bottom: clamp(1.7rem, 4.5vw, 3.2rem);
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-date span {
  display: block;
}

.main-place {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.18rem, 2.6vw, 1.62rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.address-link {
  display: inline-block;
  padding-bottom: 0.08rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 113, 102, 0.42);
}

.locations-section {
  width: 100%;
  margin: 0 0 -1px;
}

.reception-feature {
  display: grid;
  min-height: 100svh;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  place-items: center start;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      rgba(255, 255, 255, 0.9) 22%,
      rgba(255, 255, 255, 0.52) 42%,
      rgba(255, 255, 255, 0.12) 68%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--reception-image) center / cover no-repeat;
}

.place-copy {
  text-align: center;
}

.reception-copy {
  width: min(42rem, 46vw);
  margin-left: clamp(1rem, 7vw, 7rem);
}

.small-line {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  font-style: italic;
  letter-spacing: 0.08em;
}

.place-copy h2 {
  max-width: 32rem;
  margin: 0.85rem auto 1rem;
  font-size: clamp(1.45rem, 3.1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.place-copy h2 span {
  display: block;
}

.place-copy p {
  font-size: clamp(1.16rem, 2.2vw, 1.46rem);
  letter-spacing: 0.045em;
}

.place-copy p + p {
  margin-top: 0.85rem;
}

.confirmation {
  font-style: italic;
}

.quiet-section {
  width: calc(100% - 2rem);
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  text-align: center;
}

.ivy {
  display: block;
  width: min(350px, 72vw);
  height: auto;
  margin: 0 auto clamp(2.4rem, 5vw, 3.7rem);
  opacity: 0.72;
}

.gift-copy {
  max-width: 740px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
  padding-bottom: clamp(2rem, 5vw, 3.2rem);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.info-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.info-columns h2 {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.35;
}

.info-columns p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: 0.045em;
}

.info-columns p + p {
  margin-top: 0.55rem;
}

.info-columns span {
  display: block;
}

.iban {
  overflow-wrap: anywhere;
}

.signature-mark {
  display: inline-block;
  box-sizing: border-box;
  margin-top: 3.5rem;
  margin-inline: auto;
  font-family: "Blosta Script", "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  opacity: 0.62;
}

.private-shell {
  display: grid;
  min-height: 100vh;
  padding: 1rem;
  place-items: center;
}

.private-panel {
  width: min(100%, 34rem);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.private-panel img {
  width: min(260px, 72%);
  height: auto;
  margin-bottom: 2rem;
  opacity: 0.72;
}

.private-panel h1 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.08;
}

.private-panel p:not(.small-line) {
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  letter-spacing: 0.05em;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .invitation-hero {
    min-height: 100svh;
    padding: 2rem 1rem 1.6rem;
    place-items: end center;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 34%,
        rgba(255, 255, 255, 0.82) 58%,
        rgba(255, 255, 255, 0.96) 74%,
        #fff 100%
      ),
      var(--hero-image) 68% 0% / auto 112% no-repeat;
  }

  .hero-inner {
    width: min(100%, 36rem);
    margin-left: 0;
    transform: translateY(1.4rem);
  }

  .reception-feature {
    min-height: 100svh;
    padding: 2rem 1rem 1.6rem;
    place-items: end center;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(255, 255, 255, 0.58) 64%,
        rgba(255, 255, 255, 0.88) 82%,
        #fff 100%
      ),
      var(--reception-mobile-image) center center / cover no-repeat;
  }

  .reception-copy {
    width: min(100%, 34rem);
    margin-left: 0;
    transform: translateY(0.4rem);
  }

  .info-columns {
    grid-template-columns: 1fr;
  }

  .signature-mark {
    transform: translateX(-0.8em);
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .invitation-hero,
  .reception-feature {
    padding-bottom: clamp(3.5rem, 6svh, 5rem);
  }

  .hero-inner {
    transform: translateY(0.7rem);
  }

  .reception-copy {
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .hero-inner {
    width: min(100%, 360px);
    transform: translateY(1.9rem);
  }

  .names-art {
    width: min(360px, 100%);
    margin-bottom: 2rem;
    font-size: clamp(3.1rem, 16.5vw, 4.2rem);
  }

  .announcement,
  .main-date,
  .main-place,
  .place-copy p,
  .gift-copy,
  .info-columns p {
    letter-spacing: 0.035em;
  }

  .announcement {
    max-width: 19rem;
  }

  .main-date {
    max-width: 20rem;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .main-place {
    max-width: 19rem;
    margin-bottom: 2.8rem;
  }

  .quiet-section {
    width: calc(100% - 1.25rem);
  }

  .reception-feature {
    min-height: 100svh;
    padding: 2rem 1rem 3.2rem;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(255, 255, 255, 0.58) 64%,
        rgba(255, 255, 255, 0.88) 82%,
        #fff 100%
      ),
      var(--reception-mobile-image) center center / cover no-repeat;
  }

  .reception-copy {
    transform: translateY(0.2rem);
  }

  .place-copy h2 {
    font-size: 1.42rem;
  }

}
