/* Ever After — mobile wedding invitation
   Edit the palette here. Everything else reads from these variables. */
:root {
  --paper: #FBF6EF;        /* ivory card */
  --paper-2: #F4EBE1;      /* tinted panels */
  --ink: #3F3833;          /* body text */
  --muted: #8A7E75;
  --blush: #E9C9C3;
  --rose: #B4746F;         /* accent (buttons, highlights) */
  --sage: #8E9B80;
  --sage-deep: #5D6A52;
  --line: #E6D9CC;
  --backdrop: #DDE2D3;     /* desktop background around the card */
  --petal: #E2B1AA;        /* pressed-flower colours */
  --petal-vein: #C98C86;
  --leaf: #9FAE8F;
  --leaf-vein: #7B8B6C;
  --pollen: #CDA35F;
  --serif-ko: "Gowun Batang", "Nanum Myeongjo", serif;
  --serif-en: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--backdrop);
  font-family: var(--serif-ko); font-size: 15px; line-height: 1.85; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { font-family: var(--serif-en); font-size: 18px; line-height: 1.6; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* Language switch: every bilingual string has a .ko and an .en span */
html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Desktop backdrop: blurred couple photo + pressed flowers + frosted cards ── */
.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: #1e2418; }
.bd-photo {
  position: absolute; inset: -30px; background:
    url("https://images.unsplash.com/photo-1546032996-6dfacbacbf3f?auto=format&fit=crop&w=1800&q=55") center/cover no-repeat;
  filter: blur(18px) saturate(.85) brightness(.72); transform: scale(1.08);
}
.bd-veil { position: absolute; inset: 0;
  background:
    radial-gradient(900px 700px at 50% 40%, transparent 0%, rgb(30 36 24 / .55) 70%, rgb(20 24 16 / .78) 100%),
    linear-gradient(90deg, rgb(30 36 24 / .45), transparent 28%, transparent 72%, rgb(30 36 24 / .45)),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 4px);
}
.bd { position: absolute; opacity: .7; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .25)); }
.bd-1 { width: 150px; height: 370px; left: 3vw; top: 6vh; transform: rotate(-16deg); }
.bd-2 { width: 110px; height: 110px; left: 14vw; bottom: 10vh; transform: rotate(22deg); }
.bd-3 { width: 140px; height: 200px; right: 4vw; top: 10vh; transform: rotate(14deg); }
.bd-4 { width: 130px; height: 320px; right: 8vw; bottom: 2vh; transform: rotate(155deg); }
.bd-5 { width: 90px; height: 90px; left: 22vw; top: 18vh; transform: rotate(-8deg); opacity: .55; }
.bd-6 { width: 120px; height: 160px; right: 20vw; bottom: 22vh; transform: rotate(28deg); opacity: .55; }
.bd-left, .bd-right {
  position: absolute; top: 50%; translate: 0 -50%; width: min(280px, 22vw);
  padding: 28px 26px 30px; border-radius: 22px;
  background: rgb(251 246 239 / .78); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .55);
  color: var(--sage-deep); font-family: var(--serif-en);
}
.bd-left { left: max(2.5vw, calc(50% - 560px)); }
.bd-right { right: max(2.5vw, calc(50% - 560px)); text-align: center; }
.bd-left p, .bd-right p { margin: 0; }
.bd-spray-top { width: 180px; height: 112px; display: block; margin: 0 auto 14px; opacity: .95; }
.bd-script { font-style: italic; font-size: 26px; color: var(--rose); text-align: center; }
.bd-names { font-size: clamp(32px, 2.9vw, 42px); white-space: nowrap; line-height: 1.05; margin: 6px 0 4px !important; color: var(--ink); text-align: center; }
.bd-names em { color: var(--rose); font-style: italic; }
.bd-ko { text-align: center; font-family: var(--serif-ko); font-size: 15px; color: var(--muted); letter-spacing: .08em; }
.bd-date { letter-spacing: .28em; font-size: 14px; padding-top: 14px; margin-top: 14px !important; border-top: 1px solid rgb(93 106 82 / .25); text-align: center; color: var(--ink); }
.bd-venue { font-style: italic; font-size: 15px; margin-top: 6px !important; text-align: center; line-height: 1.45; }
.bd-dday { display: inline-block; font-family: var(--serif-en); letter-spacing: .2em; font-size: 13px; padding: 6px 14px; border: 1px solid var(--rose); color: var(--rose); border-radius: 99px; margin-bottom: 14px !important; }
.bd-r-h { font-size: 22px; color: var(--ink); line-height: 1.25; margin-bottom: 16px !important; }
.bd-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bd-toc li { padding: 6px 0; border-bottom: 1px dashed rgb(93 106 82 / .2); }
.bd-toc li:last-child { border-bottom: 0; }
.bd-hint { margin-top: 18px !important; font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1179px) { .bd-left, .bd-right { display: none; } }
@media (min-width: 1180px) { .bd-1, .bd-3 { display: none; } }
@media (min-width: 900px) { body { background: #262c1f; } }
@media (max-width: 899px) { .backdrop { display: none; } body { background: var(--paper); } }

/* Pressed-flower parts */
.pf-petals path { fill: var(--petal); opacity: .92; }
.pf-veins path { stroke: var(--petal-vein); stroke-width: .9; fill: none; opacity: .55; }
.pf-pollen circle { fill: var(--pollen); }
.pf-stem { stroke: var(--leaf-vein); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.pf-thin { stroke-width: 1.3; }
.pf-leaf path { fill: var(--leaf); opacity: .9; }
.pf-midrib path { stroke: var(--leaf-vein); stroke-width: 1; fill: none; opacity: .6; }
.pf-dots circle { fill: #FFFDF8; stroke: #E4D7C5; stroke-width: .8; }
.pf-small .pf-petals path { fill: var(--blush); }

/* ── Card ── */
.card { position: relative; width: min(100%, 440px); margin: 0 auto; background: var(--paper); overflow: hidden; }
@media (min-width: 900px) {
  .card { margin: 48px auto; border-radius: 32px; box-shadow:
    0 50px 100px -40px rgb(0 0 0 / .55),
    0 0 0 10px rgb(251 246 239 / .18),
    0 0 0 1px rgb(255 255 255 / .35) inset; }
}
.card::before { /* paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgb(120 90 60 / .07) 1px, transparent 1.2px); background-size: 7px 7px;
}
.card > * { position: relative; z-index: 1; }

/* ── Cover ── */
.cover { position: relative; min-height: min(100svh, 780px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(40 30 25 / .25) 0%, transparent 30%, transparent 48%, rgb(40 28 22 / .55) 78%, var(--paper) 100%); }
.cover-text { text-align: center; padding: 0 24px 86px; text-shadow: 0 1px 18px rgb(40 25 20 / .35); }
.script { font-family: var(--serif-en); font-style: italic; font-size: 26px; margin: 0; letter-spacing: .01em; }
.names { margin: 6px 0 14px; font-weight: 400; font-size: 34px; line-height: 1.25; letter-spacing: .04em; }
.names em { font-family: var(--serif-en); font-style: italic; font-weight: 400; color: #F6D9D3; padding: 0 .1em; }
html[data-lang="en"] .names { font-family: var(--serif-en); font-size: 46px; letter-spacing: 0; }
.cover-date { margin: 0; font-family: var(--serif-en); letter-spacing: .28em; font-size: 14px; }
.cover-venue { margin: 2px 0 0; font-size: 13px; opacity: .92; }
.langs { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.langs button { background: none; border: 0; padding: 4px 2px; color: var(--muted); border-bottom: 1px solid transparent; }
.langs button[aria-pressed="true"] { color: var(--ink); border-color: var(--rose); }

/* Falling petals over the cover */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.petals i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 80% 0 80% 0; background: #F3D3CD; opacity: .85; animation: fall 11s linear infinite; }
.petals i:nth-child(1) { left: 8%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 22%; animation-delay: 3s; transform: scale(.7); }
.petals i:nth-child(3) { left: 37%; animation-delay: 6s; }
.petals i:nth-child(4) { left: 52%; animation-delay: 1.5s; transform: scale(.8); }
.petals i:nth-child(5) { left: 66%; animation-delay: 4.5s; }
.petals i:nth-child(6) { left: 78%; animation-delay: 7.5s; transform: scale(.6); }
.petals i:nth-child(7) { left: 90%; animation-delay: 2.2s; }
.petals i:nth-child(8) { left: 45%; animation-delay: 9s; transform: scale(.75); }
@keyframes fall {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: 30px 50vh; rotate: 160deg; }
  100% { translate: -10px 105vh; rotate: 320deg; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } html { scroll-behavior: auto; } }

/* ── Sections ── */
.sec { padding: 72px 28px; text-align: center; }
.sec + .sec { border-top: 1px solid var(--line); }
.kicker { margin: 0; font-family: var(--serif-en); font-style: italic; color: var(--rose); font-size: 20px; }
.sec-h { margin: 4px 0 28px; font-weight: 400; font-size: 19px; letter-spacing: .02em; }
html[data-lang="en"] .sec-h { font-size: 26px; font-weight: 500; }
.muted { color: var(--muted); font-size: .93em; }
.spray { display: block; width: 210px; height: 132px; margin: -20px auto 18px; }
.spray.flip { transform: scaleX(-1); }

.poem p { margin: 0; color: #5A514A; }
.families { margin: 34px auto 26px; display: grid; gap: 8px; padding: 18px 0; border-block: 1px solid var(--line); max-width: 300px; }
.families p { margin: 0; }
.parents { color: var(--muted); }
.families strong { font-weight: 700; color: var(--ink); font-size: 1.08em; }

.btn, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 14px; text-decoration: none; font-size: 14px; transition: background .2s, color .2s, transform .1s; }
html[data-lang="en"] .btn, html[data-lang="en"] .btn-line { font-size: 17px; }
.btn { background: var(--rose); color: #fff; border: 0; box-shadow: 0 10px 22px -14px var(--rose); }
.btn:hover { background: #A2625D; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--rose); color: var(--rose); }
.btn:active, .btn-line:active { transform: translateY(1px); }

.duo { margin: 0; padding: 0 28px 64px; }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.duo figcaption { margin-top: 18px; text-align: center; font-family: var(--serif-en); font-style: italic; font-size: 18px; color: var(--muted); line-height: 1.45; }
.duo figcaption span { display: block; font-size: 14px; margin-top: 4px; }

/* Calendar */
.cal { max-width: 320px; margin: 0 auto; padding: 18px 10px 12px; border-radius: var(--radius); background: var(--paper-2); }
.cal-title { font-family: var(--serif-en); letter-spacing: .26em; font-size: 14px; margin: 0 0 10px; color: var(--sage-deep); }
.cal table { width: 100%; border-collapse: collapse; font-family: var(--serif-en); font-size: 16px; }
.cal th { font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--muted); padding-bottom: 6px; }
.cal td { height: 38px; text-align: center; }
.cal th:first-child, .cal td:first-child { color: #C0726B; }
.cal td.on span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rose); color: #fff; position: relative; }
.cal td.on span::after { content: "♥"; position: absolute; top: -11px; right: -6px; font-size: 11px; color: var(--rose); }
.count { display: flex; justify-content: center; gap: 10px; margin: 26px 0 10px; }
.count div { width: 64px; padding: 10px 0 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: grid; }
.count b { font-family: var(--serif-en); font-size: 28px; font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.count span { font-family: var(--serif-en); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.dday { margin: 4px 0 22px; color: var(--muted); }
.dday b { color: var(--rose); font-weight: 700; }

/* Gallery */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 118px; gap: 6px; }
.grid li.tall { grid-row: span 2; }
.grid li.wide { grid-column: span 2; }
.grid button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grid button:hover img { transform: scale(1.04); }

/* Location */
.venue { margin: 0; font-size: 17px; font-weight: 700; }
html[data-lang="en"] .venue { font-weight: 600; font-size: 21px; }
.addr { margin: 2px 0 0; color: var(--muted); }
.tel { margin: 0 0 20px; }
.tel a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.copy { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 1px 9px; font-size: 12px; color: var(--muted); vertical-align: 1px; }
.copy:hover { border-color: var(--rose); color: var(--rose); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 220px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.55) sepia(.12); }
.maplinks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.maplinks a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 4px; text-decoration: none; font-size: 13px; background: var(--paper); }
.maplinks a + a { border-left: 1px solid var(--line); }
.maplinks a:hover { background: var(--paper-2); }
.dot { width: 9px; height: 9px; border-radius: 3px; }
.dot.naver { background: #3DB550; } .dot.kakao { background: #F2C200; } .dot.tmap { background: #E03131; } .dot.google { background: #5B8DEF; }
.gmap { margin: 12px 0 0; font-size: 13px; }
.gmap a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.gmap a:hover { color: var(--rose); border-color: var(--rose); }
.ways { text-align: left; margin: 28px 0 0; display: grid; gap: 14px; }
.ways div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.ways dt { color: var(--sage-deep); font-weight: 700; }
.ways dd { margin: 0; color: #5A514A; }

/* Gifts accordion */
.acc { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-top: 10px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; background: var(--paper-2); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc ul { list-style: none; margin: 0; padding: 4px 18px 10px; }
.acc li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.acc li:last-child { border-bottom: 0; }
.acc small { color: var(--muted); margin-right: 6px; }
.bank { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* RSVP CTA */
.rsvp-cta { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.rsvp-cta .muted { margin: -12px 0 24px; }

/* End */
.end { text-align: center; padding: 64px 28px 48px; background: var(--paper-2); border-top: 1px solid var(--line); }
.bloom-end { width: 56px; height: 56px; }
.end .script { color: var(--rose); font-size: 30px; }
.share { display: flex; justify-content: center; gap: 8px; margin: 24px 0 34px; }
.share button { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 18px; font-size: 13px; }
.share button:hover { border-color: var(--rose); color: var(--rose); }
.tiny { font-family: var(--serif-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgb(40 34 30 / .55); backdrop-filter: blur(3px); }
.sheet { width: min(92vw, 400px); border-radius: 22px; background: var(--paper); padding: 28px 22px 24px; text-align: center; }
.x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); border-radius: 50%; }
.x:hover { background: var(--paper-2); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.contact-cols ul { list-style: none; margin: 0; padding: 0; }
.contact-cols li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.contact-cols li span { flex: 1; }
.contact-cols li.lead { color: var(--rose); border-bottom-color: var(--rose); font-weight: 700; }
.contact-cols a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); text-decoration: none; font-size: 14px; }
.contact-cols a:hover { background: var(--blush); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(24 20 18 / .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 80dvh; border-radius: 10px; object-fit: contain; }
.lb-count { position: absolute; top: 16px; left: 0; right: 0; text-align: center; color: #d8cfc6; font-family: var(--serif-en); letter-spacing: .2em; margin: 0; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .06); color: #fff; font-size: 28px; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.x.light { color: #fff; } .x.light:hover { background: rgb(255 255 255 / .1); }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-size: 14px; transition: opacity .25s, translate .25s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; translate: -50% 0; }


/* BGM float */
.bgm { position: fixed; top: 14px; right: 14px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .45); background: rgb(40 28 22 / .35); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; padding: 0; }
.bgm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bgm .mute { display: none; }
.bgm[aria-pressed="false"] .mute { display: block; }
.bgm[aria-pressed="true"] { background: rgb(180 116 111 / .85); border-color: transparent; animation: pulse-soft 2.4s ease-in-out infinite; }
@keyframes pulse-soft { 50% { box-shadow: 0 0 0 8px rgb(180 116 111 / .15); } }
@media (min-width: 900px) { .bgm { position: fixed; top: auto; bottom: 28px; right: max(24px, calc(50% - 220px - 72px)); } }

/* Couple cards */
.couple { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px; text-align: center; }
.person { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 12px 16px; }
.medal { position: relative; width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; }
.medal svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.medal span { position: relative; z-index: 1; font-family: var(--serif-en); font-size: 22px; color: var(--paper); text-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.medal.rose svg .pf-petals path { fill: var(--rose); }
.role { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-family: var(--serif-en); }
.pname { margin: 4px 0 6px; font-size: 20px; font-weight: 700; }
.pnote { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.pcall { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.pcall a { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; font-size: 14px; }
.pcall a:hover { border-color: var(--rose); color: var(--rose); }

.dchip { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 99px; background: #FBEDEA; color: var(--rose); font-family: var(--serif-en); letter-spacing: .18em; font-size: 13px; }

/* Guestbook */
.guestbook { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.gb-list { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: grid; gap: 10px; }
.gb-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.gb-list .who { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.gb-list .who b { color: var(--ink); font-size: 15px; }
.gb-list .del { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; }
.gb-list .del:hover { color: var(--rose); }
.gb-list p { margin: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.gb-form { display: grid; gap: 8px; margin-top: 8px; text-align: left; }
.gb-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.gb-form input, .gb-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 12px; font: inherit; color: var(--ink); }
.gb-form textarea { min-height: 88px; resize: vertical; }
.gb-form input:focus, .gb-form textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgb(180 116 111 / .15); }
.gb-form .btn { width: 100%; margin-top: 4px; }
.gb-more { margin: 0 auto 14px; display: block; }
.gb-more[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.share { flex-wrap: wrap; }
.share .kakao { background: #FEE500; border-color: #FEE500; color: #191600; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.share .kakao svg { width: 16px; height: 16px; fill: currentColor; }
.share .kakao:hover { filter: brightness(.96); border-color: #FEE500; color: #191600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── RSVP page ── */
.page-head { padding: 56px 28px 8px; text-align: center; }
.back { position: absolute; top: 18px; left: 18px; font-size: 14px; text-decoration: none; color: var(--muted); }
.form { text-align: left; display: grid; gap: 18px; padding: 8px 28px 64px; }
.field label, .field legend { display: block; font-size: 14px; color: var(--sage-deep); margin-bottom: 6px; padding: 0; font-weight: 700; }
html[data-lang="en"] .field label, html[data-lang="en"] .field legend { font-size: 17px; font-weight: 600; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; font: inherit; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgb(180 116 111 / .15); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; font-weight: 400 !important; color: var(--ink) !important; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: all .15s; }
.seg input:checked + span { border-color: var(--rose); background: #FBEDEA; color: var(--rose); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; }
.stepper output { min-width: 40px; text-align: center; font-family: var(--serif-en); font-size: 24px; }
.form .btn { width: 100%; margin-top: 6px; }
.done { display: none; text-align: center; padding: 40px 28px 72px; }
.done.show { display: block; }
.note { font-size: 13px; color: var(--muted); text-align: center; }
