:root {
  color-scheme: dark;
  --wine: #290f1d;
  --wine-deep: #200b16;
  --cream: #f4e8e1;
  --rose: #efa1af;
  --muted: #c8aeb6;
  --line: rgba(244, 232, 225, .17);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--wine); color: var(--cream); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--rose); outline-offset: 5px; }
::selection { background: var(--rose); color: var(--wine); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--cream); color: var(--wine); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.page-shell { max-width: 1600px; margin: 0 auto; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 29px 5.25%; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; font-family: var(--serif); font-size: 27px; letter-spacing: -.6px; }
.wordmark span { font-size: 29px; color: var(--rose); }
.header-note { font-size: .75rem; color: var(--muted); letter-spacing: .17em; }
.invitation { display: grid; grid-template-columns: 48% 52%; min-height: 750px; }
.invitation-copy { padding: 78px 9% 70px 11%; display: flex; align-items: flex-start; flex-direction: column; }
.invitation-copy > * { animation: rise-in .85s cubic-bezier(.2, .65, .3, 1) both; }
.invitation-copy > :nth-child(2) { animation-delay: .12s; }
.invitation-copy > :nth-child(3) { animation-delay: .24s; }
.invitation-copy > :nth-child(4) { animation-delay: .34s; }
.invitation-copy > :nth-child(5) { animation-delay: .44s; }
.invitation-copy > :nth-child(6) { animation-delay: .54s; }
.eyebrow { margin: 0; font-size: .75rem; line-height: 1.7; letter-spacing: .14em; font-weight: 500; color: var(--muted); }
.invitation-copy > .eyebrow { display: flex; align-items: center; gap: 15px; }
.small-line { height: 1px; width: 29px; background: var(--rose); }
h1 { font-family: var(--serif); font-size: clamp(3.6rem, 5.4vw, 5.3rem); font-weight: normal; line-height: 1.09; letter-spacing: -.045em; margin: 32px 0 24px; }
h1 em, h2 em { font-weight: normal; color: var(--rose); }
.intro { font-size: 1.12rem; line-height: 1.7; margin: 0 0 17px; }
.intro strong { font-weight: 500; }
.personal-note { margin: 0; max-width: 380px; font-size: 1rem; color: var(--muted); line-height: 1.85; }
.invitation-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; margin: 31px 0 0; }
.button { position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 19px; min-height: 55px; padding: 16px 26px; border-radius: 4px; border: 1px solid transparent; font-size: 1rem; line-height: 1.4; font-weight: 500; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.button-primary { color: #391524; background: var(--cream); }
.button-primary:hover { background: #fff5ee; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.button-primary span { font-family: var(--serif); font-size: 23px; line-height: 1; }
.button-primary::after { content: ''; position: absolute; inset: -50% -40%; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 49%, transparent 63%); transform: translateX(-110%); }
.button-primary:hover::after { animation: button-glimmer .85s ease; }
.button:active { transform: translateY(1px) scale(.985); }
.button:disabled { cursor: wait; opacity: .78; }
.button.is-accepted { box-shadow: 0 0 0 1px rgba(239, 161, 175, .45), 0 8px 35px rgba(239, 161, 175, .12); }
.button.is-accepted span { animation: heart-beat .65s ease 2; }
.date-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 33px; }
.date-note > span { font-size: 26px; line-height: 1; color: var(--rose); }
.date-note p { margin: 0; line-height: 1.6; font-size: .875rem; }
.date-note p span { color: var(--muted); }
.portrait { position: relative; min-width: 0; overflow: hidden; margin: 0; background: #161320; isolation: isolate; }
.portrait img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; display: block; transition: opacity 1.15s ease, transform 1.75s cubic-bezier(.2, .65, .3, 1); }
.portrait-inviting { opacity: 1; transform: scale(1); }
.portrait img.portrait-bouquet { opacity: 0; transform: scale(1.055); }
.portrait.is-accepted .portrait-inviting { opacity: 0; transform: scale(1.035); }
.portrait.is-accepted img.portrait-bouquet { opacity: 1; transform: scale(1); }
.portrait::after { content: ''; position: absolute; z-index: 3; inset: 0; border: 1px solid rgba(239, 161, 175, .65); pointer-events: none; opacity: 0; }
.portrait.is-accepted::after { animation: portrait-glow 1.7s ease both; }
.portrait-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 8, 16, .3) 0%, transparent 27%, transparent 50%, rgba(28, 9, 19, .88) 100%), linear-gradient(90deg, rgba(41, 15, 29, .28), transparent 30%); }
.photo-top { position: absolute; z-index: 2; top: 34px; left: 37px; right: 22px; display: flex; align-items: center; gap: 12px; font-size: .75rem; line-height: 1.6; letter-spacing: .13em; color: #fff5ee; text-shadow: 0 1px 12px #000; }
.photo-line { flex: 0 0 23px; height: 1px; background: #fff5ee; }
.portrait figcaption { position: absolute; z-index: 2; bottom: 49px; left: 48px; right: 35px; transition: opacity .28s ease, transform .45s ease; }
.portrait.is-changing figcaption { opacity: 0; transform: translateY(10px); }
.caption-small { font-size: .75rem; letter-spacing: .16em; line-height: 1.7; color: #e5cfd1; }
.portrait figcaption p { font-family: var(--serif); font-size: clamp(2.4rem, 3.1vw, 3.25rem); font-weight: normal; line-height: 1.15; letter-spacing: -.025em; margin: 17px 0 0; }
.portrait figcaption em { color: #efbcc3; }
.photo-corner { position: absolute; right: 43px; bottom: 46px; z-index: 2; font-family: var(--serif); color: #efbcc3; font-size: 45px; line-height: 1; }
.evening { display: grid; grid-template-columns: 31% 1fr; gap: 55px; padding: 80px 5.25% 78px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evening-heading h2 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.2; font-weight: normal; letter-spacing: -.03em; margin: 21px 0 0; }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 6px; }
.moment-number { display: inline-block; font-family: var(--serif); font-size: 27px; font-style: italic; color: var(--rose); padding-bottom: 20px; }
.moment h3 { font-family: var(--serif); font-size: 1.32rem; font-weight: normal; line-height: 1.35; margin: 0 0 14px; }
.moment p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; max-width: 205px; }
.last-note { text-align: center; padding: 63px 25px 72px; background: var(--wine-deep); }
.note-heart { font-size: 37px; font-family: var(--serif); color: var(--rose); }
.last-note p { font-size: clamp(1.8rem, 3.1vw, 3.15rem); font-family: var(--serif); line-height: 1.3; letter-spacing: -.03em; margin: 23px 0 29px; }
.last-note em { color: var(--rose); }
.button-outline { background: transparent; border-color: rgba(239, 161, 175, .42); color: var(--cream); font-size: .875rem; padding: 14px 23px; min-height: 49px; }
.button-outline:hover { background: rgba(239, 161, 175, .09); border-color: var(--rose); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: .8125rem; line-height: 1.7; padding: 23px 5.25%; border-top: 1px solid var(--line); }
footer span:last-child { font-size: 24px; color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease var(--reveal-delay, 0ms), transform .85s cubic-bezier(.2, .65, .3, 1) var(--reveal-delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.celebration { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 8; }
.celebration span { position: absolute; left: var(--heart-x); top: var(--heart-y); color: var(--heart-color); font-family: var(--serif); font-size: var(--heart-size); line-height: 1; opacity: 0; animation: heart-flight var(--heart-duration) cubic-bezier(.18, .55, .35, 1) var(--heart-delay) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes button-glimmer { to { transform: translateX(110%); } }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.28); } 65% { transform: scale(1.08); } }
@keyframes portrait-glow { 0% { opacity: 0; box-shadow: inset 0 0 0 rgba(239, 161, 175, 0); } 35% { opacity: 1; box-shadow: inset 0 0 45px rgba(239, 161, 175, .15); } 100% { opacity: 0; box-shadow: inset 0 0 0 rgba(239, 161, 175, 0); } }
@keyframes heart-flight { 0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.5) rotate(0deg); } 15% { opacity: .85; } 75% { opacity: .7; } 100% { opacity: 0; transform: translate3d(var(--heart-drift), var(--heart-rise), 0) scale(1.2) rotate(var(--heart-rotation)); } }
@media (min-width: 1600px) { h1 { font-size: 5.3rem; } }
@media (max-width: 1150px) {
  .invitation-copy { padding: 62px 8% 58px 10%; }
  h1 { font-size: 4.1rem; }
  .invitation { min-height: 750px; }
  .evening { gap: 32px; grid-template-columns: 28% 1fr; }
  .moments { gap: 20px; }
  .portrait figcaption { left: 32px; }
  .photo-top { left: 29px; }
}
@media (max-width: 900px) {
  .invitation { grid-template-columns: 1fr 1fr; min-height: 720px; }
  .header { padding: 23px 5%; }
  .header-note { font-size: .75rem; letter-spacing: .1em; }
  .invitation-copy { padding: 50px 8% 45px 10%; }
  h1 { font-size: 3.3rem; }
  .intro { font-size: 1rem; }
  .personal-note { font-size: 1rem; line-height: 1.75; }
  .button { gap: 12px; padding: 15px 18px; }
  .photo-top { font-size: .75rem; gap: 9px; letter-spacing: .06em; }
  .photo-line { flex-basis: 14px; }
  .photo-corner { display: none; }
  .portrait figcaption p { font-size: 2.4rem; }
  .evening { grid-template-columns: 1fr; gap: 38px; padding: 54px 5%; }
  .evening-heading h2 br { display: none; }
  .evening-heading h2 em::before { content: ' '; }
  .moments { gap: 32px; }
}
@media (max-width: 650px) {
  .header { padding: 20px 24px; }
  .wordmark { font-size: 25px; }
  .header-note { max-width: 145px; text-align: right; font-size: .75rem; line-height: 1.6; letter-spacing: .09em; }
  .invitation { display: flex; flex-direction: column; }
  .invitation-copy { padding: 43px 26px 37px; }
  .invitation-copy > .eyebrow { font-size: .75rem; gap: 12px; }
  h1 { font-size: clamp(2.8rem, 10.25vw, 4rem); line-height: 1.12; margin: 25px 0 20px; }
  .intro { font-size: 1.0625rem; }
  .personal-note { max-width: 450px; }
  .invitation-actions { margin-top: 25px; gap: 18px; width: 100%; }
  .button-primary { width: 100%; justify-content: space-between; padding: 16px 23px; }
  .date-note { margin-top: 24px; }
  .portrait { min-height: 560px; height: min(139vw, 650px); }
  .portrait img { object-position: center 28%; }
  .photo-top { top: 24px; left: 25px; font-size: .75rem; letter-spacing: .08em; }
  .portrait figcaption { bottom: 32px; left: 26px; }
  .portrait figcaption p { font-size: 2.8rem; }
  .caption-small { font-size: .75rem; }
  .evening { padding: 43px 26px 47px; gap: 34px; }
  .evening-heading h2 { font-size: 2.25rem; line-height: 1.2; margin-top: 17px; }
  .evening-heading h2 br { display: initial; }
  .moments { display: flex; flex-direction: column; gap: 24px; }
  .moment { display: grid; grid-template-columns: 42px 1fr; column-gap: 17px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .moment:last-child { padding-bottom: 0; border: 0; }
  .moment-number { grid-row: 1 / 3; font-size: 27px; padding: 0; }
  .moment h3 { font-size: 1.4rem; margin-bottom: 9px; }
  .moment p { font-size: 1rem; max-width: none; line-height: 1.65; }
  .last-note { padding: 43px 26px 48px; }
  .last-note p { font-size: clamp(1.8rem, 7vw, 2.5rem); margin: 18px 0 25px; }
  footer { padding: 21px 26px; font-size: .8125rem; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .celebration { display: none; }
}
