:root {
  --wine: #560719;
  --wine-deep: #3e0412;
  --rose: #e18b9a;
  --rose-soft: #d4a0a3;
  --cream: #fffdee;
  --paper: #f2e7d9;
  --ink: #5b0719;
}

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

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wine);
  color: var(--rose);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.pdf-invite {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  background: var(--wine);
  color: var(--rose);
  line-height: 1;
}

.pdf-design {
  display: block;
  width: 100%;
  height: auto;
}

.design-part {
  position: relative;
}

.exact-music-button,
.exact-map-link,
.exact-looks-link {
  position: absolute;
  display: block;
  z-index: 5;
}

.exact-music-button {
  left: 44.9%;
  top: 12.05%;
  width: 10.1%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.guest-section {
  position: absolute;
  left: 3%;
  top: 21.65%;
  width: 94%;
  height: 7.4%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--rose);
  overflow: visible;
}

.guest-section h1 {
  width: 100%;
  margin: 0;
  color: var(--rose);
  font-family: "Gogol", "Marck Script", cursive;
  font-size: var(--guest-title-size, clamp(72px, 17vw, 96px));
  font-weight: 400;
  line-height: .78;
  text-align: center;
  transform: none;
  overflow: visible;
}

.guest-section h1 span {
  display: block;
  white-space: nowrap;
  transform: scaleX(var(--guest-line-scale, 1));
  transform-origin: center center;
  overflow: visible;
}

.guest-section h1[data-lines="3"] {
  line-height: .72;
}

.guest-section h1[data-lines="4"] {
  line-height: .64;
}

.guest-section h1[data-lines="5"] {
  line-height: .6;
}

.guest-section h1.is-long {
  font-size: clamp(52px, 12.2vw, 70px);
}

.guest-section h1[data-lines="3"].is-long {
  font-size: clamp(38px, 9.2vw, 50px);
}

.guest-section h1.is-very-long {
  font-size: clamp(36px, 8.8vw, 48px);
}

.exact-map-link {
  left: 5.5%;
  top: 57.95%;
  width: 89%;
  height: 10.4%;
}

.exact-looks-link {
  left: 22%;
  top: 95.95%;
  width: 56%;
  height: 3.7%;
}

.exact-countdown {
  position: absolute;
  left: 14.4%;
  top: 80.4%;
  width: 31%;
  min-height: 3.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .22em;
  background: transparent;
  color: #4b1020;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
  z-index: 4;
}

.exact-countdown strong {
  font-weight: 500;
}

button,
input,
textarea {
  font: inherit;
}

.invite {
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 253, 238, .08), transparent 28rem),
    var(--wine);
  min-height: 100vh;
}

.section {
  padding: 42px 64px;
  position: relative;
}

.hero {
  min-height: 900px;
  padding-top: 120px;
  text-align: center;
}

.curtain {
  position: absolute;
  inset: 0 0 auto;
  height: 390px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.16), transparent 35%),
    linear-gradient(240deg, rgba(255,255,255,.16), transparent 35%),
    radial-gradient(ellipse at 50% 0, #c8b5ad 0 22%, transparent 23%),
    var(--wine-deep);
  opacity: .55;
  clip-path: polygon(0 0,100% 0,100% 32%,82% 44%,70% 36%,61% 20%,50% 34%,39% 20%,30% 36%,18% 44%,0 32%);
}

.monogram {
  width: 170px;
  height: 170px;
  margin: 0 auto 42px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-family: "Marck Script", cursive;
  font-size: 72px;
  line-height: .72;
  transform: rotate(-8deg);
}

.hero-row {
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: 30px;
  line-height: 1;
}

.hero-row p:last-child {
  text-align: right;
}

.music-button {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  margin-top: 8px;
  background: #ead2b6;
  color: var(--rose);
  cursor: pointer;
}

.music-label,
.script,
h1,
h2 {
  font-family: "Marck Script", cursive;
  font-weight: 400;
}

.music-label {
  display: block;
  margin: 8px 0 22px;
  font-size: 18px;
}

.proposal-photo {
  width: 216px;
  height: 286px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

h1,
h2 {
  margin: 0 0 24px;
  color: var(--rose);
  font-size: clamp(42px, 12vw, 66px);
  line-height: .9;
}

.letter h1 {
  max-width: 420px;
}

.paper {
  width: 315px;
  min-height: 430px;
  margin: 0 auto;
  padding: 78px 52px 46px;
  color: var(--rose);
  background: linear-gradient(100deg, rgba(255,255,255,.72), rgba(255,253,238,.9));
  transform: rotate(-7deg);
  box-shadow: 0 24px 0 -14px rgba(225, 139, 154, .55);
}

.paper p {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.light-band {
  margin: 40px 0;
  background:
    linear-gradient(var(--rose-soft), var(--rose-soft)) 0 20% / 100% 3px no-repeat,
    linear-gradient(var(--rose-soft), var(--rose-soft)) 0 80% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 18%, var(--rose-soft) 18% 18.5%, transparent 18.5% 81.5%, var(--rose-soft) 81.5% 82%, transparent 82%),
    var(--cream);
  text-align: center;
  color: var(--ink);
}

.date {
  min-height: 500px;
  display: grid;
  align-content: center;
}

.date .script {
  font-size: 42px;
  margin: 0;
}

.date strong {
  display: block;
  font-size: 128px;
  line-height: .85;
  font-weight: 700;
}

.save {
  margin: 40px 0 0 auto;
  max-width: 190px;
  color: var(--rose);
  font-size: 30px;
  line-height: 1;
}

.save span {
  font-size: 24px;
}

.place img,
.dress img,
.countdown img {
  display: block;
  max-width: 100%;
}

.map-link {
  display: block;
}

.place p,
.timing p,
.dress p,
.notes p,
.footer p {
  line-height: 1.08;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  border-top: 4px solid var(--rose);
  padding-top: 18px;
}

.timeline div {
  position: relative;
  min-width: 0;
}

.timeline div::before {
  content: "*";
  position: absolute;
  top: -42px;
  left: 0;
  font-size: 42px;
}

.timeline b,
.timeline span {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.dress {
  padding-top: 22px;
}

.dress img {
  margin: 0 auto 18px;
  border-radius: 6px;
}

.look-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  color: var(--cream);
  text-decoration: none;
  font-family: "Marck Script", cursive;
  font-size: 24px;
  border-bottom: 1px solid currentColor;
}

.rsvp form,
.countdown {
  background: var(--cream);
  color: var(--rose);
  border-radius: 18px;
}

.rsvp form {
  padding: 42px 48px;
}

.rsvp-card {
  display: block;
  margin: 0 auto 28px;
  padding: clamp(42px, 7.5vw, 64px) clamp(34px, 9.5vw, 64px) clamp(48px, 8vw, 70px);
  width: min(88%, 1110px);
  background: #ffffef;
  color: #d57a86;
  border-radius: 18px;
  font-size: clamp(19px, 4.4vw, 23px);
  line-height: 1.08;
}

.rsvp-card h2 {
  margin: 0 0 30px;
  color: #d57a86;
  font-family: "Gogol", "Marck Script", cursive;
  font-size: clamp(62px, 14vw, 86px);
  font-weight: 400;
  line-height: .85;
  text-align: center;
}

.rsvp-card p {
  margin: 0 0 30px;
  font-size: clamp(20px, 4.8vw, 25px);
  line-height: 1.12;
}

.rsvp-card label,
.rsvp-card legend,
.rsvp-card small {
  display: block;
}

.rsvp-card label {
  margin: 0;
}

.rsvp-card > label,
.rsvp-card > .rsvp-grid,
.rsvp-card > fieldset {
  margin-top: 32px;
}

.rsvp-card input:not([type="radio"]):not([type="checkbox"]),
.rsvp-card textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 9px 13px;
  border: 0;
  border-radius: 0;
  background: rgba(168, 131, 142, .24);
  color: #450d1d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 4.3vw, 22px);
  line-height: 1.1;
}

.rsvp-card textarea {
  resize: vertical;
}

.rsvp-card fieldset {
  border: 0;
  padding: 0;
  margin: 32px 0 0;
}

.rsvp-card input[type="radio"],
.rsvp-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--rose);
  vertical-align: middle;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rsvp-grid label {
  display: flex;
  flex-direction: column;
}

.rsvp-grid label span {
  min-height: 2.35em;
  display: flex;
  align-items: flex-end;
}

.rsvp h2 {
  color: var(--rose);
}

.rsvp label,
.rsvp legend,
.rsvp small {
  display: block;
}

.rsvp label {
  margin: 12px 0;
}

.rsvp input[type="text"],
.rsvp input:not([type]),
.rsvp textarea {
  width: 100%;
}

.rsvp input:not([type="radio"]):not([type="checkbox"]),
.rsvp textarea,
.links-admin input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #e9ded2;
  color: var(--ink);
}

.rsvp input[aria-invalid="true"] {
  outline: 2px solid #b9243f;
}

.field-error {
  margin-top: 6px;
  color: #b9243f;
  font-size: 16px;
  line-height: 1.1;
}

.rsvp fieldset {
  border: 0;
  padding: 14px 0;
  margin: 0;
}

.rsvp input[type="radio"],
.rsvp input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--rose);
  vertical-align: middle;
}

.submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: var(--cream);
  cursor: pointer;
}

.hidden {
  display: none;
}

.notes {
  margin: 44px 0;
  text-align: center;
}

.notes::before {
  content: "";
  position: absolute;
  inset: 5% -18% 0;
  border: 12px solid rgba(225,139,154,.8);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(5deg);
  pointer-events: none;
}

.countdown {
  margin: 56px 48px;
  padding: 30px 34px 38px;
  text-align: center;
}

.countdown .script {
  font-size: 34px;
  margin: 18px 0 2px;
}

.countdown strong {
  color: var(--ink);
  font-size: 46px;
}

.footer {
  padding-bottom: 80px;
}

.links-admin h1 {
  margin-bottom: 14px;
}

.admin-note {
  margin: 0 0 22px;
  line-height: 1.1;
}

.search-label {
  display: block;
  margin-bottom: 30px;
}

.links-list {
  display: grid;
  gap: 34px;
}

.links-category {
  position: relative;
}

.links-category h2 {
  margin-bottom: 8px;
  font-size: 42px;
}

.links-category > span {
  position: absolute;
  top: 6px;
  right: 0;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.link-cards {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(225, 139, 154, .55);
  background: rgba(255, 253, 238, .05);
}

.link-card strong,
.link-card small,
.link-card a,
.link-card button {
  display: block;
}

.link-card strong {
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
}

.link-card small {
  margin-top: 4px;
  line-height: 1;
}

.link-card a {
  color: var(--cream);
  overflow-wrap: anywhere;
  font-size: 16px;
}

.link-card button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--rose);
  padding: 5px 14px;
  cursor: pointer;
}

@media (max-width: 520px) {
  body {
    font-size: 18px;
  }

  .section {
    padding-left: 34px;
    padding-right: 34px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-row {
    font-size: 26px;
  }

  .paper {
    width: min(100%, 315px);
    padding: 62px 34px 42px;
  }

  .timeline {
    gap: 8px;
  }

  .timeline b,
  .timeline span {
    font-size: 15px;
  }

  .rsvp {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rsvp form,
  .rsvp-card {
    padding: 34px 28px;
  }

  .rsvp-card {
    width: 90%;
    padding: 38px 28px 46px;
    font-size: 18px;
  }

  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rsvp-card > label,
  .rsvp-card > .rsvp-grid,
  .rsvp-card > fieldset {
    margin-top: 34px;
  }

  .countdown {
    margin-left: 24px;
    margin-right: 24px;
  }

  .link-card button {
    width: 100%;
  }

  .guest-section h1 {
    font-size: var(--guest-title-size, clamp(56px, 16vw, 70px));
  }

  .guest-section {
    left: 3%;
    top: 21.65%;
    width: 94%;
    height: 7.4%;
    padding: 0;
  }

  .guest-section h1.is-long {
    font-size: clamp(42px, 12vw, 52px);
  }

  .guest-section h1[data-lines="3"].is-long {
    font-size: clamp(30px, 8.7vw, 38px);
  }

  .guest-section h1.is-very-long {
    font-size: clamp(30px, 8.7vw, 38px);
  }
}
