@font-face {
  font-family: Invitation Song;
  src: url('/assets/title.woff2?v=5e7a617a06') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --serif: 'Invitation Song', 'Songti SC', 'Noto Serif CJK SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --text-serif: 'Songti SC', 'Noto Serif CJK SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --numbers: 'Baskerville', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --wine: #660f15;
  --red: #811e21;
  --ink: #4c2422;
  --paper: #f8f3e9;
  --gold: #e8c58a;
  --light: #ffead1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}
body.modal-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a,
button {
  touch-action: manipulation;
}
button,
a,
input {
  font: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #dc9939;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.43;
}
[hidden] {
  display: none !important;
}
.symbols {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root {
  --scene-height: 100vh;
  --side: clamp(1.5rem, 5vw, 5.5rem);
  --header-clear: max(5.2rem, calc(env(safe-area-inset-top) + 4.2rem));
  --nav-clear: max(5.8rem, calc(env(safe-area-inset-bottom) + 5rem));
}
@supports (height: 100dvh) {
  :root {
    --scene-height: 100dvh;
  }
}
body {
  background: #690f11;
}
#page {
  position: relative;
}
.scene {
  position: relative;
  isolation: isolate;
  height: var(--scene-height);
  width: 100%;
  overflow: hidden;
  outline: 0;
}
.scene-scroll {
  position: absolute;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.scene-header,
.scene-nav {
  position: fixed;
  z-index: 8;
  color: #f9dfae;
}
.scene-header {
  inset: max(1.7rem, calc(env(safe-area-inset-top) + 0.6rem)) max(var(--side), env(safe-area-inset-right))
    auto max(var(--side), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.scene-header > * {
  pointer-events: auto;
}
.family-mark {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font: 600 1rem/1.2 var(--serif);
  letter-spacing: 0.13em;
}
.seal {
  display: grid;
  place-items: center;
  width: 1.68em;
  height: 1.74em;
  font: 700 1.13rem/1 var(--text-serif);
  letter-spacing: 0;
  border: 1px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: -4px;
  border-radius: 3px 2px;
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.54em;
  min-height: 44px;
  padding: 0.35em 1em;
  color: inherit;
  background: #570c1466;
  border: 1px solid #edcd9580;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.scene-nav {
  inset-inline: 0;
  width: max-content;
  margin-inline: auto;
  bottom: max(1.45rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 0.25rem;
  background: #4c0e16eb;
  border: 1px solid #d9b58585;
  border-radius: 99px;
  box-shadow: 0 4px 20px #260b101f;
  max-width: calc(100vw - 22px);
}
.page-links {
  display: flex;
  align-items: center;
  min-width: 0;
}
.page-links a,
.step-button {
  display: grid;
  place-items: center;
  min-height: 44px;
}
.page-links a {
  position: relative;
  min-width: 48px;
  padding: 0 0.45em;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.08;
}
.page-links a::after {
  position: absolute;
  bottom: 5px;
  width: 1.2em;
  height: 2px;
  content: '';
  background: currentColor;
  opacity: 0;
}
.page-links a[aria-current='step']::after,
.page-links a[aria-current='page']::after {
  opacity: 1;
}
.page-links a[aria-current='step'],
.page-links a[aria-current='page'] {
  font-weight: 700;
}
.step-button {
  width: 44px;
  flex: none;
}
.step-button .icon {
  width: 1em;
  height: 1em;
}
.step-button:disabled {
  opacity: 0.3;
}
html:not(.deck-ready) .step-button {
  display: none;
}
#page:is([data-current='event'], [data-current='visit']) .scene-header,
#page:is([data-current='event'], [data-current='visit']) .scene-nav {
  color: var(--wine);
}
#page:is([data-current='event'], [data-current='visit']) .share-button {
  background: #fcf4e8e8;
  border-color: #9e71655c;
}
#page:is([data-current='event'], [data-current='visit']) .scene-nav {
  background: #fcf5e9f5;
  border-color: #ac83716b;
}

.cover,
.letter-panel {
  background: #761615;
  color: var(--light);
}
.cover-paper,
.letter-paper {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(111deg, #71101622, #48071088),
    url('/assets/red-paper.webp') center / cover;
}
.cover-art {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  top: 0;
  bottom: 0;
  left: max(2vw, calc((100vw - 1650px) / 2));
  width: min(51%, 850px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 87%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 87%, transparent);
}
.cover-art img,
.letter-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-art img {
  object-position: 50% 10%;
}
.cover-edge {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 1px solid #dfbc7e53;
}
.cover-edge i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: solid #dbad80;
  border-width: 0;
}
.cover-edge i:nth-child(1) {
  left: -1px;
  top: -1px;
  border-width: 2px 0 0 2px;
}
.cover-edge i:nth-child(2) {
  right: -1px;
  top: -1px;
  border-width: 2px 2px 0 0;
}
.cover-edge i:nth-child(3) {
  left: -1px;
  bottom: -1px;
  border-width: 0 0 2px 2px;
}
.cover-edge i:nth-child(4) {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}
.cover-content {
  inset: var(--header-clear) 5% var(--nav-clear) 49%;
  display: flex;
  flex-direction: column;
}
.cover-copy {
  width: 100%;
  margin-block: auto;
  padding: 0.5rem 0;
  text-align: center;
}
.cover-copy h1 {
  font: 600 clamp(2.85rem, 5.2vw, 6rem) / 1.3 var(--serif);
  letter-spacing: 0.035em;
  text-shadow: 0 2px 18px #44070b55;
}
.honoree {
  margin-bottom: 0.45em;
  color: #edcfa0;
  font: 600 clamp(1.45rem, 2.05vw, 2.15rem) / 1.3 var(--serif);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: clamp(12px, 2.2vh, 23px) 0;
  color: #e6c083;
}
.ornament i {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.ornament b {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
}
.cover-date {
  display: block;
  color: #f5d9ae;
  font: clamp(1.4rem, 2.1vw, 2.1rem) / 1.3 var(--numbers);
  letter-spacing: 0.095em;
  font-variant-numeric: lining-nums tabular-nums;
}
.cover-date span {
  color: #ddb481;
}
.cover-place {
  margin-top: 0.4em;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: #f6ddbe;
}
.cover-place span {
  padding: 0 0.2em;
  color: #c69a74;
}
.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  margin-top: clamp(1rem, 3.5vh, 2rem);
  padding: 0.55em 1.8em;
  background: #f1d2a4;
  color: #651820;
  border: 1px solid #ffe4b5;
  border-radius: 2px;
  box-shadow: 0 6px 22px #4811133b;
  font: 600 1rem/1.3 var(--serif);
  letter-spacing: 0.1em;
}

.letter-paper {
  background-image: linear-gradient(110deg, #660a134d, #51091477), url('/assets/red-paper.webp');
}
.letter-picture {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.letter-art {
  object-position: 56% 87%;
}
.letter-content {
  inset: var(--header-clear) 46% var(--nav-clear) max(9%, var(--side));
  display: flex;
  flex-direction: column;
}
.letter-copy {
  margin-block: auto;
  padding: 1rem 0;
}
.letter-copy h2 {
  font: 600 clamp(3rem, 5.4vw, 6rem) / 1.28 var(--serif);
  letter-spacing: 0.065em;
}
.short-rule {
  width: clamp(48px, 6vw, 88px);
  height: 1px;
  background: #e8c590;
  opacity: 0.9;
  margin: clamp(1rem, 3.3vh, 2.1rem) 0;
}
.letter-text {
  font: normal clamp(1.1rem, 1.6vw, 1.55rem) / 2 var(--text-serif);
  color: #ffefda;
}
.parents {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.32rem 0.95rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #edd0a6;
  margin-top: clamp(1rem, 3.1vh, 2.5rem);
}
.parents strong {
  margin-left: 0.18em;
  font: 600 clamp(1.05rem, 1.5vw, 1.35rem) / 1.4 var(--serif);
  color: #fff0d9;
}
.invite-sign {
  font-family: var(--text-serif);
}

.event-panel {
  background: var(--paper);
  color: var(--ink);
}
.date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(1rem, 2.2vh, 1.8rem);
  color: var(--red);
}
.date-row time {
  font: normal clamp(4.5rem, 7.8vw, 9rem) / 1 var(--numbers);
  letter-spacing: -0.055em;
  font-variant-numeric: lining-nums tabular-nums;
}
.date-row time span {
  color: #ab805c;
}
.date-side {
  display: grid;
  border-left: 1px solid #cdb8a3;
  padding-left: 0.9rem;
  color: #734c3d;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: nowrap;
}
.lunar {
  margin-top: 0.45em;
  color: #73503e;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.venue {
  margin-top: clamp(1.2rem, 3vh, 2.25rem);
  padding-top: clamp(1.1rem, 2vh, 1.8rem);
  border-top: 1px solid #ceb59f;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--wine);
}
.venue strong {
  font: 600 clamp(1.6rem, 2.7vw, 3.1rem) / 1.35 var(--serif);
  letter-spacing: 0.06em;
}
.venue .icon {
  width: 1.45rem;
  height: 1.45rem;
  color: #96654b;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem clamp(12px, 2vw, 32px);
}
.photo-tile {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.photo-frame {
  display: block;
  position: relative;
  padding: 4px;
  background: #fffcf6;
  border: 1px solid #d9c8b1;
  box-shadow: 0 6px 15px #593d2520;
  aspect-ratio: 2/3;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-enlarge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #f4eacf8a;
  border-radius: 50%;
  color: #fff6e7;
  background: #341a1d9c;
}
.photo-enlarge .icon {
  width: 14px;
  height: 14px;
}
.photo-label {
  display: block;
  font: 600 clamp(1rem, 1.4vw, 1.3rem) / 1.5 var(--serif);
  letter-spacing: 0.035em;
  margin: 0.5em 0 0;
}
.photo-missing {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  padding: 0.5rem;
  text-align: center;
}
.album-status,
.text-button,
.photo-missing {
  font: normal 1rem/1.6 var(--sans);
  color: #70503d;
}
.text-button {
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}

@media (max-width: 760px) and (orientation: portrait) {
  :root {
    --side: clamp(1.1rem, 6.2vw, 2.7rem);
    --header-clear: max(4.6rem, calc(env(safe-area-inset-top) + 3.6rem));
    --nav-clear: max(4.7rem, calc(env(safe-area-inset-bottom) + 3.9rem));
  }
  .scene-header {
    top: max(1rem, calc(env(safe-area-inset-top) + 0.4rem));
  }
  .scene-nav {
    bottom: max(0.95rem, calc(env(safe-area-inset-bottom) + 0.3rem));
  }
  .family-mark {
    font-size: 0.83rem;
    gap: 0.42em;
  }
  .seal {
    font-size: 0.95rem;
  }
  .share-button {
    font-size: 0.8125rem;
  }
  .cover-art {
    left: 0;
    right: 0;
    margin-inline: auto;
    width: min(100%, 52vh);
    height: 59%;
    bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 71%, transparent);
    mask-image: linear-gradient(180deg, #000 71%, transparent);
  }
  .cover-content {
    inset: clamp(31%, calc(100% - 320px), 55%) var(--side) var(--nav-clear);
  }
  .cover-copy h1 {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }
  .honoree {
    font-size: clamp(1.35rem, 5vw, 2rem);
    margin-bottom: 0.22em;
  }
  .ornament {
    margin: clamp(9px, 1.5vh, 15px) 0;
  }
  .cover-date {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }
  .cover-place {
    font-size: 0.84rem;
  }
  .open-button {
    margin-top: clamp(12px, 1.9vh, 20px);
    min-height: 44px;
    padding: 0.48em 1.5em;
  }
  .cover-edge {
    inset: max(9px, env(safe-area-inset-top)) 9px max(9px, env(safe-area-inset-bottom));
  }
  .cover-edge i {
    width: 10px;
    height: 10px;
  }
  .letter-content {
    inset: var(--header-clear) var(--side) 44%;
  }
  .letter-copy {
    padding: 0.35rem max(0px, calc((100vw - 450px) * 0.25));
  }
  .letter-copy h2 {
    font-size: clamp(2.45rem, 10.5vw, 4.6rem);
  }
  .short-rule {
    margin: clamp(0.7rem, 2.1vh, 1.3rem) 0;
  }
  .letter-text {
    font-size: clamp(1rem, 4.4vw, 1.5rem);
    line-height: 1.85;
  }
  .parents {
    margin-top: clamp(0.65rem, 2vh, 1.2rem);
    gap: 0.3rem 0.7rem;
  }
  .letter-picture {
    left: 0;
    right: 0;
    top: 43%;
    width: 100%;
    -webkit-mask-image: linear-gradient(transparent, #000 27%);
    mask-image: linear-gradient(transparent, #000 27%);
  }
  .letter-art {
    object-position: 50% 94%;
  }
  .date-row {
    margin-top: 0.6rem;
    gap: 1rem;
  }
  .date-row time {
    font-size: clamp(min(4.3rem, 27vw), 18vw, 6.5rem);
  }
  .date-side {
    font-size: 0.85rem;
  }
  .lunar {
    font-size: 0.92rem;
  }
  .venue {
    margin-top: clamp(0.75rem, 2vh, 1.3rem);
    padding-top: clamp(0.7rem, 1.7vh, 1.1rem);
  }
  .venue strong {
    font-size: clamp(1.55rem, 6.9vw, 2.3rem);
  }
  .photo-grid {
    column-gap: 12px;
  }
  .photo-label {
    font-size: 1rem;
  }
  .photo-frame {
    padding: 3px;
  }
  .photo-enlarge {
    right: 7px;
    bottom: 7px;
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 650px) {
  .cover-art {
    width: min(96%, 46vh);
  }
}
@media (max-height: 530px) and (orientation: landscape) {
  :root {
    --header-clear: max(3.6rem, calc(env(safe-area-inset-top) + 3.3rem));
    --nav-clear: max(3.7rem, calc(env(safe-area-inset-bottom) + 3rem));
    --side: 5%;
  }
  .scene-header {
    top: max(0.4rem, env(safe-area-inset-top));
  }
  .scene-nav {
    bottom: max(0.3rem, env(safe-area-inset-bottom));
  }
  .cover-edge {
    inset: 6px;
  }
  .family-mark {
    font-size: 0.85rem;
  }
  .seal {
    font-size: 0.95rem;
  }
  .cover-content {
    inset: var(--header-clear) 4% var(--nav-clear) 47%;
  }
  .cover-copy {
    padding: 0;
  }
  .cover-copy h1 {
    font-size: clamp(1.85rem, 5vw, 3.25rem);
  }
  .honoree {
    font-size: 1.25rem;
    margin-bottom: 0.1em;
  }
  .ornament {
    margin: 0.4rem 0;
  }
  .cover-date {
    font-size: 1.2rem;
  }
  .cover-place {
    font-size: 0.8rem;
  }
  .open-button {
    margin-top: 0.6rem;
    min-height: 42px;
    padding: 0.35rem 1.35rem;
  }
  .letter-content {
    inset: var(--header-clear) 40% var(--nav-clear) var(--side);
  }
  .letter-copy {
    padding: 0;
  }
  .letter-copy h2 {
    font-size: 2rem;
  }
  .letter-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  .parents {
    margin-top: 0.65rem;
  }
  .short-rule {
    margin: 0.55rem 0;
  }
  .date-row {
    margin-top: 0.3em;
    gap: 0.65rem;
  }
  .date-row time {
    font-size: 3.8rem;
  }
  .lunar {
    font-size: 0.85rem;
  }
  .venue {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
  }
  .venue strong {
    font-size: 1.4rem;
  }
  .photo-enlarge {
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
  }
  .photo-label {
    font-size: 0.85rem;
  }
}
/* The date and the portraits belong to the same spread. The final spread holds the travel details. */
.visit-panel,
.event-panel {
  background: var(--paper);
  color: var(--ink);
}
.event-content,
.visit-content {
  inset: var(--header-clear) var(--side) var(--nav-clear);
  display: flex;
  flex-direction: column;
}
.event-spread,
.visit-spread {
  margin: auto;
  padding: 10px 3px;
  display: grid;
  width: min(100%, 1210px);
  align-items: center;
  gap: clamp(35px, 5.3vw, 90px);
}
.event-spread {
  grid-template-columns: minmax(240px, 0.81fr) minmax(0, 1.4fr);
}
.visit-spread {
  grid-template-columns: minmax(170px, 1fr) minmax(0, 1fr);
  max-width: 1100px;
}
.event-copy h2,
.visit-copy h2 {
  color: var(--wine);
  font: 600 clamp(2.5rem, 4.45vw, 4.8rem) / 1.22 var(--serif);
  letter-spacing: 0.065em;
}
.event-gallery {
  width: min(
    100%,
    calc((var(--scene-height) - var(--header-clear) - var(--nav-clear) - 115px) * 1.333 + 20px)
  );
  min-width: 0;
  justify-self: center;
}
.gallery-line {
  margin-bottom: clamp(0.6rem, 1.5vh, 1rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d2baa2;
}
.gallery-line h3 {
  font: 600 clamp(1.15rem, 1.65vw, 1.7rem) / 1.35 var(--serif);
  letter-spacing: 0.09em;
  color: var(--wine);
}
.visit-figure {
  width: 100%;
  height: min(60vh, 580px);
  position: relative;
  overflow: hidden;
  border: 4px solid #fffcf6;
  box-shadow:
    0 0 0 1px #d3bda7,
    0 12px 25px #5b382019;
}
.visit-figure img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 7%;
}
.visit-copy {
  width: 100%;
  max-width: 505px;
}
.countdown {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0 0.95rem;
  border-bottom: 1px solid #c9ad8d;
}
#countdown-label {
  font: normal clamp(1rem, 1.55vw, 1.3rem) / 1.5 var(--text-serif);
  color: #634337;
}
.countdown-number {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--wine);
}
#countdown-value {
  font:
    normal clamp(2.5rem, 5.4vw, 5rem) / 1.03 var(--numbers),
    var(--serif);
  letter-spacing: -0.04em;
}
#countdown-unit {
  font: 600 1.05rem/1.2 var(--serif);
}
.visit-place {
  padding: clamp(1rem, 2.3vh, 1.65rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
}
.visit-venue {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}
.visit-venue .icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  color: #9b674a;
  margin-top: 0.3rem;
}
.visit-venue h3 {
  font: 600 clamp(1.35rem, 2vw, 1.83rem) / 1.45 var(--serif);
  color: var(--wine);
  letter-spacing: 0.04em;
}
#venue-address {
  grid-column: 1 / -1;
  padding-left: 1.85rem;
  font: 0.95rem/1.65 var(--sans);
  color: #684c3c;
  overflow-wrap: anywhere;
}
.map-button,
.contact-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font: 500 0.94rem/1.35 var(--sans);
  text-align: center;
}
.map-button {
  flex: none;
  padding: 0.6rem 0.95rem;
  color: #fff2d9;
  background: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 3px;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.contact-button {
  padding: 0.6rem 0.75rem;
  color: var(--wine);
  border: 1px solid #a57a61;
  border-radius: 3px;
}
.contact-button .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.contact-button[aria-disabled='true'] {
  background: #efe7da;
  color: #796c5e;
  border-color: #d6c7b4;
  cursor: default;
}
@media (max-width: 760px) and (orientation: portrait) {
  .event-spread,
  .visit-spread {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.7rem, 2vh, 1.55rem);
    max-width: 480px;
    padding: 0.3rem 2px;
  }
  .event-copy h2,
  .visit-copy h2 {
    font-size: clamp(1.9rem, 7.2vw, 2.8rem);
  }
  .event-copy .date-row {
    margin-top: 0.4rem;
  }
  .event-copy .date-row time {
    font-size: clamp(3.5rem, 15vw, 5.3rem);
  }
  .event-copy .venue {
    margin-top: 0.6rem;
    padding-top: 0.55rem;
  }
  .event-copy .venue strong {
    font-size: clamp(1.3rem, 5vw, 1.85rem);
  }
  .event-gallery {
    align-self: center;
    width: min(
      100%,
      max(160px, calc((var(--scene-height) - var(--header-clear) - var(--nav-clear) - 15rem) * 1.28))
    );
  }
  .gallery-line {
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
  }
  .visit-figure {
    height: clamp(55px, 16vh, 154px);
    border-width: 3px;
  }
  .visit-figure img {
    object-position: 50% 10%;
  }
  .visit-copy {
    align-self: center;
  }
  .countdown {
    padding: 0.35rem 0 0.65rem;
    gap: 0.9rem;
  }
  #countdown-value {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }
  .visit-place {
    padding: clamp(0.6rem, 1.8vh, 1rem) 0;
  }
}
@media (max-width: 760px) and (max-height: 625px) and (orientation: portrait) {
  .event-spread,
  .visit-spread {
    gap: 0.55rem;
  }
  .event-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.2rem 0.65rem;
  }
  .event-copy h2,
  .event-copy .date-row {
    grid-column: 1 / -1;
  }
  .event-copy .venue {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0.2rem;
  }
  .event-copy .venue strong {
    font-size: 1.08rem;
  }
  .event-copy .venue .icon {
    width: 1rem;
  }
  .event-gallery {
    width: min(
      100%,
      max(190px, calc((var(--scene-height) - var(--header-clear) - var(--nav-clear) - 13rem) * 1.35))
    );
  }
  .photo-frame {
    aspect-ratio: 4 / 5;
  }
  .photo-label {
    font-size: 0.89rem;
  }
  .visit-figure {
    height: 9vh;
  }
  .visit-place {
    padding: 0.4rem 0;
  }
  .visit-venue {
    gap: 0.3rem;
  }
  .visit-venue h3 {
    font-size: 1.17rem;
  }
  #venue-address {
    padding-left: 0;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .map-button {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }
}
@media (max-height: 530px) and (orientation: landscape) {
  .event-spread,
  .visit-spread {
    column-gap: 4vw;
    padding: 2px;
  }
  .event-spread {
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.1fr);
  }
  .visit-spread {
    grid-template-columns: minmax(115px, 0.6fr) minmax(0, 1.4fr);
  }
  .event-copy h2,
  .visit-copy h2 {
    font-size: 1.85rem;
  }
  .event-gallery {
    width: min(
      100%,
      max(140px, calc((var(--scene-height) - var(--header-clear) - var(--nav-clear) - 80px) * 1.28))
    );
  }
  .gallery-line {
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
  }
  .visit-figure {
    height: calc(var(--scene-height) - var(--header-clear) - var(--nav-clear) - 12px);
  }
  .countdown {
    padding: 0.2rem 0 0.35rem;
    gap: 0.7rem;
  }
  #countdown-value {
    font-size: 2.15rem;
  }
  .visit-place {
    padding: 0.45rem 0;
  }
  .visit-venue h3 {
    font-size: 1.3rem;
  }
  #venue-address {
    font-size: 0.85rem;
  }
}

@media (hover: hover) {
  .open-button:hover {
    background: #f8e2bc;
  }
  .share-button:hover,
  .scene-nav button:not(:disabled):hover,
  .page-links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.22em;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.lightbox {
  background: #201415;
  color: #ffeddd;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom)
    max(16px, env(safe-area-inset-left));
  animation: veil 0.2s ease-out;
}
.lightbox-bar,
.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  flex: none;
  margin: 0 auto;
  width: min(1120px, 100%);
}
#photo-index {
  font-family: var(--numbers);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.circle-button {
  display: inline-grid;
  place-items: center;
  height: 45px;
  width: 45px;
  flex: none;
  border: 1px solid #e7d4c35f;
  border-radius: 50%;
  color: inherit;
}
.circle-button .icon {
  width: 21px;
  height: 21px;
}
.lightbox-view {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  position: relative;
}
.lightbox-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
.photo-error {
  font-size: 16px;
  color: #ecd3ba;
}
.lightbox-bottom {
  padding: 16px 0 20px;
  width: min(720px, 100%);
}
#photo-caption {
  text-align: center;
  line-height: 1.5;
  font-size: 17px;
  font-family: var(--serif);
}
.share-dialog {
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #24090edb;
  animation: veil 0.22s ease-out;
}
.share-sheet {
  width: min(100%, 430px);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9c5a7;
  border-radius: 12px;
  padding: 12px clamp(14px, 3vw, 22px) 16px;
  background: #fcf5e9;
  color: var(--ink);
  box-shadow: 0 18px 70px #19060b70;
}
.share-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.share-sheet h2 {
  font: 600 clamp(1.22rem, 4.8vw, 1.48rem) / 1.3 var(--serif);
  letter-spacing: 0.08em;
}
.share-sheet .circle-button {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--wine);
}
.poster-frame {
  display: grid;
  place-items: center;
  min-width: 0;
}
.poster-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: max(100px, calc(var(--scene-height) - 228px));
  box-shadow: 0 3px 12px #4a231c28;
  -webkit-touch-callout: default;
}
#poster-retry {
  margin: 32px 0;
  padding: 12px 18px;
  border: 1px solid #baa084;
  border-radius: 4px;
}
.poster-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #c9b292;
}
.poster-actions button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 58px;
  color: var(--wine);
  font: 500 clamp(0.8rem, 2.8vw, 0.94rem) / 1.4 var(--sans);
}
.poster-actions .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.55;
}
.poster-actions button + button {
  border-left: 1px solid #decbb25c;
}
#share-tip:not(:empty) {
  margin: 10px 0 0;
  color: #694335;
  font: 0.9rem / 1.55 var(--sans);
  text-align: center;
}
@media (max-height: 540px) {
  .share-sheet header {
    margin-bottom: 4px;
  }
  .poster-actions {
    margin-top: 8px;
    padding-top: 6px;
  }
  #share-tip:not(:empty) {
    margin-top: 6px;
  }
}
@keyframes veil {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dialog {
  z-index: 40;
}
