/* One visual world: a bright Korean-Yukon garden party. White and blush ground, navy ink, hot pink and rose red for energy.
   Layout idea: big friendly type, rounded cards, saekdong (색동) stripe ribbons between the parts. */
:root {
  --white: #ffffff;        /* page ground */
  --blush: #fff0f5;        /* alternate bands, soft fills */
  --petal: #ffd6e3;        /* decorative pink */
  --line: #f5c9d8;         /* rules, input borders */
  --pink: #ee5c93;         /* accent: borders, selected states */
  --pink-ink: #c2255c;     /* pink as text on white */
  --red: #c8102e;          /* rose red: the one loud action */
  --navy: #18264d;         /* main text, buttons */
  --soft: #546079;         /* secondary text */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito", "Gowun Dodum", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ko: "Jua", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.5rem;
  --radius: 20px;
  --saekdong: repeating-linear-gradient(90deg,
    var(--navy) 0 26px, var(--white) 26px 32px, var(--red) 32px 50px, var(--petal) 50px 62px,
    var(--pink) 62px 84px, var(--white) 84px 90px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
a { color: var(--pink-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
img, canvas { max-width: 100%; }
[lang="ko"] { font-family: var(--font-ko); word-break: keep-all; }

.saekdong { height: 10px; background: var(--saekdong); }
.preview-bar {
  background: var(--navy); color: var(--petal); text-align: center;
  font-size: var(--step--1); font-weight: 700; padding: 6px 16px;
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f8 32%, #ffe3ec 72%, #ffd3e0 100%);
  padding: clamp(64px, 9vw, 104px) 20px clamp(206px, 27vw, 336px);
  text-align: center;
}
.hero-sky, .hero-petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 12px; }

.lantern {
  position: absolute; top: 0; width: clamp(40px, 6.5vw, 66px); height: auto;
  transform-origin: 50% 0; animation: sway 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 10px rgba(24, 38, 77, 0.18));
}
.lantern-l { left: clamp(10px, 7vw, 120px); top: -22px; }
.lantern-r { right: clamp(10px, 7vw, 120px); animation-duration: 6.5s; animation-delay: -2s; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@media (prefers-reduced-motion: reduce) { .lantern { animation: none; } }

.seal {
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  width: 84px; height: 84px; padding: 9px 8px 7px;
  background: var(--red); color: #fff; border-radius: 14px;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px rgba(255, 255, 255, 0.85), 0 8px 18px -8px rgba(200, 16, 46, 0.7);
  font-family: var(--font-ko); font-size: 1.6rem; line-height: 1;
  transform: rotate(-5deg);
}
.ko-line { font-size: 1.45rem; color: var(--pink-ink); letter-spacing: 0.14em; margin-top: 8px; }
.names { font-size: clamp(2.5rem, 10.6vw, 6.8rem); font-weight: 600; letter-spacing: -0.02em; color: var(--navy); }
.names .amp { color: var(--red); font-style: italic; font-weight: 400; padding: 0 0.04em; }
.lede { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--pink-ink); margin-top: -6px; }
.when {
  margin-top: 10px; padding: 9px 22px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: var(--step-1); font-weight: 800; letter-spacing: 0.01em;
}
.where { color: var(--navy); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.countdown {
  margin-top: 6px; padding: 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.85);
  font-size: var(--step--1); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 11px 26px; border-radius: 999px;
  font: 800 var(--step-0)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-copper { background: var(--navy); color: #fff; box-shadow: 0 10px 20px -10px rgba(24, 38, 77, 0.7); }
.btn-copper:hover { background: #22356b; box-shadow: 0 14px 24px -10px rgba(238, 92, 147, 0.8); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--blush); }
.btn-copper-line { background: #fff; color: var(--pink-ink); border-color: var(--pink); min-height: 44px; padding: 8px 18px; font-size: var(--step--1); }
.btn-copper-line:hover { background: var(--blush); }
.band-rsvp .btn-wide { background: var(--red); box-shadow: 0 12px 22px -10px rgba(200, 16, 46, 0.75); }
.band-rsvp .btn-wide:hover { background: #dd1f3f; }
.btn-wide { width: 100%; min-height: 56px; font-size: var(--step-1); }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; color: var(--pink-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Jump nav ---- */
.jump {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: center; gap: clamp(14px, 4vw, 38px); flex-wrap: wrap;
  padding: 12px 16px 18px; background: var(--navy);
}
.jump::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--saekdong); }
.jump a { color: #fff; text-decoration: none; font-size: var(--step--1); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.jump a:hover { color: var(--petal); }

/* ---- Bands ---- */
.band { padding: clamp(56px, 8vw, 96px) 20px; scroll-margin-top: 54px; }
.band-alt {
  background-color: var(--blush);
  /* a quiet nod to Korean window lattice */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 28h56M28 0v56M14 14h28v28H14z' fill='none' stroke='%23ee5c93' stroke-opacity='.13' stroke-width='1.5'/%3E%3C/svg%3E");
}
.band-rsvp { background: linear-gradient(180deg, var(--blush), var(--white)); padding-bottom: clamp(96px, 12vw, 140px); }
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 28px; }
.wrap.narrow { max-width: 620px; }
.split { grid-template-columns: 1.2fr 1fr; align-items: start; gap: clamp(28px, 6vw, 72px); }
.sec-ko { display: block; font-size: 1.05rem; font-weight: 400; color: var(--pink-ink); letter-spacing: 0.1em; margin-bottom: 6px; }
.kicker { font-size: var(--step--1); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-ink); }
.fine { font-size: var(--step--1); color: var(--soft); }
.sub { color: var(--soft); margin-top: -16px; }

/* schedule */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schedule li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; }
.schedule time {
  justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--blush); border: 1.5px solid var(--line);
  color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--step--1); white-space: nowrap;
}
.schedule li:nth-child(odd) time { background: var(--navy); border-color: var(--navy); color: #fff; }
.schedule strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.schedule span { color: var(--soft); font-size: var(--step--1); }

/* venue */
.venue {
  position: relative; overflow: hidden;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 28px; display: grid; gap: 12px; box-shadow: 0 18px 40px -24px rgba(24, 38, 77, 0.45);
}
.venue::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--saekdong); }
.venue h3 { font-size: var(--step-2); }
.venue p:not(.kicker) { color: var(--soft); }
.venue-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.venue-facts div { background: var(--blush); border-radius: 14px; padding: 10px 14px; }
.venue-facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-ink); }
.venue-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); border-top: 6px solid var(--pink);
  padding: 22px; display: grid; gap: 8px; align-content: start; box-shadow: 0 14px 30px -22px rgba(24, 38, 77, 0.5);
}
.card:nth-child(3n + 2) { border-top-color: var(--red); }
.card:nth-child(3n + 3) { border-top-color: var(--navy); }
.card p { color: var(--soft); max-width: 65ch; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0; }
.faq > div { background: var(--blush); border-radius: var(--radius); padding: 20px 22px; }
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--soft); max-width: 60ch; }

/* ---- RSVP ---- */
.rsvp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.flora { display: block; }
.flora-posy { width: 150px; height: 110px; flex: none; }
.hello { font-size: var(--step-1); font-weight: 600; }
.notice { background: #fff; border: 2px solid var(--petal); border-radius: 14px; padding: 12px 16px; }
.code-form { display: grid; gap: 10px; }
.code-form label, .field label, .choices legend { font-weight: 800; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1 1 180px; text-transform: uppercase; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }
.rsvp-form, .stack { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { color: var(--soft); font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 50px; padding: 11px 15px;
  background: #fff; color: var(--navy);
  border: 2px solid var(--line); border-radius: 14px;
  font: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(238, 92, 147, 0.22); }
.choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices legend { margin-bottom: 10px; padding: 0; }
.choice {
  position: relative; display: grid; gap: 2px; padding: 18px 20px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.choice:hover { transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.choice-sub { color: var(--soft); font-size: var(--step--1); }
.choice:has(input:checked) { border-color: var(--pink); background: var(--blush); box-shadow: 0 0 0 3px rgba(238, 92, 147, 0.25); }
.choice:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--pink-ink); flex: none; }
.form-error { color: #a3141f; font-weight: 800; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done {
  border: 2px solid var(--pink); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px;
  background: var(--blush);
}
.done h3 { font-size: var(--step-2); }
.done a { word-break: break-all; }

/* ---- Footer ---- */
.foot { text-align: center; padding: 0 20px 56px; color: #d7dcea; background: var(--navy); font-size: var(--step--1); display: grid; gap: 6px; }
.foot::before { content: ""; height: 8px; margin: 0 -20px; background: var(--saekdong); }
.flora-garland { width: min(600px, 100%); height: 130px; margin: -82px auto 4px; }
.foot a { color: var(--petal); }
.foot-names { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); color: #fff; }
.foot-ko { color: var(--petal); font-size: 1.1rem; letter-spacing: 0.08em; }
.foot-ko span { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0; color: #d7dcea; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  :root { --step-3: 2.1rem; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .schedule li { grid-template-columns: 96px 1fr; gap: 12px; }
  .venue { padding: 30px 22px 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .seal { width: 76px; height: 76px; font-size: 1.45rem; }
  .flora-posy { width: 120px; height: 92px; }
}
