.hero h1 > .hero-name {
  font-size: inherit;
  font-style: inherit;
}

.theme-toggle {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  cursor: pointer;
}

.theme-toggle span {
  display: inline-block;
  transition: color 300ms ease;
}

.theme-toggle:hover span {
  color: #f5d989;
}

.theme-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
  border-radius: 6px;
}

.theme-toggle[aria-busy="true"] {
  cursor: wait;
}

.theme-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.engagement-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 61%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* A second composition, built around the portrait photograph. */
body.couple-mode {
  --paper: #f7f2ea;
  --ink: #473c32;
  --muted: #716558;
  --line: #d9cfc1;
  background: var(--paper);
}

.couple-mode .header {
  padding-right: 4%;
  padding-left: 4%;
}

.couple-mode .hero {
  display: block;
  background: #f7f2ea;
  color: #473c32;
}

.couple-mode .hero-photo {
  opacity: 0;
  visibility: hidden;
}

.couple-mode .engagement-photo {
  opacity: 1;
  visibility: visible;
}

.couple-mode .hero-shade {
  display: none;
}

.couple-mode .hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 39%;
  padding: 40px 25px 95px;
  margin: 0;
  text-align: center;
}

.couple-mode .hero .eyebrow {
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #89754f;
}

.couple-mode .hero h1 {
  margin: 0 0 29px;
  font-size: clamp(74px, 7.6vw, 116px);
  line-height: .94;
  letter-spacing: -2.5px;
}

.couple-mode .hero-name {
  display: block;
}

.couple-mode .theme-toggle {
  display: block;
  margin: 6px auto 10px;
  color: #a48a56;
  font-size: .78em;
  line-height: .9;
}

.couple-mode .theme-toggle span {
  font-size: 1em;
}

.couple-mode .theme-toggle:hover span {
  color: #6b5737;
}

.couple-mode .hero-date {
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.couple-mode .hero-place {
  margin-bottom: 28px;
  font-size: 23px;
}

.couple-mode .hero .button {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #a18c6b;
  background: transparent;
  color: #473c32;
  font-size: 12px;
}

.couple-mode .hero .button:hover {
  background: #473c32;
  color: #f7f2ea;
}

.couple-mode .hero-bottom {
  left: 4%;
  right: auto;
  bottom: 26px;
  width: 31%;
  justify-content: center;
  color: #8b7b65;
  text-align: center;
}

.couple-mode .hero-bottom span {
  max-width: 245px;
  font-size: 11px;
}

.couple-mode .hero-bottom a {
  display: none;
}

.couple-mode .welcome {
  max-width: 1150px;
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: left;
}

.couple-mode .welcome .intro,
.couple-mode .welcome .welcome-note {
  margin-left: 0;
}

.couple-mode .welcome .intro {
  max-width: 640px;
}

.couple-mode .date-line {
  justify-content: flex-start;
}

.couple-mode .signature {
  color: #8b754f;
}

.couple-mode .destination {
  background: #493e34;
  color: #f7f2ea;
}

.couple-mode .destination-photo {
  order: 2;
  min-height: 0;
  aspect-ratio: 3 / 4;
  background-image: url('assets/stephen-terrace.jpeg');
  background-position: 50% 50%;
}

.couple-mode .destination-copy {
  order: 1;
}

.couple-mode .destination-copy p {
  color: #d8ccbd;
}

.couple-mode .travel {
  gap: 13%;
}

.couple-mode .questions {
  background: #ece4d8;
}

.couple-mode .faq-list,
.couple-mode details {
  border-color: #cec0ad;
}

.couple-mode .closing {
  background: #e7ddcd;
}

.couple-mode .closing .eyebrow {
  color: #8b754f;
}

.couple-mode .dark:hover {
  background: #695442;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 550ms;
  animation-timing-function: ease;
}

@media (min-width: 1700px) {
  .couple-mode .hero h1 {
    font-size: 128px;
  }
}

@media (max-width: 760px) {
  .couple-mode .header {
    padding-right: 6%;
    padding-left: 6%;
  }

  .couple-mode .hero {
    min-height: 650px;
    max-height: 1000px;
  }

  .couple-mode .engagement-photo {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: 50% 100%;
    mask-image: linear-gradient(180deg, transparent, #000 24%);
  }

  .couple-mode .hero-shade {
    display: block;
    background: linear-gradient(180deg, #f7f2eac7 0%, #f7f2ea70 20%, transparent 40%);
  }

  .couple-mode .hero-content {
    inset: 0 0 auto;
    width: 100%;
    padding: 25px 15px 0;
    justify-content: flex-start;
  }

  .couple-mode .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #514638;
  }

  .couple-mode .hero h1 {
    margin: 0 0 15px;
    font-size: clamp(42px, 10.8vw, 68px);
    line-height: 1.12;
    letter-spacing: -1.8px;
  }

  .couple-mode .hero-name {
    display: inline;
  }

  .couple-mode .theme-toggle {
    display: inline;
    margin: 0;
    font-size: 1em;
    line-height: inherit;
    color: #695333;
  }

  .couple-mode .theme-toggle span {
    font-size: .8em;
  }

  .couple-mode .hero-date {
    margin-bottom: 2px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .couple-mode .hero-place {
    margin-bottom: 13px;
    font-size: 21px;
  }

  .couple-mode .hero .button {
    min-height: 40px;
    padding: 8px 19px;
    border-color: #6d6049;
    background: #f7f2ea55;
    font-size: 11px;
  }

  .couple-mode .hero-bottom {
    display: none;
  }

  .couple-mode .welcome {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .couple-mode .destination-copy {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .couple-mode .destination-photo {
    min-height: 350px;
  }

  .couple-mode .travel {
    gap: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle span {
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* A brief Skyfall interlude before the alternate design. */
body.is-playing-interlude {
  overflow: hidden;
}

.bond-interlude {
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: #000;
  color: #e6e9e3;
  opacity: 1;
  transition: opacity 450ms ease;
}

.bond-interlude[open] {
  display: grid;
  place-items: center;
}

.bond-interlude::backdrop {
  background: transparent;
}

.bond-interlude.is-fading {
  opacity: 0;
  pointer-events: none;
}

.bond-message {
  width: calc(18ch + 2px);
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(18px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 0 10px #e6e9e315;
}

.bond-typed {
  display: block;
  box-sizing: content-box;
  width: 0;
  overflow: hidden;
  border-right: 2px solid currentColor;
  white-space: nowrap;
}

.bond-interlude.is-typing .bond-typed {
  animation:
    bond-type 1800ms steps(18, end) 350ms forwards,
    bond-caret 750ms step-end infinite;
}

.bond-skip {
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 50%;
  min-width: 64px;
  min-height: 44px;
  padding: 10px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: #999;
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
}

.bond-skip:hover {
  color: #fff;
}

.bond-skip:focus-visible {
  outline: 1px solid #999;
  outline-offset: 2px;
}

@keyframes bond-type {
  to { width: 18ch; }
}

@keyframes bond-caret {
  50% { border-color: transparent; }
}

@media (max-width: 760px) {
  .bond-message {
    font-size: clamp(18px, 5vw, 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bond-interlude {
    transition: none;
  }

  .bond-interlude.is-typing .bond-typed {
    width: 18ch;
    border: 0;
    animation: none;
  }
}
