@font-face {
  font-family: Prata;
  src: url("assets/fonts/Prata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --ivory: #f8f2e4;
  --linen: #eee4ce;
  --wine: #792f36;
  --wine-deep: #542127;
  --gold: #98743b;
  --ink: #29483b;
  --muted: #69604d;
  --line: #c7b28c;
  --display: Prata, Georgia, serif;
  --body: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(24px, 5vw, 80px);
  --section: clamp(88px, 9vw, 144px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
}
::selection {
  background: var(--wine);
  color: var(--ivory);
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 6px;
}
button {
  cursor: pointer;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--wine);
}
h3 {
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
p {
  max-width: 68ch;
}
p + p {
  margin-top: 18px;
}
.section {
  padding: var(--section) var(--gutter);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ivory);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.masthead {
  height: 78px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.monogram {
  font-family: var(--display);
  font-size: 24px;
  text-decoration: none;
  color: var(--wine);
}
.monogram span {
  font-family: Georgia, serif;
  font-size: 18px;
  padding: 0 3px;
}
.header-date {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-decoration: none;
}
.music-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  font-size: 12px;
  min-height: 44px;
}
.music-control[hidden] {
  display: none;
}
.music-control[aria-pressed="true"] {
  color: var(--wine);
}
.music-control svg {
  width: 18px;
  height: 18px;
}
.music-status {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: calc(100% - 40px);
  background: var(--wine);
  color: var(--ivory);
  font-size: 13px;
  box-shadow: 0 8px 25px #54212726;
}
.music-status:not(:empty) {
  padding: 12px 18px;
}
.invitation {
  padding: 24px;
  perspective: 1800px;
}
.invitation-paper {
  position: relative;
  min-height: calc(100svh - 126px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--linen);
  display: flex;
  align-items: center;
  isolation: isolate;
  transform-style: preserve-3d;
}
.invitation-paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #98743b70;
  pointer-events: none;
  z-index: 3;
}
.invitation-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    #fff8e8b3 48%,
    transparent 72%
  );
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.lamp-scene {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -2;
}
.lamp-scene img {
  height: 100%;
  object-fit: cover;
  object-position: 43% 50%;
  opacity: 0.68;
}
.lamp-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--linen),
    #eee4ce80 28%,
    #eee4ce00 65%
  );
}
.invitation-copy {
  position: relative;
  width: 64%;
  padding: 65px 5vw 88px;
  text-align: center;
  background: linear-gradient(90deg, #eee4cef5, #eee4cecc 80%, #eee4ce00);
}
.inviting-line {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
  margin: 0 auto 28px;
  color: var(--wine);
}
h1 {
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--wine);
  margin-bottom: 36px;
}
h1 > span {
  display: block;
}
.doctor {
  font-size: 0.34em;
  vertical-align: middle;
  letter-spacing: 0;
  display: block;
  margin-bottom: 8px;
}
.ampersand {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.56em;
  color: var(--gold);
  margin: 10px 0;
}
.groom-name {
  color: var(--ink);
}
.invitation-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}
.invitation-date strong {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.035em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}
.primary {
  background: var(--wine);
  color: var(--ivory);
}
.primary:hover {
  background: var(--wine-deep);
  box-shadow: 0 6px 20px #54212726;
  transform: translateY(-2px);
}
.primary:active {
  transform: translateY(0);
}
.quiet-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  font-size: 12px;
  color: var(--muted);
}
.paper-signature {
  position: absolute;
  bottom: 22px;
  right: 30px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--wine);
}
.paper-hinge {
  position: absolute;
  inset: 0 0 auto;
  height: 50px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transform-origin: top;
  transform: rotateX(-90deg);
  z-index: 4;
  pointer-events: none;
}
.invitation.is-opening .invitation-paper {
  animation: paper-lift 1.5s var(--ease);
}
.invitation.is-opening .paper-hinge {
  animation: hinge-open 1.5s var(--ease);
}
.invitation.is-opening .invitation-paper::after {
  animation: daylight 1.5s var(--ease);
}
@keyframes paper-lift {
  0% {
    transform: rotateX(0) rotateY(0);
    box-shadow: none;
  }
  35% {
    transform: rotateX(3deg) rotateY(-4deg);
    box-shadow: 14px 24px 46px #98743b30;
  }
  100% {
    transform: none;
    box-shadow: none;
  }
}
@keyframes hinge-open {
  0% {
    transform: rotateX(0);
  }
  100% {
    transform: rotateX(-160deg);
  }
}
@keyframes daylight {
  0% {
    opacity: 0;
    transform: translateX(-55%);
  }
  40% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(55%);
  }
}
.welcome {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.welcome-letter {
  max-width: 660px;
  position: relative;
  text-align: left;
  padding-left: 28px;
}
.welcome h2 {
  margin-bottom: 42px;
}
.welcome-letter p {
  max-width: 54ch;
}
.welcome-letter > p:first-of-type {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--wine);
  margin-bottom: 22px;
}
.letter-signature {
  margin-top: 34px !important;
  font-size: 13px;
}
.letter-signature span {
  font-family: var(--display);
  font-size: 22px;
  color: var(--wine);
  line-height: 2;
}
.welcome-flower {
  position: absolute;
  width: 360px;
  right: -120px;
  top: 70px;
  opacity: 0.48;
  pointer-events: none;
}
.welcome-flower img {
  object-fit: contain;
}
.beginning {
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: center;
  padding: var(--section) max(var(--gutter), calc((100vw - 1240px) / 2));
  isolation: isolate;
  background: var(--ivory);
  overflow: hidden;
}
.hero-wedding-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-wedding-photo img {
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position);
  opacity: var(--photo-opacity);
}
.beginning-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    #f8f2e4fa,
    #f8f2e4e6 30%,
    #f8f2e428 68%,
    #f8f2e426
  );
}
.beginning-copy {
  max-width: 560px;
  width: 49%;
}
.beginning h2 {
  font-size: clamp(34px, 3.8vw, 54px);
  margin-bottom: 38px;
}
.beginning-copy p {
  max-width: 36ch;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 13px;
  min-height: 46px;
  line-height: 1.6;
  border-bottom: 1px solid var(--gold);
  width: fit-content;
  transition:
    gap 0.25s var(--ease),
    color 0.2s;
}
.text-link:hover {
  gap: 22px;
  color: var(--wine);
}
.beginning .text-link {
  margin-top: 30px;
}
.wedding {
  max-width: 1400px;
  margin: auto;
}
.wedding-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.calendar-date {
  text-align: center;
  min-width: 200px;
  padding: 0 18px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.calendar-date span {
  display: block;
  padding: 10px 0;
}
.calendar-date strong {
  display: block;
  color: var(--wine);
  font-family: var(--display);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.15;
}
.schedule-intro {
  margin: 36px 0 48px;
  max-width: 64ch;
  color: var(--muted);
}
.ceremony-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ceremony {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ceremony + .ceremony {
  padding-left: 52px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.ceremony-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}
.ceremony-order svg {
  color: var(--gold);
}
.ceremony h3 {
  color: var(--wine);
  margin-bottom: 18px;
}
.venue-name {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 6px;
}
.ceremony-description p + p {
  margin-top: 0;
}
.ceremony-description {
  margin-bottom: 26px;
}
.temple-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px !important;
}
.ceremony-time {
  font-size: 20px;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
  margin-top: 22px !important;
}
.time-zone {
  font-size: 12px;
  color: var(--muted);
}
.ceremony > a {
  margin-top: auto;
}
.calendar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 52px;
}
.calendar-row h3 {
  font-size: 25px;
  margin-bottom: 12px;
}
.calendar-row p {
  font-size: 13px;
  color: var(--muted);
}
.calendar-choice {
  width: 280px;
  flex-shrink: 0;
}
.calendar-choice summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  border-bottom: 1px solid var(--gold);
  padding: 14px 0;
  min-height: 50px;
  font-size: 14px;
}
.calendar-choice summary::-webkit-details-marker {
  display: none;
}
.calendar-choice[open] summary {
  color: var(--wine);
}
.calendar-options {
  padding-top: 12px;
}
.calendar-options a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
}
.calendar-options a:hover {
  color: var(--wine);
}
.blessings {
  position: relative;
  background: var(--wine);
  color: var(--ivory);
  min-height: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.closing-border {
  position: absolute;
  inset: 20px;
  border: 1px solid #c7b28c80;
  pointer-events: none;
}
.blessings h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  margin: 24px 0 32px;
}
.blessings h2 em {
  color: #e1c48f;
}
.blessings > p {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
}
.blessings .closing-names {
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 27px);
  margin-top: 38px;
  line-height: 1.6;
}
.closing-names span {
  font-family: Georgia, serif;
  font-style: italic;
  color: #e1c48f;
  margin: 0 6px;
}
.countdown-note {
  font-size: 12px;
  color: #e9d8bb;
  font-variant-numeric: tabular-nums;
}
.countdown-note[hidden] {
  display: none;
}
.blessings .text-link {
  color: var(--ivory);
  margin-top: 30px;
  border-color: #c7b28c;
}
.blessings .text-link:hover {
  color: #e1c48f;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
  font-size: 12px;
  color: var(--muted);
}
footer span:first-child {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}
.in-view .welcome-letter {
  animation: letter-arrive 0.9s var(--ease);
}
.in-view .beginning-copy {
  animation: chapter-arrive 1.1s var(--ease);
}
@keyframes letter-arrive {
  from {
    transform: translateY(20px);
    filter: blur(2px);
  }
  to {
    transform: none;
    filter: none;
  }
}
@keyframes chapter-arrive {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: none;
  }
}
@media (min-width: 1100px) {
  .lamp-scene img {
    animation: lamp-drift 18s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .invitation.in-view .lamp-scene img {
    animation-play-state: running;
  }
  @keyframes lamp-drift {
    from {
      transform: scale(1.015);
    }
    to {
      transform: scale(1.055);
    }
  }
}
@media (max-width: 1000px) {
  .invitation-copy {
    width: 70%;
  }
  .lamp-scene {
    left: 20%;
  }
  .welcome-flower {
    opacity: 0.28;
  }
  .ceremony + .ceremony {
    padding-left: 32px;
  }
  .ceremony {
    padding-right: 28px;
  }
  .beginning-copy {
    width: 53%;
  }
  .calendar-row {
    gap: 28px;
  }
}
@media (max-width: 700px) {
  :root {
    --section: 88px;
  }
  .masthead {
    height: 68px;
    padding: 0 24px;
    gap: 10px;
  }
  .header-date {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  .music-control {
    font-size: 11px;
  }
  .music-control svg {
    width: 15px;
  }
  .monogram {
    font-size: 22px;
  }
  .invitation {
    padding: 12px;
  }
  .invitation-paper {
    min-height: max(760px, calc(100svh - 92px));
    align-items: flex-start;
  }
  .invitation-paper::before {
    inset: 9px;
  }
  .lamp-scene {
    inset: 0;
    height: 100%;
    opacity: 0.5;
  }
  .lamp-scene img {
    object-position: 35% 100%;
    opacity: 0.52;
  }
  .lamp-scene::after {
    background: linear-gradient(
      180deg,
      #eee4ce88,
      #eee4cee6 13%,
      #eee4cef7 65%,
      #eee4ce00
    );
  }
  .invitation-copy {
    width: 100%;
    padding: 55px 20px 112px;
    background: transparent;
  }
  .inviting-line {
    font-size: 17px;
    max-width: 260px;
    margin-bottom: 32px;
  }
  h1 {
    font-size: clamp(34px, 8.6vw, 56px);
    line-height: 1.22;
    margin-bottom: 32px;
  }
  .doctor {
    font-size: 0.5em;
    margin-bottom: 10px;
  }
  .ampersand {
    margin: 9px 0;
  }
  .invitation-date {
    margin-bottom: 28px;
    font-size: 12px;
  }
  .invitation-date strong {
    font-size: 16px;
    letter-spacing: 0.01em;
  }
  .paper-signature {
    right: 0;
    bottom: 27px;
    width: 100%;
    text-align: center;
    font-size: 12px;
  }
  .quiet-link {
    font-size: 11px;
  }
  .button {
    padding: 13px 18px;
    gap: 14px;
  }
  .welcome {
    min-height: 680px;
  }
  .welcome-letter {
    padding-left: 0;
  }
  .welcome h2 {
    margin-bottom: 36px;
  }
  .welcome-flower {
    width: 230px;
    right: -120px;
    top: 0;
    opacity: 0.32;
  }
  .welcome-letter p {
    font-size: 15px;
  }
  .beginning {
    min-height: 760px;
    align-items: flex-end;
    padding: 220px 28px 76px;
  }
  .hero-wedding-photo {
    inset: 0 0 auto;
    height: 100%;
  }
  .hero-wedding-photo img {
    object-position: var(--photo-mobile-position);
  }
  .beginning-wash {
    background: linear-gradient(
      180deg,
      #f8f2e400 25%,
      #f8f2e4a0 43%,
      var(--ivory) 78%
    );
  }
  .beginning-copy {
    width: 100%;
    max-width: none;
    position: relative;
    background: none;
    padding-top: 0;
  }
  .beginning h2 {
    font-size: clamp(32px, 8vw, 44px);
    margin-bottom: 28px;
  }
  .beginning-copy p {
    font-size: 15px;
    max-width: 35ch;
  }
  .beginning .text-link {
    margin-top: 24px;
  }
  .wedding-heading {
    align-items: center;
    gap: 18px;
  }
  .wedding-heading h2 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .calendar-date {
    min-width: 106px;
    font-size: 10px;
    padding: 0 8px;
  }
  .calendar-date strong {
    font-size: 53px;
  }
  .calendar-date span {
    padding: 8px 0;
  }
  .schedule-intro {
    font-size: 14px;
    margin: 30px 0;
  }
  .ceremony-sequence {
    display: block;
  }
  .ceremony {
    padding: 30px 0;
  }
  .ceremony + .ceremony {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 30px 0;
  }
  .ceremony-order {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .ceremony h3 {
    font-size: 25px;
  }
  .ceremony-description {
    margin-bottom: 24px;
  }
  .venue-name {
    font-size: 21px;
  }
  .ceremony p {
    font-size: 14px;
  }
  .ceremony .venue-name {
    font-size: 21px;
  }
  .ceremony .ceremony-time {
    font-size: 20px;
  }
  .ceremony .time-zone {
    font-size: 12px;
  }
  .calendar-row {
    flex-direction: column;
    gap: 22px;
    margin-top: 38px;
  }
  .calendar-row h3 {
    font-size: 23px;
  }
  .calendar-choice {
    width: 100%;
  }
  .blessings {
    min-height: 710px;
    padding: 90px 28px;
  }
  .blessings h2 {
    font-size: clamp(32px, 7.4vw, 42px);
    margin: 26px 0;
  }
  .blessings > p {
    font-size: 17px;
  }
  .blessings .closing-names {
    font-size: 19px;
    max-width: 280px;
  }
  .closing-border {
    inset: 12px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px;
  }
  .countdown-note {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .paper-hinge {
    display: none;
  }
  .invitation-paper {
    transform: none !important;
  }
}
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--gold) var(--ivory);
    scrollbar-width: thin;
  }
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ivory);
}
.lamp-scene {
  left: 0;
}
.lamp-scene::after {
  background: linear-gradient(
    90deg,
    var(--linen) 12%,
    #eee4ceb3 40%,
    #eee4ce00 72%
  );
}
.hero-wedding-photo {
  left: 34%;
}
.beginning-wash {
  background: linear-gradient(
    90deg,
    var(--ivory) 28%,
    #f8f2e4e6 42%,
    #f8f2e428 72%,
    #f8f2e426
  );
}
.blessings a:focus-visible {
  outline-color: var(--ivory);
}
@media (max-width: 700px) {
  .lamp-scene::after {
    background: linear-gradient(
      180deg,
      #eee4ce88,
      #eee4cee6 13%,
      #eee4cef7 65%,
      #eee4ce00
    );
  }
  .hero-wedding-photo {
    left: 0;
  }
  .beginning-wash {
    background: linear-gradient(
      180deg,
      #f8f2e400 8%,
      #f8f2e4d9 35%,
      var(--ivory) 90%
    );
  }
}
