@font-face {
  font-family: Antic;
  src: url("assets/antic-didone.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Thai;
  src: url("assets/noto-serif-thai.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Script;
  src: url("assets/great-vibes.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Antic, Thai, serif;
  background: #264c25;
  color: #fff9e9;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff9df;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.75;
}
.experience {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
}
.stage {
  width: min(100vw, 56.25svh);
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  background: #264c25;
  box-shadow: 0 0 0 1px #ffffff0d;
}
video,
#namesStill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.overlay-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  transform-origin: 0 0;
  pointer-events: none;
  overflow: hidden;
}
.tracked {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  transform-origin: 0 0;
  visibility: hidden;
  text-align: center;
  color: #fffde9;
  will-change: transform;
  pointer-events: none;
}
.tracked h1,
.tracked p {
  margin: 0;
  font-weight: 400;
}
.names h1 {
  position: absolute;
  top: 730px;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 128px;
  line-height: 1.15;
  gap: 70px;
  letter-spacing: 3px;
}
.amp {
  font:
    100px/1.25 Script,
    serif;
  margin-top: 2px;
}
.names .date {
  position: absolute;
  top: 1435px;
  width: 100%;
  font-size: 42px;
  letter-spacing: 2px;
  line-height: 1.4;
}
.names .venue {
  position: absolute;
  top: 1530px;
  left: 80px;
  width: 920px;
  font-size: 31px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.event {
  font-size: 38px;
  line-height: 1.4;
  letter-spacing: 0.7px;
}
.event > p,
.event > div {
  position: relative;
  left: 100px;
  width: 880px;
}
.event .event-time {
  font-size: 55px;
  line-height: 1.2;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.event .note {
  font-size: 32px;
  margin-top: 6px;
}
.event .second {
  margin-top: 32px;
}
.car {
  padding-top: 1215px;
}
.rings {
  padding-top: 1115px;
}
.food {
  padding-top: 1165px;
}
.mic {
  padding-top: 1168px;
}
.party {
  padding-top: 1310px;
}
html[lang="th"] .names h1 {
  font-family: Thai, serif;
  font-size: 132px;
  letter-spacing: 0;
  line-height: 1.2;
  gap: 60px;
}
html[lang="th"] .amp {
  font-family: Script, serif;
}
html[lang="th"] .event {
  font-family: Thai, serif;
  font-size: 36px;
  line-height: 1.6;
  letter-spacing: 0;
}
html[lang="th"] .event-time {
  font-family: Antic, serif;
}
html[lang="th"] .names .date,
html[lang="th"] .names .venue {
  font-family: Thai, serif;
  letter-spacing: 0;
}
html[lang="th"] .names .date {
  font-size: 39px;
}
html[lang="th"] .names .venue {
  font-size: 33px;
}
.start-screen {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 9%;
  background: #00000005;
}
.start-screen[hidden] {
  display: none;
}
.open {
  background: #fbf2dfed;
  color: #34522c;
  border: 1px solid #f8f0dd88;
  padding: 13px 24px;
  font:
    14px/1.6 Thai,
    serif;
  box-shadow: 0 3px 12px #0002;
  min-width: 170px;
}
.open small {
  display: block;
  font:
    12px/1.7 Thai,
    serif;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.language {
  position: fixed;
  right: max(15px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #254a25d9;
  border: 1px solid #ffffff3b;
  border-radius: 24px;
  padding: 5px 12px;
  font:
    11px Thai,
    serif;
}
.language button {
  padding: 4px 1px;
  background: none;
  border: 0;
  opacity: 0.6;
}
.language button[aria-pressed="true"] {
  opacity: 1;
}
.language span {
  opacity: 0.3;
}
.playback {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 480px);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #244324e8;
  padding: 8px 13px;
  border: 1px solid #ffffff29;
  border-radius: 25px;
  z-index: 10;
}
.playback[hidden] {
  display: none;
}
.playback button {
  background: none;
  border: 0;
  padding: 3px;
  font:
    11px/1.6 Thai,
    serif;
  white-space: nowrap;
  min-width: 36px;
}
.progress-label {
  display: flex;
  flex: 1;
}
input[type="range"] {
  width: 100%;
  height: 16px;
  accent-color: #dfe9c3;
  cursor: pointer;
}
.error {
  position: absolute;
  inset: 0;
  background: #264c25ec;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  font-family: Thai, serif;
}
.error[hidden] {
  display: none;
}
.error button {
  background: transparent;
  border: 1px solid #fff8;
  padding: 10px;
  margin: 20px auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 800px) {
  .stage {
    width: min(53.5svh, 540px);
    box-shadow: 0 10px 45px #10231377;
  }
  .language {
    right: calc(50% - min(26.75svh, 270px) + 13px);
    top: calc((100svh - min(95.111svh, 960px)) / 2 + 13px);
  }
  .playback {
    bottom: 13px;
    max-width: 430px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Control-only interaction polish; the source scene and timing stay untouched. */
button,
input[type="range"] {
  min-height: 44px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background-color 120ms cubic-bezier(0.16, 1, 0.3, 1),
    color 120ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.language {
  padding: 2px;
  gap: 0;
  border-radius: 26px;
}
.language button {
  min-width: 44px;
  padding: 0 8px;
  border-radius: 22px;
}
.language span {
  padding: 0 2px;
}
.playback {
  padding: 2px 8px;
  gap: 8px;
  border-radius: 26px;
}
.playback button {
  min-width: 44px;
  padding: 0 7px;
  border-radius: 22px;
}
.progress-label {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
input[type="range"] {
  min-width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 22px;
  transition: background-color 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.language button:active,
.playback button:active,
.error button:active,
input[type="range"]:active {
  background-color: #fff9df24;
  opacity: 1;
}
.open:active:not(:disabled) {
  background-color: #dfebc5;
  color: #203d1d;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff9df;
  outline-offset: 2px;
}
.tracked h1,
.tracked p {
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}
@media (prefers-reduced-motion: reduce) {
  button,
  input[type="range"] {
    transition: none;
  }
}
/* Story interaction: native zoom remains available; no visible player bar. */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  display: block;
  overflow: auto;
}
.experience {
  display: block;
  min-height: 100svh;
}
.story-shell {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
}
.stage {
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-touch-callout: none;
}
.stage:focus-visible {
  outline: 2px solid #fff9df;
  outline-offset: -3px;
}
.language {
  position: absolute;
}
.story-actions {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  font:
    11px/1.5 Thai,
    serif;
}
.story-actions p {
  margin: 0 0 8px;
  text-shadow: 0 1px 4px #173319;
}
.story-actions button {
  pointer-events: auto;
  min-width: 44px;
  padding: 7px 16px;
  border: 1px solid #fff9df60;
  border-radius: 24px;
  background: #244324e8;
  font:
    12px/1.5 Thai,
    serif;
  margin: 3px;
}
.story-actions button:active {
  background: #41623c;
}
.story-actions [hidden],
.keyboard-toggle[hidden],
.rsvp-panel[hidden] {
  display: none !important;
}
.keyboard-toggle {
  position: absolute;
  left: 10px;
  top: 10px;
  transform: translateY(-150%);
  z-index: 12;
  background: #244324;
  color: #fff9df;
  border: 1px solid;
  padding: 8px 16px;
}
.keyboard-toggle:focus-visible {
  transform: none;
}
.stage.is-holding .tracked {
  user-select: none;
  -webkit-user-select: none;
}
.stage.is-holding .tracked p,
.stage.is-holding .tracked h1 {
  user-select: none;
  -webkit-user-select: none;
}
.rsvp-panel {
  width: min(100% - 32px, 480px);
  margin: 16px auto max(40px, env(safe-area-inset-bottom));
  padding: 30px 24px;
  background: #f4f0df;
  color: #29482b;
  border: 1px solid #b5be96;
  border-radius: 4px;
  box-shadow: 0 12px 35px #122b1829;
  animation: rsvp-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
  scroll-margin-top: 20px;
}
.rsvp-eyebrow {
  font:
    11px/1.5 Antic,
    serif;
  letter-spacing: 2px;
  text-align: center;
}
.rsvp-panel h2 {
  font:
    40px/1.2 Antic,
    Thai,
    serif;
  text-align: center;
  margin: 14px 0;
}
.demo-note {
  font:
    13px/1.8 Thai,
    serif;
  text-align: center;
  color: #4b634c;
  margin: 0 0 24px;
}
.rsvp-panel label {
  display: block;
  font:
    14px/1.6 Thai,
    serif;
  margin: 18px 0 7px;
}
.rsvp-panel input,
.rsvp-panel select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font:
    16px/1.5 Thai,
    serif;
  color: #29482b;
  background: #fffdf3;
  border: 1px solid #71846a;
  border-radius: 3px;
  color-scheme: light;
}
.rsvp-panel input:focus-visible,
.rsvp-panel select:focus-visible {
  outline: 2px solid #49673c;
  outline-offset: 2px;
}
.rsvp-submit {
  display: block;
  width: 100%;
  margin-top: 26px;
  min-height: 48px;
  border: 1px solid #29482b;
  border-radius: 3px;
  background: #29482b;
  color: #fff9df;
  font:
    16px/1.5 Thai,
    serif;
  padding: 10px;
}
.rsvp-submit:active {
  background: #44633c;
}
.rsvp-submit:focus-visible {
  outline-color: #29482b;
}
#responseStatus {
  font:
    14px/1.8 Thai,
    serif;
  margin: 18px 0 0;
}
.rsvp-panel form {
  margin: 0;
}
@keyframes rsvp-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-panel {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
/* 12-principles UI polish: one focal scene, rigid art, consistent subtle feedback. */
button {
  transition:
    transform 120ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 120ms cubic-bezier(0.16, 1, 0.3, 1),
    color 120ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
.details-cue {
  position: absolute;
  bottom: 6px;
  left: 50%;
  translate: -50% 0;
  min-height: 44px;
  white-space: nowrap;
  padding: 8px 16px;
  border: 0;
  border-radius: 24px;
  background: #264c25e8;
  font:
    12px/1.5 Thai,
    serif;
  z-index: 4;
}
.details-cue:active {
  background: #41623c;
}
.details-cue[hidden] {
  display: none;
}
.event-details {
  width: min(100% - 32px, 560px);
  margin: 28px auto 0;
  padding: 36px 30px 12px;
  color: #29482b;
  background: #f4f0df;
  border: 1px solid #b5be96;
  border-radius: 4px;
  box-shadow: 0 12px 35px #122b1829;
  scroll-margin-top: 20px;
}
.event-details:focus {
  outline: none;
}
.event-details:focus-visible {
  outline: 2px solid #dfe9c3;
  outline-offset: 4px;
}
.details-heading {
  text-align: center;
  padding-bottom: 24px;
}
.details-heading h2 {
  font:
    38px/1.25 Antic,
    Thai,
    serif;
  margin: 16px 0;
}
.details-date {
  font:
    16px/1.7 Thai,
    serif;
  margin: 0;
}
.detail-block {
  border-top: 1px solid #80946c66;
  padding: 26px 0 30px;
  text-align: center;
}
.section-number {
  font:
    12px/1 Antic,
    serif;
  letter-spacing: 2px;
  color: #718366;
  margin: 0 0 12px;
}
.detail-block h3 {
  font:
    30px/1.3 Antic,
    Thai,
    serif;
  margin: 0 0 18px;
}
.venue-name {
  font:
    17px/1.7 Antic,
    Thai,
    serif;
  letter-spacing: 0.4px;
  margin: 0 0 14px;
}
.venue-block address {
  font:
    14px/1.9 Thai,
    serif;
  font-style: normal;
}
.section-note {
  font:
    13px/1.8 Thai,
    serif;
  color: #4b634c;
  margin: -7px 0 22px;
}
.colour-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.colour-palette li {
  width: 88px;
  font:
    12px/1.6 Thai,
    serif;
}
.swatch {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 9px;
  background: var(--swatch);
  border-radius: 49% 51% 46% 54%/52% 48% 52% 48%;
  border: 1px solid #29482b20;
  box-shadow: inset 0 2px 4px #ffffff38;
}
.day-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.day-timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  position: relative;
  padding: 17px 0;
  border-bottom: 1px solid #80946c33;
  font:
    14px/1.7 Thai,
    serif;
}
.day-timeline li:last-child {
  border: 0;
}
.day-timeline time {
  font:
    21px/1.4 Antic,
    serif;
  font-variant-numeric: tabular-nums;
}
.day-timeline small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #53694b;
  margin-top: 4px;
}
.rsvp-panel {
  width: min(100% - 32px, 560px);
  margin-top: 24px;
  animation: none;
}
@media (max-width: 360px) {
  .event-details {
    padding: 30px 20px 12px;
  }
  .details-heading h2 {
    font-size: 32px;
  }
  .colour-palette {
    gap: 18px 8px;
  }
  .colour-palette li {
    width: 72px;
  }
  .day-timeline li {
    gap: 12px;
    grid-template-columns: 62px 1fr;
    font-size: 13px;
  }
  .day-timeline time {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  button:active:not(:disabled) {
    transform: none;
  }
}
@media (min-width: 800px) {
  .story-actions {
    bottom: 60px;
  }
}
button:focus-visible {
  transition: none;
}
button:focus-visible:active:not(:disabled) {
  transform: none;
}
/* Blend controls and the reading continuation into the original meadow palette. */
.open {
  min-height: 58px;
  min-width: 190px;
  padding: 15px 26px;
  border: 1px solid #e6e9c882;
  border-radius: 46% 54% 48% 52%/18% 24% 20% 22%;
  background:
    radial-gradient(ellipse at 20% 10%, #78905c55, transparent 65%),
    radial-gradient(ellipse at 80% 100%, #173c24aa, transparent 70%), #294d28e8;
  color: #fff9df;
  box-shadow:
    inset 0 0 12px #c6d5a415,
    0 3px 12px #17361b25;
  font:
    15px/1.6 Antic,
    Thai,
    serif;
  letter-spacing: 0.6px;
}
.open:active:not(:disabled) {
  background-color: #416139;
  color: #fff9df;
}
.open small {
  color: #fff9df;
}
.language,
.story-actions button {
  background: #264b26bd;
  border-color: #e6e9c84d;
  box-shadow: inset 0 0 12px #adc18c10;
}
.story-actions button {
  border-radius: 46% 54% 48% 52%/20% 25% 22% 25%;
}
#storyHint {
  opacity: 1;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
#storyHint.hint-fading {
  opacity: 0;
}
.event-details,
.rsvp-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff9df;
}
.event-details {
  padding-top: 40px;
}
.detail-block {
  border-top-color: #dae4ba45;
}
.section-number {
  color: #d2ddb9;
}
.section-note,
.demo-note,
.day-timeline small {
  color: #dae3c6;
}
.day-timeline li {
  border-bottom-color: #dae4ba2e;
}
.swatch {
  border-color: #eff1d54d;
  box-shadow: 0 2px 8px #18391b26;
}
.rsvp-panel {
  border-top: 1px solid #dae4ba45;
  padding-top: 38px;
}
.rsvp-panel input,
.rsvp-panel select {
  color: #fff9df;
  background: #eff1d50a;
  border-color: #e4e9c78c;
  border-radius: 5px;
  color-scheme: dark;
}
.rsvp-panel select option {
  background: #294d28;
  color: #fff9df;
}
.rsvp-panel input:focus-visible,
.rsvp-panel select:focus-visible {
  outline-color: #fff9df;
}
.rsvp-submit {
  background: #e6e9c8;
  color: #29482b;
  border-color: #e6e9c8;
  border-radius: 46% 54% 48% 52%/12% 15% 12% 15%;
}
.rsvp-submit:active {
  background: #d3deb8;
}
.rsvp-submit:focus-visible {
  outline-color: #fff9df;
}
.details-heading,
.rsvp-panel > h2 {
  text-shadow: 0 1px 3px #17361b20;
}
@media (prefers-reduced-motion: reduce) {
  #storyHint {
    transition: none;
  }
}
.brand-mark {
  color: #fff9df;
}
.couple-logo {
  position: absolute;
  left: 160px;
  top: 650px;
  width: 760px;
  height: 760px;
}
.heading-logo {
  width: 164px;
  height: 164px;
  margin: 0 auto 22px;
}
.names h1.name-accessible {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  display: block;
  font-size: 1px;
  gap: 0;
}
.open small[hidden] {
  display: none;
}
/* Keep the entire story session clean, including press-and-hold pauses. */
.language[hidden] {
  display: none !important;
}
.language.reading-language {
  position: fixed;
  right: max(15px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
}
/* Promote only active captions; portrait mobile fills its available browser viewport. */
.tracked {
  will-change: auto;
}
@media (max-width: 799px) and (orientation: portrait) {
  .story-shell {
    height: 100dvh;
    min-height: 100dvh;
    place-items: stretch;
  }
  .stage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    box-shadow: none;
  }
  video,
  #namesStill {
    object-fit: cover;
  }
  .language {
    top: max(12px, env(safe-area-inset-top));
  }
}
@media (max-width: 799px) and (orientation: portrait) {
  .story-actions {
    bottom: max(
      18px,
      var(--story-safe-bottom, env(safe-area-inset-bottom, 0px))
    );
  }
}

.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Demo Script", cursive;
  line-height: 0.83;
  -webkit-text-stroke: 0.006em currentColor;
}
.brand-mark span:first-child {
  transform: translateX(-0.18em);
}
.brand-mark span:last-child {
  transform: translateX(0.08em);
}
.brand-mark i {
  font-size: 0.55em;
  font-style: normal;
  margin-right: 0.08em;
}
.couple-logo {
  font-size: 220px;
}
.heading-logo {
  font-size: 53px;
}

#namesStill[hidden] {
  display: none;
}
