:root {
  --wine: #790632;
  --ivory: #fff4db;
  --champagne: #f3ff76;
  --blush: #fff4ec;
  --line: rgb(255 244 219 / 35%);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Bricolage Grotesque', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: #a3054e; color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--champagne); outline-offset: 6px; }
button[hidden] { display: none; }
::selection { background: var(--champagne); color: var(--wine); }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 14px 20px; background: var(--ivory); color: var(--wine); }
.skip-link:focus { top: 16px; }
.site { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: radial-gradient(ellipse at 0% 54%, #ff0789 0%, transparent 52%), radial-gradient(ellipse at 100% 43%, #ff007b 0%, transparent 58%), linear-gradient(165deg, #850037 0%, #c50057 34%, #d6005b 70%, #9e0039 100%); }
.star-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star-sky canvas { display: block; width: 100%; height: 100%; }
.site-header { position: relative; z-index: 1; height: 88px; max-width: 1600px; margin: auto; padding: 0 clamp(24px, 5.3vw, 88px); display: flex; align-items: center; justify-content: space-between; }
.signature { font: italic 900 33px/1 var(--serif); letter-spacing: -.08em; white-space: nowrap; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.signature em { color: var(--champagne); }
.language { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.language > span { color: var(--ivory); }
.language button { min-width: 44px; min-height: 44px; padding: 10px; background: none; border: 0; color: var(--ivory); font-size: 13px; font-weight: 700; }
.language button.is-selected { color: var(--champagne); }
.invitation { position: relative; max-width: 1440px; min-height: 800px; margin: auto; padding: 72px clamp(32px, 6.4vw, 100px) 54px; }
.invitation-copy { position: relative; z-index: 1; width: 59%; }
.eyebrow { margin: 0 0 25px; color: var(--champagne); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase; }
h1 { position: relative; margin: 0; font: italic 900 clamp(96px, 10.8vw, 166px)/.88 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.05em; transform: rotate(-3deg); text-shadow: 0 4px 0 rgb(103 0 54 / 18%); }
h1 > span { display: block; width: max-content; white-space: nowrap; }
h1 em { color: var(--champagne); font-weight: 900; font-size: .83em; }
.name-second { font-size: .74em; margin-top: .05em; letter-spacing: -.05em; }
.love-note { margin: 33px 0 26px; font: 700 clamp(18px, 1.75vw, 25px)/1.33 var(--sans); color: var(--ivory); letter-spacing: -.025em; }
.date-block { width: max-content; max-width: 100%; text-align: center; }
.date-block time { display: inline-block; padding: 8px 19px 11px; border-radius: 18px; background: var(--champagne); color: var(--wine); font: italic 900 clamp(46px, 4.4vw, 66px)/1 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; white-space: nowrap; letter-spacing: -.05em; transform: rotate(-3deg); }
.date-block p { margin: 17px 0 0; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--ivory); }
.calendar-cta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 57px; margin-top: 23px; padding: 15px 24px; border: 0; border-radius: 999px; color: var(--wine); background: var(--ivory); font-size: 16px; font-weight: 700; letter-spacing: -.02em; transition: background .2s, transform .2s; }
.calendar-cta svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cta-arrow { margin-left: 5px; font-size: 29px; line-height: .75; transition: transform .2s; }
.calendar-cta:hover { background: var(--champagne); transform: translateY(-2px); }
.calendar-cta:hover .cta-arrow { transform: translateX(3px); }
.portrait { position: absolute; top: 0; right: 1%; bottom: 0; width: 46%; margin: 0; pointer-events: none; mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.closing { position: relative; max-width: 1050px; margin: 0 auto; padding: 0 24px 28px; text-align: center; }
.closing-star { width: 30px; height: 30px; color: var(--champagne); }
.closing h2 { margin: 18px 0 15px; font: 900 clamp(31px, 3.9vw, 57px)/1.05 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.05em; text-wrap: balance; }
.closing p { margin: 0; color: var(--ivory); font-size: 15px; font-weight: 600; line-height: 1.6; text-wrap: balance; }
.footer { position: relative; padding: 10px 24px 24px; text-align: center; }
.footer > p { margin: 0; color: var(--ivory); font: 600 14px/1.5 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 10px 12px; border: 0; color: var(--ivory); background: transparent; font-size: 11px; font-weight: 600; }
.motion-toggle svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.motion-toggle .play-icon, .motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.calendar-dialog { margin: auto; padding: 0; width: min(500px, calc(100vw - 32px)); max-height: 90dvh; overflow: auto; border: 0; border-radius: 22px; background: var(--ivory); color: var(--wine); box-shadow: 0 25px 100px #79063255; color-scheme: light; }
.calendar-dialog::backdrop { background: rgb(61 0 35 / 78%); backdrop-filter: blur(7px); }
body:has(dialog[open]) { overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid #e3cabf; }
.modal-header .signature em { color: #e20c71; }
.dialog-close { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal-body { padding: 24px 28px 30px; }
.modal-kicker { font-size: 10px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; color: #a40a4b; }
.modal-body h2 { margin: 23px 0 18px; font: 900 39px/1.04 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.05em; }
.modal-description { font-size: 14px; line-height: 1.65; color: #67414d; }
.calendar-options { margin-top: 26px; border-top: 1px solid #e3cabf; }
.calendar-option { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid #e3cabf; font-size: 15px; font-weight: 700; }
.calendar-option:hover { color: #cb045c; }
.calendar-option span { font-size: 25px; }
.modal-footer { margin: 26px 0 0; font: 700 18px/1.2 var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  .invitation-copy { animation: arrive .6s ease-out both; }
  .portrait { animation: arrive .8s ease-out both; }
  @keyframes arrive { from { opacity: .6; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .invitation { min-height: 760px; padding-top: 80px; }
  h1 { font-size: clamp(78px, 10.4vw, 114px); }
  .portrait { width: 48%; right: 0; bottom: 24px; }
  .love-note { font-size: 19px; }
  .date-block time { font-size: 44px; }
  .date-block p { font-size: 19px; }
}
@media (max-width: 700px) {
  .site-header { height: 70px; padding: 0 23px; }
  .signature { font-size: 27px; }
  .language { gap: 0; }
  .invitation { min-height: 0; padding: 79px 22px 0; display: flex; flex-direction: column; align-items: center; }
  .invitation-copy { width: 100%; text-align: center; }
  .eyebrow { margin-bottom: 20px; font-size: 12px; letter-spacing: .1em; }
  h1 { font-size: clamp(63px, 24.5vw, 145px); line-height: .91; letter-spacing: -.05em; }
  h1 > span { margin-inline: auto; }
  .name-second { font-size: .74em; }
  .love-note { margin: 23px 0 24px; font-size: clamp(15px, 4.35vw, 20px); line-height: 1.32; }
  .date-block { margin: auto; }
  .date-block time { padding: 7px 15px 10px; border-radius: 15px; font-size: clamp(32px, 11.9vw, 64px); }
  .date-block p { margin-top: 15px; font-size: 19px; }
  .calendar-cta { width: min(100%, 310px); min-height: 54px; margin-top: 19px; padding: 14px 18px; font-size: 15px; }
  .portrait { position: relative; top: auto; bottom: auto; right: auto; width: min(92vw, 460px); margin: 18px -22px -8px; mask-image: linear-gradient(to bottom, #000 73%, transparent 99%); }
  .portrait img { height: auto; }
  .closing { padding: 0 23px 25px; }
  .closing-star { width: 25px; height: 25px; }
  .closing h2 { margin: 17px 0 14px; font-size: clamp(28px, 7.3vw, 43px); }
  .closing p { max-width: 330px; margin: auto; font-size: 13px; font-weight: 600; line-height: 1.6; }
  .footer { padding: 9px 23px 20px; }
  .footer > p { max-width: 330px; margin: auto; font-size: 12px; }
  .modal-body { padding: 20px 22px 26px; }
  .modal-header { padding: 13px 22px; }
  .modal-body h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
