@font-face {
  font-family: "Pinyon Script";
  src: url("./assets/fonts/PinyonScript-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Oranienbaum";
  src: url("./assets/fonts/Oranienbaum-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/CormorantGaramond-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("./assets/fonts/NotoSansThai-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fcfafb;
  --ink: #49423d;
  --muted: #70675f;
  --line: #b6aaa2;
  --serif: "Oranienbaum", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --thai: "Noto Sans Thai", sans-serif;
  font-family: var(--thai);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
::selection {
  background: #dce0cf;
  color: #363b2c;
}
html {
  scrollbar-color: var(--line) var(--paper);
}
.page-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 60px;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.page-header > * {
  pointer-events: auto;
}
.language {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 12px;
  gap: 2px;
}
.language button {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  width: 44px;
  min-height: 44px;
}
.language button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.language button:hover {
  color: #65704e;
}
.language span {
  color: var(--muted);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
  font-family: var(--thai);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  text-decoration: none;
  transition:
    color 180ms,
    border-color 180ms;
}
.text-button:hover {
  border-color: var(--ink);
  color: #65704e;
}
.close-button {
  min-width: 44px;
  padding: 0;
  border: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.cover {
  position: relative;
  width: 100%;
  min-height: 100svh;
}
.cover.transitioning {
  position: fixed;
  z-index: 5;
  inset: 0;
  height: 100svh;
}
.cover-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f4eae6;
}
.cover-open:focus-visible {
  outline-offset: -8px;
}
.cover-art,
.cover-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-copy {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  bottom: calc(38.5% + min(27.5vw, 15.625svh) + 16px);
  left: 20px;
  right: 20px;
  text-align: center;
  font-weight: 400;
  margin: 0;
  mix-blend-mode: multiply;
  animation: ink-in 900ms 120ms both;
}
.cover-seal {
  position: absolute;
  z-index: 2;
  top: 61.5%;
  left: 50%;
  width: min(44vw, 25svh);
  height: auto;
  transform: translate(-50%, -50%);
  animation: ink-in 900ms 80ms both;
  pointer-events: none;
}
.cover-kicker {
  display: block;
  opacity: 0.88;
  font-family: var(--serif);
  font-size: clamp(10px, 3.33vw, 18px);
  letter-spacing: 0.6em;
}
.cover-names {
  display: block;
  opacity: 0.88;
  width: clamp(130px, 35vw, 210px);
  height: auto;
  margin: 0 auto;
}
.open-label {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 83%;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  animation: ink-in 800ms 350ms both;
}
.invitation {
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 64px 18px 28px;
}
.collage {
  width: min(100%, 510px);
  position: relative;
  margin: 0 auto;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1182 / 1330;
  overflow: hidden;
}
.art-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.envelope-back,
.silk-layer {
  width: 96%;
  height: 96%;
  left: 2%;
  opacity: 0.55;
}
.envelope-back {
  z-index: 1;
  clip-path: polygon(0 59%, 50% 3%, 100% 59%, 100% 100%, 0 100%);
}
.silk-layer {
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 59%, 50% 3%, 0 59%);
}
.insert-window {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 0 6% 0);
}
.rising-group {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.swan-layer {
  z-index: 3;
  width: 82%;
  height: 82%;
  left: -5.5%;
  top: 9%;
  opacity: 1;
}
.card-date {
  z-index: 3;
}
.pocket-layer {
  z-index: 4;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%, 0 45%, 35% 45%);
}
.top-flower-layer {
  z-index: 5;
  /* The rectangle separates disconnected alpha islands without cutting floral edges. */
  clip-path: inset(0 65% 55% 0);
}
.pocket-monogram {
  z-index: 5;
}
.record-control {
  z-index: 6;
}
.card-copy {
  position: absolute;
  top: 19%;
  left: 13%;
  width: 43%;
  text-align: center;
}
.card-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4cqw;
  letter-spacing: 0.12em;
}
.couple {
  margin: 2cqw 0 0;
  font-family: var(--script);
  font-size: 11cqw;
  line-height: 0.92;
  font-weight: 400;
}
.couple img {
  display: block;
  width: 100%;
  height: auto;
}
.couple:focus {
  outline: none;
}
.card-date {
  position: absolute;
  top: 59%;
  left: 34%;
  width: 38%;
  transform: rotate(-5deg);
  margin: 0;
  font-family: var(--serif);
  font-size: 3cqw;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}
.pocket-monogram {
  position: absolute;
  top: 77.4%;
  left: 48.5%;
  transform: translateX(-50%);
  font-family: var(--script);
  font-size: 7cqw;
  line-height: 1.2;
  color: #807067;
}
.record-control {
  position: absolute;
  top: 55.3%;
  left: 15.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.record {
  position: relative;
  display: grid;
  place-items: center;
  width: 19cqw;
  min-width: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #242321;
  box-shadow: 1px 4px 7px #27211635;
}
.record-grooves {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-radial-gradient(
    circle,
    #242321 0 1px,
    #34332f 1.4px 2px,
    #242321 2.4px 3px
  );
}
.record-grooves::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 35deg,
    transparent 0 20%,
    #ffffff20 26%,
    transparent 32% 65%,
    #ffffff20 72%,
    transparent 78%
  );
}
.record-label {
  display: grid;
  place-items: center;
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  background: #ddd5c3;
  border-radius: 50%;
  color: #3b3931;
}
.record-label svg {
  width: 66%;
  height: 66%;
}
.record-control p {
  margin: 0;
  transform: translateX(-8px);
  font-size: max(12px, 1.9cqw);
  line-height: 1.5;
  white-space: nowrap;
}
.record[aria-pressed="true"] .record-grooves {
  animation: spin 6s linear infinite;
}
.invitation-copy {
  text-align: center;
  margin-top: 24px;
}
.invitation-copy h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(30px, 8.4vw, 46px);
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
}
.event-date {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin: 32px 0 6px;
}
html[lang="th"] .event-date {
  font-family: var(--thai);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.venue {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.more-details {
  max-width: 320px;
  margin: 32px auto 0;
  font-size: 12px;
  line-height: 1.8;
}
html[lang="en"] .more-details {
  font-family: "Cormorant Garamond", var(--serif);
  font-style: italic;
  font-size: 19px;
}
.calendar {
  margin-top: 20px;
}
.address-link {
  margin: 12px 6px 0;
}
.section-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 50px;
  border-block: 1px solid #ddd4cf;
}
.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.section-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.content-section {
  padding: 58px 8px 54px;
  text-align: center;
  border-bottom: 1px solid #ddd4cf;
  scroll-margin-top: 20px;
}
.content-section h2 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 400;
}
.content-section p {
  max-width: 400px;
  margin: 0 auto 18px;
  font-size: 14px;
  line-height: 1.9;
}
.content-section .section-date,
.venue-name {
  font-family: var(--serif);
  font-size: 17px;
}
.venue-map {
  display: block;
  width: min(100%, 400px);
  height: 240px;
  margin: 22px auto;
  border: 0;
}
html[lang="th"] .content-section .section-date {
  font-family: var(--thai);
}
.wedding-details h3 {
  margin: 32px 0 14px;
  font-size: 15px;
  font-weight: 500;
}
.dress-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  max-width: 350px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 13px;
}
.dress-palette li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dress-palette li::before {
  content: "";
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid #0002;
  border-radius: 50%;
  background: var(--swatch);
}
.timeline-list {
  max-width: 380px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.timeline-list li {
  display: grid;
  grid-template-columns: 55px 24px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e9e2de;
  font-size: 14px;
  line-height: 1.6;
}
.timeline-list img {
  width: 24px;
  height: 24px;
}
.timeline-list time {
  font-family: var(--serif);
  font-size: 18px;
}
.countdown {
  margin: 64px -18px 0;
  padding: 44px 18px 48px;
  text-align: center;
  background: #e9e1d9;
  color: #49423d;
}
.countdown-monogram {
  display: block;
  width: 94px;
  height: 94px;
  margin: 0 auto 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  object-fit: contain;
  padding: 11px;
}
.countdown h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.countdown-values {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 24px);
  font-variant-numeric: tabular-nums;
}
.countdown-values div {
  display: grid;
  gap: 4px;
  min-width: 40px;
}
.countdown-values span:first-child {
  font-family: var(--serif);
  font-size: clamp(24px, 7vw, 36px);
}
.countdown-values span:last-child {
  font-size: 12px;
}
.details {
  max-width: 410px;
  margin: 64px auto 20px;
  text-align: center;
}
.details h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 400;
}
html[lang="en"] .details h2 {
  font-family: var(--script);
  font-size: 48px;
}
html[lang="en"] .rsvp-section h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.08em;
}
.details p {
  font-size: 13px;
  line-height: 1.8;
}
.details .form-notice {
  margin: 24px 0;
  font-weight: 600;
}
.details form {
  display: grid;
  gap: 18px;
  text-align: left;
}
.details label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.details input,
.details textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.details textarea {
  resize: vertical;
}
.details input:focus-visible,
.details textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.details button {
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 24px;
  background: #e5dbd4;
  color: #62564e;
  font-size: 12px;
  cursor: not-allowed;
}
.rsvp-section {
  scroll-margin-top: 20px;
}
.rsvp-section fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.rsvp-section legend {
  margin-bottom: 16px;
  font-size: 16px;
}
.rsvp-section .required::after {
  content: " *";
}
.rsvp-section .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.rsvp-section .choice input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: #78685d;
}
.rsvp-section select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.rsvp-section select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.rsvp-section [data-attending-only] {
  display: grid;
  gap: 16px;
}
.rsvp-section dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.rsvp-section dt {
  color: var(--muted);
}
.rsvp-section dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.rsvp-section .rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rsvp-section .rsvp-actions button {
  flex: 1;
  min-width: 110px;
  cursor: pointer;
}
.rsvp-section #rsvp-next,
.rsvp-section #rsvp-edit {
  background: #66574e;
  color: #fff;
}
.rsvp-section #rsvp-back {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.rsvp-section .rsvp-error {
  margin: 0;
  color: #8b342b;
}
.prototype-note p {
  margin: 8px 0;
}
.prototype-note {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  margin: 0;
  padding: 0 16px 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.noscript {
  text-align: center;
  padding: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ink-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-aspect-ratio: 1/1) {
  .cover-seal {
    width: 28svh;
  }
  .cover-copy {
    bottom: calc(56% + 16px);
  }
  .cover-names {
    width: min(24svh, 210px);
  }
  .open-label {
    top: 84%;
  }
}
@media (max-width: 360px) {
  .invitation {
    padding-inline: 12px;
  }
  .invitation-copy h2 {
    font-size: 28px;
  }
  .countdown {
    margin-inline: -12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.rising-group .card-photos {
  inset: 8% auto auto 9%;
  width: 62%;
  height: 73%;
  padding: 5px 5px 14px;
  transform: rotate(-7deg);
  object-fit: cover;
  background: #fffcf3;
  box-shadow: 2px 4px 8px #312a2140;
}
.collage-inset {
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: 39%;
  max-height: 40%;
  object-fit: cover;
  border: 4px solid #fffcf3;
  transform: rotate(8deg);
  box-shadow: 2px 4px 8px #312a2140;
}

.cover-copy {
  width: min(260px, 74vw);
  margin-inline: auto;
  padding: 10px 12px 5px;
  border-radius: 3px;
  background: #fff9edeb;
  mix-blend-mode: normal;
}
.open-label {
  left: 50%;
  right: auto;
  width: max-content;
  padding: 0 18px;
  transform: translateX(-50%);
  color: #31291f;
  background: #fff9ed;
  border-radius: 999px;
  font-size: 15px;
}

#venue-map {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 6px;
}
