/* Maria and Jose: layout, scene controls, and gallery. */

:root {
  color-scheme: dark;
  --ink: #fff6e9;
  --paper: #151c29;
  --accent: #d3ad78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI',Calibri,sans-serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, input:focus-visible, main:focus-visible {
  outline: 2px solid #e8c593;
  outline-offset: 5px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  background: radial-gradient(ellipse at 40% 50%,#334157,#171e2b 75%);
}

.room-blur {
  position: absolute;
  inset: -20px;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  mask-image: linear-gradient(#000 0%,#000 23%,#0008 48%,transparent 82%);
}

.room-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#0a101b9c,transparent 23%,transparent 69%,#070d17c9),linear-gradient(90deg,transparent 40%,#13172330 65%,#10172445);
}

.cursor-sparkle {
  position: fixed;
  z-index: 8;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  filter: drop-shadow(0 0 6px #ffd98c);
}

.cursor-sparkle.visible {
  opacity: 1;
}

.cursor-sparkle::before, .cursor-sparkle::after {
  content: "";
  position: absolute;
  inset: 7px 0;
  background: #ffe8b4;
  border-radius: 99px;
  box-shadow: 0 0 8px 2px #ffcf72;
}

.cursor-sparkle::after {
  transform: rotate(90deg);
}

.cursor-sparkle i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff3cc;
  box-shadow: 0 0 5px 1px #f8bf61;
  animation: sparkleFloat 1.7s ease-in-out infinite;
}

.cursor-sparkle i:nth-child(1) {
  left: -8px;
  top: 2px;
}

.cursor-sparkle i:nth-child(2) {
  right: -7px;
  top: 5px;
  animation-delay: .35s;
}

.cursor-sparkle i:nth-child(3) {
  left: 1px;
  bottom: -8px;
  animation-delay: .7s;
}

.cursor-sparkle i:nth-child(4) {
  right: -9px;
  bottom: -3px;
  animation-delay: 1.05s;
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: .35;
    transform: scale(.7);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.cursor-trail i {
  position: fixed;
  z-index: 7;
  width: 6px;
  height: 6px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: #fff0c5;
  box-shadow: 0 0 10px 3px #f6bd62;
  transform: translate(-50%,-50%) scale(.2);
}

.cursor-trail i:nth-child(2) {
  width: 5px;
  height: 5px;
}

.cursor-trail i:nth-child(3) {
  width: 4px;
  height: 4px;
}

.cursor-trail i:nth-child(4) {
  width: 4px;
  height: 4px;
}

.cursor-trail i:nth-child(5), .cursor-trail i:nth-child(6) {
  width: 3px;
  height: 3px;
}

.site-header {
  inset: 0 0 auto;
  padding: 27px 4%;
  display: flex;
  align-items: center;
  color: #fff5e7;
}

.wordmark {
  font-family: 'Trebuchet MS',sans-serif;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.wordmark span {
  color: #f1c98c;
  font-size: 29px;
  display: inline-block;
  margin-left: 3px;
  vertical-align: top;
}

.site-header nav {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.nav-link {
  border: 0;
  background: none;
  padding: 9px 0;
}

.nav-link:hover, .message-secondary:hover {
  color: #f3ce96;
}

.christmas-message {
  position: fixed;
  z-index: 2;
  top: 50%;
  right: 5%;
  width: 350px;
  transform: translateY(-48%);
  padding: 0;
  color: #fff5e7;
  text-shadow: 0 2px 20px #14162340;
}

.season-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #efd3a8;
}

.season-label span {
  font-size: 19px;
}

h1 {
  font-family: 'Trebuchet MS','Segoe UI',sans-serif;
  font-size: clamp(42px,4.1vw,64px);
  line-height: 1.01;
  letter-spacing: -2.7px;
  margin: 22px 0 24px;
  font-weight: 700;
}

h1 em {
  font-family: Georgia,serif;
  font-size: .89em;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.08;
  color: #f0c88f;
}

main p {
  font-size: 14px;
  line-height: 1.8;
  color: #f5e9d9d6;
  margin: 0 0 27px;
}

.message-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 19px;
  border-radius: 30px;
  background: #f5e6ce;
  color: #432c27;
  text-shadow: none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 35px #080d1525;
  transition: background .2s,transform .2s;
}

.message-cta:hover {
  background: #fff3df;
  transform: translateY(-2px);
}

.message-cta span {
  font-size: 19px;
}

.message-secondary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid #f6dfbd2c;
  padding: 19px 4px 14px;
  font-size: 11px;
}

.message-note {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: .03em;
  color: #e5d4bcc7;
}

.message-note span {
  margin-right: 6px;
  color: #e7c18c;
}

.site-footer {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 4%;
  right: 4%;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f4ddbd30;
  color: #e8dac6a6;
  font-size: 10px;
  gap: 16px;
}

.footer-wish {
  font-style: italic;
  letter-spacing: .03em;
}

#settings-toggle {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 10px;
}

#settings-toggle span {
  margin-left: 14px;
  color: #f0c88f;
}

.settings-panel {
  position: fixed;
  z-index: 6;
  bottom: 76px;
  right: 4%;
  width: 315px;
  border: 1px solid #f4d6ad35;
  border-radius: 16px;
  background: #172130ee;
  backdrop-filter: blur(18px);
  padding: 18px;
  box-shadow: 0 20px 60px #0004;
  color: #fff2de;
}

.settings-panel[hidden] {
  display: none;
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fff2;
}

.settings-heading button {
  font-size: 24px;
  background: none;
  border: 0;
  line-height: 1;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 16px!important;
  padding-top: 17px;
}

.controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}

.controls input {
  accent-color: #d6b07c;
}

.controls input[type=range] {
  width: 115px;
}

.controls button {
  border: 1px solid #f4d6ad35;
  border-radius: 8px;
  background: #ffffff08;
  padding: 9px 12px;
  font-size: 11px;
}

.controls button:hover {
  background: #fff1;
}

#status {
  position: fixed;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: pre-line;
  text-align: center;
  font-size: 13px;
  background: #18212bd9!important;
  color: #f5e5cd;
  padding: 18px 25px;
  border-radius: 14px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px;
  background: #fff;
  color: #222;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

body.christmas header {
  text-shadow: none;
}

body.christmas .controls, body.christmas.dark .controls {
  background: none;
  border: 0;
  color: inherit;
}

body.christmas.dark button {
  border-color: #f4d6ad35;
}

@media(min-width:1700px) {
  .christmas-message {
    right: 8%;
    width: 390px;
  }
}

@media(max-width:1000px) and (min-width:701px) {
  .site-header {
    gap: 30px;
  }

  .site-header nav {
    gap: 18px;
  }

  .christmas-message {
    right: 4%;
    width: 290px;
  }

  h1 {
    font-size: 44px;
  }

  .footer-wish {
    display: none;
  }
}

@media(max-width:700px) {
  body {
    overflow: hidden;
  }

  .site-header {
    padding: 20px 6%;
    gap: 20px;
  }

  .wordmark {
    font-size: 29px;
  }

  .wordmark span {
    font-size: 23px;
  }

  .site-header nav {
    margin-left: auto;
    gap: 16px;
    font-size: 11px;
  }

  .christmas-message {
    top: auto;
    bottom: 78px;
    right: 6%;
    left: 6%;
    width: auto;
    transform: none;
    padding: 18px 20px;
    border: 1px solid #f1cf9d24;
    border-radius: 20px;
    background: #18222bbd;
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px #0002;
  }

  .season-label {
    font-size: 8px;
    gap: 6px;
  }

  .season-label span {
    font-size: 13px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.02;
    letter-spacing: -1.4px;
    margin: 10px 0 12px;
  }

  h1 br {
    display: none;
  }

  h1 em {
    letter-spacing: -1px;
  }

  main p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  main p br {
    display: none;
  }

  .message-cta {
    font-size: 11px;
    padding: 11px 15px;
  }

  .message-secondary, .message-note {
    display: none;
  }

  .site-footer {
    left: 6%;
    right: 6%;
    height: 57px;
    font-size: 9px;
  }

  .footer-wish {
    display: none;
  }

  .settings-panel {
    right: 6%;
    bottom: 68px;
    max-width: 88%;
  }

  .room-shade {
    background: linear-gradient(#10182685,transparent 30%,transparent 65%,#080e19c7);
  }

  #status {
    left: 50%;
    top: 50%;
    max-width: 90%;
    width: max-content;
  }

  .room-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(#000,transparent 70%);
  }
}

@media(min-width:701px) {
  .christmas-message {
    left: 5%;
    right: auto;
  }
}

@media(min-width:1700px) {
  .christmas-message {
    left: 8%;
    right: auto;
  }
}

@media(max-width:1000px) and (min-width:701px) {
  .christmas-message {
    left: 4%;
    right: auto;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}

body {
  cursor: none;
}

body.cursor-visible {
  cursor: auto;
}

a, button, input, select, summary, [role="button"] {
  cursor: pointer;
}

.cursor-sparkle {
  transform: translate(-50%,-50%);
}

.cursor-sparkle::before {
  inset: 1px;
  border-radius: 50%;
  background: #ffe8b4;
  box-shadow: 0 0 10px 3px #ffcf72;
}

.cursor-sparkle::after {
  display: none;
}

.pastel-picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.pastel-picker legend {
  font-size: 12px;
  margin-bottom: 12px;
  width: 100%;
}

#pastel-name {
  float: right;
  opacity: .65;
  font-size: 11px;
}

.pastel-swatches {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}

.controls .pastel-swatches button {
  background: var(--swatch);
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 0;
  min-height: 32px;
  aspect-ratio: 1;
  box-shadow: inset 0 0 0 1px #0001;
}

.controls .pastel-swatches button[aria-pressed=true] {
  border-color: #fff;
  outline: 2px solid #d6b07c;
  outline-offset: 2px;
}

.settings-panel {
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

body.pastel:not(.christmas) #stage {
  background: var(--plain-background);
}

body.pastel:not(.christmas) main p {
  color: #e9dfd2;
}

body.pastel:not(.christmas) .message-cta {
  background: #f5e6ce;
  color: #493a36;
}

@media(max-width:700px) {
  body.pastel:not(.christmas) .christmas-message {
    background: #18222bd9;
  }
}

body.background-sharp .room-blur {
  display: none;
}

[data-view][hidden] {
  display: none!important;
}

.couple-wordmark {
  letter-spacing: -3px;
  font-family: Georgia,serif;
  font-style: italic;
  font-weight: 400;
  font-size: 43px;
  white-space: nowrap;
}

.couple-wordmark span {
  font-family: Georgia,serif;
  font-size: 27px;
  vertical-align: baseline;
  margin: 0 3px;
}

.site-header {
  gap: 36px;
}

.site-header .nav-link {
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.site-header .nav-link[aria-current=page] {
  border-bottom-color: #f0c88f;
}

.sample-label {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: .15em;
  color: #e5d4bc99;
}

.couple-content {
  width: 350px;
  max-height: calc(100dvh - 195px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f0c88f55 transparent;
  padding-right: 8px;
}

.couple-content h1 {
  font-size: clamp(38px,3.8vw,58px);
  letter-spacing: -2px;
}

.couple-content h2 {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.5px;
  margin: 0 0 9px;
}

.couple-content .message-secondary {
  align-items: center;
}

.couple-content .message-note {
  line-height: 1.6;
}

.bio-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border-block: 1px solid #f4ddbd35;
  padding: 20px 0;
  margin: 20px 0;
}

.bio-pair p {
  font-size: 12px;
  margin: 0;
}

.couple-content .story-note {
  font-size: 12px;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.memory-grid figure {
  margin: 0;
}

.memory-grid figure:first-child {
  grid-column: 1/-1;
}

.memory-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  background: #c8c4c0;
  display: block;
}

.memory-grid figcaption {
  font-family: Georgia,serif;
  font-size: 17px;
  padding: 9px 0 16px;
}

.memory-grid figcaption span {
  display: block;
  font-family: 'Segoe UI',sans-serif;
  font-size: 10px;
  opacity: .65;
  margin-top: 5px;
}

.event-list article {
  border-top: 1px solid #f4ddbd35;
  padding: 18px 0;
}

.event-kicker {
  font-size: 8px;
  letter-spacing: .14em;
  color: #e6c395;
  display: block;
  margin-bottom: 10px;
}

.event-list dl {
  font-size: 11px;
  line-height: 1.7;
}

.event-list dl div {
  display: grid;
  grid-template-columns: 52px 1fr;
  margin: 5px 0;
}

.event-list dt {
  opacity: .6;
}

.event-list dd {
  margin: 0;
}

.couple-content .event-list p {
  font-size: 11px;
  margin: 10px 0 0;
}

.social-links {
  flex-wrap: wrap;
  font-size: 12px;
}

.social-links a {
  border-bottom: 1px solid #f4ddbd55;
  padding-bottom: 6px;
}

.social-links a:hover {
  color: #f0c88f;
}

@media(min-width:1700px) {
  .couple-content {
    width: 390px;
  }
}

@media(max-width:1000px) and (min-width:701px) {
  .couple-content {
    width: 285px;
  }

  .site-header {
    gap: 25px;
  }

  .site-header nav {
    gap: 18px;
  }

  .sample-label {
    display: none;
  }
}

@media(max-width:700px) {
  html {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100svh;
    cursor: auto;
  }

  .site-header {
    position: absolute;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 6%;
  }

  .couple-wordmark {
    font-size: 35px;
  }

  .site-header nav {
    order: 2;
    flex-basis: 100%;
    margin: 0;
    gap: 0;
    justify-content: space-between;
  }

  .site-header .nav-link {
    font-size: 11px;
    padding: 9px 0;
  }

  .sample-label {
    display: block;
    font-size: 7px;
  }

  .couple-content {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 88%;
    max-height: none;
    overflow: visible;
    margin: 67svh 6% 24px;
    padding: 24px;
    background: #18222be8;
    backdrop-filter: blur(16px);
    touch-action: pan-y;
    border-radius: 16px;
  }

  .couple-content h1 {
    font-size: 38px;
    line-height: 1.06;
    margin: 15px 0 20px;
  }

  .couple-content p {
    font-size: 13px;
    line-height: 1.8;
  }

  .couple-content .season-label {
    font-size: 8px;
  }

  .couple-content .message-secondary {
    display: flex;
  }

  .couple-content .message-note {
    display: block;
  }

  .couple-content .message-cta {
    font-size: 12px;
    padding: 15px;
  }

  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 6%;
    min-height: 65px;
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .settings-panel {
    position: fixed;
    bottom: 20px;
    z-index: 10;
    max-height: calc(100dvh - 40px);
  }

  .memory-grid img {
    height: 150px;
  }

  .bio-pair p {
    font-size: 12px;
  }

  .cursor-sparkle, .cursor-trail {
    display: none;
  }
}

@media(max-width:700px) {
  .couple-content h1 br {
    display: block;
  }
}

.stock-gallery figure:first-child img {
  height: 260px;
  object-position: center 45%;
}

.stock-gallery figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stock-gallery figcaption span {
  line-height: 1.7;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-open img {
  transition: transform .25s ease;
}

.gallery-open:hover img {
  transform: scale(1.035);
}

body.image-viewer-open {
  overflow: hidden;
}

.photo-viewer {
  padding: 14px 20px 12px;
  width: min(1100px,94vw);
  max-width: 94vw;
  max-height: 94dvh;
  background: #131b26;
  color: #fff1df;
  border: 1px solid #f4ddbd40;
  border-radius: 12px;
  box-shadow: 0 24px 100px #0008;
  overflow: auto;
  cursor: auto;
}

.photo-viewer::backdrop {
  background: #07101ce8;
  backdrop-filter: blur(8px);
}

.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  letter-spacing: .1em;
}

.photo-viewer button {
  background: #ffffff0a;
  border: 1px solid #f4ddbd35;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff1df;
  font-size: 24px;
  flex-shrink: 0;
}

.photo-viewer button:hover {
  background: #fff2;
}

.photo-viewer #photo-close {
  font-size: 30px;
}

.photo-viewer #photo-large {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94dvh - 155px);
  object-fit: contain;
  margin: 12px auto;
}

.photo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.photo-bottom p {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  max-width: 70%;
  color: #eee0ce;
}

@media(max-width:700px) {
  .photo-viewer {
    padding: 12px;
    width: 94vw;
  }

  .photo-bottom {
    gap: 8px;
  }

  .photo-bottom p {
    font-size: 10px;
  }

  .photo-viewer #photo-large {
    max-height: calc(94dvh - 170px);
  }
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

.social-links .social-button {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 17px 20px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s,filter .2s;
}

.social-links .social-button:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.social-button svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.social-button small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: .8;
  margin-top: 5px;
}

.social-button .social-arrow {
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
}

.social-facebook {
  background: #284f8b;
}

.social-instagram {
  background: #703b64;
}

.social-pinterest {
  background: #87384a;
}

.site-header {
  position: fixed;
  z-index: 7;
  border-bottom: 1px solid #f4ddbd20;
}

@media(max-width:700px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

.stock-gallery {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px 10px;
}

.stock-gallery .gallery-open img, .stock-gallery figure:first-child img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 45%;
}

.stock-gallery figcaption {
  font-family: 'Segoe UI',sans-serif;
  font-size: 10px;
  line-height: 1.4;
  padding: 7px 0 10px;
}

@media(max-width:360px) {
  .stock-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

.site-header {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header .nav-link {
  font-size: 16px;
  padding: 8px 0;
}

@media(max-width:700px) {
  .site-header nav {
    padding: 7px 14px;
    gap: 0;
    border-radius: 24px;
  }

  .site-header .nav-link {
    font-size: 14px;
    padding: 7px 0;
  }
}

.site-header nav {
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 8px;
  background: transparent;
}

.site-header .nav-link, .site-header .nav-link[aria-current=page] {
  border: 0;
  border-radius: 24px;
  padding: 11px 20px;
}

.site-header .nav-link[aria-current=page] {
  color: #f5d8af;
}

.site-header .nav-link:hover {
  color: #fff5e7;
  transform: translateY(-2px);
}

.site-header .nav-link:active {
  transform: translateY(0);
}

@media(max-width:700px) {
  .site-header nav {
    gap: 5px;
  }

  .site-header .nav-link {
    font-size: 13px;
    padding: 10px 12px;
    flex: 1;
    text-align: center;
  }
}

@media(prefers-reduced-motion:reduce) {
  .site-header .nav-link:hover {
    transform: none;
  }
}

.site-header .nav-link, .site-header .nav-link[aria-current=page] {
  background: linear-gradient(135deg,#ffffff16,#ffffff06);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow: inset 0 1px 0 #ffffff24,inset 0 -1px 0 #ffffff08,0 4px 14px #07101c14;
  transition: background .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease;
}

.site-header .nav-link {
  background: linear-gradient(135deg,#ffffff12,#ffffff06);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: inset 0 1px 0 #ffffff20,0 3px 12px #0000000a;
}

.site-header .nav-link[aria-current=page] {
  background: linear-gradient(135deg,#f0c88f20,#ffffff0b);
  box-shadow: inset 0 1px 0 #ffe5bf30,0 3px 12px #0000000a;
}

.site-header .nav-link:hover {
  background: linear-gradient(135deg,#ffffff28,#ffffff12);
  box-shadow: inset 0 1px 0 #ffffff35,0 5px 16px #00000012;
}

.controls .background-choice {
  align-items: stretch;
  flex-direction: column;
  gap: 9px;
}

.background-choice select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #f4ddbd40;
  border-radius: 9px;
  background: #253144;
  color: #fff2de;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color-scheme: dark;
}

.background-choice option:disabled {
  color: #aaa;
}

.couple-content {
  padding: 26px;
  background: linear-gradient(135deg,#172435b8,#1521328c);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  text-shadow: none;
}

.couple-content:focus-visible {
  outline: none;
}

@media(min-width:1001px) {
  .couple-content {
    width: 400px;
  }
}

@media(min-width:701px) and (max-width:1000px) {
  .couple-content {
    width: 320px;
    padding: 22px;
  }
}

@media(max-width:700px) {
  .couple-content {
    width: 88%;
    padding: 24px;
    border: 0;
  }
}

.site-header .nav-link, .site-header .nav-link[aria-current=page], .site-header .nav-link:hover, .site-header .nav-link:active {
  border: 0;
  box-shadow: none;
}

.site-header .nav-link:focus:not(:focus-visible) {
  outline: none;
}

.stock-gallery figure:first-child {
  grid-column: 1/-1;
}

.stock-gallery figure:first-child .gallery-open img {
  aspect-ratio: 4/3;
  object-position: center 45%;
}

.stock-gallery figure:first-child figcaption {
  font-family: Georgia,serif;
  font-size: 18px;
  padding: 10px 0 14px;
}

@media(min-width:1600px) {
  .couple-content {
    width: clamp(400px,27vw,600px);
  }
}

#stage, #christmas-room {
  top: 50%;
  bottom: auto;
  height: max(100dvh,1320px);
  transform: translateY(-50%);
}

@media(max-width:700px) {
  #stage {
    height: max(100dvh,600px);
  }
}
