:root {
  --paper: #fffaf1;
  --ink: #151815;
  --sage: #151815;
  --moss: #151815;
  --blush: #d8a69c;
  --rose: #b7892f;
  --gold: #b7892f;
  --deep: #151815;
  --cream: #f8ead7;
  --shadow: rgba(23, 34, 29, 0.32);
  --line: rgba(126, 91, 43, 0.24);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #111916;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #111916;
  color-scheme: light;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.invite {
  min-height: 100vh;
}

.invite:not(.access-granted) .hero {
  display: none;
}

.invite.access-granted .access-gate {
  display: none;
}

.access-gate {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 30, 26, 0.86), rgba(30, 35, 28, 0.3), rgba(20, 30, 26, 0.88)),
    linear-gradient(180deg, rgba(7, 11, 9, 0.08), rgba(7, 11, 9, 0.42)),
    url("assets/garden-ceremony.png") center / cover;
  isolation: isolate;
}

.access-card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: clamp(30px, 8vw, 48px);
  border: 1px solid rgba(200, 164, 95, 0.42);
  color: var(--ink);
  color-scheme: light;
  forced-color-adjust: none;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(248, 234, 215, 0.95)),
    repeating-linear-gradient(135deg, rgba(200, 164, 95, 0.08) 0 1px, transparent 1px 13px);
  background-color: var(--paper);
  box-shadow: 0 28px 90px var(--shadow), inset 0 0 0 10px rgba(255, 255, 255, 0.3);
  text-align: center;
}

.access-card h1 {
  display: block;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 12vw, 4rem);
  line-height: 1;
}

.access-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.access-status {
  min-height: 1.3em;
  margin: 0;
  color: #8c2f25;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: 16px 12px;
  background:
    linear-gradient(90deg, rgba(20, 30, 26, 0.86), rgba(30, 35, 28, 0.3), rgba(20, 30, 26, 0.88)),
    linear-gradient(180deg, rgba(7, 11, 9, 0.08), rgba(7, 11, 9, 0.42)),
    url("assets/garden-ceremony.png") center / cover;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(8, 12, 10, 0.78));
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 225, 179, 0.36), transparent 24%),
    radial-gradient(circle at 75% 34%, rgba(216, 166, 156, 0.26), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(200, 164, 95, 0.2), transparent 36%);
  animation: breathe 7s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.petals,
.sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.petal,
.spark {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.5);
  border-radius: 60% 10% 60% 10%;
  background: color-mix(in srgb, var(--blush), white 28%);
  box-shadow: 0 0 18px rgba(255, 222, 200, 0.32);
  opacity: var(--alpha);
  transform: rotate(var(--turn));
  animation: fall var(--duration) linear var(--delay) infinite;
}

.spark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 234, 188, 0.94);
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
}

.invitation-shell {
  position: relative;
  z-index: 2;
  width: min(94vw, 620px);
  min-height: calc(100svh - 32px);
  display: grid;
  grid-template: 1fr / 1fr;
  gap: 0;
  place-items: center;
  perspective: 1400px;
}

.guest-greeting {
  max-width: 92%;
  margin: -12px auto 16px;
  color: #fffaf1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 4.3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.78),
    0 8px 22px rgba(0, 0, 0, 0.58);
}

.wax-greeting {
  position: absolute;
  top: clamp(26px, 7vh, 72px);
  left: 50%;
  z-index: 3;
  width: min(92vw, 760px);
  margin: 0;
  color: #fffaf1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.72),
    0 8px 22px rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.invite.is-open .wax-greeting {
  opacity: 0;
  visibility: hidden;
}

.envelope-scene {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  width: min(100%, 560px);
  min-height: calc(100svh - 32px);
  place-items: center;
  perspective: 1300px;
}

.envelope {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  bottom: auto;
  z-index: 7;
  height: min(54vw, 220px);
  pointer-events: none;
  transform: translateY(-26%);
  transform-style: preserve-3d;
  border: 2px solid rgba(200, 164, 95, 0.96);
  border-radius: 8px;
  background: #080908;
  box-shadow: 0 24px 56px rgba(5, 6, 5, 0.38);
  overflow: hidden;
  transition: opacity 450ms ease 1250ms, transform 800ms cubic-bezier(.19, 1, .22, 1) 850ms;
}

.envelope__back,
.envelope__front,
.envelope__flap,
.envelope__left,
.envelope__right {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.envelope__back {
  background: #080908;
}

.envelope__front {
  z-index: 5;
  background: #080908;
  clip-path: polygon(0 34%, 50% 80%, 100% 34%, 100% 100%, 0 100%);
  filter: none;
}

.envelope__left,
.envelope__right {
  z-index: 6;
  background: #080908;
  box-shadow: none;
}

.envelope__left {
  clip-path: polygon(0 0, 52% 50%, 0 100%);
}

.envelope__right {
  clip-path: polygon(100% 0, 48% 50%, 100% 100%);
}

.envelope__flap {
  z-index: 7;
  background: #080908;
  clip-path: polygon(0 0, 50% 62%, 100% 0);
  border-radius: 14px 14px 0 0;
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 850ms cubic-bezier(.19, 1, .22, 1);
  box-shadow: none;
}

.envelope__flap::after {
  display: none;
}

.envelope::before,
.envelope::after {
  position: absolute;
  z-index: 8;
  content: "";
  pointer-events: none;
}

.envelope::before {
  inset: 0;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='240' viewBox='0 0 600 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c8a45f' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M0 0 L300 118 L600 0'/%3E%3Cpath d='M0 240 L300 118 L600 240'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.envelope::after {
  display: none;
}

.invite.is-open .envelope__flap {
  transform: rotateX(168deg);
}

.invite.is-open .hero {
  background:
    linear-gradient(90deg, rgba(20, 30, 26, 0.72), rgba(30, 35, 28, 0.2), rgba(20, 30, 26, 0.76)),
    linear-gradient(180deg, rgba(7, 11, 9, 0.04), rgba(7, 11, 9, 0.34)),
    url("assets/garden-ceremony.png") center / cover;
}

.invite.is-open .envelope {
  z-index: 5;
  opacity: 0;
  transform: translateY(18%) scale(0.88);
}

.card {
  position: relative;
  z-index: 4;
  width: min(100%, 560px);
  max-height: min(42svh, 260px);
  overflow: hidden;
  padding: clamp(42px, 9vw, 66px) clamp(28px, 7vw, 66px) clamp(28px, 7vw, 66px);
  border: 1px solid rgba(200, 164, 95, 0.42);
  color: var(--ink);
  color-scheme: light;
  forced-color-adjust: none;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(248, 234, 215, 0.94)),
    repeating-linear-gradient(135deg, rgba(200, 164, 95, 0.08) 0 1px, transparent 1px 13px);
  background-color: var(--paper);
  box-shadow: 0 28px 90px var(--shadow), inset 0 0 0 12px rgba(255, 255, 255, 0.34);
  text-align: center;
  transform: translateY(30%) scale(0.72) rotateX(3deg);
  opacity: 0;
  transition:
    transform 1080ms cubic-bezier(.19, 1, .22, 1) 720ms,
    opacity 520ms ease 760ms,
    box-shadow 500ms ease 640ms,
    max-height 700ms ease 620ms;
}

.card::before,
.card::after {
  position: absolute;
  content: "";
  inset: 10px;
  border: 1px solid rgba(200, 164, 95, 0.28);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 420ms ease 920ms;
}

.card::after {
  inset: 16px;
  border-color: rgba(126, 91, 43, 0.24);
}

.card > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 520ms ease 1120ms,
    transform 620ms cubic-bezier(.19, 1, .22, 1) 1120ms,
    visibility 0s linear 1120ms;
}

.card > :nth-child(1) {
  transition-delay: 1230ms;
}

.card > :nth-child(2) {
  transition-delay: 1320ms;
}

.card > :nth-child(3),
.card > :nth-child(4) {
  transition-delay: 1410ms;
}

.card > :nth-child(n + 5) {
  transition-delay: 1500ms;
}

.invite.is-open .card::before,
.invite.is-open .card::after {
  opacity: 1;
}

.invite:not(.is-open) .card > * {
  opacity: 0 !important;
  visibility: hidden !important;
}

.invite.is-open .card {
  z-index: 8;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: rotateX(0) translateY(0) scale(1);
  box-shadow: 0 28px 90px var(--shadow), inset 0 0 0 12px rgba(255, 255, 255, 0.34);
}

.invite.is-open .card > * {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.seal {
  position: absolute;
  z-index: 10;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff7ec;
  cursor: pointer;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 244, 210, 0.22), transparent 20%),
    radial-gradient(circle at 50% 52%, #30342f, #171a17 58%, #050605 100%);
  box-shadow:
    0 0 0 3px rgba(200, 164, 95, 0.95),
    0 0 0 8px rgba(15, 18, 15, 0.78),
    0 16px 36px rgba(5, 6, 5, 0.54),
    inset 0 2px 14px rgba(255, 255, 255, 0.14);
  transform: translateY(36px);
  transition: transform 780ms cubic-bezier(.19, 1, .22, 1), opacity 520ms ease, box-shadow 180ms ease;
}

.seal:hover,
.seal:focus-visible {
  transform: translateY(28px) scale(1.05);
  outline: 3px solid rgba(255, 244, 220, 0.82);
  outline-offset: 6px;
  box-shadow:
    0 0 0 3px rgba(200, 164, 95, 0.95),
    0 0 0 8px rgba(15, 18, 15, 0.78),
    0 24px 56px rgba(5, 6, 5, 0.72),
    inset 0 2px 14px rgba(255, 255, 255, 0.14);
}

.invite.is-open .seal {
  opacity: 0;
  transform: translateY(-88px) rotate(-18deg) scale(0.54);
  pointer-events: none;
}

.seal__monogram {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #f0d99c;
  font-size: 23px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.08em;
}

.eyebrow,
.subtitle,
.hint,
.detail-grid span,
.countdown span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
}

h1 {
  display: grid;
  gap: 0;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--moss);
  font-size: clamp(2.2rem, 11.5vw, 6.1rem);
  font-weight: 600;
  line-height: 0.76;
}

h1 em {
  margin: 12px 0 18px;
  color: var(--gold);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.6;
}

.subtitle {
  margin: 28px auto 22px;
  max-width: 32ch;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.date-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 0 auto 20px;
  max-width: 420px;
}

.date-line span {
  padding-block: 9px;
  border-block: 1px solid rgba(126, 91, 43, 0.42);
  color: var(--moss);
  font-weight: 700;
}

.date-line strong {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rose);
  font-size: clamp(1.95rem, 10.2vw, 5.35rem);
  font-weight: 600;
  line-height: 0.95;
  font-variant-numeric: lining-nums;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 18px 0;
}

.detail-grid div,
.detail-grid details,
.countdown div {
  min-width: 0;
  min-height: 78px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  color-scheme: light;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 241, 0.24));
  background-color: rgba(255, 250, 241, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.detail-grid span,
.countdown span {
  display: block;
  color: var(--sage);
  font-size: 0.62rem;
  font-weight: 700;
}

.detail-label {
  display: block;
}

.dress-code__label {
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dress-code:not([open]) .dress-code__label--closed,
.dress-code[open] .dress-code__label--open {
  display: flex !important;
}

.inline-plus {
  display: inline-block;
  margin-left: 5px;
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem !important;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.dress-code__label .inline-plus {
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem !important;
  font-weight: 900;
  line-height: 1;
  margin-left: 0;
}

a.inline-plus:hover,
a.inline-plus:focus-visible {
  text-shadow: 0 4px 10px rgba(21, 24, 21, 0.22);
}

.detail-grid strong,
.dress-code__value {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 3.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.16;
}

.dress-code {
  text-align: center;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.dress-code:hover,
.dress-code:focus-within {
  box-shadow: 0 12px 28px rgba(21, 24, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.dress-code__label--open {
  display: none !important;
}

.dress-code:not([open]) .dress-code__label--closed {
  display: flex !important;
}

.dress-code:not([open]) .dress-code__label--open {
  display: none !important;
}

.dress-code[open] .dress-code__label--closed {
  display: none !important;
}

.dress-code[open] .dress-code__label--open {
  display: flex !important;
}

.dress-code summary {
  cursor: pointer;
  display: block;
  list-style: none;
  margin: 0;
}

.dress-code summary::-webkit-details-marker {
  display: none;
}

.dress-code p {
  margin: 12px auto 0;
  max-width: 32ch;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
}

.countdown strong {
  display: block;
  color: var(--rose);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 7.4vw, 3.4rem);
  line-height: 0.78;
  margin-bottom: 8px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--moss);
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.day-plan {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(126, 91, 43, 0.28);
  text-align: left;
}

.day-plan h2 {
  margin: 0 0 14px;
  color: var(--moss);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 600;
  text-align: center;
}

.day-plan ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-plan li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.day-plan li span {
  color: var(--rose);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  overflow-x: hidden;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(20, 30, 26, 0.82), rgba(30, 35, 28, 0.28), rgba(20, 30, 26, 0.86)),
    linear-gradient(180deg, rgba(7, 11, 9, 0.1), rgba(7, 11, 9, 0.48)),
    url("assets/garden-ceremony.png") center / cover;
  background-attachment: fixed;
  isolation: isolate;
}

.info-card {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: clamp(30px, 8vw, 58px);
  border: 1px solid rgba(200, 164, 95, 0.42);
  color: var(--ink);
  color-scheme: light;
  forced-color-adjust: none;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(248, 234, 215, 0.95)),
    repeating-linear-gradient(135deg, rgba(200, 164, 95, 0.08) 0 1px, transparent 1px 13px);
  background-color: var(--paper);
  box-shadow: 0 28px 90px var(--shadow), inset 0 0 0 10px rgba(255, 255, 255, 0.3);
  text-align: center;
}

.back-link,
.info-kicker,
.info-list summary {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--moss);
  margin-bottom: 22px;
  color: #fffaf1;
  background: var(--moss);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 24, 21, 0.18);
}

.info-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(0.58rem, 2.8vw, 0.78rem);
  font-weight: 800;
  white-space: nowrap;
}

.info-card h1 {
  display: block;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 9.5vw, 4.2rem);
  line-height: 1;
  white-space: nowrap;
}

.info-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.info-item {
  padding: 0;
  border: 1px solid var(--line);
  color-scheme: light;
  background: rgba(255, 255, 255, 0.34);
  background-color: rgba(255, 250, 241, 0.48);
  transition: box-shadow 180ms ease;
}

.info-item:hover,
.info-item:focus-within {
  box-shadow: 0 12px 28px rgba(21, 24, 21, 0.14);
}

.info-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  list-style: none;
}

.info-list summary::-webkit-details-marker {
  display: none;
}

.info-list summary::after {
  color: var(--ink);
  content: "+";
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.info-item[open] summary::after {
  content: "-";
}

.info-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
}

.info-list p + p {
  margin-top: -6px;
}

.stay-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 16px 16px 30px;
  color: var(--ink);
}

.stay-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.stay-item + .stay-item {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.stay-name {
  min-width: 0;
}

.stay-actions {
  display: inline-flex;
  gap: 7px;
}

.stay-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stay-icon--web {
  font-size: 0.52rem;
  letter-spacing: 0;
  text-transform: lowercase;
}

.stay-icon--roof span {
  position: relative;
  display: block;
  width: 20px;
  height: 18px;
  transform: translateX(-2px);
}

.stay-icon--roof span::before {
  position: absolute;
  left: 2px;
  top: 7px;
  width: 15px;
  height: 15px;
  content: "";
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  transform: rotate(45deg);
  transform-origin: center;
}

.stay-icon--roof span::after {
  position: absolute;
  right: 2px;
  top: 3px;
  width: 5px;
  height: 8px;
  content: "";
  background: var(--gold);
}

.stay-icon:hover,
.stay-icon:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(21, 24, 21, 0.14);
}

.stay-detail {
  grid-column: 1 / -1;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.stay-note {
  grid-column: 1 / -1;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.area-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 16px 16px 30px;
  color: var(--ink);
}

.area-note {
  padding-bottom: 8px;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-style: italic;
  font-weight: 500 !important;
  text-align: center;
}

.area-list li {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.area-list li span:first-child {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
}

.area-list li span:last-child {
  text-align: right;
}

.info-actions {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-top: 22px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--moss);
  color: #fffaf1;
  background: var(--moss);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.timeline-back a + a {
  margin-left: 6px;
}

.timeline-back a:hover,
.timeline-back a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 24, 21, 0.18);
}

.timeline-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  column-gap: 14px;
  row-gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.timeline-list li > div {
  display: contents;
}

.timeline-list li.timeline-expand {
  display: block;
  padding: 0;
}

.timeline-extra summary {
  display: grid;
  grid-template-columns: 82px 1fr;
  column-gap: 14px;
  row-gap: 10px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.timeline-extra summary::-webkit-details-marker {
  display: none;
}

.timeline-list time {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  align-self: center;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-time {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  align-self: center;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-plus {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink);
  background: transparent;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.timeline-extra[open] .timeline-plus {
  font-size: 0;
}

.timeline-extra[open] .timeline-plus::after {
  content: "-";
  font-size: 0.9rem;
}

.timeline-list h2 {
  grid-column: 2;
  align-self: center;
  margin: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.timeline-copy {
  display: contents;
}

.timeline-copy strong {
  display: block;
  grid-column: 2;
  align-self: center;
  margin: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.timeline-copy span {
  display: block;
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.timeline-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.timeline-extra > p {
  padding: 0 16px 16px;
}

.rsvp-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.rsvp-note {
  margin: 0;
  padding: 0 8px 2px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.rsvp-required-note {
  margin: -6px 0 2px;
  padding: 0 8px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
}

.rsvp-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.rsvp-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.rsvp-form legend,
.field-row > span {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.choice-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.choice-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  background-color: rgba(255, 250, 241, 0.68);
  color-scheme: light;
  font: 700 1.05rem/1.25 "Cormorant Garamond", Georgia, serif;
}

.field-row input,
.field-row select {
  padding: 0 12px;
}

.field-row textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 2px solid rgba(183, 137, 47, 0.48);
  outline-offset: 2px;
}

.thanks-message {
  padding-top: 16px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 24, 21, 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button--primary {
  border-color: var(--moss);
  color: #fffaf1;
  background: var(--moss);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.42);
  background-color: rgba(255, 250, 241, 0.72);
}

.access-card,
.card,
.info-card,
.detail-grid div,
.detail-grid details,
.countdown div,
.info-item,
.stay-icon,
.stay-detail,
.rsvp-form fieldset,
.field-row input,
.field-row select,
.field-row textarea,
.button--ghost {
  color-scheme: light;
  forced-color-adjust: none;
}

@media (prefers-color-scheme: dark) {
  .access-card,
  .card,
  .info-card {
    color: var(--ink);
    background-color: var(--paper);
  }

  .detail-grid div,
  .detail-grid details,
  .countdown div,
  .info-item,
  .stay-detail,
  .button--ghost,
  .field-row input,
  .field-row select,
  .field-row textarea {
    color: var(--ink);
    background-color: rgba(255, 250, 241, 0.72);
  }
}

.gallery-page {
  background: #050605;
}

.photo-gallery {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050605;
}

.gallery-frame {
  display: grid;
  grid-template-rows: 58px 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px 0 106px;
  place-items: center;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  cursor: grab;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transform-origin: center;
  transition: transform 120ms ease;
  touch-action: none;
  user-select: none;
}

.gallery-image.is-dragging {
  cursor: grabbing;
}

.gallery-count {
  position: fixed;
  left: 50%;
  bottom: 16px;
  padding: 7px 12px;
  color: #fffaf1;
  background: rgba(5, 6, 5, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.gallery-description {
  position: static;
  width: min(88vw, 520px);
  padding: 9px 14px;
  color: #fffaf1;
  background: rgba(5, 6, 5, 0.66);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
  text-align: center;
}

.gallery-description[hidden] {
  display: block;
  opacity: 0;
}

.gallery-close,
.gallery-arrow {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fffaf1;
  background: rgba(5, 6, 5, 0.58);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gallery-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  font-size: 2rem;
  line-height: 1;
}

.gallery-arrow {
  border: 0;
  top: auto;
  bottom: 18px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  font-size: 3.4rem;
  transform: none;
}

.gallery-arrow--prev {
  left: 12px;
}

.gallery-arrow--next {
  right: 12px;
}

.gallery-close:hover,
.gallery-close:focus-visible,
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(5, 6, 5, 0.82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  transform: scale(1.04);
}

.hint {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  margin: 0;
  color: rgba(255, 250, 241, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
}

.invite.is-open .hint {
  opacity: 0;
}

@keyframes breathe {
  from {
    opacity: 0.62;
    transform: scale(1);
  }
  to {
    opacity: 0.98;
    transform: scale(1.04);
  }
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--turn) + 430deg));
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  45% {
    opacity: 0.92;
    transform: translateY(48vh) scale(1.4);
  }
}

@media (min-width: 621px) {
  .hero {
    height: 100svh;
    min-height: 0;
    padding: 18px;
  }

  .invitation-shell {
    min-height: calc(100svh - 36px);
  }

  .envelope-scene {
    min-height: calc(100svh - 36px);
  }

  .envelope {
    top: auto;
    bottom: 12%;
    transform: none;
  }

  .card {
    max-height: 260px;
    padding: clamp(32px, 6vw, 58px);
  }

  .card::before {
    inset: 14px;
  }

  .card::after {
    inset: 22px;
  }

  .seal {
    top: auto;
    bottom: calc(12% + min(54vw, 220px) - 70px);
    left: 50%;
    transform: translateX(-50%);
  }

  .seal:hover,
  .seal:focus-visible {
    transform: translateX(-50%) translateY(-8px) scale(1.05);
  }

  .invite.is-open .seal {
    transform: translateX(-50%) translateY(-118px) rotate(-18deg) scale(0.54);
  }

  .invite.is-open .card {
    max-height: none;
  }

  .date-line {
    gap: 16px;
    margin-bottom: 28px;
  }

  .date-line span {
    padding-block: 11px;
  }

  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 26px 0;
  }

  .countdown {
    gap: 10px;
    margin: 26px 0 30px;
  }

  .actions {
    display: flex;
    gap: 12px;
    max-width: none;
  }

  .info-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .button {
    width: auto;
    min-width: 150px;
  }

  h1 {
    font-size: clamp(3.05rem, 10.2vw, 6.1rem);
    line-height: 0.78;
  }

  .date-line strong {
    font-size: clamp(2.7rem, 9vw, 5.35rem);
  }

  .subtitle {
    margin-top: 24px;
  }

  .day-plan li {
    grid-template-columns: 112px 1fr;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .card > * {
    opacity: 1;
    transform: none;
  }

  .envelope {
    display: none;
  }

  .seal,
  .hint {
    display: none;
  }
}
