/* 일러스트형 A 스타일 (src/designs/illust-a/Template.tsx 와 짝) */
:root {
  --bg: #fff8ec;
  --surface: #ffffff;
  --ink: #4a3b32;
  --muted: #7a665a;
  --line: #ebcdb0;
  --divider: #f3e7d6;
  --accent: #b4472f;
  --green: #3f5a45;
  --green-soft: #e6efe2;
  --rose: #8f3622;
  --rose-soft: #fbe3da;
  --amber: #6b4a10;
  --amber-soft: #fbeecb;
  --radius-lg: 28px;
  --radius: 24px;
  --radius-sm: 20px;
  --col: 342px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hahmlet', 'Apple SD Gothic Neo', serif;
  word-break: keep-all;
}

p, h1, h2, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }

.page {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section { width: 100%; max-width: var(--col); margin-top: 56px; display: flex; flex-direction: column; align-items: center; }

/* text helpers */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.lh { line-height: 1.8; margin-top: 10px; }
.sub { margin-top: 6px; font-size: 15px; }
.muted.small { margin-top: 4px; }

.heading { font-weight: 600; font-size: 22px; color: var(--accent); }
.heading--green { color: var(--green); }

/* building blocks */
.card { width: 100%; background: var(--surface); border-radius: var(--radius); }

.pill {
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: 15px;
}

.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--rose { background: var(--rose-soft); color: var(--rose); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }

.grid-2 { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stack { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: 0;
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--outline { background: var(--surface); border: 1.5px solid var(--line); }
.btn--accent { width: 240px; height: 52px; margin-top: 28px; background: var(--accent); color: #fff; font-size: 15px; }
.btn--accent:hover { color: #fff; filter: brightness(1.08); }
.btn--block { width: 100%; margin-top: 18px; }

/* cover */
.cover { margin-top: 0; padding-top: 44px; }
.cover__eyebrow { font-size: 16px; color: #55705a; }
.cover__title { margin-top: 6px; font-weight: 600; font-size: 34px; line-height: 1.25; color: var(--accent); }
.cover__image {
  display: block;
  margin-top: 26px;
  width: 310px;
  height: 465px;
  object-fit: cover;
  border-radius: 155px 155px 28px 28px;
  border: 2px solid var(--line);
}
.cover { width: 100%; max-width: var(--col); display: flex; flex-direction: column; align-items: center; }
.cover__place { margin-top: 10px !important; }

/* greeting */
.greeting { border-radius: var(--radius-lg); padding: 36px 20px 40px; }
.greeting__text { margin-top: 10px; font-weight: 300; font-size: 17px; line-height: 2; }

/* family */
.family { margin-top: 22px; }
.family__card { padding: 22px 12px; }
.family__parents { margin-top: 14px; font-size: 14px; line-height: 1.6; }
.family__name { margin-top: 8px; font-weight: 600; font-size: 24px; }

/* calendar */
.calendar { margin-top: 24px; border-radius: var(--radius-lg); padding: 24px 14px 20px; }
.calendar__month { font-weight: 600; font-size: 21px; color: var(--green); }
.calendar__grid { margin-top: 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; font-size: 13px; }
.calendar__dow { height: 28px; line-height: 28px; color: var(--muted); }
.calendar__cell { height: 38px; display: flex; align-items: center; justify-content: center; }
.calendar__cell span { width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; }
.calendar__cell.is-sun span { color: var(--accent); }
.calendar__cell.is-day span { background: var(--accent); color: #fff; }
.calendar__dday { margin-top: 14px; font-size: 13px; color: var(--muted); }
.calendar__dday strong { color: var(--accent); font-weight: 600; }

/* gallery */
.gallery { margin-top: 22px; }
.gallery__item { display: block; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.04); }

/* map */
.map {
  margin-top: 20px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.map img { display: block; width: 100%; height: auto; }
.map-links { margin-top: 14px; }
.transit { margin-top: 22px; }
.transport { border-radius: var(--radius-sm); padding: 16px 18px; text-align: left; }
.transport .tag { padding: 3px 12px; }
.transport p { margin-top: 8px; font-size: 13px; line-height: 1.7; }

/* accounts */
.accounts { margin-top: 22px; padding: 18px 18px 6px; text-align: left; }
.accounts + .accounts { margin-top: 12px; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.account:last-child { border-bottom: 0; }
.account__meta { font-size: 12px; color: var(--muted); }
.account__number { margin-top: 4px; font-size: 15px; }
.account__copy {
  flex: none;
  height: 44px;
  min-width: 60px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
}
.account__copy:active { transform: scale(.96); }

/* rsvp */
.rsvp { width: 100%; border-radius: var(--radius-lg); background: var(--green-soft); padding: 32px 22px; }
.rsvp__desc { color: #3a4a3d; }
.rsvp__info { margin-top: 18px; border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rsvp__info div { display: flex; gap: 14px; }
.rsvp__info dt { flex: none; width: 32px; color: var(--muted); }

/* contacts */
.contacts { margin-top: 20px; gap: 10px; }
.contact {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  text-align: left;
}
.contact__role { display: block; font-size: 11px; color: var(--muted); }
.contact__name { display: block; margin-top: 2px; font-size: 15px; }

/* footer */
.footer { margin-top: 64px; }
.footer__names { margin-top: 8px; font-weight: 600; font-size: 21px; color: var(--accent); }

/* lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 22, 18, .92);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { max-width: min(92vw, 720px); text-align: center; }
.lightbox__figure img { display: block; max-width: 100%; max-height: 80dvh; margin: 0 auto; border-radius: 16px; object-fit: contain; }
.lightbox__figure figcaption { margin-top: 14px; font-size: 14px; opacity: .9; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(74, 59, 50, .94);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 360px) {
  .page { padding: 0 16px 64px; }
  .cover__image { width: 100%; height: auto; aspect-ratio: 2 / 3; }
}

/* 하객 입력 창: 공통 틀(invite-guest.css)에 이 디자인의 색·모서리를 입힌다 */
.gd {
  --g-bg: var(--bg);
  --g-ink: var(--ink);
  --g-muted: var(--muted);
  --g-line: var(--line);
  --g-accent: var(--accent);
  --g-ok: var(--green);
  --g-warn: #a8321f;
  --g-radius: 16px;
  --g-font: 'Hahmlet', 'Apple SD Gothic Neo', serif;
}
.gd .gd__submit { border-radius: 999px; }

/* 방명록 */
.gb__list { width: 100%; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.gb__item { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px 14px; border: 1.5px solid var(--divider); }
.gb__msg { font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.gb__meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.gb__meta b { font-weight: 600; color: var(--ink); }
.gb__meta button { min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }
.gb__empty { margin-top: 22px; }
.gb__empty[hidden], .gb__more[hidden] { display: none; }
.gb__more { margin-top: 14px; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.gb__more:first-line { text-decoration: underline; }
.gb__write { width: 100%; margin-top: 8px; color: var(--accent); border-color: var(--accent); font-size: 15px; height: 52px; }
.gb__item { transition: transform .2s ease; }
@media (hover: hover) { .gb__item:hover { transform: translateY(-2px); } }
