/* Phông của giao diện "hoian" — Google Fonts, SIL Open Font License 1.1: Old Standard TT. Phông chung khác ở fonts/fonts.css. */
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../../fonts/OldStandardTT-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../../fonts/OldStandardTT-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../../fonts/OldStandardTT-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400i-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../../fonts/OldStandardTT-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
   PHỐ HỘI (giao diện thường, 07/10/2026) — Hội An lúc lên đèn: trời chạng vạng, hai dây đèn lồng lụa nhiều màu đung đưa
   và tỏa sáng, mái ngói âm dương, tường vàng nghệ có thớ vữa, khung cửa gỗ xanh ngọc. Đếm ngược = 4 đèn lồng đỏ; ngày cưới
   trên tấm biển gỗ; thẻ địa điểm như cánh cửa gỗ; trích dẫn = sông Hoài thả hoa đăng; chân trang đêm phố cổ.
   Phông Old Standard TT (tên, tiêu đề — kiểu biển hiệu cổ) + EB Garamond + Josefin Sans.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ */
[data-theme="hoian"] {
  --accent: #1d5c58; --accent-2: #e0a640; --soft: #efd9a6; --ink: #2e2318; --muted: #6b5537; --page: #f6e7c1;
  --nav-bg: #172f3a; --nav-ink: #f6e7c1; --paper: #fff8e6; --line: #e2c98f; --bg: #f6e7c1;
  --f-head: "Old Standard TT", Georgia, serif; --f-name: "Old Standard TT", Georgia, serif; --f-body: "EB Garamond", Georgia, serif; --f-ui: "Josefin Sans", system-ui, sans-serif;
  --name-style: italic; --name-size: clamp(3rem, 12vw, 5.4rem);
  --ha-night: #172f3a; --ha-red: #b8382a; --ha-wood: #1d5c58; --ha-gold: #e0a640;
  --t-amp: #b8382a; --t-role: #8a5a1c; --t-nav-line: rgba(224, 166, 64, .35); --t-mono: #f6c46a; --t-mono-line: rgba(224, 166, 64, .6); --t-mono-i: #e8806a;
  --t-sh: 0 1px 2px rgba(46, 35, 24, .08), 0 22px 40px -26px rgba(70, 45, 10, .5); --t-rad: 4px; --t-btn-rad: 4px; --t-in-rad: 4px;
  --t-body-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.02 .035' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .4  0 0 0 0 .15  0 0 0 .14 -.04'/></filter><rect width='260' height='260' filter='url(%23p)'/></svg>"), #f6e7c1;
  --t-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64'><rect x='13' y='0' width='14' height='5' rx='1'/><path d='M20 4C5 6 2 22 2 30s4 20 18 22c14-2 18-12 18-22S35 6 20 4z'/><rect x='14' y='51' width='12' height='4' rx='1'/><path d='M19 55h2v9h-2z'/></svg>");
  --t-icon-c: #b8382a;
  --t-div: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 22'><path d='M0 6Q90 26 180 6' stroke='black' stroke-width='1.2' fill='none'/><g><ellipse cx='45' cy='15' rx='4' ry='5'/><ellipse cx='90' cy='19' rx='4.6' ry='5.6'/><ellipse cx='135' cy='15' rx='4' ry='5'/></g></svg>");
  --t-div-c: #b8382a;
  --t-foot-bg: radial-gradient(90% 60% at 50% 0%, #24434f, #172f3a 70%); --t-foot-ink: #f6e7c1; --t-foot-mute: #d9c9a3; --t-foot-i: #e8806a;
}
/* ── Nền chung của giao diện (biến --t-* khai báo ở khối :root phía trên; khối riêng phía dưới ghi đè) ── */
[data-theme="hoian"] body.wd { font-size: 17px; background: var(--t-body-bg, var(--page)); }
[data-theme="hoian"] .td-hoian { display: block; }
[data-theme="hoian"] .td-hoian, [data-theme="hoian"] .td-hoian * { pointer-events: none; }
[data-theme="hoian"] :is(.orn, .rings, .photowall) { display: none; }
[data-theme="hoian"] .paper::before, [data-theme="hoian"] .paper::after { display: none; }
[data-theme="hoian"] .paper { background: var(--paper); }
[data-theme="hoian"] .wd a:not(.btn) { color: var(--accent); }
[data-theme="hoian"] .wd h2 { font: var(--t-h2-w, 400) clamp(2.1rem, 6.4vw, 3.2rem)/1.15 var(--f-head); color: var(--t-h2, var(--ink)); }
[data-theme="hoian"] .eyebrow { font: 600 .875rem/1.5 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--t-eyebrow, var(--accent)); }
[data-theme="hoian"] .wd .btn { font: 600 1rem var(--f-ui); letter-spacing: .04em; border-radius: var(--t-btn-rad, 999px); min-height: 48px; padding: 0 26px; }
[data-theme="hoian"] .wd .btn-accent { background: var(--accent); color: var(--t-on-accent, #fff); border: 0; box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
[data-theme="hoian"] .wd .btn-accent:hover { background: var(--t-accent-hover, color-mix(in srgb, var(--accent) 84%, #000)); }
[data-theme="hoian"] .wd .btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent); }
[data-theme="hoian"] .wd .btn-ghost:hover { background: var(--soft); }
[data-theme="hoian"] .wd :is(input:not([type=radio]):not([type=checkbox]), textarea) { background: var(--t-input, #fff); border: 1.5px solid var(--line); border-radius: var(--t-in-rad, 12px); font: 1.05rem var(--f-body); color: var(--ink); padding: 11px 14px; }
[data-theme="hoian"] .wd :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
[data-theme="hoian"] .wd label { font: 600 .95rem var(--f-ui); color: var(--ink); }
[data-theme="hoian"] .wd label small { font: italic 400 .95rem var(--f-body); color: var(--muted); }
[data-theme="hoian"] .divider { width: 180px; height: 22px; margin: 14px auto 0; background: var(--t-div-c, var(--accent)); border: 0;
  -webkit-mask: var(--t-div) center / contain no-repeat; mask: var(--t-div) center / contain no-repeat; }
[data-theme="hoian"] .divider::before, [data-theme="hoian"] .divider span { display: none; }
[data-theme="hoian"] .sec-head { margin-bottom: 40px; }
[data-theme="hoian"] .sec-head::before { content: ""; display: block; width: 48px; height: 30px; margin: 0 auto 10px; background: var(--t-icon-c, var(--accent));
  -webkit-mask: var(--t-icon) center / contain no-repeat; mask: var(--t-icon) center / contain no-repeat; }
[data-theme="hoian"] .sec-head .divider { display: none; }
/* Thanh menu */
[data-theme="hoian"] .wd-nav { background: color-mix(in srgb, var(--nav-bg) 95%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--t-nav-line, var(--line)); }
[data-theme="hoian"] .wd-nav a { font: 600 .9375rem var(--f-ui); letter-spacing: .06em; color: var(--nav-ink); }
[data-theme="hoian"] .wd .wd-nav a:not(.btn) { color: var(--nav-ink); }
[data-theme="hoian"] .wd-mono { border: 1.5px solid var(--t-mono-line, var(--accent-2)); color: var(--t-mono, var(--accent)) !important; font: 400 1.3rem/1 var(--f-name); gap: 1px; }
[data-theme="hoian"] .wd-mono i { color: var(--t-mono-i, var(--accent-2)); font: 400 .8rem var(--f-ui); }
[data-theme="hoian"] .wd-burger { border-color: var(--t-nav-line, var(--line)); color: var(--nav-ink); }
[data-theme="hoian"] .wd-nav.scrolled { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .45); }
[data-theme="hoian"] .music-btn { background: var(--accent); color: var(--t-on-accent, #fff); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 18px -6px rgba(0, 0, 0, .4); }
/* Tên & ngày đầu trang (mặc định; khối riêng chỉnh bố cục) */
[data-theme="hoian"] .names { font: var(--name-style) var(--t-name-w, 400) var(--name-size)/1.08 var(--f-name); color: var(--t-name, var(--ink)); flex-direction: column; align-items: center; gap: 0; margin: 4px 0 8px; }
[data-theme="hoian"] .names .name { display: block; overflow-wrap: anywhere; text-wrap: balance; padding: 0 .08em; }
[data-theme="hoian"] .names .amp { font: italic 400 .4em/1.4 var(--f-head); color: var(--t-amp, var(--accent)); }
[data-theme="hoian"] .names.names--long { font-size: calc(var(--name-size) * .74); }
[data-theme="hoian"] .names.names--xl { font-size: calc(var(--name-size) * .58); }
[data-theme="hoian"] .save-card .date { font: 500 1.25rem/1.5 var(--f-head); color: var(--ink); letter-spacing: .02em; }
[data-theme="hoian"] .lunar { font: italic 400 1.02rem/1.5 var(--f-body); color: var(--muted); }
[data-theme="hoian"] .invitee { font: italic 1.1rem var(--f-body); color: var(--muted); }
[data-theme="hoian"] .invitee b { font: var(--name-style) 400 2.3rem/1.2 var(--f-name); color: var(--accent); }
[data-theme="hoian"].js-reveal .save-card.reveal { transform: translateY(16px); }
[data-theme="hoian"].js-reveal .save-card.reveal.in { transform: none; }
[data-theme="hoian"] .intro--noimg .intro-main { display: none; }
/* Cặp đôi */
[data-theme="hoian"] .watercolor { background: var(--t-sec2, var(--paper)); }
[data-theme="hoian"] section.couple { padding: 84px 14px 80px; }
[data-theme="hoian"] .couple-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; max-width: 880px; }
[data-theme="hoian"] .person { display: flex; flex-direction: column; align-items: center; text-align: center; grid-row: 1; }
[data-theme="hoian"] .person-g { grid-column: 1; } [data-theme="hoian"] .person-b { grid-column: 2; }
[data-theme="hoian"] .house { display: inline-block; order: 0; margin: 0 0 16px; padding: 4px 14px; border-radius: var(--t-btn-rad, 999px); background: var(--soft); color: var(--t-house, var(--accent));
  font: 600 .875rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
[data-theme="hoian"] .oval { order: 1; width: min(100%, 260px); margin: 0 0 4px; transform: none; }
[data-theme="hoian"] .oval img { border-radius: inherit; }
[data-theme="hoian"] .person .role { order: 2; margin: 20px 0 2px; font: 600 .875rem var(--f-ui); letter-spacing: .14em; color: var(--t-role, var(--muted)); }
[data-theme="hoian"] .banner { order: 3; display: block; background: none; color: var(--ink); padding: 0; border-radius: 0; margin: 0 0 8px; font: 400 clamp(1.35rem, 5vw, 1.95rem)/1.2 var(--f-head); text-wrap: balance; }
[data-theme="hoian"] .info { order: 4; font: 400 1rem/1.6 var(--f-body); color: var(--muted); max-width: 30ch; text-wrap: balance; }
[data-theme="hoian"] .couple-amp { display: none; }
/* Lễ thành hôn */
[data-theme="hoian"] .event { padding: 84px 16px 90px; overflow: clip; isolation: isolate; }
[data-theme="hoian"] .event-row { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 1040px; }
[data-theme="hoian"] .event-photo { width: min(74%, 330px); margin: 0 auto; aspect-ratio: 4 / 5; transform: none; border: 0; }
[data-theme="hoian"] .event-photo img { border-radius: inherit; }
[data-theme="hoian"].js-reveal .event-photo.reveal { transform: translateY(26px); }
[data-theme="hoian"].js-reveal .event-photo.reveal.in, [data-theme="hoian"] .is-draft .event-photo.reveal { transform: none !important; }
[data-theme="hoian"] .event-card { background: var(--paper); padding: 44px 22px 34px; text-align: center; }
[data-theme="hoian"] .ev-intro { display: block; margin-bottom: 4px; }
[data-theme="hoian"] .ev-k { font: 600 .875rem/1.5 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--t-role, var(--muted)); margin: 0 0 6px; text-wrap: balance; }
[data-theme="hoian"] .ev-names { margin: 0; font: var(--name-style) 400 clamp(2rem, 8vw, 2.9rem)/1.15 var(--f-name); color: var(--accent); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3em; }
[data-theme="hoian"] .ev-names i { font: italic 400 .5em/2 var(--f-head); color: var(--t-amp, var(--accent)); }
[data-theme="hoian"] .event-card .lead { font: italic 400 1.1rem/1.55 var(--f-body); color: var(--muted); max-width: 32ch; margin: 10px auto 0; }
[data-theme="hoian"] .event-card:has(.dlock) > .date.big { display: none; }
[data-theme="hoian"] .event-card .date.big { font: 500 1.4rem var(--f-head); color: var(--ink); }
[data-theme="hoian"] .dlock { display: grid; justify-items: center; margin: 22px auto 0; }
[data-theme="hoian"] .dl-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; width: min(100%, 360px); }
[data-theme="hoian"] :is(.dl-m, .dl-y) { font: 600 .9375rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
[data-theme="hoian"] .dl-m { text-align: right; } [data-theme="hoian"] .dl-y { text-align: left; }
[data-theme="hoian"] .dl-d { font: 500 3.2rem/1 var(--f-head); color: var(--accent); }
[data-theme="hoian"] .dl-wd { order: 2; margin-top: 12px; font: 600 1rem var(--f-ui); letter-spacing: .06em; color: var(--muted); }
[data-theme="hoian"] .dl-wd i { color: var(--accent); }
[data-theme="hoian"] .dl-t { display: none; }
[data-theme="hoian"] .event-card .lunar { margin-top: 6px; }
[data-theme="hoian"] .wd .event-card .countdown { gap: 10px; margin: 26px 0; }
[data-theme="hoian"] .wd .event-card .countdown div { width: 74px; min-width: 0; display: grid; place-content: center; padding: 12px 0; }
[data-theme="hoian"] .wd .event-card .countdown b { font: 500 1.8rem/1 var(--f-head); color: var(--t-cd, var(--accent)); font-variant-numeric: lining-nums tabular-nums; }
[data-theme="hoian"] .wd .event-card .countdown span { font: 600 .8125rem var(--f-ui); color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
/* Địa điểm */
[data-theme="hoian"] .location { padding: 76px 16px 84px; }
[data-theme="hoian"] .events { gap: 44px; max-width: 1100px; }
[data-theme="hoian"] .ev-map { height: 220px; border-radius: var(--t-rad, 16px); box-shadow: 0 0 0 1px var(--line); background: var(--soft); }
[data-theme="hoian"] .ev-map-load { font-family: var(--f-ui); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 6%, transparent) 0 2px, transparent 2px 14px), var(--soft); }
[data-theme="hoian"] .ev-map-load b { color: var(--accent); }
[data-theme="hoian"] .ev-map-load:hover b { background: var(--accent); color: var(--t-on-accent, #fff); }
[data-theme="hoian"] .ev-card { position: relative; text-align: center; background: var(--paper); padding: 40px 22px 30px; border-radius: var(--t-rad, 16px); box-shadow: 0 0 0 1px var(--line), var(--t-sh); }
[data-theme="hoian"] .ev-card::before, [data-theme="hoian"] .ev-card::after { display: none; }
[data-theme="hoian"] .ev-card h3 { font: var(--name-style) 400 2.2rem/1.15 var(--f-name); color: var(--accent); margin: 4px 0 6px; }
[data-theme="hoian"] .ev-place { font: 600 1rem/1.4 var(--f-ui); letter-spacing: .04em; color: var(--ink); margin-bottom: 6px; }
[data-theme="hoian"] .ev-card :is(.ev-addr, .ev-time) { font: 400 1.03rem/1.55 var(--f-body); color: var(--muted); }
/* Trích dẫn */
[data-theme="hoian"] .quote { min-height: 380px; isolation: isolate; }
[data-theme="hoian"] .quote blockquote { z-index: 3; }
[data-theme="hoian"] .quote blockquote p { font: italic 400 clamp(1.5rem, 5vw, 2.2rem)/1.45 var(--f-head); }
[data-theme="hoian"] .quote--noimg blockquote::before { color: var(--accent); }
/* Album */
[data-theme="hoian"] .gallery-sec { padding: 80px 14px; }
[data-theme="hoian"] .wd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1180px; }
[data-theme="hoian"] .wd-g { aspect-ratio: 4 / 5; border-radius: var(--t-rad, 16px); background: var(--soft); }
[data-theme="hoian"] .wd-g img { border-radius: inherit; }
[data-theme="hoian"] .wd-g::after { content: ""; border-radius: inherit; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--accent) 40%, transparent)); }
[data-theme="hoian"] .wd .album-card { border-radius: var(--t-rad, 16px); box-shadow: 0 0 0 1px var(--line), var(--t-sh); }
[data-theme="hoian"] .wd .album-meta h3 { font: 400 1.4rem var(--f-head); color: var(--ink); }
[data-theme="hoian"] .gallery-sec:has(> p.center .btn) .wd-g:nth-child(n + 13) { display: none; }
@media (max-width: 760px) { [data-theme="hoian"] .gallery-sec:has(> p.center .btn) .wd-g:nth-child(n + 9) { display: none; } }
/* Gửi ảnh */
[data-theme="hoian"] .cta { position: relative; margin: 20px 16px 30px; padding: 58px 24px 50px; border-radius: var(--t-rad, 16px); text-align: center; background: var(--soft); box-shadow: var(--t-sh); }
[data-theme="hoian"] .cta::before { content: ""; display: block; width: 52px; height: 32px; margin: 0 auto 14px; background: var(--t-icon-c, var(--accent)); -webkit-mask: var(--t-icon) center / contain no-repeat; mask: var(--t-icon) center / contain no-repeat; }
[data-theme="hoian"] .wd .cta h2 { font: 400 clamp(1.8rem, 6vw, 2.5rem)/1.2 var(--f-head); }
[data-theme="hoian"] .cta p { font: 400 1.08rem/1.6 var(--f-body); color: var(--ink); }
/* Xác nhận, lời chúc, mừng cưới */
[data-theme="hoian"] :is(.rsvp, .wishes, .gift) { padding: 72px 16px; overflow-x: clip; }
[data-theme="hoian"] .rsvp { max-width: 660px; }
[data-theme="hoian"] :is(.rsvp-card, .wish-form, .form-thanks, .rsvp-done) { background: var(--paper); border-radius: var(--t-rad, 16px); padding: 40px 22px 30px; box-shadow: 0 0 0 1px var(--line), var(--t-sh); }
[data-theme="hoian"] .rsvp-card { gap: 16px; }
[data-theme="hoian"] .rsvp-card .lead { font: italic 400 1.12rem/1.55 var(--f-body); color: var(--muted); margin: 0; }
[data-theme="hoian"] :is(.rsvp-invitee b, .rsvp-done b) { font: var(--name-style) 400 2.2rem/1.2 var(--f-name); color: var(--accent); }
[data-theme="hoian"] .rsvp-choice span { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--t-btn-rad, 999px); border: 1.5px solid var(--line); background: var(--t-input, #fff); font: 600 1rem/1.25 var(--f-ui); color: var(--ink); padding: 8px 12px; }
[data-theme="hoian"] .rsvp-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--t-on-accent, #fff); }
[data-theme="hoian"] :is(.rsvp-card, .wish-form) .btn { justify-self: center; min-width: 210px; }
[data-theme="hoian"] .field-hint { font: italic .95rem var(--f-body); color: var(--muted); }
[data-theme="hoian"] .wish-form { gap: 14px; margin-bottom: 30px; }
[data-theme="hoian"] .wd .wish { border: 0; border-radius: var(--t-rad, 16px); background: var(--paper); padding: 22px 22px 18px; position: relative; box-shadow: 0 0 0 1px var(--line); }
[data-theme="hoian"] .wd .wish p { font: 400 1.08rem/1.6 var(--f-body); color: var(--ink); }
[data-theme="hoian"] .wd .wish cite { font: 600 .95rem var(--f-ui); color: var(--t-role, var(--accent)); }
[data-theme="hoian"] .gift-card { border: 0; border-radius: var(--t-rad, 16px); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--t-sh); }
[data-theme="hoian"] .gift-side { color: var(--accent); }
[data-theme="hoian"] .gift-qr { border-radius: 12px; border: 1.5px solid var(--line); }
/* Chân trang */
[data-theme="hoian"] .wd-foot { position: relative; padding: 90px 16px 70px; color: var(--t-foot-ink); overflow: clip; isolation: isolate; background: var(--t-foot-bg); }
[data-theme="hoian"] .wd-foot .wd-mono.big { border-color: color-mix(in srgb, var(--t-foot-ink) 45%, transparent); color: var(--t-foot-ink) !important; font: 400 2rem/1 var(--f-name); }
[data-theme="hoian"] .wd-foot .wd-mono i { color: var(--t-foot-i, var(--accent-2)); }
[data-theme="hoian"] .wd-foot p { font: italic 400 1.2rem/1.5 var(--f-body); color: var(--t-foot-ink); }
[data-theme="hoian"] .wd-foot .muted.small, [data-theme="hoian"] .wd-foot .music-credit { color: var(--t-foot-mute) !important; font-style: normal; font-family: var(--f-ui) !important; }
/* Màn "Mở thiệp" */
[data-theme="hoian"] .wd-cover-mono { border-color: var(--accent-2); color: var(--accent); font: var(--name-style) 400 1.5rem var(--f-name); }
[data-theme="hoian"] .wd-cover-eyebrow { color: var(--t-role, var(--muted)); }
[data-theme="hoian"] .wd-cover-names { font: var(--name-style) 400 clamp(2.6rem, 11vw, 4.2rem)/1.08 var(--f-name); color: var(--t-name, var(--ink)); }
[data-theme="hoian"] .wd-cover-names i { font: italic 400 .42em/1.6 var(--f-head); color: var(--t-amp, var(--accent)); }
[data-theme="hoian"] .wd-cover-date { color: var(--ink); font-family: var(--f-head); }
[data-theme="hoian"] .wd-cover-btn { background: var(--accent); color: var(--t-on-accent, #fff); }
/* Máy tính */
@media (min-width: 761px) {
  [data-theme="hoian"] section.couple, [data-theme="hoian"] .location, [data-theme="hoian"] .gallery-sec { padding: 110px 40px; }
  [data-theme="hoian"] .couple-row { gap: 0 60px; }
  [data-theme="hoian"] .oval { width: min(100%, 300px); }
  [data-theme="hoian"] .event { padding: 110px 40px; }
  [data-theme="hoian"] .event-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; }
  [data-theme="hoian"] .event-photo { width: 100%; max-width: 420px; }
  [data-theme="hoian"] .event-card { padding: 54px 44px 40px; }
  [data-theme="hoian"] .wd .event-card .countdown div { width: 84px; }
  [data-theme="hoian"] .ev-map { height: 340px; }
  [data-theme="hoian"] .ev-card { margin-left: -60px; padding: 46px 34px 34px; }
  [data-theme="hoian"] .ev:nth-child(even) .ev-card { margin: 0 -60px 0 0; }
  [data-theme="hoian"] .wd-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  [data-theme="hoian"] .cta { margin: 40px auto 50px; max-width: 760px; padding: 70px 50px 60px; }
}
@media (max-width: 760px) {
  [data-theme="hoian"] .ev-card, [data-theme="hoian"] .ev:nth-child(even) .ev-card { margin: -10px 4px 0; }
  [data-theme="hoian"] .wd-mono:not(.big) { font-size: 1.05rem; }
}
@media (max-width: 380px) {
  [data-theme="hoian"] .couple-row { gap: 0 8px; }
  [data-theme="hoian"] .wd .event-card .countdown div { width: 64px; }
  [data-theme="hoian"] .wd .event-card .countdown b { font-size: 1.45rem; }
  [data-theme="hoian"] .dl-row { gap: 8px; }
}
[data-theme="hoian"] .is-draft :is(.intro-main, .save-card) { animation-duration: .01s !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  [data-theme="hoian"] *, [data-theme="hoian"] *::before, [data-theme="hoian"] *::after { animation: none !important; transition: none !important; }
}
/* Thái/Lào/Trung: số ngày cưới dùng phông tiêu đề (phông tên dạng chữ viết tay khó đọc với chữ số). */
html:is([lang="th"], [lang="lo"], [lang="zh"])[data-theme="hoian"] .wd .dl-d { font-family: var(--f-head); }
/* ════════ Phần riêng của giao diện ════════ */
/* ── Đầu trang: trời chạng vạng phía trên, tường vàng phía dưới; dây đèn võng qua; ảnh trong khung cửa gỗ ── */
[data-theme="hoian"] .wd-nav { background: color-mix(in srgb, var(--ha-night) 94%, transparent); }
[data-theme="hoian"] .intro { --ha-pw: min(60vw, 290px); position: relative; display: flex; flex-direction: column; align-items: center; padding: 150px 16px 56px; overflow: clip; isolation: isolate;
  background: linear-gradient(180deg, #13262f 0%, #1f3d47 20%, #4a5a52 34%, #c48a3e 46%, #ecc77f 54%, transparent 62%), var(--t-body-bg); }
[data-theme="hoian"] .ha-hero { position: absolute; inset: 0; z-index: 0; }
[data-theme="hoian"] .ha-sky { position: absolute; inset: 0 0 50%; }
[data-theme="hoian"] .ha-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff6d8; opacity: .8; animation: ha-tw 3s ease-in-out infinite alternate; }
[data-theme="hoian"] .ha-sky i:nth-child(1) { left: 12%; top: 24%; } [data-theme="hoian"] .ha-sky i:nth-child(2) { left: 30%; top: 12%; animation-delay: -1s; }
[data-theme="hoian"] .ha-sky i:nth-child(3) { left: 58%; top: 20%; animation-delay: -2s; } [data-theme="hoian"] .ha-sky i:nth-child(4) { left: 78%; top: 10%; }
[data-theme="hoian"] .ha-sky i:nth-child(5) { left: 88%; top: 30%; animation-delay: -.5s; } [data-theme="hoian"] .ha-sky i:nth-child(6) { left: 46%; top: 34%; animation-delay: -1.6s; }
@keyframes ha-tw { from { opacity: .2; } to { opacity: .9; } }
[data-theme="hoian"] .ha-str { position: absolute; left: 50%; translate: -50% 0; width: max(110vw, 420px); height: auto; overflow: visible; }
[data-theme="hoian"] .ha-str-1 { top: 58px; z-index: 3; }
[data-theme="hoian"] .ha-str-2 { top: 64px; opacity: .85; width: max(130vw, 500px); }
[data-theme="hoian"] .ha-sw { transform-box: view-box; animation: ha-swing var(--k, 3s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes ha-swing { from { rotate: -5deg; } to { rotate: 5deg; } }
[data-theme="hoian"] .ha-glow { animation: ha-pulse 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ha-pulse { from { opacity: .55; scale: .9; } to { opacity: 1; scale: 1.08; } }
[data-theme="hoian"] .ha-roof { position: absolute; left: 0; right: 0; top: calc(150px + var(--ha-pw) * 1.3 + 30px); height: 0; }
[data-theme="hoian"] .ha-one { position: absolute; width: 44px; height: auto; overflow: visible; }
[data-theme="hoian"] .ha-one-l { left: 4%; top: 168px; } [data-theme="hoian"] .ha-one-r { right: 4%; top: 150px; }
/* Khung cửa gỗ xanh ngọc */
[data-theme="hoian"] .intro-main { width: var(--ha-pw); margin: 0 auto; position: relative; z-index: 2; padding: 12px; background: var(--ha-wood); border-radius: 3px;
  box-shadow: inset 0 0 0 2px #2a7a74, inset 0 0 0 4px var(--ha-wood), inset 0 0 0 5px rgba(224, 166, 64, .8), 0 0 60px rgba(255, 196, 110, .35), 0 30px 40px -24px rgba(0, 0, 0, .6);
  animation: ha-up 1.3s cubic-bezier(.2, .7, .2, 1) both; }
[data-theme="hoian"] .intro-main::before { content: ""; position: absolute; left: -16px; right: -16px; top: -18px; height: 18px; border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(90deg, #4b2f1c 0 6px, #5e3c24 6px 14px); box-shadow: 0 4px 6px -2px rgba(0, 0, 0, .4); }
[data-theme="hoian"] .intro-main::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -14px; height: 14px; border-radius: 0 0 3px 3px; background: #5e3c24; }
@keyframes ha-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
[data-theme="hoian"] .main-photo { aspect-ratio: 4 / 5; border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); transform: none; }
[data-theme="hoian"] .save-card { position: relative; z-index: 3; background: none; padding: 0; margin: 48px auto 0; width: min(640px, 100%); text-align: center; animation: ha-up 1.2s ease .35s both; }
[data-theme="hoian"] .names { color: var(--ink); line-height: 1.08; }
[data-theme="hoian"] .names .amp { font: italic 400 .42em/1.5 var(--f-head); color: var(--ha-red); }
[data-theme="hoian"] .save-card .eyebrow { color: #7a4a14; }
[data-theme="hoian"] .save-card .date { font: 700 1.15rem var(--f-head); letter-spacing: .04em; border-top: 1px solid #c79a4a; border-bottom: 1px solid #c79a4a; padding: 8px 4px; display: inline-block; margin-top: 6px; }
[data-theme="hoian"] .intro--noimg { padding-top: 260px; }
/* ── Cặp đôi: ô cửa vòm khung gỗ xanh ── */
[data-theme="hoian"] .watercolor { background: transparent; }
[data-theme="hoian"] .oval { aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; border: 8px solid var(--ha-wood); box-shadow: inset 0 0 0 2px rgba(224, 166, 64, .7), var(--t-sh); }
[data-theme="hoian"] .house { background: var(--ha-red); color: #fff; }
[data-theme="hoian"] .banner { font: italic 400 clamp(1.4rem, 5.4vw, 2rem)/1.2 var(--f-name); }
/* ── Lễ thành hôn: tấm biển gỗ ngày cưới, 4 đèn lồng đếm ngược ── */
[data-theme="hoian"] .event { background: linear-gradient(180deg, rgba(23, 47, 58, .06), transparent 40%); }
[data-theme="hoian"] .ha-sec-e { position: absolute; right: 6%; top: 0; width: 46px; z-index: 1; }
[data-theme="hoian"] .ha-sec-e .ha-one, [data-theme="hoian"] .ha-sec-g .ha-one { position: static; width: 100%; }
[data-theme="hoian"] .event-photo { border: 10px solid var(--ha-wood); box-shadow: inset 0 0 0 1px rgba(224, 166, 64, .6), var(--t-sh); border-radius: 3px; }
[data-theme="hoian"] .event-card { box-shadow: 0 0 0 1px var(--line), var(--t-sh); border-top: 8px solid var(--ha-wood); }
[data-theme="hoian"] .dl-d { padding: 10px 22px 8px; background: linear-gradient(180deg, #2a7a74, var(--ha-wood)); color: #f6e7c1; border-radius: 4px; font: 700 2.8rem/1 var(--f-head);
  box-shadow: inset 0 0 0 2px rgba(224, 166, 64, .8), 0 10px 18px -10px rgba(0, 0, 0, .6); }
[data-theme="hoian"] .wd .event-card .countdown div { width: 70px; aspect-ratio: .82; padding: 0; border-radius: 46% 46% 42% 42% / 40% 40% 52% 52%; color: #fff;
  background: radial-gradient(60% 50% at 50% 45%, #b8382a, #9e2e22 70%, #7e2318); box-shadow: 0 0 22px rgba(255, 160, 80, .45), inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; }
[data-theme="hoian"] .wd .event-card .countdown div::before, [data-theme="hoian"] .wd .event-card .countdown div::after { content: ""; position: absolute; left: 30%; right: 30%; height: 5px; background: #5a3a1e; border-radius: 1px; }
[data-theme="hoian"] .wd .event-card .countdown div::before { top: -3px; } [data-theme="hoian"] .wd .event-card .countdown div::after { bottom: -3px; }
[data-theme="hoian"] .wd .event-card .countdown b { color: #fff; font: 700 1.6rem/1 var(--f-head); }
[data-theme="hoian"] .wd .event-card .countdown span { color: #fff; font-size: .8125rem; }
/* ── Địa điểm: thẻ như cánh cửa gỗ (khung xanh, ô kính) ── */
[data-theme="hoian"] .ev-card { background: var(--paper); box-shadow: inset 0 0 0 8px var(--ha-wood), inset 0 0 0 10px rgba(224, 166, 64, .7), var(--t-sh); padding: 44px 26px 34px; }
[data-theme="hoian"] .ev-card h3 { font-style: italic; color: var(--ha-red); }
[data-theme="hoian"] .ev-map { border: 8px solid var(--ha-wood); }
/* ── Trích dẫn: sông Hoài, hoa đăng ── */
[data-theme="hoian"] .quote::after { background: linear-gradient(180deg, rgba(19, 38, 47, .55), rgba(19, 38, 47, .78)); }
[data-theme="hoian"] .quote.quote--noimg { background: linear-gradient(180deg, #13262f, #1f3d47 70%, #24434f); color: #f6e7c1; }
[data-theme="hoian"] .quote--noimg blockquote::before { color: #f6c46a; }
[data-theme="hoian"] .ha-sec-q { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
[data-theme="hoian"] .ha-str-q { top: 0; width: max(110vw, 420px); }
[data-theme="hoian"] .ha-river { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; }
[data-theme="hoian"] .ha-river i { position: absolute; bottom: 16px; width: 16px; height: 12px; border-radius: 50% 50% 4px 4px; background: radial-gradient(circle at 50% 30%, #ffe2a0, #e8803a);
  box-shadow: 0 0 16px 4px rgba(255, 180, 90, .55); animation: ha-float 18s linear infinite; }
[data-theme="hoian"] .ha-river i:nth-child(1) { left: -5%; } [data-theme="hoian"] .ha-river i:nth-child(2) { left: -5%; animation-delay: -4s; bottom: 30px; }
[data-theme="hoian"] .ha-river i:nth-child(3) { left: -5%; animation-delay: -8s; } [data-theme="hoian"] .ha-river i:nth-child(4) { left: -5%; animation-delay: -12s; bottom: 26px; }
[data-theme="hoian"] .ha-river i:nth-child(5) { left: -5%; animation-delay: -15s; bottom: 10px; }
@keyframes ha-float { to { transform: translateX(115vw); } }
/* ── Album ── */
[data-theme="hoian"] .ha-sec-g { position: absolute; left: 6%; top: 0; width: 40px; }
[data-theme="hoian"] .wd-g { border: 5px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
[data-theme="hoian"] .cta { background: linear-gradient(160deg, var(--ha-wood), #164a47); color: #f6e7c1; }
[data-theme="hoian"] .wd .cta h2, [data-theme="hoian"] .cta p { color: #f6e7c1; }
[data-theme="hoian"] .cta .btn-accent { background: #f6c46a; color: #2e2318; }
[data-theme="hoian"] .cta::before { background: #e8806a; }
[data-theme="hoian"] .wd .wish { border-left: 4px solid var(--ha-red); }
/* ── Chân trang ── */
[data-theme="hoian"] .ha-sec-f { position: absolute; left: 0; right: 0; top: 0; z-index: -1; }
[data-theme="hoian"] .ha-str-f { top: 0; }
[data-theme="hoian"] .wd-foot { padding-top: 150px; }
[data-theme="hoian"] .wd-cover { background: linear-gradient(180deg, #13262f, #1f3d47 50%, #c48a3e 85%, #ecc77f); color: #f6e7c1; }
[data-theme="hoian"] .wd-cover :is(.wd-cover-names, .wd-cover-date) { color: #f6e7c1; }
[data-theme="hoian"] .wd-cover-eyebrow { color: #f6c46a; }
[data-theme="hoian"] .wd-cover-mono { border-color: #f6c46a; color: #f6c46a; }
[data-theme="hoian"] .wd-cover-btn { background: var(--ha-red); }
[data-theme="hoian"] .ic { --ic-paper: #fff8e6; --ic-env-front: #f3dca0; --ic-env-flap: #ecd08a; --ic-env-in: #1d5c58; --ic-wax: #b8382a; --ic-wax-ink: #fff3dc;
  --ic-card-bg: #fffaee; --ic-line: rgba(29, 92, 88, .4);
  --ic-liner: radial-gradient(circle at 50% 50%, rgba(224, 166, 64, .5) 0 3px, transparent 3.5px) 0 0 / 16px 16px; }
@media (min-width: 761px) {
  [data-theme="hoian"] { --name-size: clamp(3.2rem, 5.6vw, 5.4rem); }
  [data-theme="hoian"] .intro { --ha-pw: min(24vw, 320px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: center; min-height: 100svh; padding: 190px 6vw 80px;
    background: linear-gradient(180deg, #13262f 0%, #1f3d47 24%, #4a5a52 40%, #c48a3e 54%, #ecc77f 62%, transparent 72%), var(--t-body-bg); }
  [data-theme="hoian"] .intro-main { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 2vw; }
  [data-theme="hoian"] .save-card { grid-column: 2; grid-row: 1; justify-self: start; margin: 0; padding: 30px 30px 26px; background: rgba(255, 248, 230, .9); border-radius: 4px; box-shadow: var(--t-sh); }
  [data-theme="hoian"] .ha-str-1 { width: 100vw; top: 64px; } [data-theme="hoian"] .ha-str-2 { width: 100vw; top: 70px; }
  [data-theme="hoian"] .ha-one { width: 60px; } [data-theme="hoian"] .ha-one-l { left: 3%; top: 200px; } [data-theme="hoian"] .ha-one-r { right: 3%; top: 180px; }
  [data-theme="hoian"] .intro--noimg { grid-template-columns: minmax(0, 1fr); }
  [data-theme="hoian"] .intro--noimg .save-card { grid-column: 1; justify-self: center; }
  [data-theme="hoian"] .wd-foot { padding-top: 220px; }
}
