@font-face { font-family: 'Darrel Allura'; src: url('./assets/fonts/darrel-allura.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
/* Antique toile, ivory stationery and olive green, inspired by the supplied template. */
@font-face {
  font-family: 'Cormorant Garamond Invitation';
  src: url('./assets/fonts/cormorant-garamond.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --heritage-olive: #565831;
  --heritage-ink: #414229;
  --heritage-paper: #fbfaf5;
  --heritage-gold: #b49961;
  --heritage-serif: 'Cormorant Garamond Invitation', 'Times New Roman', serif;
  --heritage-script: 'Darrel Allura', cursive;
}
body.heritage-ready { background-color: var(--heritage-olive); }
body.heritage-ready .invitation {
  background: #e9e6dc url('./assets/heritage-toile.png') center top / 448px auto repeat-y !important;
  color: var(--heritage-ink) !important;
  overflow: hidden;
}
.heritage-content {
  position: relative;
  padding: 24px 0 95px;
  font-family: var(--heritage-serif);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--heritage-ink);
  text-align: center;
}
.heritage-content *, .heritage-content *::before, .heritage-content *::after { box-sizing: border-box; }
.heritage-content h1, .heritage-content h2, .heritage-content h3,
.heritage-content p, .heritage-content ol { margin: 0; font-weight: 400; }
.heritage-content button, .heritage-content a, .heritage-content input { -webkit-tap-highlight-color: transparent; }
.heritage-content button { font: inherit; cursor: pointer; }
.heritage-content a { color: inherit; }
.heritage-content button:focus-visible, .heritage-content a:focus-visible,
.heritage-content input:focus-visible { outline: 2px solid var(--heritage-gold); outline-offset: 5px; }
.heritage-content h2 {
  font-family: var(--heritage-serif);
  font-size: 27px;
  letter-spacing: .035em;
  text-transform: uppercase;
  line-height: 1.2;
}
.heritage-section { position: relative; width: calc(100% - 76px); margin: 44px auto; }
.heritage-svg-defs { position: absolute; }
.heritage-paper { position: relative; padding: 36px 28px; isolation: isolate; filter: drop-shadow(1px 5px 4px rgb(46 42 30 / 20%)); }
.heritage-paper::before {
  content: ''; position: absolute; inset: -6px; z-index: -1;
  background: repeating-linear-gradient(5deg, #ffffff07 0 1px, #a6a29408 1px 2px), var(--heritage-paper);
  mask: url('./assets/heritage-deckle.svg') center / 100% 100% no-repeat;
  -webkit-mask: url('./assets/heritage-deckle.svg') center / 100% 100% no-repeat;
}
.heritage-small-label { font-size: 13px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.heritage-script-label { font-family: var(--heritage-script); font-size: 43px; line-height: 1.5; color: var(--heritage-olive); }
.heritage-seal { width: 85px; height: auto; filter: drop-shadow(1px 4px 3px rgb(44 34 12 / 22%)); pointer-events: none; }
.heritage-botanical { position: absolute; width: 125px; height: auto; pointer-events: none; filter: drop-shadow(1px 4px 3px rgb(35 35 15 / 20%)); z-index: 5; }
.heritage-letter {
  position: absolute; inset: 14px 18px -14px 4px; overflow: hidden; padding: 22px 18px;
  background: #eeedda; transform: rotate(-6deg); box-shadow: 0 3px 5px #40351f40;
  color: #60613c9c; text-align: left;
}
.heritage-tag { position: absolute; width: 105px; z-index: 5; filter: drop-shadow(1px 4px 3px #3b361d40); }
.heritage-tag-face {
  position: relative; height: 107px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 12px; background: var(--heritage-olive); color: #eee8cc;
  mask: url('./assets/heritage-badge.svg') center / 100% 100% no-repeat;
  -webkit-mask: url('./assets/heritage-badge.svg') center / 100% 100% no-repeat;
}
.heritage-tag-face::after { content: ''; position: absolute; inset: 9px; border: 1px solid #d4c89555; border-radius: 50%; }
.heritage-tag-face span { font-size: 10px; line-height: 1.6; text-transform: uppercase; letter-spacing: .06em; }
.heritage-tag > img { display: block; width: 27px; height: 68px; margin: -3px auto 0; }

/* Landscape arch rising from a folded olive pocket. */
.heritage-hero { width: calc(100% - 42px); margin-top: 0; margin-bottom: 30px; }
.heritage-masthead { display: flex; justify-content: center; align-items: center; padding: 8px 0 7px; }
.heritage-monogram { display: block; width: 217px; max-width: 100%; height: auto; }
.heritage-envelope { position: relative; height: 483px; width: 100%; filter: drop-shadow(0 4px 3px #332c1e3b); }
.heritage-arch-frame { position: absolute; inset: 0 0 42px; background: var(--heritage-olive); clip-path: url('#heritage-arch'); }
.heritage-arch-frame > img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; clip-path: url('#heritage-arch'); }
.heritage-pocket { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 213px; }
.heritage-pocket > span { position: absolute; inset: 0; }
.pocket-left { background: linear-gradient(132deg, #696b42 0, var(--heritage-olive) 45%, #444623 100%); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pocket-right { background: linear-gradient(226deg, #65673d 0, var(--heritage-olive) 45%, #41431f 100%); clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.pocket-bottom { background: linear-gradient(180deg, #65673c, var(--heritage-olive) 50%, #4b4d29); clip-path: polygon(0 100%, 0 95%, 50% 43%, 100% 95%, 100% 100%); }
.heritage-pocket .heritage-seal { position: absolute; left: 50%; top: 25%; transform: translateX(-50%) rotate(-12deg); }
.heritage-content .heritage-cover-date { display: inline-block; margin-top: 12px !important; padding: 9px 14px; background: #fbfaf5ed; color: var(--heritage-ink); font-family: var(--heritage-serif); font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: .045em; }

/* Working song controls on a torn-paper slip. */
.heritage-music { margin-top: 0; margin-bottom: 74px; }
.heritage-music-paper { padding: 26px 27px 24px; transform: rotate(-1.5deg); }
.heritage-melody { display: grid; place-items: center; color: var(--heritage-olive); }
.heritage-melody svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.heritage-track { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; margin: 14px 0; }
.heritage-track > span { font: 10px/1 var(--heritage-serif); font-variant-numeric: tabular-nums; }
.heritage-seek { appearance: none; -webkit-appearance: none; width: 100%; height: 2px; background: var(--heritage-olive); accent-color: var(--heritage-olive); cursor: pointer; }
.heritage-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: var(--heritage-olive); }
.heritage-player { display: flex; align-items: center; justify-content: center; gap: 21px; }
.heritage-player button { display: grid; place-items: center; width: 33px; height: 33px; padding: 5px; color: var(--heritage-olive); background: none; border: 0; }
.heritage-player svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.heritage-player button.heritage-play { width: 44px; height: 44px; border-radius: 50%; background: var(--heritage-olive); color: var(--heritage-paper); }
.heritage-play svg { width: 23px; height: 23px; }
.heritage-flower-music { right: -8px; bottom: -76px; width: 118px; transform: rotate(18deg); }

/* Invitation note, calendar and keepsake date tag. */
.heritage-announcement { margin-top: 92px; margin-bottom: 116px; }
.heritage-announcement .heritage-letter { inset: 32px -3px -6px 18px; transform: rotate(6deg); }
.heritage-announcement-paper { width: calc(100% - 16px); padding: 36px 28px 54px; transform: rotate(-3deg); }
.heritage-announcement-label { margin-top: 0 !important; font-size: 17px; letter-spacing: .055em; }
.heritage-couple-script { position: relative; display: flex; flex-direction: column; font: 67px/1.08 var(--heritage-script); color: var(--heritage-olive); padding: 22px 0 26px; }
.heritage-couple-script span:first-child { align-self: flex-start; }
.heritage-couple-script span:last-child { align-self: flex-end; }
.heritage-couple-script em { font: 31px/1 var(--heritage-script); align-self: center; margin: 8px 0 16px; }
.heritage-invitation-line { font-size: 19px; line-height: 1.35; }
.heritage-tag-date { right: -14px; bottom: -110px; transform: rotate(7deg); }
.heritage-tag-date span:first-child { font-size: 27px; line-height: 1.15; }
.heritage-calendar { margin: 75px auto 91px; }
.heritage-calendar-paper { width: 88%; padding: 24px 22px 30px; margin-left: 3px; transform: rotate(2deg); }
.heritage-calendar .heritage-script-label { font-size: 37px; }
.heritage-calendar h2 { font-size: 23px; }
.heritage-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 12px; align-items: center; margin: 24px 0 28px; }
.heritage-calendar-grid > span { position: relative; display: grid; place-items: center; height: 24px; font: 14px/1 var(--heritage-serif); }
.heritage-calendar-grid > .heritage-weekday { font-size: 8px; letter-spacing: .04em; margin-bottom: 2px; }
.heritage-day-selected::before { content: ''; position: absolute; inset: -3px -2px; border: 1px solid var(--heritage-gold); border-radius: 49% 43% 48% 44%; transform: rotate(-14deg); }
.heritage-day-selected { font-weight: 600 !important; color: var(--heritage-olive); }
.heritage-outline-button { display: inline-block; padding: 7px 13px; border: 1px solid #85846a; border-radius: 6px; color: var(--heritage-olive) !important; background: transparent; text-decoration: none; font: 15px/1.3 var(--heritage-serif) !important; }
.heritage-outline-button:hover { background: #5658310d; }
.heritage-add-calendar { padding: 7px 9px; font-size: 13px !important; }
.heritage-flower-calendar { bottom: -47px; right: -15px; width: 126px; transform: rotate(-14deg); }

/* Venue note with a sealed envelope behind it. */
.heritage-venue { margin-top: 144px; margin-bottom: 75px; }
.heritage-venue-paper { margin: 0 0 0 13px; padding: 32px 23px 29px; transform: rotate(-2deg); }
.heritage-venue h2 { font-size: 23px; margin-bottom: 26px; }
.heritage-venue-grid { display: grid; grid-template-columns: 70px 1fr; align-items: center; text-align: left; margin-bottom: 23px; }
.heritage-venue-grid > div { padding-left: 15px; border-left: 1px solid var(--heritage-gold); }
.heritage-venue-time { font-style: italic; font-size: 24px; }
.heritage-venue h3 { font-size: 20px; line-height: 1.15; font-style: italic; margin-bottom: 7px; }
.heritage-venue-grid > div p { font-size: 16px; line-height: 1.25; }
.heritage-mini-envelope { position: absolute; right: 2px; top: -87px; width: 168px; height: 113px; background: linear-gradient(130deg, #67693f, var(--heritage-olive) 50%, #40421f); box-shadow: 0 3px 6px #332a274a; transform: rotate(7deg); }
.heritage-mini-envelope::before { content: ''; position: absolute; inset: 0; background: linear-gradient(170deg, #6b6e42, var(--heritage-olive)); clip-path: polygon(0 0, 50% 73%, 100% 0); filter: drop-shadow(0 2px 2px #27281799); }
.heritage-mini-envelope .heritage-seal { position: absolute; bottom: -5px; left: 58px; width: 52px; }
.heritage-seal-loose { position: absolute; top: -91px; left: 5px; width: 62px; transform: rotate(12deg); }

/* Fine line timeline on the main olive card. */
.heritage-programme { padding: 2px 0 45px; margin-top: 55px; margin-bottom: 25px; }
.heritage-programme .heritage-letter { inset: 115px 46px 16px -13px; transform: rotate(-6deg); }
.heritage-olive-card { position: relative; background: var(--heritage-olive); color: #f8f4e7; padding: 32px 23px; box-shadow: 0 3px 5px #352d2333; }
.heritage-programme .heritage-olive-card { width: 87%; margin-left: auto; padding: 29px 21px 34px; }
.heritage-programme h2 { font-size: 33px; letter-spacing: .015em; }
.heritage-timeline { position: relative; list-style: none; margin-top: 29px !important; padding: 0; }
.heritage-timeline::before { content: ''; position: absolute; width: 1px; top: 24px; bottom: 29px; left: 50%; background: #e8dec19c; }
.heritage-timeline li { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; min-height: 88px; position: relative; }
.heritage-event-icon { grid-column: 1; grid-row: 1; display: grid; place-items: center; }
.heritage-event-icon img { width: 51px; height: 51px; object-fit: contain; }
.heritage-event-dot { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #eee5cf; background: var(--heritage-olive); justify-self: center; }
.heritage-event-copy { grid-column: 3; grid-row: 1; text-align: left; padding-left: 8px; }
.heritage-event-copy time { display: block; font-size: 15px; font-variant-numeric: tabular-nums; margin-bottom: 4px; letter-spacing: .06em; }
.heritage-event-copy > span { display: block; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; line-height: 1.45; }
.heritage-timeline li:nth-child(even) .heritage-event-icon { grid-column: 3; }
.heritage-timeline li:nth-child(even) .heritage-event-copy { grid-column: 1; text-align: right; padding: 0 8px 0 0; }
.heritage-seal-programme { position: absolute; right: -14px; bottom: -18px; width: 77px; transform: rotate(20deg); }
.heritage-countdown { margin: 39px auto 57px; }
.heritage-countdown .heritage-script-label { font-size: 45px; font-weight: 500; -webkit-text-stroke: .22px currentColor; }
.heritage-countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.heritage-countdown-grid > div { position: relative; display: flex; flex-direction: column; gap: 6px; }
.heritage-countdown-grid > div + div::before { content: ':'; position: absolute; top: -2px; left: -4px; font: 36px/1 var(--heritage-serif); }
.heritage-countdown-grid [data-countdown] { font: 42px/1 var(--heritage-serif); font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.heritage-countdown-grid > div > span:last-child { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .075em; }

/* Layered dress-code notes and a tasseled keepsake. */
.heritage-dress { min-height: 324px; margin-bottom: 56px; }
.heritage-dress .heritage-olive-card { width: 70%; min-height: 116px; display: grid; place-items: center; }
.heritage-dress h2 { font-size: 27px; }
.heritage-dress-paper { width: 75%; margin-left: auto; padding: 31px 20px 32px 31px; transform: rotate(2deg); margin-top: -2px; }
.heritage-dress-paper p { font-size: 20px; line-height: 1.4; }
.heritage-tag-dress { top: 110px; left: -3px; transform: rotate(-6deg); }
.heritage-tag-dress .heritage-tag-face span { font-size: 11px; }
.heritage-flower-dress { width: 104px; right: -5px; top: 16px; transform: rotate(18deg); }

/* An arched, envelope-framed photo album with a usable QR code. */
.heritage-album { width: calc(100% - 58px); margin: 45px auto 64px; }
.heritage-album-envelope { height: 740px; }
.heritage-album .heritage-arch-frame { bottom: 75px; }
.heritage-album .heritage-arch-frame img { object-position: center; }
.heritage-album-paper { position: absolute; z-index: 2; top: 106px; left: 20px; right: 20px; padding: 32px 22px 60px; }
.heritage-album-paper h2 { font-size: 25px; }
.heritage-album-subtitle { margin-top: 12px !important; font-family: var(--heritage-serif); font-size: 15px; line-height: 1.4; }
.heritage-qr { display: block; width: 154px; height: 154px; padding: 12px; margin: 20px auto; background: #fff; box-shadow: 0 0 0 1px #c9c5ae; }
.heritage-qr svg { display: block; width: 100%; height: 100%; }
.heritage-qr svg path:not([fill='#FFFFFF']) { fill: var(--heritage-olive); }
.heritage-album-footer { font-size: 15px; line-height: 1.4; }
.heritage-album .heritage-pocket { height: 163px; }
.heritage-album .heritage-pocket .heritage-seal { width: 76px; }
.heritage-farewell { margin-top: 15px; }
.heritage-farewell-paper { padding: 35px 28px 32px; transform: rotate(-2deg); }
.heritage-farewell-paper > p:first-child { font-size: 21px; line-height: 1.45; }
.heritage-farewell-names { font: 42px/1.3 var(--heritage-script); margin: 26px 0 20px !important; }
.heritage-farewell-names span { font: 28px/1 var(--heritage-script); margin: 0 9px; }
.heritage-farewell .heritage-small-label { font-size: 11px; }
.heritage-flower-farewell { left: -20px; bottom: -81px; width: 125px; transform: rotate(18deg); }

/* Floating audio toggle in the invitation palette. */
body.heritage-ready button:has(img[src*='speaker-']) { background-color: var(--heritage-olive) !important; }

.heritage-venue h2,
.heritage-programme h2,
.heritage-dress h2,
.heritage-album-paper h2 {
  font-family: var(--heritage-script);
  font-size: 43px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 390px) {
  .heritage-section { width: calc(100% - 54px); }
  .heritage-hero { width: calc(100% - 30px); }
  .heritage-content .heritage-cover-date { font-size: 18px; padding: 9px 10px; }
  .heritage-couple-script { font-size: 57px; }
  .heritage-paper { padding-left: 23px; padding-right: 23px; }
  .heritage-programme .heritage-olive-card { width: 91%; padding-left: 16px; padding-right: 16px; }
  .heritage-event-copy > span { font-size: 11px; }
  .heritage-countdown-grid [data-countdown] { font-size: 35px; }
  .heritage-countdown-grid > div > span:last-child { font-size: 9px; }
  .heritage-venue-grid { grid-template-columns: 58px 1fr; }
  .heritage-venue-grid > div { padding-left: 12px; }
  .heritage-venue h3 { font-size: 18px; }
  .heritage-venue-time { font-size: 22px; }
  .heritage-album { width: calc(100% - 38px); }
  .heritage-album-paper { left: 17px; right: 17px; padding: 30px 20px 60px; }
  .heritage-album-subtitle, .heritage-album-footer { font-size: 14px; }
  .heritage-farewell-names { font-size: 36px; }
}
