/* Traditional Wedding page (traditional-wedding.html): the Lindokuhle & Anele colours and fonts (paper, ink, cocoa and
   gold; Cormorant Garamond and Montserrat, all from style.css), dressed with Zulu touches in the same tones: beadwork
   bands (images/traditional-border.svg), a faint shweshwe print, isihlangu shields and a save-the-date calendar.
   Loaded after style.css; reuses its sections (hero with doors, invitation, details, countdown, gallery, RSVP). */
body.traditional {
  --caramel: #aa7955;
  --tan: #c9a07c;
  --cream: #f4e4cf;
  --chocolate: #493126;
  /* a small strip of beads for thin edges (letter, hero rule) */
  --bead-strip: repeating-linear-gradient(
    90deg,
    #754526 0 8px,
    #c9a07c 8px 12px,
    #3e2b21 12px 16px,
    #f4e4cf 16px 20px,
    #3e2b21 20px 24px,
    #aa7955 24px 32px,
    #c9a07c 32px 36px
  );
  background: url("../images/shweshwe.svg") 0 0 / 56px 56px, var(--paper);
  /* dates, times and phone numbers in even, lining figures */
  font-variant-numeric: lining-nums;
}
.traditional .count-grid strong {
  font-variant-numeric: lining-nums tabular-nums;
}
.tw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.traditional .monogram {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Envelope: the cocoa envelope from style.css, a beadwork band under the gold wax seal */
.traditional .hero-envelope .env-letter::before {
  height: 10px;
  background: var(--bead-strip);
}
.traditional .env-band {
  background-color: #2b1f18;
}

/* Doors: paper with a faint shweshwe print, each inner edge trimmed with beadwork, a shield at the foot */
.traditional .hero-door {
  background: url("../images/shweshwe.svg") 0 0 / 56px 56px, var(--paper);
}
.traditional .hero-door::before {
  width: 26px;
  background: #2b1f18 url("../images/traditional-border-vertical.svg") repeat-y center / 100% auto;
}
.traditional .hero-door::after {
  width: 90px;
  height: 180px;
  bottom: 24px;
  opacity: 0.45;
}
.traditional .hero-door-left::after {
  left: 18px;
}
.traditional .hero-door-right::after {
  right: 18px;
}

/* Hero: the photo fills the right of the screen on wide screens (the couple sit near its centre) and the top on phones,
   fading into the warm brown behind the names */
.traditional .hero-photo {
  left: 38%;
}
.traditional .hero-photo > img {
  object-position: 50% 35%;
}
.traditional .hero-photo::after {
  background:
    linear-gradient(90deg, #483c31 0%, rgba(72, 60, 49, 0.55) 14%, rgba(72, 60, 49, 0) 40%),
    linear-gradient(0deg, rgba(24, 18, 13, 0.65), transparent 45%);
}
.traditional .hero-intro {
  max-width: 340px;
}
.traditional h1 {
  font-size: clamp(64px, 7vw, 112px);
}
.traditional h1 em {
  color: #e6c397;
}
.traditional .hero-rule {
  height: 8px;
  width: 120px;
  background: var(--bead-strip);
}
/* keep the date seal clear of the floating WhatsApp button */
.traditional .date-seal {
  bottom: 190px;
}

/* Beadwork bands between sections */
.traditional .traditional-band {
  height: 40px;
  background: #2b1f18 url("../images/traditional-border.svg") repeat-x center / auto 100%;
  box-shadow: 0 2px 0 var(--tan), 0 -2px 0 var(--tan);
}

/* Invitation */
.traditional .invitation:before,
.traditional .invitation:after {
  width: 90px;
  height: 180px;
  opacity: 0.4;
}
.traditional .invitation > p.invite-when {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
}

/* Save the date: a month calendar with the traditional wedding circled by hand */
.tw-when {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.tw-calendar {
  position: relative;
  overflow: hidden;
  padding: 56px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(56, 43, 35, 0.12);
  transform: rotate(-1.5deg);
}
/* beadwork along the top, like a beaded calendar card */
.tw-calendar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26px;
  background: #2b1f18 url("../images/traditional-border.svg") repeat-x center / auto 100%;
}
.tw-calendar table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tw-calendar caption {
  padding-bottom: 14px;
}
.tw-cal-month {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-style: italic;
  line-height: 1.1;
  color: var(--cocoa);
}
.tw-cal-year {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.tw-calendar th {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tw-calendar td {
  position: relative;
  height: 44px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.tw-calendar .is-white::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
}
.tw-calendar .is-traditional {
  font-weight: 600;
  color: var(--cocoa);
}
.tw-day {
  position: relative;
}
.tw-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 170;
}
.tw-ring-heart {
  fill: var(--caramel);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}
/* drawn in by hand once the section scrolls into view */
.tw-when:not(.is-pending) .tw-ring path:first-child {
  animation: tw-draw 1.4s ease 0.5s both;
}
.tw-when:not(.is-pending) .tw-ring-heart {
  animation: tw-pop 0.4s ease 1.8s both;
}
.tw-cal-key {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.tw-cal-key i {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.tw-key-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.tw-key-ring {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.tw-when-copy h2 {
  margin-bottom: 26px;
}
.tw-when-copy > p:not(.eyebrow) {
  margin-top: 10px;
}
.tw-when-copy .tw-numerals {
  margin-top: 30px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  font-variant-numeric: lining-nums;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.tw-numerals span {
  font-size: 0.5em;
  vertical-align: middle;
}
@keyframes tw-draw {
  from {
    stroke-dashoffset: 170;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tw-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* Countdown: cocoa with a faint cream shweshwe print and beadwork along the top and bottom */
.traditional .countdown {
  padding-top: 90px;
  padding-bottom: 90px;
  background: url("../images/shweshwe-light.svg") 0 0 / 56px 56px, var(--cocoa);
}
.traditional .countdown::before,
.traditional .countdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  background: #2b1f18 url("../images/traditional-border.svg") repeat-x center / auto 100%;
}
.traditional .countdown::before {
  top: 0;
}
.traditional .countdown::after {
  bottom: 0;
}

/* Gallery: two photographs side by side in a fine frame */
.traditional .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 28px;
}
.traditional .gallery-item {
  box-shadow: 0 0 0 2px var(--tan), 0 0 0 7px var(--paper), 0 0 0 8px #d5c2a9, 0 18px 40px rgba(56, 43, 35, 0.14);
}
.traditional .gallery-item:nth-child(even) {
  margin-top: 40px;
}

/* RSVP: the form card with a beadwork edge */
.traditional .rsvp-form {
  position: relative;
  overflow: hidden;
  padding-top: 52px;
}
.traditional .rsvp-form::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  background: #2b1f18 url("../images/traditional-border.svg") repeat-x center / auto 100%;
}
.rsvp-to {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.rsvp-to strong {
  color: var(--ink);
}

/* Footer */
.footer-shield {
  display: block;
  width: 44px;
  height: auto;
  margin: 0 auto 22px;
}

@media (max-width: 900px) {
  .traditional .hero-photo {
    left: 30%;
  }
  .tw-when {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  /* the landscape photo sits at the top so both faces show, and fades into the brown behind the names */
  .traditional .hero-photo {
    left: 0;
  }
  .traditional .hero-photo > img {
    top: 0;
    height: 430px;
    object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(#000 62%, transparent 96%);
    mask-image: linear-gradient(#000 62%, transparent 96%);
  }
  .traditional .hero-photo::after {
    display: none;
  }
  .traditional .hero-copy {
    padding-top: 392px;
  }
  .traditional h1 {
    font-size: 62px;
  }
  .traditional .traditional-band {
    height: 32px;
  }
  .traditional .invitation:before,
  .traditional .invitation:after {
    width: 40px;
    height: 80px;
    bottom: 30px;
    opacity: 0.3;
  }
  .tw-when {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .tw-calendar {
    padding: 46px 12px 18px;
    transform: none;
  }
  .tw-calendar::before {
    height: 22px;
  }
  .tw-cal-month {
    font-size: 46px;
  }
  .tw-calendar td {
    height: 40px;
    font-size: 18px;
  }
  .tw-ring {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .traditional .countdown {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .traditional .countdown::before,
  .traditional .countdown::after {
    height: 26px;
  }
  .traditional .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .traditional .gallery-item:nth-child(even) {
    margin-top: 25px;
  }
}

/* Music player: the Lindo & Anele player, with the traditional photo as the record */
.traditional .music-cover {
  background: var(--cocoa) url("../images/traditional.jpeg") 50% 30% / cover;
}

/* Where the music player rests on the first screen: over the bottom-left of the photo, clear of the names and dates.
   It floats to the bottom-left corner once the hero text has scrolled past (script.js). */
.music-dock {
  position: absolute;
  left: 24px;
  top: calc(100svh - var(--header-h) - 76px);
  width: 0;
  height: 0;
}
@media (max-width: 600px) {
  .music-dock {
    left: 12px;
    top: 316px;
  }
}
