/* Initial font readiness is handled by appearance.js. Keep text visible on reflow. */
@font-face {
  font-family: "Gaegu";
  src: url("/_immutable/c083a5ba9c015131/assets/fonts/gaegu.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kosefont-JP";
  src: url("/_immutable/3f49a46410383355/assets/fonts/kosefont-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Xiaolai";
  src: url("/_immutable/bc4f25851da19afa/assets/fonts/xiaolai.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #171714;
  --quiet-ink: #666660;
  --flower-stem: #718345;
  --heading-font: "Gaegu", "Comic Sans MS", cursive;
  --control-font-size: 2rem;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
}

button { font: inherit; }

/* Pointer focus keeps the browser's keyboard-only indicators available. */
:focus:not(:focus-visible) { outline: none; }

/* Navigation and dialogs focus static headings without drawing a box. */
:is(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:focus { outline: none; }

.text-phrase { white-space: nowrap; }

:lang(ko) .welcome-heading,
:lang(ko) .inside-heading,
:lang(ko) .inside-message { word-break: keep-all; }

:lang(ja) .inside,
:lang(zh-Hans) .inside,
:lang(ja) .welcome-heading,
:lang(zh-Hans) .welcome-heading { line-break: strict; }

:root:lang(ja) {
  --heading-font: "Kosefont-JP", "Hiragino Maru Gothic ProN", sans-serif;
  --control-font-size: 1.375rem;
}

:root:lang(zh-Hans) {
  --heading-font: "Xiaolai", "Kaiti SC", "STKaiti", sans-serif;
  --control-font-size: 1.625rem;
}

/* Reveal handwritten copy only after its font is ready; navigation stays usable. */
:root[data-page-pending] :is(.welcome-copy, .garden-welcome, .inside-section, .flower-dialog, .flower-tooltip) {
  visibility: hidden;
}

/* Keep the inside screen together until its entrance can begin. */
:root[data-page-pending] .inside-page { visibility: hidden; }

:root[data-font-fallback] {
  --heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  padding: clamp(1rem, 2.4vw, 2.5rem) clamp(1.25rem, 4.5vw, 5rem);
}

.page-header--inside {
  position: fixed;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: max(.25rem, env(safe-area-inset-top)) clamp(.75rem, 2.6vw, 2.5rem) .375rem;
}

/* A separate glass surface leaves the navigation and its focus rings crisp. */
.page-header--inside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  box-shadow: inset 0 -1px 0 rgb(23 23 20 / 5%);
  pointer-events: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .page-header--inside::before {
    background: rgb(255 255 255 / 72%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    backdrop-filter: blur(18px) saturate(110%);
  }
}

.languages {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.75rem;
}

.languages::after {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--language-line-width, 0px);
  height: 1.5px;
  background: var(--flower-stem);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--language-line-x, 0px), var(--language-line-y, 0px), 0);
}

.languages[data-indicator-ready]::after { opacity: 1; }
.languages[data-indicator-moving]::after,
.section-nav[data-indicator-moving]::after {
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
              width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.languages[data-indicator-ready] button::after { display: none; }

.languages button {
  position: relative;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--quiet-ink);
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}

.languages button::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0.4rem;
  left: 0.25rem;
  height: 1.5px;
  background: var(--flower-stem);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.languages button[aria-pressed="true"] { color: var(--ink); }
.languages button[aria-pressed="true"]::after { transform: scaleX(1); }
.languages button:active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .languages button:hover { color: var(--ink); }
}
.languages button:focus-visible {
  outline: 2px solid var(--flower-stem);
  outline-offset: 4px;
  border-radius: 3px;
}

.language-picker { position: relative; width: 5.25rem; }
.languages .language-trigger {
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  width: 100%;
  padding: .5rem .25rem;
  font-size: .875rem;
  letter-spacing: normal;
}
.language-trigger svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--quiet-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}
.language-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-picker button::after { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  display: grid;
  width: 10.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: .375rem;
  border: 1px solid rgb(113 131 69 / 28%);
  border-radius: 10px 8px 12px 9px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(23 23 20 / 8%), 0 2px 6px rgb(23 23 20 / 4%);
  animation: language-menu-in 140ms ease-out;
}
.language-menu[hidden] { display: none; }
.language-menu button {
  padding: .375rem 2rem .375rem .75rem;
  border-radius: 5px 7px 6px 8px;
  font: 1.5rem/1.35 "Gaegu", "Comic Sans MS", cursive;
  text-align: left;
  white-space: nowrap;
}
.language-menu button:lang(ja) { font-family: "Kosefont-JP", "Hiragino Maru Gothic ProN", sans-serif; font-size: 1.0625rem; }
.language-menu button:lang(zh-Hans) { font-family: "Xiaolai", "Kaiti SC", "STKaiti", sans-serif; font-size: 1.1875rem; }
.language-menu button[aria-checked="true"] { color: var(--ink); background: rgb(113 131 69 / 9%); }
.language-menu button[aria-checked="true"]::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: .75rem;
  width: 9px;
  height: 5px;
  border-bottom: 1.5px solid var(--flower-stem);
  border-left: 1.5px solid var(--flower-stem);
  transform: rotate(-45deg);
}
.language-menu button:active,
.language-menu button:focus-visible { background: rgb(113 131 69 / 9%); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .language-menu button:hover { background: rgb(113 131 69 / 9%); color: var(--ink); }
}
.language-menu button:focus-visible { outline-offset: -2px; }
@keyframes language-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header--inside .back-link {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  justify-content: center;
  width: 44px;
  padding: 0;
}
.page-header--inside .back-icon { display: block; }
.page-header--inside .back-link-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-thumbnail { grid-column: 2; grid-row: 1; justify-self: center; display: none; width: 44px; height: 44px; }
.header-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.page-header--inside .languages {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 0;
}
.page-header--inside .languages::after { display: none; }

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: clamp(1rem, 2.6vw, 3rem);
  width: min(86%, 1500px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 7rem 0;
}

.welcome-heading {
  margin: 0;
  max-width: 100%;
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 4.45vw, 4.75rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.045em;
  text-align: left;
  text-wrap: balance;
}

.welcome-heading > span { display: block; }
.welcome-heading > span:empty { display: none; }
.welcome-heading--english > :is([data-line="2"], [data-line="3"]) { display: inline; }

.welcome-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  container-type: inline-size;
}
.welcome-actions { grid-row: 2; align-self: start; }

.portrait-name {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: default;
  touch-action: manipulation;
  text-decoration: none;
}

.portrait-name:focus-visible, .country-hover:focus-visible, .color-hover:focus-visible {
  outline: 2px solid var(--flower-stem);
  outline-offset: 4px;
  border-radius: 3px;
}
.portrait-name, .country-hover, .color-hover, .enter-button { -webkit-tap-highlight-color: transparent; }

.name-portrait {
  --portrait-tilt: -7deg;
  --portrait-peek-tilt: -13deg;
  position: fixed;
  z-index: 30;
  width: clamp(77px, 8vw, 106px);
  aspect-ratio: 1;
  padding: 4px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.88) rotate(var(--portrait-tilt));
  transform-origin: 50% 85%;
  transition: opacity 170ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 170ms;
}

.name-portrait[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--portrait-tilt));
  animation: portrait-peek 380ms ease-out;
}
.name-portrait[data-side="right"] { --portrait-tilt: 7deg; --portrait-peek-tilt: 13deg; }
@keyframes portrait-peek {
  0% { opacity: 0; transform: translateY(10px) scale(0.84) rotate(var(--portrait-peek-tilt)); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.04) rotate(var(--portrait-tilt)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--portrait-tilt)); }
}
.name-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgb(23 23 20 / 0.07));
}
.name-portrait img[hidden] { display: none; }

@media (max-width: 900px) {
  .name-portrait { width: clamp(42px, 11.2vw, 54px); padding: 2px; }
}

.welcome-details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1em 0.4em;
  margin: 1.5rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2.1vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.welcome-details [data-copy="date"] { white-space: nowrap; }
.welcome-date-place { display: inline-flex; align-items: baseline; gap: 0.4em; white-space: nowrap; }

.country-hover {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: default;
  touch-action: manipulation;
}
@media (pointer: coarse) {
  /* Extend the hit area without changing the heading or location's line boxes. */
  .portrait-name::before, .country-hover::before, .color-hover::before {
    position: absolute;
    inset-inline: -3px;
    top: 50%;
    min-height: 44px;
    height: 100%;
    content: '';
    transform: translateY(-50%);
  }
}
.baguette-bubbles {
  position: fixed;
  inset: 0;
  z-index: 31;
  overflow: hidden;
  pointer-events: none;
}
.baguette-bubble {
  position: absolute;
  display: block;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  animation: baguette-float 720ms ease-out forwards;
}
@keyframes baguette-float {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.72) rotate(var(--baguette-tilt)); }
  12% { opacity: 1; }
  30% { opacity: 0.75; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--baguette-drift)), var(--baguette-rise)) scale(0.82) rotate(calc(var(--baguette-tilt) + 12deg));
  }
}

.color-hover { position: relative; cursor: default; touch-action: manipulation; }
.color-dots {
  position: fixed;
  inset: 0;
  z-index: 31;
  overflow: hidden;
  pointer-events: none;
}
.color-dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--dot-color);
  opacity: 0;
  animation: color-scatter var(--dot-duration) linear forwards;
}
@keyframes color-scatter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  6% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dot-x) * .2), calc(-50% + var(--dot-y) * .2)) scale(1.45);
    animation-timing-function: ease-out;
  }
  14% {
    opacity: .95;
    transform: translate(calc(-50% + var(--dot-x) * .32), calc(-50% + var(--dot-y) * .32)) scale(1);
    animation-timing-function: linear;
  }
  65% {
    opacity: .6;
    transform: translate(calc(-50% + var(--dot-x) * .8), calc(-50% + var(--dot-y) * .8)) scale(.8);
  }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dot-x)), calc(-50% + var(--dot-y))) scale(.3); }
}

:lang(ja) .welcome-details,
:lang(zh-Hans) .welcome-details {
  font-size: clamp(1.125rem, 1.65vw, 1.5rem);
  letter-spacing: 0;
}

.enter-button {
  --button-fill: var(--paper);
  --button-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 72' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M16 5 C51 3 82 6 113 4 S164 3 184 7 C195 9 194 24 195 36 S197 59 185 65 C156 68 130 66 101 68 S46 67 17 65 C6 63 5 52 6 37 S3 10 16 5 Z'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 240px);
  min-height: 62px;
  margin-top: 2rem;
  padding: 0.6rem 2rem;
  color: var(--ink);
  background: transparent;
  border-radius: 18px 15px 17px 14px;
  font-family: var(--heading-font);
  font-size: var(--control-font-size);
  line-height: 1.2;
  text-decoration: none;
  transform: rotate(-0.8deg);
  transition: transform 180ms ease;
  touch-action: manipulation;
}

.enter-button::before {
  position: absolute;
  inset: 0;
  background: url("/_immutable/b0cffd0e58c41acc/assets/enter-scribble.svg") center / calc(100% - 12px) calc(100% - 8px) no-repeat;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* Match the fill and scribble to the SVG outline without clipping focus or the heart. */
.enter-button::before,
.enter-button::after {
  -webkit-mask: var(--button-shape) center / 100% 100% no-repeat;
  mask: var(--button-shape) center / 100% 100% no-repeat;
}

.enter-button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--button-fill);
  pointer-events: none;
  transition: background-color 180ms ease;
}

.enter-button [data-copy] { position: relative; z-index: 1; }

.button-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.button-outline path,
.enter-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.enter-heart {
  position: absolute;
  top: -16px;
  right: 7px;
  z-index: 2;
  width: 19px;
  height: 19px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px) rotate(-7deg);
  transition: opacity 180ms ease, transform 350ms ease;
}

.enter-button:is(:focus-visible, :active) .enter-heart {
  opacity: 1;
  transform: translateY(0) rotate(-7deg);
  animation: enter-heart-wobble 560ms ease-out both;
}

@keyframes enter-heart-wobble {
  0% { transform: translateY(2px) rotate(-12deg); }
  45% { transform: translateY(0) rotate(2deg); }
  72% { transform: translateY(0) rotate(-10deg); }
  100% { transform: translateY(0) rotate(-7deg); }
}

.enter-button:focus-visible::before,
.enter-button:active::before { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .enter-button:hover { --button-fill: #fffdf3; transform: translateY(-2px) rotate(0.6deg); }
  .enter-button:hover::before { opacity: 1; }
  .enter-button:hover .enter-heart {
    opacity: 1;
    transform: translateY(0) rotate(-7deg);
    animation: enter-heart-wobble 560ms ease-out both;
  }
}

.enter-button:active { transform: translateY(1px) rotate(-0.4deg); }

.enter-button:focus-visible,
.back-link:focus-visible,
.header-thumbnail:focus-visible {
  outline: 2px solid var(--flower-stem);
  outline-offset: 6px;
}

.inside {
  font-family: var(--heading-font);
  text-align: center;
}

.inside-intro,
.inside-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 8rem clamp(10rem, 17vw, 18rem);
}

.inside-heading {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 100%;
  text-wrap: balance;
}

.inside-heading > span { display: block; }

.letter-hover-heading { pointer-events: auto; }
/* Let flowers receive hover through empty space around the thank-you letters. */
#thank-you.letter-hover-heading { pointer-events: none; }
#thank-you.letter-hover-heading .thank-you-letter { pointer-events: auto; }
.letter-hover-heading .thank-you-word { display: inline-block; white-space: nowrap; }
.letter-hover-heading .thank-you-letter { display: inline-block; }
.letter-hover-heading .thank-you-glyph {
  display: inline-block;
  pointer-events: none;
  transform-origin: 50% 75%;
  transition: transform 230ms cubic-bezier(.2, .85, .3, 1.25);
}
@media (prefers-reduced-motion: reduce) {
  .letter-hover-heading .thank-you-glyph { transition: none; transform: none !important; }
}

:lang(ja) .inside-heading {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.inside-section-heading,
.flower-flow-page :is(#editor-title, #flower-view-title).inside-section-heading {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.4;
}

.inside-section:focus { outline: none; }

#rsvp { position: relative; }
.rsvp-bench {
  position: fixed;
  left: max(36px, env(safe-area-inset-left));
  bottom: 0;
  width: 80px;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
:root:not([data-page-pending]) .inside-page:has(.section-nav a[href="#rsvp"][aria-current="location"]) .inside:not([inert]) .rsvp-bench[data-ready] {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .rsvp-bench { transition: opacity 450ms linear; }
  .inside[inert] .rsvp-bench { transition: none; }
}

.venue-illustration {
  position: relative;
  display: block;
  width: min(100%, 45rem);
  height: auto;
  flex-shrink: 0;
  margin: 0 0 clamp(.75rem, 2vw, 1.25rem);
}

.venue-illustration-source {
  display: block;
  width: 100%;
  height: auto;
}

.venue-breeze {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.venue-illustration[data-breeze="running"] .venue-breeze { display: block; }
.venue-illustration[data-breeze="running"] .venue-illustration-source { opacity: 0; }

.venue-illustration[data-venue-reveal-pending] { opacity: 0; }

:is(#venue, #schedule) { padding: 114px clamp(20px, 3.4vw, 60px) 112px; }
:is(#venue-heading, #schedule-heading, #faq-heading) { line-height: 1.15; }
.venue-details,
.schedule-details { width: 100%; max-width: 1240px; margin: 0 auto; }
.venue-location {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 .4em;
  margin: 0;
}
.venue-name { display: inline-block; max-width: 100%; text-wrap: balance; }
.venue-name-primary { display: block; }
.venue-name-phrase { display: inline; white-space: nowrap; }
.venue-name-original { display: block; margin-top: 2px; font-size: .7em; line-height: 1.5; white-space: nowrap; }
.venue-maps-link { color: inherit; cursor: pointer; text-decoration: none; }
.venue-maps-link:is(:hover, :active) { color: #5c703e; }
.venue-maps-link:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 5px; border-radius: 2px; }
.venue-map { width: 100%; max-width: 980px; margin: 20px auto 0; }
.venue-map svg { display: block; width: 100%; height: auto; }
.venue-map .map-composition:not([data-centered]) { opacity: 0; }
.illustration-hit-area { fill: transparent; stroke: none; pointer-events: all; }
.venue-map .map-landmark-art,
.schedule-illustration-art {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 220ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .schedule-illustration-row > [data-schedule-drawing]:hover > .schedule-illustration-art,
  .venue-map :is(.map-tower, .map-chateau):hover > .map-landmark-art,
  .venue-map .map-paris-callout:has(> .map-paris-label:hover) .map-landmark-art,
  .venue-map .map-venue-callout:has(> .map-venue-label:hover) .map-landmark-art { transform: scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  .schedule-illustration-row > [data-schedule-drawing][data-touch-play] > .schedule-illustration-art,
  .venue-map :is(.map-tower, .map-chateau)[data-touch-play] > .map-landmark-art {
    animation: illustration-tap-pop 700ms ease-out both;
  }
}
@keyframes illustration-tap-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .venue-map .map-landmark-art,
  .schedule-illustration-art { transition: none; }
}
.venue-travel-note { max-width: 40rem; margin: 22px auto 0; color: #86867e; font-size: 20px; line-height: 1.5; text-wrap: balance; }
.venue-travel-phrase { display: inline-block; white-space: nowrap; }
:lang(ko) .venue-travel-note { word-break: keep-all; }
:lang(ja) .venue-details, :lang(zh-Hans) .venue-details { line-break: strict; }
@media (max-width: 700px) {
  :is(#venue, #schedule) { padding: 90px 20px 80px; }
  .venue-map { margin-top: 13px; }
}
@media (max-width: 600px) {
  :is(#venue, #schedule) { padding-top: 78px; padding-bottom: 64px; }
  .venue-map { width: calc(100% + 24px); max-width: none; margin-left: -12px; margin-right: -12px; }
  .venue-map :is(.map-paris-label, .map-venue-label, .map-drive-time text) { font-size: 42px; }
  .venue-map .map-france-label { font-size: 44px; }
  :lang(ja) .venue-map .map-france-label { font-size: 32px; }
  .venue-travel-note { margin-top: 20px; font-size: 18px; }
}

.inside-message,
.venue-location,
.schedule-time,
.schedule-activities {
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
}

.inside-message {
  margin: 1rem 0 0;
  max-width: 100%;
  text-wrap: balance;
}

/* Schedule follows the same illustration and section spacing as Venue. */
.schedule-time { margin: 0; }
.schedule-date,
.schedule-hours { display: inline-block; white-space: nowrap; }
.schedule-illustrations {
  width: 100%;
  max-width: 920px;
  margin: 26px auto 0;
  padding: 4px 0 5px;
  overflow: clip;
}
.schedule-illustration-row {
  display: block;
  overflow: visible;
  max-width: none;
  margin: 0 auto;
}
.schedule-illustration-row > [data-schedule-drawing] { overflow: visible; }
.schedule-illustration-row > [data-schedule-hidden] { display: none; }
.schedule-activities { margin: 16px 0 0; color: var(--quiet-ink); text-wrap: balance; }
.schedule-stay-note {
  max-width: 40rem;
  margin: 22px auto 0;
  color: #86867e;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: balance;
}
.schedule-stay-note > .text-phrase { display: inline-block; white-space: pre; }
:lang(ko) :is(.schedule-activities, .schedule-stay-note) { word-break: keep-all; }
@media (max-width: 600px) {
  .schedule-stay-note { margin-top: 20px; font-size: 18px; }
}

#schedule > .inside-message { margin-top: 0; }

.faq-list {
  width: min(100%, 44rem);
  margin-top: 2rem;
  text-align: left;
}
.faq-item { border-bottom: 1px solid #dedfd6; }
.faq-item:first-child { border-top: 1px solid #dedfd6; }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.faq-question { min-width: 0; }
.faq-arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: .3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  margin: 0 2.5rem 1.25rem 0;
  color: var(--quiet-ink);
  font-size: 1.25rem;
  line-height: 1.5;
}
.faq-answer[data-copy="faqDressCodeAnswer"] > .text-phrase {
  display: inline-block;
  white-space: pre;
}
:lang(ko) :is(.faq-question, .faq-answer) { word-break: keep-all; }
.faq-paris-heading {
  margin: 1.25rem 0 .25rem;
  color: var(--ink);
  font: inherit;
}
.faq-paris-heading:first-child { margin-top: 0; }
.faq-paris-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: default;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.faq-paris-trigger:focus-visible {
  outline: 2px solid var(--flower-stem);
  outline-offset: 4px;
  border-radius: 3px;
}
.faq-paris-art {
  --portrait-tilt: 3deg;
  --portrait-peek-tilt: 9deg;
  position: fixed;
  z-index: 30;
  width: 78px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.88) rotate(var(--portrait-tilt));
  transform-origin: 50% 85%;
  transition: opacity 170ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1), visibility 170ms;
}
.faq-paris-art[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--portrait-tilt));
  animation: portrait-peek 380ms ease-out;
}
@media (max-width: 900px) {
  .faq-paris-art { width: 54px; }
}
.faq-paris-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1059 / 949;
  overflow: hidden;
  pointer-events: none;
}
.faq-paris-scene img {
  position: absolute;
  display: block;
  width: 145.0425%;
  max-width: none;
  height: auto;
  left: -22.2852%;
  top: -3.6881%;
}
.faq-paris-scene-shopping { aspect-ratio: 1238 / 1176; }
.faq-paris-scene-shopping img {
  width: 105.9774%;
  left: -3.3926%;
  top: -1.1054%;
}
.faq-paris-answer ul {
  margin: 0;
  padding-left: 1.25em;
  list-style-type: disc;
}
.faq-paris-answer li + li { margin-top: .25rem; }
.faq-maps-link { color: inherit; cursor: pointer; text-decoration: none; }
.faq-maps-link:is(:hover, :active) { color: #5c703e; }
.faq-maps-link:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 5px; border-radius: 2px; }
.venue-maps-link:hover :is(.venue-name-primary, .venue-name-original),
.faq-maps-link:hover {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-skip-ink: none;
}

.faq-maps-link[data-faq-district-link] { white-space: nowrap; }
.faq-map-hover-origin {
  position: fixed;
  display: block;
  z-index: 1;
  pointer-events: auto;
}

/* Keep decorative arrows attached to the final phrase in every language. */
.venue-maps-link .venue-name-phrase:last-child::after,
.faq-maps-link > .text-phrase:last-child::after,
.faq-maps-link[data-faq-district-link]::after {
  content: "";
  display: inline-block;
  width: .64em;
  height: .64em;
  margin-left: .12em;
  vertical-align: .3em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq-maps-link > .text-phrase:last-child::after,
.faq-maps-link[data-faq-district-link]::after {
  display: none;
  opacity: 0;
  transform: translate(-.15em, .06em);
  mask-size: .64em .64em;
  mask-position: left center;
  transition: opacity 160ms ease, transform 240ms cubic-bezier(.2, .7, .2, 1),
    width 240ms cubic-bezier(.2, .7, .2, 1), margin-left 240ms cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .faq-maps-link > .text-phrase:last-child::after,
  .faq-maps-link[data-faq-district-link]::after {
    display: inline-block;
    width: 0;
    margin-left: 0;
  }
  .faq-maps-link:is([data-map-hover], :focus-visible) > .text-phrase:last-child::after,
  .faq-maps-link[data-faq-district-link]:is([data-map-hover], :focus-visible)::after {
    width: .64em;
    margin-left: .12em;
    opacity: 1;
    transform: translate(0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-maps-link > .text-phrase:last-child::after,
  .faq-maps-link[data-faq-district-link]::after {
    transition: none;
    transform: none;
  }
}

.section-nav {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(.125rem, calc(10vw - 27px), 2rem);
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--section-fade-start, 0px), #000 calc(100% - var(--section-fade-end, 0px)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--section-fade-start, 0px), #000 calc(100% - var(--section-fade-end, 0px)), transparent);
}
.section-nav[data-overflow-start] { --section-fade-start: 14px; }
.section-nav[data-overflow-end] { --section-fade-end: 14px; }
.section-nav::-webkit-scrollbar { display: none; }

.section-nav::after {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--section-line-width, 0px);
  height: 1.5px;
  background: var(--flower-stem);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--section-line-x, 0px), var(--section-line-y, 0px), 0);
}
.section-nav[data-indicator-ready]::after {
  opacity: 1;
  animation: section-line-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-nav[data-indicator-ready] a::after { display: none; }

@keyframes section-line-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.section-nav a {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem 0;
  color: var(--quiet-ink);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  touch-action: manipulation;
  white-space: nowrap;
}

.section-nav a::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0.35rem;
  left: 0.25rem;
  height: 1.5px;
  background: var(--flower-stem);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.section-nav a:active,
.section-nav a[aria-current="location"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .section-nav a:hover { color: var(--ink); }
}
.section-nav a[aria-current="location"]::after { transform: scaleX(1); }
.section-nav a:focus-visible {
  outline: 2px solid var(--flower-stem);
  outline-offset: 2px;
  border-radius: 3px;
}

html:has(.inside) { scroll-behavior: smooth; scroll-padding-top: calc(4rem + env(safe-area-inset-top)); }

.back-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  color: var(--quiet-ink);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  touch-action: manipulation;
}

.back-link:is(:active, :focus-visible) {
  color: var(--ink);
  text-decoration-line: underline;
}
@media (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--ink); text-decoration-line: underline; }
}
.back-icon { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.illustration {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  width: 100%;
  margin: 0;
}

.illustration-source {
  display: block;
  width: 100%;
  height: auto;
}

.illustration-breeze {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.illustration[data-breeze="running"] .illustration-breeze { display: block; }
.illustration[data-breeze="running"] .illustration-source { opacity: 0; }
:lang(ko) .welcome-heading {
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.4;
  letter-spacing: 0;
}

:lang(ja) .welcome-heading {
  font-size: clamp(2.1rem, 3.35vw, 3.5rem);
  line-height: 1.55;
  letter-spacing: 0.025em;
}

:lang(zh-Hans) .welcome-heading {
  font-size: clamp(2.2rem, 3.7vw, 4rem);
  line-height: 1.5;
  letter-spacing: 0.015em;
}

@media (max-width: 900px) {
  .page-header { padding: 1rem 1.25rem; }
  .page-header:not(.page-header--inside) .languages > button {
    font-size: .75rem;
    letter-spacing: .02em;
  }
  .page-header--inside { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: max(.375rem, env(safe-area-inset-top)) .75rem .375rem; }
  .page-header--inside .section-nav { display: none; }
  .page-header--inside .header-thumbnail { display: block; }
  html:has(.inside) { scroll-padding-top: calc(3.5rem + env(safe-area-inset-top)); }
  .languages { gap: .15rem .65rem; }
  .inside-intro,
  .inside-section { padding: 7rem 1.25rem; }
  .rsvp-bench { left: max(20px, env(safe-area-inset-left)); width: 64px; }
  .inside-heading { font-size: clamp(min(2.25rem, calc(10.286vw - .2575rem)), 6.7vw, 2.75rem); }
  :lang(ja) .inside-heading { font-size: clamp(1.375rem, 7.1vw, 2.25rem); }
  :lang(zh-Hans) .inside-heading { font-size: clamp(1.875rem, 5.5vw, 2.25rem); }
  .welcome {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: center;
    justify-items: center;
    gap: clamp(1.25rem, 5vw, 2.5rem);
    width: min(100% - 2rem, 560px);
    padding: 7rem 0 3.25rem;
  }
  .welcome-heading {
    font-size: clamp(2rem, 7vw, 3.3rem);
    line-height: 1.3;
    letter-spacing: 0.025em;
    text-align: center;
  }
  .welcome-heading--english > [data-line="1"] { display: inline; }
  .welcome-heading--english > [data-line="3"] { display: block; }
  .welcome-copy { grid-column: auto; grid-row: auto; align-self: auto; width: 100%; text-align: center; }
  .welcome-details { justify-content: center; margin-top: 1rem; }
  .text-bullet { align-self: center; font-size: 0.55em; line-height: 1; vertical-align: middle; }
  ul > li::marker { font-size: 0.55em; }
  .enter-button { margin-top: 1.5rem; }
  .welcome-actions .enter-button { margin-top: 0; }
  .illustration { grid-column: auto; grid-row: auto; width: min(100%, 540px); }
  :lang(en) .welcome-heading { font-size: clamp(1.7rem, 8.5vw, 3.3rem); }
  :lang(ko) .welcome-heading { font-size: clamp(2rem, 7vw, 2.8rem); }
  :lang(ja) .welcome-heading { font-size: clamp(1.85rem, 6.1vw, 2.5rem); }
  :lang(zh-Hans) .welcome-heading { font-size: clamp(1.95rem, 6.5vw, 2.7rem); }
}

@media (max-width: 600px) {
  .page-header:not(.page-header--inside),
  .page-header:not(.page-header--inside) .languages {
    justify-content: center;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .page-header--inside::before {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-illustration[data-breeze="running"] .venue-breeze { display: none; }
  .venue-illustration[data-breeze="running"] .venue-illustration-source { opacity: 1; }
  .venue-illustration[data-venue-reveal-pending] { opacity: 1; }
  .baguette-bubble { animation: none; opacity: 1; transform: translateX(-50%); }
  .color-dots { display: none; }
  .color-dot { animation: none; }
  .name-portrait, .faq-paris-art { transition: none; }
  .name-portrait[data-open], .faq-paris-art[data-open] { animation: none; }
  .name-portrait, .name-portrait[data-open], .faq-paris-art, .faq-paris-art[data-open] { transform: rotate(var(--portrait-tilt)); }
  html:has(.inside) { scroll-behavior: auto; }
  .section-nav a::after { transition: none; }
  .section-nav[data-indicator-ready]::after { animation: none; }
  .languages[data-indicator-moving]::after,
  .section-nav[data-indicator-moving]::after { transition: none; }
  .languages button::after { transition: none; }
  .language-trigger svg { transition: none; }
  .language-menu { animation: none; }
  .enter-button { transition: none; transform: none; }
  .enter-button::before, .enter-button::after { transition: none; }
  .enter-button:hover, .enter-button:active { transform: none; }
  .enter-heart { transition: none; }
  .enter-button:is(:hover, :focus-visible, :active) .enter-heart {
    animation: none;
    transform: rotate(-7deg);
  }
  .illustration[data-breeze="running"] .illustration-breeze { display: none; }
  .illustration[data-breeze="running"] .illustration-source { opacity: 1; }
}
