/* ── Erkiyor & Sevinch — custom blocks ─────────────────────────────────────
   Palette is taken from the surrounding Tilda blocks so the new sections
   read as part of the same page.                                            */
:root {
  --wd-cream: #f9f0e0;
  --wd-cream-2: #f6f1e8;
  --wd-maroon: #5a0f1b;
  --wd-maroon-soft: rgba(90, 15, 27, 0.55);
  --wd-maroon-faint: rgba(90, 15, 27, 0.16);
  --wd-serif: 'Cormorant Garamond', 'Ovo', Georgia, serif;
  --wd-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --wd-heart: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'><path d='M16 29S0 18.5 0 9.5C0 4.25 4.25 0 9.5 0 12.4 0 14.9 1.4 16 3.5 17.1 1.4 19.6 0 22.5 0 27.75 0 32 4.25 32 9.5 32 18.5 16 29 16 29z' fill='black'/></svg>");
}

.wd-sec {
  padding: 70px 20px 80px;
  overflow: hidden;
}

/* ── hero: the personalised greeting ───────────────────────────────────── */
.wd-guest-line {
  display: block;
  line-height: 1.25;
  margin-bottom: 0.3em;
}
.wd-guest-hi {
  font-family: var(--wd-serif);
  font-size: 1.45em;
  font-weight: 400;
  color: #6a5140;
}
.wd-guest {
  font-family: var(--wd-script);
  font-size: 1.7em;
  color: #a67d2b;           /* same gold as the couplet above it */
}
.wd-invite-text {
  display: block;
  font-family: var(--wd-serif);
  font-size: 0.82em;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ── shared heart pair ─────────────────────────────────────────────────── */
.wd-hearts {
  color: var(--wd-maroon);
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.wd-hearts svg { display: block; }
.wd-hearts--filled { color: #c8102e; }

/* ── calendar block ────────────────────────────────────────────────────── */
.wd-cal-wrap {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--wd-maroon);
}
.wd-cal-title {
  font-family: var(--wd-script);
  font-size: 62px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.wd-cal-date {
  font-family: var(--wd-serif);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.wd-cal-weekday {
  font-family: var(--wd-serif);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wd-maroon-soft);
}
.wd-cal-time {
  font-family: var(--wd-serif);
  font-size: 20px;
  letter-spacing: 0.16em;
  margin-top: 14px;
  color: var(--wd-maroon-soft);
}
.wd-cal-time:empty { display: none; }

.wd-cal-card {
  margin-top: 40px;
  padding: 30px 22px 34px;
  border: 1px solid var(--wd-maroon-faint);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.28);
}
.wd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 4px;
  font-family: var(--wd-serif);
}
.wd-cal-head {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wd-maroon-soft);
  margin-bottom: 16px;
}
.wd-cal-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 24px;
  position: relative;
}
.wd-cal-grid .wd-cal-empty { visibility: hidden; }

/* the selected day sits inside a heart */
.wd-cal-grid .wd-cal-day-selected {
  color: var(--wd-cream);
  font-weight: 500;
  z-index: 1;
}
.wd-cal-grid .wd-cal-day-selected::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  background: var(--wd-maroon);
  z-index: -1;
  -webkit-mask: var(--wd-heart) center / contain no-repeat;
  mask: var(--wd-heart) center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(90, 15, 27, 0.35));
}

/* ── closing block ─────────────────────────────────────────────────────── */
.wd-closing { padding-bottom: 100px; }
.wd-closing-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--wd-maroon);
}
.wd-closing-text {
  font-family: var(--wd-serif);
  font-size: 25px;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0 0 46px;
}
.wd-closing-label {
  font-family: var(--wd-serif);
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wd-maroon-soft);
  margin-bottom: 10px;
}
.wd-closing-names {
  font-family: var(--wd-script);
  font-size: 76px;
  line-height: 1.1;
  color: var(--wd-maroon);
}
.wd-closing-names .wd-amp {
  display: inline-block;
  font-size: 0.62em;
  line-height: 1;
  padding: 6px 0;
}

/* ── map block ─────────────────────────────────────────────────────────── */
.wd-map-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.wd-map-wrap iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--wd-maroon-faint);
  border-radius: 18px;
  background: var(--wd-cream-2);
}
.wd-map-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 34px;
  border: 1px solid var(--wd-maroon);
  border-radius: 40px;
  font-family: var(--wd-serif);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wd-maroon);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.wd-map-btn:hover { background: var(--wd-maroon); color: var(--wd-cream); }

/* ── responsive ────────────────────────────────────────────────────────── */

/* On phones the greeting runs longer than the torn-paper artwork Tilda sized
   the slot for, so the last line fell off the edge. Stretch the paper (and the
   artboard holding it) far enough that even a long guest name still lands on
   it. Desktop is untouched — the text already fits there. */
@media screen and (max-width: 639px) {
  #rec2487446043 .tn-elem[data-elem-id="1779527203760000001"],
  #rec2487446043 .tn-elem[data-elem-id="1779527203760000001"] .tn-atom,
  #rec2487446043 .tn-elem[data-elem-id="1779527203760000001"] .tn-atom__img {
    height: 600px !important;
  }
  #rec2487446043 .tn-elem[data-elem-id="1779527203760000001"] .tn-atom__img {
    object-fit: fill;
  }
  #rec2487446043 .t396__artboard,
  #rec2487446043 .t396__filter,
  #rec2487446043 .t396__carrier {
    height: 1365px !important;
  }
}

@media screen and (max-width: 639px) {
  .wd-sec { padding: 50px 16px 60px; }
  .wd-cal-title { font-size: 44px; }
  .wd-cal-date { font-size: 32px; }
  .wd-cal-weekday { font-size: 12px; letter-spacing: 0.26em; }
  .wd-cal-card { padding: 22px 10px 26px; border-radius: 18px; }
  .wd-cal-grid { gap: 6px 0; }
  .wd-cal-grid span { height: 38px; font-size: 18px; }
  .wd-cal-head { font-size: 11px; letter-spacing: 0.06em; }
  .wd-cal-grid .wd-cal-day-selected::before { width: 44px; height: 44px; }
  .wd-closing-text { font-size: 19px; }
  .wd-closing-names { font-size: 52px; }
}
