:root {
  --sky: #7fcaf3;
  --sky-soft: #dff4ff;
  --sky-deep: #2f85ba;
  --ink: #334454;
  --muted: #71808c;
  --paper: #fffaf1;
  --line: rgba(47, 133, 186, 0.28);
  --shadow: 0 20px 50px rgba(60, 123, 164, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(127, 202, 243, 0.24), transparent 28rem),
    linear-gradient(180deg, #f5fbff 0%, var(--paper) 45%, #eef9ff 100%);
  font-family: "Cormorant Garamond", Georgia, serif;
}

button,
textarea {
  font: inherit;
}

.invite {
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 250, 241, 0.84)),
    radial-gradient(circle at 80% 18%, rgba(127, 202, 243, 0.28), transparent 12rem);
  box-shadow: 0 0 50px rgba(61, 121, 158, 0.14);
}

.section {
  position: relative;
  padding: 36px 24px;
  text-align: center;
}

.hero {
  min-height: 640px;
  padding-top: 26px;
}

.monogram {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sky-deep);
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.56);
}

.monogram span {
  margin: 0 2px;
  color: #93a5ae;
}

.hero-photo {
  width: 100%;
  height: 188px;
  margin: 0 auto 22px;
  background:
    linear-gradient(90deg, rgba(13, 29, 39, 0.26), rgba(255, 255, 255, 0.08)),
    url("assets/invitation-reference.jpeg") center 7% / cover;
  border-radius: 50% 50% 46% 46% / 18% 18% 18% 18%;
  box-shadow: var(--shadow);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.eyebrow,
.couple,
.subtitle,
.time,
.note,
.limit,
.cancel-text {
  color: var(--muted);
}

.eyebrow {
  margin: 8px 0 6px;
  font-size: 15px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: #253b4a;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 16vw, 78px);
  font-weight: 400;
  line-height: 0.86;
}

h1 span {
  display: block;
  color: var(--sky-deep);
  font-size: 0.48em;
  line-height: 1.15;
}

.intro {
  max-width: 300px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
}

.floral::before,
.floral::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-top: 2px solid rgba(127, 202, 243, 0.72);
  border-left: 2px solid rgba(127, 202, 243, 0.48);
  border-radius: 52% 24% 52% 24%;
  transform: rotate(-28deg);
}

.floral::before {
  top: 20px;
  left: 14px;
}

.floral::after {
  top: 16px;
  right: 12px;
  transform: scaleX(-1) rotate(-28deg);
}

.calendar {
  padding-top: 4px;
}

.save-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 18px;
  color: #27485c;
  background: linear-gradient(135deg, #bfeaff, #72c4f2);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.save-title {
  margin: 0;
  text-align: left;
  font-size: 45px;
  line-height: 0.88;
  letter-spacing: 0;
}

.date-panel {
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
}

.date-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--sky-deep);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-family: Inter, sans-serif;
  font-size: 10px;
}

.days b,
.days em {
  min-height: 17px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.days .selected {
  color: #fff;
  background: var(--sky-deep);
  border-radius: 50%;
}

.details {
  padding-top: 46px;
}

.portrait {
  width: 168px;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 8%;
  background: url("assets/invitation-reference.jpeg") center 42% / 280% auto;
  box-shadow: var(--shadow);
}

.rings {
  width: 58px;
  height: 58px;
  margin: -36px auto 16px;
  display: grid;
  place-items: center;
  color: var(--sky-deep);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(47, 133, 186, 0.2);
  font-size: 34px;
}

h2 {
  margin-bottom: 6px;
  color: #253b4a;
  font-size: 30px;
  font-style: italic;
  line-height: 1.1;
}

.details p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.45;
}

.table {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.gallery {
  padding: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 70%;
}

.guestbook {
  min-height: 430px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(32, 65, 84, 0.16), rgba(215, 239, 250, 0.42)),
    url("assets/preferences-reference.jpeg") center top / cover;
}

.glass {
  width: 100%;
  padding: 22px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(235, 249, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.guestbook h2 {
  color: #fff;
  font-family: "Great Vibes", cursive;
  font-size: 38px;
  font-style: normal;
  text-shadow: 0 2px 12px rgba(32, 60, 74, 0.32);
}

textarea {
  width: 100%;
  min-height: 152px;
  resize: vertical;
  padding: 18px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  outline: 2px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.5;
}

textarea:focus {
  outline-color: var(--sky);
}

.message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.message-row button,
.cancel {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--sky-deep);
  box-shadow: 0 12px 24px rgba(47, 133, 186, 0.26);
  cursor: pointer;
}

.message-row button {
  min-height: 45px;
  padding: 0 18px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#counter {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.preferences {
  padding-top: 34px;
  padding-bottom: 58px;
}

.preferences > p {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.45;
}

.preferences h3 {
  margin: 26px 0 12px;
  color: #314756;
  font-size: 22px;
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chips button {
  min-width: 96px;
  min-height: 34px;
  padding: 7px 18px;
  border: 1px solid rgba(47, 133, 186, 0.18);
  border-radius: 999px;
  color: #6e7983;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 12px rgba(62, 86, 101, 0.15);
  cursor: pointer;
}

.chips button::before {
  content: "♧";
  margin-right: 10px;
  color: var(--sky-deep);
  font-family: Inter, sans-serif;
}

.chips button.selected {
  color: #1d5879;
  border-color: var(--sky-deep);
  background: var(--sky-soft);
  box-shadow: 0 7px 16px rgba(47, 133, 186, 0.2);
}

.cancel-text {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 15px;
}

.cancel {
  min-width: 230px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 19px;
}

@media (min-width: 700px) {
  body {
    padding: 30px 0;
  }

  .invite {
    border-radius: 22px;
  }
}
