@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Gowun+Batang:wght@400;700&family=IBM+Plex+Sans+KR:wght@300;400;500&display=swap');

/* ================================================================
   A Beautiful Beginning — component styles (namespace: Wedding)
   Every value comes from tokens.css; nothing here re-declares a token.
   ================================================================ */

.w-root, .w-root *, .w-root *::before, .w-root *::after { box-sizing: border-box; }
.w-root {
  margin: 0; color: var(--ink); background: var(--surface);
  font-family: var(--font-sans); font-size: 14px; line-height: 22px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word;
}
.w-root img { display: block; max-width: 100%; }
.w-root :where(button) { font: inherit; color: inherit; }
.w-root :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.w-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page column ---------- */
.w-page { max-width: var(--page-max); margin: 0 auto; background: var(--surface); overflow: hidden; position: relative; }
@media (min-width: 600px) {
  .w-stage { background: var(--surface-paper); }
  .w-page { box-shadow: 0 0 0 1px var(--hairline); }
}
.w-section { padding: var(--space-24) var(--space-6); position: relative; }
.w-section--paper { background: var(--surface-paper); }
.w-section--tight { padding-top: var(--space-12); }
@media (min-width: 768px) { .w-section { padding-top: var(--space-32); padding-bottom: var(--space-32); } }

/* ---------- Type helpers ---------- */
.w-eyebrow { font-family: var(--font-sans); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-3); }
.w-eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--sage); }
.w-eyebrow--center { justify-content: center; }
.w-eyebrow--center::before { content: ""; width: 32px; height: 1px; background: var(--sage); }
.w-title { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 38px; line-height: 1.05; margin: var(--space-2) 0 0; letter-spacing: -.005em; }
.w-title-ko { font-family: var(--font-serif-ko); font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: var(--space-2) 0 0; letter-spacing: .02em; }
.w-head { margin-bottom: var(--space-12); }
.w-kicker { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--sage-ink); margin: 0; }
.w-heading { font-family: var(--font-serif-ko); font-size: 21px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: var(--space-2) 0 0; letter-spacing: .02em; }
.w-head::after { content: ""; display: block; width: 24px; height: 1px; background: var(--sage); margin-top: var(--space-4); }
.w-head--center::after { margin-left: auto; margin-right: auto; }
.w-head--right::after { margin-left: auto; }
.w-head--center { text-align: center; }
.w-head--right { text-align: right; }
.w-head--right .w-eyebrow { justify-content: flex-end; }
.w-head--right .w-eyebrow::after { display: none; }
.w-head--right .w-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--sage); }
.w-body-ko { font-family: var(--font-serif-ko); font-size: 15px; line-height: 2; max-width: var(--measure-ko); }
.w-amp { font-family: var(--font-display); font-style: italic; color: var(--rose-ink); font-weight: 300; }
.w-muted { color: var(--ink-muted); }
.w-caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.w-rule { width: 1px; height: 56px; background: var(--hairline); margin: 0 auto; border: 0; }
.w-ornament { display: flex; justify-content: center; gap: 6px; margin: var(--space-8) auto; }
.w-ornament i { width: 4px; height: 4px; border-radius: var(--radius-arch); background: var(--champagne); display: block; }
.w-ornament i:nth-child(2) { background: var(--rose); }

/* ---------- Photograph placeholder (swap for <img>) ---------- */
.w-photo { position: relative; overflow: hidden; background: var(--surface-champagne); isolation: isolate; }
.w-photo > img { width: 100%; height: 100%; object-fit: cover; }
.w-photo::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: soft-light; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.w-photo[data-tone] { background-size: cover; }
.w-photo[data-tone="window"] { background:
  radial-gradient(120% 70% at 72% 18%, rgba(255,248,232,.95), rgba(255,248,232,0) 55%),
  linear-gradient(100deg, transparent 54%, rgba(255,250,240,.35) 55%, rgba(255,250,240,.35) 62%, transparent 63%),
  linear-gradient(100deg, transparent 66%, rgba(255,250,240,.28) 67%, rgba(255,250,240,.28) 73%, transparent 74%),
  radial-gradient(90% 60% at 30% 95%, #8f7d6c, transparent 70%),
  linear-gradient(170deg, #e9dccb 0%, #cdb9a3 55%, #8c7866 100%); }
.w-photo[data-tone="garden"] { background:
  radial-gradient(60% 40% at 78% 22%, rgba(250,246,230,.9), transparent 70%),
  radial-gradient(40% 30% at 20% 30%, rgba(196,210,186,.8), transparent 70%),
  radial-gradient(70% 50% at 50% 100%, #5f6e57, transparent 75%),
  linear-gradient(180deg, #dfe3d3 0%, #a8b5a2 50%, #6d7c66 100%); }
.w-photo[data-tone="dusk"] { background:
  radial-gradient(70% 45% at 50% 30%, rgba(255,232,214,.95), transparent 70%),
  radial-gradient(60% 50% at 15% 85%, #9a6f66, transparent 70%),
  linear-gradient(180deg, #f1ddd2 0%, #d9b8b0 45%, #8d6a62 100%); }
.w-photo[data-tone="linen"] { background:
  radial-gradient(80% 60% at 40% 30%, rgba(255,253,247,.95), transparent 65%),
  repeating-linear-gradient(92deg, rgba(120,100,80,.05) 0 2px, transparent 2px 7px),
  linear-gradient(160deg, #f4eee4 0%, #e8ded0 60%, #cbbca8 100%); }
.w-photo[data-tone="veil"] { background:
  radial-gradient(50% 70% at 50% 40%, rgba(255,255,255,.9), transparent 70%),
  radial-gradient(90% 60% at 50% 110%, #b9a796, transparent 70%),
  linear-gradient(180deg, #f7f2ea 0%, #e3d6c6 100%); }
.w-photo[data-tone="bouquet"] { background:
  radial-gradient(18% 14% at 46% 52%, #e8c9c0, transparent 72%),
  radial-gradient(16% 13% at 58% 46%, #d9b8b0, transparent 72%),
  radial-gradient(15% 12% at 52% 60%, #f3e3da, transparent 72%),
  radial-gradient(30% 22% at 52% 54%, #8e9c86, transparent 75%),
  radial-gradient(80% 70% at 50% 50%, #efe6da, transparent 80%),
  linear-gradient(180deg, #e9e0d2, #c9b9a5); }
.w-photo[data-tone="evening"] { background:
  radial-gradient(30% 20% at 70% 30%, rgba(255,214,170,.85), transparent 70%),
  radial-gradient(25% 18% at 25% 40%, rgba(255,226,190,.6), transparent 70%),
  radial-gradient(90% 60% at 50% 110%, #2b2522, transparent 70%),
  linear-gradient(180deg, #6f5a50 0%, #3e3330 60%, #241e1c 100%); }
.w-photo[data-tone="sea"] { background:
  radial-gradient(70% 30% at 50% 38%, rgba(255,247,236,.95), transparent 70%),
  linear-gradient(180deg, #e9e3d8 0%, #d6d9cf 42%, #a9b4ab 44%, #8b978f 70%, #6f7a72 100%); }
.w-photo__label { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 3; font-family: var(--font-sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.w-photo__label[hidden] { display: none; }
.w-arch { border-radius: 999px 999px 0 0; }

/* ---------- Buttons & chips ---------- */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-xs); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .04em; cursor: pointer; text-decoration: none; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; -webkit-tap-highlight-color: transparent; }
.w-btn:hover { background: var(--surface-paper); }
.w-btn:active { transform: scale(.98); }
.w-btn--solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.w-btn--solid:hover { background: var(--ink); opacity: .9; }
.w-btn--ghost { border-color: transparent; padding-left: var(--space-3); padding-right: var(--space-3); }
.w-btn--block { width: 100%; }
.w-btn--sm { min-height: 36px; padding: 6px var(--space-4); font-size: 12px; }
.w-btn svg { width: 16px; height: 16px; flex: none; }
.w-btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.w-btn-row--split > * { flex: 1 1 0; }
.w-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-arch); background: transparent; font-size: 13px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.w-chip[aria-pressed="true"], .w-chip[aria-checked="true"] { background: var(--sage); border-color: var(--sage); color: #383532; }

/* ---------- 01 Hero ---------- */
.w-hero { position: relative; height: min(100svh, var(--hero-max)); min-height: 600px; color: var(--on-photo); overflow: hidden; }
.w-hero__media { position: absolute; inset: -6% 0 0; will-change: transform; }
.w-hero__media .w-photo { width: 100%; height: 100%; }
.w-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, var(--photo-scrim) 70%), linear-gradient(0deg, transparent 75%, rgba(30,26,22,.18)); z-index: 3; }
.w-hero__top { position: absolute; top: var(--space-8); left: 0; right: 0; text-align: center; z-index: 4; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.w-hero__copy { position: absolute; left: var(--space-6); right: var(--space-6); bottom: 96px; z-index: 4; }
.w-hero__lede { font-family: var(--font-display); font-style: italic; font-size: 19px; margin: 0 0 var(--space-3); opacity: .95; }
.w-hero__names { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 60px; line-height: .94; letter-spacing: -.01em; margin: 0; }
.w-hero__names span { display: block; }
.w-hero__names .w-hero__and { font-size: 40px; padding-left: 1.4em; opacity: .9; }
.w-hero__ko { font-family: var(--font-serif-ko); font-size: 22px; line-height: 1.4; letter-spacing: .12em; margin: var(--space-4) 0 0; }
.w-hero__meta { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.45); display: grid; gap: 2px; font-family: var(--font-serif-ko); font-size: 15px; line-height: 1.6; }
.w-hero__meta span:last-child { opacity: .9; font-size: 14px; }
.w-hero__scroll { position: absolute; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 4; display: grid; justify-items: center; gap: var(--space-2); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; background: none; border: 0; color: inherit; cursor: pointer; padding: var(--space-2); }
.w-hero__scroll span { width: 1px; height: 40px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.w-hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: w-drip 2.4s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes w-drip { 0% { top: -40%; } 70%, 100% { top: 110%; } }
.w-hero [data-enter] { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 1.4s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.4s ease; }
.w-hero.is-in [data-enter] { opacity: 1; transform: none; filter: none; }
.w-hero.is-in [data-enter="2"] { transition-delay: .35s; }
.w-hero.is-in [data-enter="3"] { transition-delay: .7s; }
.w-hero.is-in [data-enter="4"] { transition-delay: 1.1s; }
.w-hero__media .w-photo { transform: scale(1.08); transition: transform 3.2s cubic-bezier(.2,.7,.2,1); }
.w-hero.is-in .w-hero__media .w-photo { transform: scale(1); }

/* petals */
.w-petals { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.w-petal { position: absolute; top: -20px; width: 10px; height: 8px; background: var(--rose); border-radius: 80% 10% 80% 10%; opacity: .7; animation: w-fall linear infinite; }
@keyframes w-fall { 0% { transform: translate3d(0,-20px,0) rotate(0deg); } 50% { transform: translate3d(30px,50vh,0) rotate(160deg); } 100% { transform: translate3d(-10px,105vh,0) rotate(320deg); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.w-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.w-js [data-reveal].is-in { opacity: 1; transform: none; }
.w-js [data-reveal="photo"] { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1); }
.w-js [data-reveal="photo"].is-in { clip-path: inset(0 0 0 0); }
.w-js [data-reveal-delay="1"] { transition-delay: .12s; }
.w-js [data-reveal-delay="2"] { transition-delay: .24s; }
.w-js [data-reveal-delay="3"] { transition-delay: .36s; }

/* ---------- 02 Letter ---------- */
.w-letter { text-align: center; }
.w-letter__mark { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--sage-ink); margin: 0 0 var(--space-8); }
.w-letter__body { margin: 0 auto; font-family: var(--font-serif-ko); font-size: 15px; line-height: 2.05; max-width: var(--measure-ko); }
.w-letter__body p { margin: 0 0 var(--space-6); }
.w-letter__body p:last-child { margin-bottom: 0; }
.w-letter__sign { font-family: var(--font-display); font-style: italic; color: var(--ink-muted); font-size: 15px; margin-top: var(--space-6); }
.w-letter__photo { margin: var(--space-12) calc(var(--space-6) * -1) 0 var(--space-16); aspect-ratio: 4 / 5; }
.w-family { margin-top: var(--space-12); display: grid; gap: var(--space-4); font-family: var(--font-serif-ko); font-size: 15px; line-height: 1.9; }
.w-family__row { display: grid; grid-template-columns: 1fr auto 3.6em; align-items: baseline; gap: var(--space-2); text-align: right; }
.w-family__parents { color: var(--ink-muted); }
.w-family__rel { color: var(--ink-muted); font-size: 13px; }
.w-family__name { color: var(--ink); font-weight: 700; text-align: left; letter-spacing: .06em; }
.w-family__dot { display: inline-block; width: 4px; height: 4px; border-radius: var(--radius-arch); vertical-align: middle; margin: 0 .5em 3px; background: var(--hairline); }
.w-contact { margin-top: var(--space-8); display: flex; justify-content: center; }

/* ---------- 03 Wedding day ---------- */
.w-date { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: end; margin-bottom: var(--space-12); }
.w-date__day { font-family: var(--font-display); font-weight: 300; font-size: 112px; line-height: .8; letter-spacing: -.03em; }
.w-date__meta { padding-bottom: 6px; border-left: 1px solid var(--hairline); padding-left: var(--space-4); display: grid; gap: 2px; }
.w-date__month { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.1; }
.w-date__line { font-size: 13px; color: var(--ink-muted); letter-spacing: .04em; }
.w-date__ko { font-family: var(--font-serif-ko); font-size: 15px; margin-top: var(--space-2); }

.w-cal { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: var(--space-6) 0; }
.w-cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-4); }
.w-cal__month { font-family: var(--font-display); font-style: italic; font-size: 22px; }
.w-cal__year { font-size: 12px; letter-spacing: .2em; color: var(--ink-muted); }
.w-cal table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.w-cal th { font-weight: 500; font-size: 10px; letter-spacing: .18em; color: var(--ink-muted); padding-bottom: var(--space-3); }
.w-cal th:first-child, .w-cal td.is-sun { color: var(--rose-ink); }
.w-cal td { font-family: var(--font-display); font-size: 18px; height: 40px; position: relative; }
.w-cal td.is-day span { position: relative; z-index: 1; color: var(--ink); font-weight: 500; }
.w-cal td.is-day::before { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: var(--radius-arch); background: var(--rose); }
.w-cal td.is-day::after { content: "♡"; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 9px; color: var(--rose-ink); font-family: var(--font-sans); }

.w-count { margin-top: var(--space-12); text-align: center; }
.w-count__label { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.w-count__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.w-count__cell { display: grid; gap: var(--space-1); position: relative; }
.w-count__cell + .w-count__cell::before { content: ""; position: absolute; left: 0; top: 14px; height: 32px; width: 1px; background: var(--hairline); }
.w-count__num { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.w-count__unit { font-size: 10px; letter-spacing: .24em; color: var(--ink-muted); text-transform: uppercase; }
@keyframes w-beat { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.w-count__note { margin-top: var(--space-6); font-family: var(--font-serif-ko); font-size: 15px; }
.w-count__note b { color: var(--rose-ink); font-weight: 700; }
.w-venue-line { margin-top: var(--space-12); text-align: center; font-family: var(--font-serif-ko); }
.w-venue-line strong { display: block; font-size: 18px; font-weight: 700; }
.w-venue-line span { color: var(--ink-muted); font-size: 14px; }

/* ---------- 04 Gallery ---------- */
.w-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); }
.w-gallery__item { position: relative; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; text-align: left; }
.w-gallery__item .w-photo { width: 100%; height: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.w-gallery__item:hover .w-photo { transform: scale(1.025); }
.w-gallery__frame { display: block; overflow: hidden; aspect-ratio: var(--ar, 1); }
.w-gallery__cap { display: block; margin-top: var(--space-2); font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--ink-muted); }
.w-gallery__item:nth-child(8n+1) { grid-column: 1 / -1; --ar: 4 / 5; }
.w-gallery__item:nth-child(8n+2) { grid-column: 1 / 4; --ar: 3 / 4; margin-top: var(--space-16); }
.w-gallery__item:nth-child(8n+3) { grid-column: 4 / -1; --ar: 3 / 4.6; }
.w-gallery__item:nth-child(8n+4) { grid-column: 2 / -1; --ar: 3 / 2; }
.w-gallery__item:nth-child(8n+5) { grid-column: 1 / 4; --ar: 1; }
.w-gallery__item:nth-child(8n+6) { grid-column: 4 / -1; --ar: 1; margin-top: var(--space-12); }
.w-gallery__item:nth-child(8n+7) { grid-column: 1 / 5; --ar: 4 / 5; }
.w-gallery__item:nth-child(8n+8) { grid-column: 5 / -1; --ar: 2 / 4.2; align-self: end; }
.w-gallery__more { margin-top: var(--space-8); display: flex; justify-content: center; }
.w-gallery__item:nth-child(n+7) { display: none; }
.w-gallery.is-open .w-gallery__item:nth-child(n+7) { display: block; }

.w-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(22,19,17,.96); color: #faf8f3; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.w-lightbox.is-open { opacity: 1; visibility: visible; }
.w-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); font-family: var(--font-display); font-style: italic; font-size: 16px; }
.w-lightbox__btn { width: 44px; height: 44px; border: 0; background: transparent; color: #faf8f3; display: grid; place-items: center; cursor: pointer; border-radius: var(--radius-arch); }
.w-lightbox__btn:hover { background: rgba(255,255,255,.08); }
.w-lightbox__btn:focus-visible { outline: 2px solid #faf8f3; outline-offset: 2px; }
.w-lightbox__btn svg { width: 20px; height: 20px; }
.w-lightbox__viewport { overflow: hidden; position: relative; touch-action: pan-y; }
.w-lightbox__track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.w-lightbox__slide { flex: 0 0 100%; display: grid; place-items: center; padding: 0 var(--space-4); }
.w-lightbox__slide .w-photo { width: 100%; max-width: 560px; max-height: 100%; aspect-ratio: 4 / 5; }
.w-lightbox__foot { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); gap: var(--space-4); }
.w-lightbox__cap { font-family: var(--font-display); font-style: italic; font-size: 16px; text-align: center; flex: 1; min-height: 24px; }

/* ---------- 05 Location ---------- */
.w-map { position: relative; aspect-ratio: 1 / 1; background: var(--surface-champagne); overflow: hidden; }
.w-map--image { aspect-ratio: auto; background: transparent; }
.w-map--image img { width: 100%; height: auto; display: block; }
.w-map svg { width: 100%; height: 100%; display: block; }
.w-map .m-block { fill: var(--surface-paper); }
.w-map .m-park { fill: var(--sage); opacity: .55; }
.w-map .m-river { fill: none; stroke: var(--sage); stroke-width: 26; opacity: .35; }
.w-map .m-road { fill: none; stroke: var(--surface); stroke-width: 9; }
.w-map .m-road--major { stroke-width: 15; }
.w-map .m-rail { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 4; }
.w-map .m-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .12em; fill: var(--ink-muted); }
.w-map .m-label--road { font-size: 11px; letter-spacing: .04em; fill: var(--ink); dominant-baseline: middle; }
.w-map .m-label--venue { font-family: var(--font-serif-ko); font-size: 13px; font-weight: 700; letter-spacing: 0; fill: var(--ink); }
.w-map .m-badge { fill: var(--rose); }
.w-map .m-badge-t { font-family: var(--font-sans); font-size: 9px; font-weight: 500; fill: #383532; text-anchor: middle; }
.w-map .m-bus { fill: var(--surface); stroke: var(--sage-ink); stroke-width: 2; }
.w-address__tel { font-size: 13px; color: var(--ink-muted); text-decoration: none; margin-top: var(--space-2); justify-self: start; padding: 4px 0; border-bottom: 1px solid var(--hairline); }
.w-map .m-station { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.w-map .m-pin-ring { fill: var(--rose); opacity: .35; transform-origin: center; transform-box: fill-box; animation: w-ping 2.6s ease-out infinite; }
.w-map .m-pin { fill: var(--ink); }
.w-map .m-pin-dot { fill: var(--rose); }
@keyframes w-ping { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.w-map__badge { position: absolute; left: var(--space-4); top: var(--space-4); background: var(--surface); padding: 6px 10px; font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); border-radius: var(--radius-xs); }
.w-address { margin: var(--space-6) 0 var(--space-6); display: grid; gap: var(--space-1); }
.w-address__name { font-family: var(--font-serif-ko); font-size: 19px; font-weight: 700; }
.w-address__hall { font-family: var(--font-serif-ko); color: var(--ink-muted); }
.w-address__line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); padding: var(--space-3) 0 var(--space-3) var(--space-4); border-left: 2px solid var(--sage); }
.w-address__line address { font-style: normal; font-size: 14px; }
.w-address__line address small { display: block; font-size: 12px; color: var(--ink-muted); }
.w-navs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.w-navs .w-btn { padding-left: var(--space-2); padding-right: var(--space-2); flex-direction: column; gap: 2px; min-height: 64px; }
.w-navs .w-btn small { font-size: 10px; color: var(--ink-muted); letter-spacing: .06em; font-weight: 400; }
.w-ways { margin-top: var(--space-12); display: grid; }
.w-way { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--hairline); }
.w-way:last-child { border-bottom: 1px solid var(--hairline); }
.w-way__k { font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 22px; }
.w-way__k small { display: block; font-family: var(--font-sans); font-style: normal; font-size: 11px; color: var(--ink-muted); letter-spacing: .08em; margin-top: 2px; }
.w-way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: 14px; }
.w-way li { position: relative; padding-left: 14px; }
.w-way li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 1px; background: var(--ink-muted); }
.w-line-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: var(--radius-arch); border: 1px solid var(--line-strong); margin-right: 4px; line-height: 18px; }

/* ---------- 06 Wishes ---------- */
.w-compose { background: var(--surface); padding: var(--space-6); border: 1px solid var(--hairline); position: relative; }
.w-compose::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hairline); pointer-events: none; }
.w-compose__to { font-family: var(--font-display); font-style: italic; font-size: 18px; margin: 0 0 var(--space-4); }
.w-field { display: grid; gap: 6px; margin-bottom: var(--space-4); position: relative; }
.w-field label, .w-field legend { font-size: 11px; letter-spacing: .14em; color: var(--ink-muted); text-transform: uppercase; padding: 0; }
.w-input, .w-textarea, .w-select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0; outline: none; transition: border-color .2s; }
.w-textarea { font-family: var(--font-serif-ko); line-height: 1.9; min-height: 112px; resize: vertical; background-image: linear-gradient(transparent calc(100% - 1px), var(--hairline) 0); background-size: 100% 1.9em; background-attachment: local; border-bottom-color: var(--line-strong); }
.w-input:focus, .w-textarea:focus, .w-select:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.w-input::placeholder, .w-textarea::placeholder { color: var(--ink-muted); opacity: .8; }
.w-field__count { position: absolute; right: 0; top: 0; font-size: 11px; color: var(--ink-muted); }
.w-compose__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: end; }
.w-notes { margin-top: var(--space-12); display: grid; gap: var(--space-4); }
.w-note { background: var(--surface); padding: var(--space-6); border-radius: var(--radius-sm); position: relative; }
.w-note:nth-child(even) { margin-left: var(--space-8); }
.w-note:nth-child(odd) { margin-right: var(--space-8); }
.w-note__text { font-family: var(--font-serif-ko); font-size: 15px; line-height: 1.9; margin: 0; white-space: pre-line; }
.w-note__from { margin-top: var(--space-4); display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-muted); }
.w-note__from b { font-family: var(--font-serif-ko); color: var(--ink); font-weight: 700; font-size: 14px; }
.w-note.is-new { animation: w-note-in .9s cubic-bezier(.2,.7,.2,1); }
@keyframes w-note-in { from { opacity: 0; transform: translateY(16px); } }
.w-notes__empty { text-align: center; font-family: var(--font-serif-ko); color: var(--ink-muted); margin: 0; padding: var(--space-6) 0; }
.w-btn:disabled { opacity: .5; cursor: progress; }
.w-notes__more { justify-self: center; margin-top: var(--space-4); }

.w-rsvp { margin-top: var(--space-16); text-align: center; border-top: 1px solid var(--hairline); padding-top: var(--space-12); }
.w-rsvp__lede { font-family: var(--font-serif-ko); font-size: 15px; line-height: 1.9; margin: var(--space-4) 0 var(--space-6); }
.w-sheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; visibility: hidden; }
.w-sheet.is-open { visibility: visible; }
.w-sheet__scrim { position: absolute; inset: 0; background: rgba(30,26,22,.4); opacity: 0; transition: opacity .35s; border: 0; padding: 0; }
.w-sheet.is-open .w-sheet__scrim { opacity: 1; }
.w-sheet__panel { position: relative; background: var(--surface); width: 100%; max-width: var(--page-max); margin: 0 auto; padding: var(--space-6) var(--space-6) calc(var(--space-8) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-sheet); transform: translateY(100%); transition: transform .5s cubic-bezier(.2,.7,.2,1); max-height: 92vh; overflow: auto; text-align: left; }
.w-sheet.is-open .w-sheet__panel { transform: none; }
.w-sheet__grab { width: 36px; height: 3px; background: var(--hairline); margin: 0 auto var(--space-6); border-radius: var(--radius-arch); }
.w-sheet__title { font-family: var(--font-display); font-style: italic; font-size: 30px; font-weight: 300; margin: 0; }
.w-sheet__sub { font-family: var(--font-serif-ko); color: var(--ink-muted); margin: var(--space-1) 0 var(--space-6); }
.w-choice { display: flex; gap: var(--space-2); flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 var(--space-6); }
.w-choice legend { margin-bottom: var(--space-3); }
.w-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-arch); }
.w-stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: var(--radius-arch); }
.w-stepper output { min-width: 36px; text-align: center; font-family: var(--font-display); font-size: 20px; }
.w-done { text-align: center; padding: var(--space-8) 0; }
.w-done__mark { font-family: var(--font-display); font-style: italic; font-size: 34px; font-weight: 300; }

/* ---------- 07 Accounts ---------- */
.w-gift__lede { font-family: var(--font-serif-ko); text-align: center; line-height: 2; color: var(--ink-muted); margin: 0 auto var(--space-12); max-width: var(--measure-ko); }
.w-acc { border-top: 1px solid var(--hairline); }
.w-acc + .w-acc { border-top: 0; }
.w-acc:last-child { border-bottom: 1px solid var(--hairline); }
.w-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; border: 0; background: none; cursor: pointer; text-align: left; min-height: 64px; }
.w-acc__side { display: flex; align-items: baseline; gap: var(--space-3); }
.w-acc__side b { font-family: var(--font-serif-ko); font-size: 16px; }
.w-acc__side em { font-family: var(--font-display); font-size: 15px; color: var(--ink-muted); }
.w-acc__dot { width: 6px; height: 6px; border-radius: var(--radius-arch); display: inline-block; transform: translateY(-2px); }
.w-acc--groom .w-acc__dot { background: var(--sage); }
.w-acc--bride .w-acc__dot { background: var(--rose); }
.w-acc__icon { width: 20px; height: 20px; position: relative; flex: none; }
.w-acc__icon::before, .w-acc__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--ink); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.w-acc__icon::after { transform: rotate(90deg); }
.w-acc__btn[aria-expanded="true"] .w-acc__icon::after { transform: rotate(0deg); }
.w-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.w-acc__panel > div { overflow: hidden; }
.w-acc__btn[aria-expanded="true"] + .w-acc__panel { grid-template-rows: 1fr; }
.w-acc__list { list-style: none; margin: 0; padding: 0 0 var(--space-6); display: grid; gap: var(--space-2); }
.w-acc__row { background: var(--surface-champagne); padding: var(--space-4); display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); align-items: center; }
.w-acc__who { font-size: 12px; color: var(--ink-muted); letter-spacing: .04em; }
.w-acc__who b { color: var(--ink); font-family: var(--font-serif-ko); font-size: 15px; margin-left: 6px; letter-spacing: .02em; }
.w-acc__num { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.w-acc__row .w-btn { grid-row: span 2; background: var(--surface); }

/* ---------- 08 Closing ---------- */
.w-closing { position: relative; color: var(--on-photo); min-height: 640px; display: grid; align-items: end; overflow: hidden; }
.w-closing__media { position: absolute; inset: 0; }
.w-closing__media .w-photo { width: 100%; height: 100%; }
.w-closing__veil { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, var(--photo-scrim) 60%, rgba(22,19,17,.7)); }
.w-closing__copy { position: relative; z-index: 4; padding: var(--space-16) var(--space-6) var(--space-12); text-align: center; }
.w-closing__msg { font-family: var(--font-serif-ko); font-size: 15px; line-height: 2.05; margin: 0 auto var(--space-8); max-width: var(--measure-ko); }
.w-closing__names { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; margin: 0; }
.w-closing__date { margin-top: var(--space-3); font-size: 12px; letter-spacing: .28em; }
.w-share { padding: var(--space-12) var(--space-6) var(--space-8); display: grid; gap: var(--space-2); }
.w-share .w-btn--kakao { background: #fee500; border-color: #fee500; color: #191919; }
.w-share .w-btn--kakao:hover { opacity: .92; background: #fee500; }
.w-footer { text-align: center; padding: var(--space-8) var(--space-6) var(--space-12); font-size: 11px; letter-spacing: .14em; color: var(--ink-muted); }
.w-footer span { font-family: var(--font-display); font-style: italic; letter-spacing: 0; font-size: 14px; display: block; margin-bottom: var(--space-1); color: var(--ink); }

/* ---------- Toast ---------- */
.w-toast { position: fixed; left: 50%; bottom: calc(var(--space-8) + env(safe-area-inset-bottom)); z-index: 200; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1); width: max-content; max-width: calc(100vw - 48px); text-align: center; }
.w-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Demo / integration note ---------- */
.w-demo { margin-top: var(--space-4); font-size: 11px; line-height: 16px; color: var(--ink-muted); display: flex; gap: 6px; align-items: flex-start; }
.w-demo::before { content: "DEMO"; font-size: 9px; letter-spacing: .14em; border: 1px solid var(--line-strong); padding: 0 4px; border-radius: var(--radius-xs); line-height: 14px; flex: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .w-root *, .w-root *::before, .w-root *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .w-js [data-reveal], .w-hero [data-enter] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .w-petals { display: none; }
  .w-hero__media { transform: none !important; }
}

/* ---------- RSVP (own section) ---------- */
.w-rsvp-sec { text-align: center; }
.w-rsvp-sec .w-rsvp__lede { margin-top: 0; }
.w-rsvp__deadline { font-size: 12px; color: var(--ink-muted); margin: var(--space-4) 0 0; }
.w-choice-k { font-size: 11px; letter-spacing: .14em; color: var(--ink-muted); display: block; margin-bottom: var(--space-3); }
.w-choice-k b { color: var(--rose-ink); font-weight: 500; margin-left: 2px; }
[data-if-attend][hidden] { display: none; }
.w-choice.is-missing .w-chip { border-color: var(--rose-ink); }

/* ---------- Music toggle ---------- */
.w-music { position: fixed; top: calc(var(--space-4) + env(safe-area-inset-top)); right: var(--space-4); z-index: 85; width: 40px; height: 40px; border-radius: var(--radius-arch); border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-float); }
@media (min-width: 600px) { .w-music { right: calc(50% - var(--page-max) / 2 + var(--space-4)); } }
.w-music__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.w-music__bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.w-music.is-on .w-music__bars i { animation: w-eq 1.1s ease-in-out infinite; }
.w-music.is-on .w-music__bars i:nth-child(2) { animation-delay: -.4s; }
.w-music.is-on .w-music__bars i:nth-child(3) { animation-delay: -.8s; }
.w-music:not(.is-on)::after { content: ""; position: absolute; width: 22px; height: 1px; background: currentColor; transform: rotate(-45deg); }
@keyframes w-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Quick dock ---------- */
.w-dock { position: fixed; left: 50%; bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 140%); display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-arch); box-shadow: var(--shadow-float); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.w-dock.is-on { transform: translate(-50%, 0); }
.w-dock a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-arch); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.w-dock a:hover { background: var(--surface-paper); }