/* wedding-invitations — CSS chính. Màu/font lấy từ Theme (xem themes.css).
   Block không được hardcode màu: chỉ dùng biến --bg, --surface, --ink, --muted, --accent, --line. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
.invitation { max-width: 430px; margin: 0 auto; background: var(--bg); min-height: 100vh; padding-bottom: 90px; }
section.block { padding: 28px 20px; text-align: center; border-bottom: 1px solid var(--line); }
section.block h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: .04em; margin: 0 0 6px; color: var(--accent); }
section.block p.sub { color: var(--muted); margin: 0 0 16px; }
a.btn, button.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; cursor: pointer; text-decoration: none; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
/* B01 Hero */
.hero { padding: 40px 20px 32px; }
.hero .monogram { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 26px; margin: 0 auto 16px; color: var(--accent); }
.hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
.hero .date { font-size: 18px; letter-spacing: .12em; }
.hero .envelope { border: 2px solid var(--accent); border-radius: 12px; padding: 28px 16px; margin: 18px 0; background: var(--surface); }
.hero .quote { font-style: italic; color: var(--muted); }
/* B02 Countdown */
.countdown .cells { display: flex; gap: 8px; justify-content: center; }
.countdown .cell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; min-width: 64px; }
.countdown .cell b { display: block; font-size: 26px; }
.countdown .cell span { font-size: 12px; color: var(--muted); }
.countdown.inline .cells { gap: 4px; }
.countdown.inline .cell { border: 0; background: transparent; }
/* B04 Invitation / B05 Events */
.invite .names { font-family: Georgia, serif; font-size: 22px; line-height: 1.6; }
.parents { display: flex; gap: 12px; text-align: left; margin-top: 16px; }
.parents > div { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 10px 0; text-align: left; }
.event-card h3 { margin: 0 0 4px; font-size: 17px; }
/* B07 Album */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.album-grid img, .album-masonry img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; cursor: pointer; display: block; }
.album-masonry { columns: 2; }
.album-masonry img { height: auto; margin-bottom: 6px; }
.album-slider img { width: 100%; border-radius: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lightbox img { max-width: 92vw; max-height: 85vh; border-radius: 8px; }
/* B09 Map */
.map-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: left; }
/* B10 RSVP */
.rsvp form { display: grid; gap: 10px; text-align: left; }
.rsvp input, .rsvp select, .rsvp textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; color: #222; }
.rsvp .ok { background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 12px; }
/* B12 Gift */
.gift .accounts { display: grid; gap: 10px; text-align: left; }
.gift .account { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gift .account code { font-size: 17px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 60; }
.modal .sheet { background: #fff; color: #222; width: 100%; max-width: 430px; border-radius: 16px 16px 0 0; padding: 20px; text-align: center; max-height: 85vh; overflow: auto; }
.modal img { width: 200px; height: 200px; }
/* B14 Thank you + bottom bar */
.toolbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; display: flex; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; }
.toolbar a, .toolbar button { flex: 1; padding: 13px 4px; background: none; border: 0; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: none; text-align: center; }
.hidden-block { display: none; }
.demo-note { background: #fff8e1; color: #7a5c00; font-size: 13px; padding: 8px 12px; text-align: center; }
@media (min-width: 700px) { .invitation { box-shadow: 0 0 40px rgba(0,0,0,.12); } }
