@font-face {
  font-family: Runiga;
  src: url('fonts/Runiga-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  background: #210d12;
  --burgundy: #710912;
  --black: #210d12;
  --gold: #c28d39;
  --espresso: #362822;
  --champagne: #efe5d2;
  --site-font: Runiga, 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; overscroll-behavior-y: none; font-family: var(--site-font); }

.journey { height: 250svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
}
.backdrop {
  position: absolute;
  inset: 0;
  background: var(--black);
}
.reveal-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.4svh, 16px);
  padding: 16px 12px 30px;
}
.portrait {
  position: relative;
  flex: none;
  width: min(70vw, 680px, 70svh);
  aspect-ratio: 10 / 9;
  margin: 0;
  filter: drop-shadow(0 24px 35px #0009);
}
.wedding-countdown { width: min(100%, 540px); color: var(--champagne); text-align: center; }
.wedding-countdown__heading { margin: 0 0 11px; color: var(--champagne); font-size: clamp(.92rem, 2.6vw, 1.18rem); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.wedding-countdown__units { display: flex; align-items: start; justify-content: center; gap: clamp(8px, 2.5vw, 22px); }
.wedding-countdown__unit { display: block; min-width: clamp(57px, 12vw, 82px); }
.wedding-countdown__unit strong { display: block; color: #d9ad72; font: 400 clamp(2rem, 5.8vw, 3.15rem)/1 var(--site-font); font-variant-numeric: tabular-nums; }
.wedding-countdown__unit small { display: block; margin-top: 4px; font-size: clamp(.8rem, 2.2vw, 1rem); line-height: 1.1; }
.heart {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 48%;
  animation: heartbeat 3.2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 9%, 22%, 100% { transform: scale(1); }
  13% { transform: scale(1.032); }
  27% { transform: scale(1.018); }
  34% { transform: scale(1); }
}
.curtains {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

@media (max-width: 700px) {
  .journey { height: 260svh; }
  .portrait { width: min(96vw, 530px, 68svh); }
}

.story {
  position: relative;
  z-index: 2;
  color: var(--champagne);
  background: var(--black);
  font-family: var(--site-font);
  font-size: 1.22rem;
  line-height: 1.48;
}
.story-section {
  position: relative;
  min-height: 0;
  padding: clamp(42px, 3.5vw, 58px) 25px;
}
.story-inner { position: relative; z-index: 2; width: min(100%, 700px); margin: 0 auto; text-align: center; }
.story-inner::after { content: ''; display: table; clear: both; }
.intro {
  display: flex;
  align-items: center;
  min-height: 92svh;
  text-align: center;
}
.memory-wall { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.memory-wall--inline { position: relative; z-index: 2; inset: auto; width: clamp(169px, 25vw, 231px); margin: 22px auto; overflow: visible; }
.memory-wall--left { margin: 22px auto; }
.memory-wall--intro { width: clamp(156px, 18.75vw, 206px); margin: 38px auto 0; }
.memory-wall--inline .memory-frame, .memory-wall--timeline .memory-frame { position: relative; left: auto; right: auto; top: auto; bottom: auto; display: block; width: 100%; }
.memory-wall--timeline { z-index: 2; inset: auto; left: 3%; top: 74%; width: clamp(138px, 22.5vw, 181px); height: auto; overflow: visible; }
.rsvp-form, .dresscode-board { clear: both; }
.memory-frame {
  position: absolute;
  width: var(--frame-width);
  aspect-ratio: var(--frame-ratio, .75);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: zoom-in;
  pointer-events: auto;
  transform: rotate(var(--frame-angle, 0deg));
  filter: drop-shadow(0 18px 18px #000b);
}
.memory-frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.memory-frame.is-lightbox-source { visibility: hidden; }
.memory-frame img {
  position: absolute;
  left: var(--photo-left);
  top: var(--photo-top);
  width: var(--photo-width);
  height: var(--photo-height);
  object-fit: cover;
  object-position: var(--photo-position, center);
  border-radius: var(--photo-radius, 0);
  filter: sepia(.19) saturate(.78) contrast(1.03) brightness(.85);
}
.memory-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--frame-image) center / 100% 100% no-repeat;
}
.frame-landscape { --frame-ratio: 1.333; --frame-image: url('frames/landscape.png'); --photo-left: 15%; --photo-top: 20%; --photo-width: 70%; --photo-height: 62%; }
.frame-portrait, .frame-arch { --frame-ratio: .75; --frame-image: url('frames/portrait.png'); --photo-left: 18%; --photo-top: 16%; --photo-width: 64%; --photo-height: 68%; }
.frame-oval { --frame-ratio: .75; --frame-image: url('frames/oval.png'); --photo-left: 15%; --photo-top: 17%; --photo-width: 70%; --photo-height: 69%; --photo-radius: 50%; }
.frame-round { --frame-ratio: 1; --frame-image: url('frames/round.png'); --photo-left: 20%; --photo-top: 20%; --photo-width: 60%; --photo-height: 60%; --photo-radius: 50%; }
.memory-intro-one { --frame-width: clamp(213px, 22.5vw, 306px); --frame-angle: -7deg; left: 3%; top: 12%; }
.memory-intro-two { --frame-width: clamp(163px, 15vw, 219px); --frame-angle: 8deg; right: 5%; bottom: 8%; }
.memory-location { --frame-angle: 6deg; }
.memory-schedule { --frame-angle: -5deg; }
.memory-dress { --frame-angle: 7deg; }
.memory-details { --frame-angle: -7deg; }
.memory-rsvp { --frame-angle: 5deg; }
.eyebrow {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: .92rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .29em;
}
.story h1, .story h2, .story h3, .place-name, .closing p {
  font-family: var(--site-font);
  font-weight: 300;
}
.story h1 { margin: 0 0 30px; font-size: clamp(3.1rem, 7.5vw, 6.1rem); line-height: 1.12; letter-spacing: -.055em; }
.story h1 em { color: #d9ad72; font-style: normal; font-weight: 400; }
.story h2 { margin: 0 0 30px; font-size: clamp(2.65rem, 5.8vw, 4.8rem); line-height: 1.15; letter-spacing: -.055em; text-transform: uppercase; }
.story h3 { margin: 52px 0 18px; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
.story p { max-width: 620px; margin: 0 auto 1em; }
.intro .lead { margin: 0 auto; max-width: 570px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; }
.date-rule { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 55px; color: var(--gold); font: 300 clamp(1.5rem, 3vw, 2.2rem)/1.3 var(--site-font); }
.date-rule i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.location .place-name { margin: 28px auto 8px; color: var(--gold); font-size: clamp(2.7rem, 5vw, 3.8rem); line-height: 1.2; }
.text-link { display: inline-block; margin-top: 18px; padding-bottom: 4px; color: var(--champagne); border-bottom: 1px solid var(--gold); text-decoration: none; }
.text-link:hover, .text-link:focus-visible { color: var(--gold); }
.venue-map { width: 100%; height: clamp(240px, 39vw, 300px); margin: 24px auto 0; overflow: hidden; border: 1px solid #c28d3970; border-radius: 16px; background: #29191c; box-shadow: 0 20px 35px #0004; }
.venue-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.timeline-road { position: relative; width: min(100%, 610px); height: 820px; margin: 18px auto 0; }
.timeline-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.timeline-path path { fill: none; stroke: url('#road-gold'); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.timeline { position: relative; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; }
.timeline li { position: absolute; width: 47%; padding: 8px 10px 10px; text-align: center; background: var(--black); }
.timeline li:nth-child(1) { left: 0; top: 9%; }
.timeline li:nth-child(2) { right: 0; top: 32%; }
.timeline li:nth-child(3) { left: 0; top: 56%; }
.timeline li:nth-child(4) { right: 0; top: 80%; }
.timeline time { display: block; color: #d5ae71; font: 300 clamp(2.4rem, 5vw, 3.6rem)/1.1 var(--site-font); }
.timeline span { display: block; max-width: 200px; margin: 5px auto 0; font-size: clamp(.92rem, 1.5vw, 1.06rem); line-height: 1.42; }
.dresscode-board { width: 100%; margin: 46px auto 0; }
.palette { display: flex; flex-direction: column; gap: clamp(14px, 2.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.palette li { display: flex; flex-direction: column; justify-content: center; min-height: clamp(112px, 18vw, 150px); padding: 22px clamp(24px, 5vw, 48px); border: 0; border-radius: clamp(24px, 5vw, 34px); background: var(--color); color: var(--ink, var(--champagne)); box-shadow: 0 12px 24px #0002; }
.palette span { font: italic 400 clamp(2.05rem, 5vw, 3.2rem)/1.02 var(--site-font); letter-spacing: -.045em; }
.palette small { margin-top: 10px; font: 400 .83rem/1.1 var(--site-font); letter-spacing: .2em; }
.rsvp-form { max-width: 620px; margin: 42px auto 0; }
.rsvp-form .field-label, .rsvp-form legend, .rsvp-form > p { text-align: center; }
.field-label, .rsvp-form legend { display: block; margin: 0 0 14px; color: var(--gold); font-size: 1.08rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form input[type="text"] { width: 100%; padding: 18px 20px; border: 1px solid #c28d3966; border-radius: 0; outline: none; background: #23191a; color: var(--champagne); font: inherit; }
.rsvp-form input[type="text"]:focus { border-color: var(--gold); }
.rsvp-form input::placeholder { color: #b4a79c; }
.rsvp-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 38px 0 0; padding: 0; border: 0; }
.rsvp-form legend { grid-column: 1 / -1; width: 100%; padding: 0 0 6px; }
.rsvp-form label:has(input[type="radio"]), .rsvp-form label:has(input[type="checkbox"]) { position: relative; display: flex; align-items: center; min-height: 62px; padding: 12px 14px; border: 1px solid #c2986173; cursor: pointer; color: var(--champagne); background: #29161aa8; line-height: 1.35; box-shadow: inset 0 0 0 1px #f2d8a312, 0 8px 22px #0003; transition: border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.rsvp-form label:has(input:checked) { border-color: #ddb871; background: #521822dc; box-shadow: inset 0 0 0 1px #f2d8a341, 0 8px 24px #0005; }
.rsvp-form label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.rsvp-form label:has(input[type="radio"]):hover, .rsvp-form label:has(input[type="checkbox"]):hover { border-color: #d9ad72; }
.rsvp-form label input[type="radio"], .rsvp-form label input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rsvp-form label span { position: relative; display: flex; align-items: center; min-height: 28px; padding-left: 38px; font: 400 1.22rem/1.25 var(--site-font); letter-spacing: .015em; }
.rsvp-form label:has(input[type="radio"]) span::before, .rsvp-form label:has(input[type="checkbox"]) span::before { content: ''; position: absolute; left: 0; top: 50%; width: 23px; height: 23px; transform: translateY(-50%); border: 1px solid #d7ad70; box-shadow: inset 0 0 0 3px #271417, inset 0 0 0 4px #a17845; background: #271417; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.rsvp-form label:has(input:checked) span::before { background: linear-gradient(135deg, #e6c987, #a36928); border-color: #ead2a0; box-shadow: inset 0 0 0 2px #521822; }
.rsvp-form label:has(input:checked) span::after { content: ''; position: absolute; left: 7px; top: calc(50% - 2px); width: 10px; height: 6px; border: solid #210d12; border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(-45deg); }
.drinks-stage { position: relative; grid-column: 1 / -1; isolation: isolate; margin-top: 6px; }
.drinks-art { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.drinks-options { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 900px; padding: 22px 0; }
.drinks-options label:has(input[type="checkbox"]) { width: 78%; background: #29161a88; }
.drinks-options label:has(input[type="checkbox"]:checked) { background: #521822d9; }
.drinks-options label:nth-child(odd) { align-self: flex-end; }
.drinks-options label:nth-child(even) { align-self: flex-start; }
.drinks-hand { position: absolute; display: block; height: auto; max-width: none; opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--rotation, 0deg)); transform-origin: 50% 70%; transition: transform 1.15s cubic-bezier(.19, 1, .22, 1), opacity .8s ease; transition-delay: var(--reveal-delay, 0ms); filter: drop-shadow(0 16px 15px #0008); }
.drinks-art.will-reveal .drinks-hand { opacity: 0; transform: translate3d(var(--enter-x, 0), var(--enter-y, 0), 0) rotate(var(--rotation, 0deg)); }
.drinks-art.will-reveal.is-visible .drinks-hand { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--rotation, 0deg)); }
.drinks-hand--whiskey { --enter-x: -50%; --reveal-delay: 40ms; width: 47%; left: -6%; top: 5%; }
.drinks-hand--wine { --enter-x: 50%; --reveal-delay: 210ms; width: 49%; right: -7%; top: 28%; }
.drinks-hand--coupe { --enter-x: -52%; --enter-y: 15%; --reveal-delay: 370ms; width: 30%; left: 2%; top: 54%; }
.drinks-hand--flute { --enter-x: 45%; --enter-y: 15%; --reveal-delay: 520ms; width: 25%; right: 4%; top: 73%; }
.rsvp-form button { width: 100%; margin-top: 38px; padding: 17px 20px; border: 1px solid var(--gold); background: var(--burgundy); color: var(--champagne); cursor: pointer; font: 700 1.12rem/1.3 var(--site-font); letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form button:hover { background: #8e1723; }
.rsvp-form button:disabled { cursor: wait; opacity: .65; }
.form-note { margin: 12px 0 0; color: #c6b7aa; font-size: .85rem; }
.form-status { margin: 18px 0 0; color: var(--gold); }
.closing { padding: 100px 25px 120px; text-align: center; background: var(--black); }
.closing p { margin: 0 auto 15px; font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.08; }
.closing span { color: var(--champagne); font-size: .85rem; letter-spacing: .14em; }
body.photo-lightbox-open { overflow: hidden; }
.photo-lightbox {
  width: max-content;
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.photo-lightbox::backdrop { background: #090407; animation: lightbox-backdrop-in .45s ease both; }
.photo-lightbox.is-closing::backdrop { animation: lightbox-backdrop-out .32s ease both; }
@keyframes lightbox-backdrop-in { from { background: #09040700; } to { background: #090407; } }
@keyframes lightbox-backdrop-out { from { background: #090407; } to { background: #09040700; } }
.photo-lightbox__frame { position: relative; width: min(86vw, 62dvh, 560px); margin: 0; transform: none; cursor: default; }
.photo-lightbox__frame.frame-landscape { width: min(92vw, 76dvh, 900px); }
.photo-lightbox__frame.frame-round { width: min(82vw, 68dvh, 600px); }
.photo-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d9b475;
  border-radius: 50%;
  background: #210d12e8;
  color: #efe5d2;
  cursor: pointer;
  font-size: 0;
}
.photo-lightbox__close::before,
.photo-lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.photo-lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.photo-lightbox__close:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
@media (max-width: 600px) {
  .story-section { padding: 48px 23px 54px; }
  .intro { min-height: 0; padding-top: 270px; padding-bottom: 110px; }
  .memory-intro-one { --frame-width: 188px; left: -10px; top: 43px; }
  .memory-intro-two { --frame-width: 131px; right: 15px; top: 66px; bottom: auto; }
  .memory-wall--inline { width: clamp(125px, 36.25vw, 150px); margin: 22px auto; }
  .memory-wall--left { width: clamp(125px, 36.25vw, 150px); margin: 22px auto; }
  .memory-wall--intro { width: clamp(156px, 45vw, 194px); margin: 34px auto 0; }
  .memory-wall--timeline { top: 74%; left: 3%; width: 125px; }
  .venue-map { height: 250px; margin-top: 26px; border-radius: 12px; }
  .schedule { padding-top: 54px; padding-bottom: 54px; }
  .dresscode-board { margin-top: 38px; }
  .palette { gap: 15px; }
  .palette li { min-height: 126px; padding: 22px 28px; border-radius: 28px; }
  .palette span { font-size: clamp(2rem, 8vw, 2.45rem); }
  .details { padding-top: 54px; padding-bottom: 54px; }
  .eyebrow { font-size: .8rem; letter-spacing: .2em; }
  .timeline-road { height: 740px; }
  .timeline li { width: 49%; padding: 8px 4px; }
  .timeline time { font-size: 2.35rem; }
  .timeline span { font-size: .9rem; }
  .rsvp-form fieldset { grid-template-columns: 1fr; }
  .drinks-stage { margin: 0 -23px; }
  .drinks-options { min-height: 920px; padding: 18px 23px; }
  .drinks-options label:has(input[type="checkbox"]) { width: 82%; }
  .drinks-hand--whiskey { width: 47%; left: -7%; top: 5%; }
  .drinks-hand--wine { width: 48%; right: -8%; top: 28%; }
  .drinks-hand--coupe { width: 30%; left: 1%; top: 54%; }
  .drinks-hand--flute { width: 25%; right: 3%; top: 73%; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .story-section { padding: 54px 32px; }
  .intro { min-height: 92svh; }
}
@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; }
  .photo-lightbox::backdrop, .photo-lightbox.is-closing::backdrop { animation: none; }
  .drinks-hand { transition: none; }
  .drinks-art.will-reveal .drinks-hand { opacity: 1; transform: none; }
}
