/* =====================================================================
   Stationery components
   ===================================================================== */

/* ---------------------------------------------------------------- 02 · scratch card + countdown */
.date-duo { position: relative; z-index: 1; display: grid; gap: 22px; max-width: 980px; margin: 0 auto; justify-items: center; }
.scratch { width: min(100%, 540px); text-align: center; }
.scratch__label { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--ink-soft); text-wrap: balance; }
.scratch__surface {
  position: relative; margin: 14px auto 0; width: 100%; max-width: 420px; aspect-ratio: 16 / 10.5;
  border-radius: 3px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 45%, #FFFDF7, #F7F0DF);
  box-shadow: inset 0 0 0 1px rgba(182, 154, 98, 0.55), inset 0 0 0 6px #FFFDF7, inset 0 0 0 7px rgba(182, 154, 98, 0.35);
}
.scratch__reveal { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 14px; }
.scratch__weekday { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.scratch__day { font-family: var(--font-serif); font-weight: 500; font-size: clamp(3.6rem, 16vw, 5rem); line-height: 0.95; color: var(--green-deep); font-variant-numeric: lining-nums; }
.scratch__month { font-family: var(--font-script); font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1; color: var(--lilac-deep); }
.scratch__time { margin-top: 4px; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.scratch__tba { font-family: var(--font-script); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1; color: var(--green-deep); }
.scratch__tba-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.scratch__surface, .scratch__canvas { cursor: pointer; }
.scratch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity 900ms var(--ease-out); }
.scratch.is-revealed .scratch__canvas { opacity: 0; pointer-events: none; }
.scratch__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 16px; }

.petal { position: absolute; z-index: 5; width: 12px; height: 8px; border-radius: 80% 10% 80% 10%; pointer-events: none; will-change: transform, opacity; }

.countdown { width: min(100%, 420px); text-align: center; }
.countdown__sprig { position: absolute; top: -18px; right: 7%; width: 54px; transform: rotate(10deg); }
.countdown__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.15; color: var(--green-deep); padding-inline: 30px; }
.countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.countdown__unit { display: grid; gap: 6px; padding: 4px 2px; }
.countdown__unit + .countdown__unit { border-left: 1px solid rgba(182, 154, 98, 0.45); }
.countdown__num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1; color: var(--green-deep); font-variant-numeric: lining-nums tabular-nums; }
.countdown__label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__status { margin-top: 16px; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--ink-soft); }
.countdown.is-inactive .countdown__num { color: rgba(73, 87, 64, 0.35); }
.countdown__ics { margin-top: 16px; }

@media (min-width: 900px) {
  .date-duo { grid-template-columns: 1.12fr 0.88fr; align-items: center; justify-items: stretch; gap: 0; }
  .scratch { justify-self: end; transform: rotate(-1.4deg); z-index: 1; }
  .countdown { justify-self: start; margin-left: -56px; transform: rotate(1.6deg) translateY(44px); z-index: 2; }
}

/* ---------------------------------------------------------------- 03 · personal note */
.note { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 1000px; margin: 0 auto; }
.letter { width: min(100%, 640px); text-align: center; }
.letter__sprig { top: -8%; left: 50%; width: 64px; transform: translateX(-50%) rotate(-4deg); }
.letter__lotus { right: 7%; top: 5%; width: 34px; transform: rotate(18deg); }
.letter__leaf { left: 4%; bottom: 3%; width: 66px; transform: rotate(-16deg); opacity: 0.9; }
.letter__title { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.08; color: var(--green-deep); text-wrap: balance; }
.letter__orn { margin-top: 12px; }
.letter__greeting { margin-top: 22px; font-family: var(--font-script); font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--lilac-deep); }
.letter__body { margin-top: 14px; text-align: left; }
.letter__body p { font-family: var(--font-serif); font-size: clamp(1.18rem, 1.1rem + 0.35vw, 1.32rem); line-height: 1.62; color: var(--ink); text-wrap: pretty; }
.letter__body p + p { margin-top: 0.85em; }
.letter__signoff { margin-top: 26px; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.letter__signature { font-family: var(--font-script); font-size: clamp(2.1rem, 1.7rem + 1.8vw, 2.9rem); line-height: 1.1; color: var(--green-deep); }
.letter__families { margin-top: 0.9rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-soft, inherit); opacity: 0.85; text-wrap: balance; }
.note__portrait { width: min(70vw, 280px); aspect-ratio: 3 / 2; margin-bottom: -34px; transform: rotate(-3deg); z-index: 2; }
.note__portrait img { height: 100%; }
@media (min-width: 900px) {
  .note { grid-template-columns: 640px 260px; justify-content: center; align-items: start; }
  .letter { grid-column: 1; grid-row: 1; }
  .note__portrait { grid-column: 2; grid-row: 1; width: 320px; margin: 90px 0 0 -70px; transform: rotate(4deg); }
}

/* ---------------------------------------------------------------- 04 · path of memories */
.story { position: relative; max-width: 1040px; margin: 0 auto; padding-bottom: 20px; }
.story__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.story__list { position: relative; z-index: 1; display: grid; gap: clamp(64px, 10vw, 120px); }
.milestone { position: relative; display: grid; padding-left: 66px; }
.milestone__marker { position: absolute; left: 0; top: 6px; width: 54px; height: 76px; display: grid; place-items: end center; }
.milestone__marker img { position: static; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.milestone__print { width: min(100%, 320px); aspect-ratio: var(--ratio, 4 / 3); transform: rotate(var(--tilt, -1.5deg)); }
.milestone__print img { height: 100%; }
.milestone__body { margin-top: 20px; max-width: 40ch; }
.milestone__chapter { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.milestone__title { margin-top: 4px; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.1; color: var(--green-deep); }
.milestone__date { margin-top: 6px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft); }
.milestone__text { margin-top: 10px; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.milestone__text.is-placeholder, .milestone__date.is-placeholder { color: var(--ink-soft); }
@media (min-width: 900px) {
  .milestone { grid-template-columns: 1fr 140px 1fr; align-items: center; padding-left: 0; }
  .milestone__marker { position: relative; left: auto; top: auto; grid-column: 2; grid-row: 1; justify-self: center; width: 80px; height: 110px; }
  .milestone__print { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 380px); }
  .milestone__body { grid-column: 3; grid-row: 1; margin-top: 0; justify-self: start; }
  .milestone:nth-child(even) .milestone__print { grid-column: 3; justify-self: start; }
  .milestone:nth-child(even) .milestone__body { grid-column: 1; justify-self: end; text-align: right; }
}

/* path layers */
.path-wash { fill: none; stroke: #E9DBB9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.32; }
.path-wash--inner { stroke: #E2CFA4; opacity: 0.3; }
.path-stone { stroke: rgba(140, 120, 86, 0.28); stroke-width: 0.7; opacity: 0.92; }
.path-flower { opacity: 0.85; }
.path-vine { fill: none; stroke: #7E9862; stroke-linecap: round; opacity: 0.75; }
.path-leaf { fill: #8AA36C; opacity: 0.7; }
.path-leaf--alt { fill: #A8B98A; }

/* ---------------------------------------------------------------- 05 · gallery */
.gallery { position: relative; z-index: 1; display: flex; gap: clamp(14px, 2.4vw, 30px); max-width: 1120px; margin: 0 auto; align-items: flex-start; }
.gallery__col { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; display: grid; gap: clamp(18px, 2.6vw, 34px); }
.gallery__col:nth-child(2) { margin-top: clamp(36px, 7vw, 90px); }
.gallery__col:nth-child(3) { margin-top: clamp(12px, 3vw, 34px); }
.gallery__item { display: block; width: 100%; padding: 0; text-align: left; border-radius: 1px; transform: rotate(var(--tilt, 0deg)); transition: transform var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); }
.gallery__item .print { padding: clamp(6px, 1vw, 10px); }
.gallery__item img { aspect-ratio: var(--ratio, 4 / 5); }
.gallery__item:hover { transform: rotate(0deg) translateY(-3px); }
.gallery__item:focus-visible { outline-offset: 5px; }
.gallery__note {
  padding: 22px 18px; text-align: center;
  font-family: var(--font-script); font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; color: var(--lilac-deep);
  background: var(--paper-light) var(--tex-paper); box-shadow: var(--shadow-print); transform: rotate(-2deg);
}
.gallery__note img { position: static; width: 56px; margin: 0 auto 6px; }
.gallery__sprig { position: absolute; pointer-events: none; }
.gallery__sprig--a { z-index: -1; top: -58px; left: 6px; width: 38px; transform: rotate(-14deg); transform-origin: 50% 100%; }
.gallery__sprig--b { bottom: -30px; right: -14px; width: 70px; transform: rotate(10deg); }
.gallery__empty { width: 100%; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--paper-light); overflow: hidden; }
.lightbox::backdrop { background: rgba(33, 39, 29, 0.9); }
.lightbox[open] { display: grid; }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 12px 24px; touch-action: pan-y; }
.lightbox__figure { display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(100%, 1400px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border: 8px solid #FFFDF8; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); background: #2B3226; }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding-inline: 50px; font-size: 0.875rem; text-align: center; color: #EDE6D4; }
.lightbox__count { font-weight: 600; letter-spacing: 0.14em; color: var(--gold-soft); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #FBF8EF; background: rgba(252, 249, 241, 0.12); box-shadow: inset 0 0 0 1px rgba(216, 197, 151, 0.55); transition: background-color var(--t-micro); }
.lightbox__btn:hover { background: rgba(252, 249, 241, 0.24); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox__btn--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox__inner { padding-bottom: 80px; }
  .lightbox__img { max-height: calc(100dvh - 190px); border-width: 5px; }
}

/* ---------------------------------------------------------------- 06 · event arches */
.arches { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 26px; max-width: 1120px; margin: 0 auto; }
.arch {
  --tint: var(--pink); --tint-wash: url('../assets/textures/wash-1.webp');
  position: relative; width: min(100%, 330px); padding: 128px 26px 30px; text-align: center;
  background-color: var(--paper-light); background-image: var(--tex-paper); background-size: 256px;
  border-radius: 50% 50% 6px 6px / 150px 150px 6px 6px;
  box-shadow: var(--shadow-paper);
}
.arch::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(182, 154, 98, 0.6); border-radius: inherit; pointer-events: none; }
.arch__wash {
  position: absolute; left: 12%; right: 12%; top: 18px; height: 120px; pointer-events: none;
  background: var(--tint); opacity: 0.38;
  -webkit-mask: var(--tint-wash) center / 100% 100% no-repeat; mask: var(--tint-wash) center / 100% 100% no-repeat;
}
.arch__art { position: absolute; left: 50%; top: 22px; height: 100px; width: auto; transform: translateX(-50%); }
.arch__art--sangeet { height: 96px; }
.arch__art--wedding { height: 104px; top: 18px; }
.arch__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.1rem); line-height: 1.1; color: var(--green-deep); }
.arch__desc { margin-top: 6px; font-family: var(--font-serif); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--ink-soft); }
.arch__meta { display: grid; gap: 10px; margin: 18px auto 0; max-width: 250px; text-align: left; }
.arch__meta li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.4; }
.arch__meta .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-deep); }
.arch__meta small { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.arch__dress { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(182, 154, 98, 0.55); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.arch__dress strong { display: block; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.arch__actions { margin-top: 16px; }
.arch--featured { width: min(100%, 370px); }
.arch--featured .arch__title { font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); }
.arch--gold  { --tint: #E2C16F; }
.arch--green { --tint: #9FB582; --tint-wash: url('../assets/textures/wash-3.webp'); }
.arch--lilac { --tint: #B9A0D4; --tint-wash: url('../assets/textures/wash-2.webp'); }
.arch--pink  { --tint: #E7A2B9; }
.arch--blue  { --tint: #8DC8C7; --tint-wash: url('../assets/textures/wash-3.webp'); }
@media (min-width: 900px) {
  .arches { gap: 40px 30px; align-items: flex-start; }
  .arch { width: 310px; }
  .arch--featured { width: 360px; }
  .arch:nth-child(3n + 2) { margin-top: 44px; }
}

/* ---------------------------------------------------------------- 07 · venues */
.venues { position: relative; z-index: 1; display: grid; gap: 36px; max-width: 980px; margin: 0 auto; }
.venue { display: grid; gap: 22px; justify-items: center; text-align: center; }
.venue__vignette { position: relative; width: min(66vw, 280px); aspect-ratio: 1; }
.venue__vignette .art { position: absolute; }
.venue__ring { inset: 0; width: 100%; height: 100%; }
.venue__pavilion { left: 50%; top: 52%; width: 62%; transform: translate(-50%, -50%); }
.venue__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.venue__name { margin-top: 6px; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--green-deep); }
.venue__address { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--ink); font-style: normal; }
.venue__note { margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.venue__events { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-soft); }
.venue__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.venue__map { width: 100%; margin-top: 20px; aspect-ratio: 16 / 10; border: 6px solid #FFFDF8; box-shadow: var(--shadow-print); background: var(--paper-deep); }
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.venue__soon { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .venue { grid-template-columns: 300px 1fr; justify-items: start; text-align: left; gap: 48px; align-items: center; }
  .venue__actions { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- 08 · family video */
.video-frame { position: relative; max-width: 920px; margin: 0 auto; padding: clamp(10px, 2vw, 20px); background: var(--paper-light) var(--tex-paper); box-shadow: var(--shadow-paper); }
.video-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(182, 154, 98, 0.55); pointer-events: none; }
.video-frame__sprig { top: -38px; width: 56px; z-index: 2; }
.video-frame__sprig--l { left: 6%; transform: rotate(-10deg); }
.video-frame__sprig--r { right: 6%; transform: scaleX(-1) rotate(-10deg); }
.video-frame__lotus { left: -18px; bottom: -22px; width: 64px; z-index: 2; transform: rotate(-12deg); }
.video-frame__leaf { right: -22px; bottom: -26px; width: 84px; z-index: 2; }
.video-frame__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2F3A2B; }
.video-frame__screen video, .video-frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; width: 100%;
  color: #FBF8EF; background: linear-gradient(180deg, rgba(33, 39, 29, 0.05), rgba(33, 39, 29, 0.45));
}
.video-play__disc { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(252, 249, 241, 0.94); color: var(--green-deep); box-shadow: 0 0 0 6px rgba(252, 249, 241, 0.3), inset 0 0 0 1px rgba(182, 154, 98, 0.8), 0 10px 30px rgba(0,0,0,.3); transition: transform var(--t-micro) var(--ease-out); }
.video-play__disc svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play:hover .video-play__disc { transform: scale(1.05); }
.video-play__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.video-frame__placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; text-align: center; background: radial-gradient(60% 70% at 50% 45%, #FBF6EA, #EFE5CF 75%, #E7DAC0); color: var(--ink-soft); font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; }
.video-frame__placeholder-art { width: min(40%, 260px); height: auto; opacity: 0.9; }
.video-close { position: absolute; z-index: 3; top: 10px; right: 10px; }

/* ---------------------------------------------------------------- 09 · wishing garden */
.wish-tree { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding-top: clamp(84px, 20vw, 190px); }
.wish-tree__bough { position: absolute; top: 0; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); height: 40vw; max-height: 300px; pointer-events: none; }
.wish-tree__garland { position: absolute; top: -2vw; width: 72%; }
.wish-tree__garland .art { position: relative; width: 100%; }
.wish-tree__garland--l { left: -6%; transform: scaleX(-1); }
.wish-tree__garland--r { right: -6%; }
.wish-tree__garland--c { display: none; left: 50%; width: 36%; transform: translateX(-50%); z-index: 1; }
.wish-notes { position: relative; columns: 2; column-gap: 14px; }
.wish-note { --thread: 30px; position: relative; padding-top: var(--thread); transform-origin: 50% 0; break-inside: avoid; }
.wish-note:nth-child(1) { --thread: 34px; }
.wish-note:nth-child(2) { --thread: 22px; }
.wish-note:nth-child(3) { --thread: 76px; }
.wish-note:nth-child(4) { --thread: 24px; }
.wish-note:nth-child(5) { --thread: 26px; }
.wish-note::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: calc(var(--thread) + 10px); background: linear-gradient(rgba(124, 102, 54, 0.15), rgba(124, 102, 54, 0.75)); }
.wish-note__card {
  position: relative; padding: 30px 14px 16px;
  background-color: #FFFCF3; background-image: var(--tex-paper); background-size: 256px;
  clip-path: polygon(16% 0, 84% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
  filter: drop-shadow(0 6px 8px rgba(61, 73, 53, 0.16));
  transform: rotate(var(--tilt, 0deg));
}
.wish-note__card::before { content: ''; position: absolute; left: 50%; top: 9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(124, 102, 54, 0.55); }
.wish-note__card::after { content: ''; position: absolute; inset: 22px 8px 8px; border: 1px solid rgba(182, 154, 98, 0.3); pointer-events: none; }
.wish-note--tint-1 .wish-note__card { background-color: #FBF2F4; }
.wish-note--tint-2 .wish-note__card { background-color: #F5F1F8; }
.wish-note--tint-3 .wish-note__card { background-color: #F6F7EC; }
.wish-note__msg { position: relative; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.wish-note__msg.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.wish-note__name { position: relative; margin-top: 10px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); overflow-wrap: anywhere; }
.wish-note__tag { display: inline-block; margin-left: 4px; padding: 1px 5px; font-size: 0.5625rem; letter-spacing: 0.1em; color: var(--lilac-deep); border: 1px solid rgba(111, 90, 146, 0.4); border-radius: 2px; vertical-align: middle; }
.wish-note__more { position: relative; margin-top: 6px; min-height: 32px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.wish-note.is-new .wish-note__card { box-shadow: 0 0 0 2px rgba(217, 140, 165, 0.6); }
.wish-tree__empty { margin: 30px auto 0; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.wish-tree__more { display: flex; justify-content: center; margin-top: 30px; }
.wish-tree__ground { position: relative; height: 120px; margin-top: 10px; pointer-events: none; }
.wish-ground__lotus { bottom: 0; }
.wish-ground__lotus--a { left: 4%; width: 54px; }
.wish-ground__lotus--b { left: 12%; width: 86px; bottom: -14px; }
.wish-ground__lotus--c { right: 18%; width: 22px; }
.wish-ground__lotus--d { left: 44%; width: 80px; bottom: -6px; }
.wish-ground__lotus--e { right: 6%; width: 36px; }
.bloom { position: absolute; z-index: 6; width: 90px; pointer-events: none; }
.wish-form { width: min(100%, 1080px); margin: 30px auto 0; padding: clamp(30px, 4vw, 46px) clamp(34px, 8%, 88px); }
.wish-form__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; }
.wish-form__heading .form-title { margin: 0; }
.wish-form__preview { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac-deep); }
.wish-form__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: start; gap: 14px; }
.wish-form .field { min-width: 0; margin-bottom: 0; }
.wish-form__name { grid-column: 1 / -1; }
.wish-form .field input, .wish-form .field textarea { min-height: 56px; border-radius: 5px; }
.wish-form .field textarea { height: 56px; resize: vertical; }
.wish-form .field input::placeholder, .wish-form .field textarea::placeholder { color: var(--ink-soft); opacity: 0.8; }
.wish-form__send { width: 56px; height: 56px; padding: 0; }
.wish-form__send svg { flex: none; }
.wish-form .form-actions:has(> [hidden]:only-child) { display: none; }
.wish-form .form-actions { margin-top: 12px; }
@media (min-width: 700px) {
  .wish-form__row { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) 56px; }
  .wish-form__name { grid-column: auto; }
}
@media (min-width: 700px) {
  .wish-notes { columns: 3; column-gap: 22px; }
  .wish-note:nth-child(3) { --thread: 40px; }
  .wish-note:nth-child(4) { --thread: 96px; }
}
@media (min-width: 1024px) {
  .wish-notes { columns: auto; display: flex; justify-content: center; align-items: flex-start; gap: 0 28px; padding-inline: 20px; }
  .wish-note { flex: 0 1 210px; }
  .wish-note { --thread: 56px; }
  .wish-note:nth-child(2) { --thread: 120px; }
  .wish-note:nth-child(3) { --thread: 74px; }
  .wish-note:nth-child(4) { --thread: 136px; }
  .wish-note:nth-child(5) { --thread: 64px; }
  .wish-tree__bough { max-height: 300px; }
  .wish-tree__garland { width: 50%; top: -4vw; }
  .wish-tree__garland--l { left: -1%; }
  .wish-tree__garland--r { right: -1%; }
  .wish-tree__garland--c { display: block; top: -3.4vw; width: 34%; }
}

/* all-wishes sheet */
.sheet { width: min(94vw, 640px); max-height: 88vh; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.sheet::backdrop { background: rgba(33, 39, 29, 0.55); }
.sheet__inner { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close { position: absolute; top: 4%; right: 6%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green-deep); box-shadow: inset 0 0 0 1px rgba(73, 87, 64, 0.35); background: var(--paper-light); }
.sheet__close svg { width: 20px; height: 20px; }
.sheet__list { display: grid; gap: 14px; margin-top: 8px; }
.sheet__item { padding: 14px 16px; background: rgba(255, 253, 247, 0.85); border-left: 2px solid var(--pink); }
.sheet__item p { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; line-height: 1.45; overflow-wrap: anywhere; }
.sheet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.sheet__meta strong { color: var(--gold-deep); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; }
.sheet__meta button { min-height: 32px; font-size: 0.75rem; text-decoration: underline; text-underline-offset: 3px; color: var(--pink-deep); }
.sheet__more { display: flex; justify-content: center; margin-top: 18px; }

/* Discreet background-music control; hidden while the envelope or an input has focus. */
.music-toggle { position: fixed; z-index: 65; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; color: var(--green-deep); background: rgba(252, 249, 241, 0.94); border: 1px solid rgba(182, 154, 98, 0.65); border-radius: 50%; box-shadow: 0 4px 18px -9px rgba(61, 73, 53, 0.4); touch-action: manipulation; }
.music-toggle svg { pointer-events: none; }
.music-toggle[aria-pressed='false'] .music-toggle__waves, .music-toggle[aria-pressed='true'] .music-toggle__slash { display: none; }
.js:not(.intro-done) .music-toggle, body:has(input:focus, textarea:focus, select:focus) .music-toggle { visibility: hidden; }

/* ---------------------------------------------------------------- 10 · RSVP postcard */
.postcard { position: relative; z-index: 1; display: grid; gap: 26px; max-width: 1020px; margin: 0 auto; }
.postcard__side { position: relative; padding-right: 96px; }
.postcard__side .kicker { letter-spacing: 0.2em; }
.postcard__stamp {
  position: absolute; top: -6px; right: 0; width: 76px; height: 90px; padding: 6px;
  background: #FFFDF8;
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat, radial-gradient(circle at 4px 4px, transparent 2.4px, #000 2.8px) -4px -4px / 8px 8px;
          mask: linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat, radial-gradient(circle at 4px 4px, transparent 2.4px, #000 2.8px) -4px -4px / 8px 8px;
  filter: drop-shadow(0 2px 2px rgba(61, 73, 53, 0.18));
  transform: rotate(4deg);
}
.postcard__stamp .art { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; background: linear-gradient(160deg, #E4EDE3, #D2E3E3); }
.postcard__postmark {
  position: absolute; top: 46px; right: 54px; display: grid; place-content: center; width: 76px; height: 76px;
  border-radius: 50%; border: 1.5px solid rgba(124, 102, 54, 0.5); box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(124, 102, 54, 0.35);
  font-family: var(--font-serif); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2; text-align: center; color: rgba(124, 102, 54, 0.7);
  transform: rotate(-14deg); pointer-events: none;
}
.postcard__title { margin-top: 10px; font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 2.4rem + 3vw, 4.4rem); line-height: 1; color: var(--green-deep); }
.postcard__deadline { margin-top: 12px; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--pink-deep); }
.postcard__text { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); max-width: 30ch; }
.postcard__lotus { display: none; }
.postcard__form, .postcard__done, .postcard__closed { position: relative; }
.postcard__done { padding: 10px 0; outline: none; }
.postcard__done p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; }
.postcard__done .btn { margin-top: 16px; }
.postcard__closed { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }

.attend__options { display: grid; gap: 10px; margin-top: 4px; }
.attend__option {
  position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 14px; cursor: pointer;
  background: rgba(255, 253, 247, 0.8); border: 1px solid rgba(96, 120, 77, 0.35); border-radius: 3px;
  transition: border-color var(--t-micro), background-color var(--t-micro), box-shadow var(--t-micro);
}
.attend__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.attend__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--green); background: #FFFEFA; position: relative; }
.attend__mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--pink-deep); transform: scale(0); transition: transform var(--t-micro) var(--ease-out); }
.attend__text strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; color: var(--green-deep); }
.attend__text small { font-size: 0.8125rem; color: var(--ink-soft); }
.attend__option:has(input:checked) { border-color: var(--green-deep); background: #F6F1E2; box-shadow: inset 0 0 0 1px var(--green-deep); }
.attend__option:has(input:checked) .attend__mark::after { transform: scale(1); }
.attend__option:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.attend__option input:checked + .attend__mark::after { transform: scale(1); }
.stepper { display: inline-flex; align-items: stretch; width: max-content; border: 1px solid rgba(96, 120, 77, 0.38); border-radius: 3px; background: rgba(255, 253, 247, 0.85); }
.stepper__btn { width: 48px; min-height: 48px; font-size: 1.4rem; line-height: 1; color: var(--green-deep); }
.stepper__btn:hover { background: rgba(233, 219, 185, 0.45); }
.field .stepper input[type='number'] { width: 64px; min-height: 48px; text-align: center; border: 0; border-inline: 1px solid rgba(96, 120, 77, 0.25); border-radius: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; font-weight: 600; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 900px) {
  .postcard { grid-template-columns: 0.85fr 1.15fr; gap: 0; }
  .postcard__side { padding: 6px 52px 0 0; border-right: 1px dashed rgba(182, 154, 98, 0.6); }
  .postcard__form, .postcard__done, .postcard__closed { padding-left: 48px; }
  .postcard__stamp { right: 34px; }
  .postcard__postmark { right: 92px; top: 52px; }
  .postcard__lotus { display: block; left: -8px; bottom: -30px; width: 70px; transform: rotate(-6deg); }
  .attend__options { grid-template-columns: 1fr 1fr; }
}
