/* =========================================================
   HỆ GIAO DIỆN MỚI – Hỷ Thư (phiên G, 24/11) – BẢN MẪU
   Nguyên tắc: chữ to dễ đọc · ít màu · nhiều khoảng trắng · ảnh lớn · 1 nút chính mỗi khối
   ========================================================= */
:root {
  --nen: #fbf8f4;      /* ngà – nền trang */
  --nen-2: #f3ece5;    /* ngà đậm – khối xen kẽ */
  --the: #fffdfb;      /* nền thẻ */
  --muc: #241a1c;      /* chữ chính */
  --phu: #5b4b4e;      /* chữ phụ (tương phản 7:1 trên nền ngà) */
  --ruou: #74243a;     /* đỏ rượu – nút chính, điểm nhấn */
  --ruou-dam: #561a2b;
  --kim: #a3804a;      /* vàng sâm panh – đường mảnh, nhãn nhỏ */
  --hong: #f6e9e6;     /* hồng phấn – nền nút phụ */
  --vien: #e6dbd2;     /* viền mảnh 1px */
  --bong: 0 1px 2px rgba(36,26,28,.04), 0 12px 32px -12px rgba(36,26,28,.18);
  --bo: 18px;          /* bo góc thẻ */
  --chu-than: 17px;    /* chữ thân điện thoại */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 900px) { :root { --chu-than: 18px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--nen); color: var(--muc); font: 400 var(--chu-than)/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* ---------- chữ ---------- */
.nhan-nho { font: 600 14px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kim-chu); margin: 0 0 12px; }
.td-lon { font: 600 clamp(40px, 10.5vw, 72px)/1.04 var(--serif); letter-spacing: -.015em; margin: 0; }
.td-lon em { font-style: italic; font-weight: 500; color: var(--ruou); }
.td-khoi { font: 600 clamp(32px, 8vw, 48px)/1.08 var(--serif); letter-spacing: -.01em; margin: 0; }
.dan-lon { font-size: 18px; line-height: 1.6; color: var(--phu); margin: 16px 0 0; max-width: 34em; }
@media (min-width: 900px) { .dan-lon { font-size: 20px; } }

/* ---------- nút ---------- */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ruou); background: var(--ruou); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.nut:hover { background: var(--ruou-dam); border-color: var(--ruou-dam); }
.nut:active { transform: scale(.98); }
.nut:focus-visible, .chip:focus-visible, button:focus-visible { outline: 3px solid rgba(163,128,74,.55); outline-offset: 2px; }
.nut.phu { background: transparent; color: var(--ruou); }
.nut.phu:hover { background: var(--hong); }
.nut.tx { background: var(--hong); border-color: var(--hong); color: var(--ruou); }
.nut.mo { background: var(--nen-2); border-color: var(--vien); color: var(--phu); font-weight: 500; }
.nut.trang { background: #fff; border-color: #fff; color: var(--ruou); }
.lien-ket { color: var(--ruou); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(116,36,58,.3); padding-bottom: 1px; }

/* ---------- đầu trang (dính) ---------- */
.dau-trang { position: sticky; top: 0; z-index: 30; background: rgba(251,248,244,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.dau-trang.cuon { border-bottom-color: var(--vien); }
.dau-trang .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.thuong-hieu { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.thuong-hieu svg, .thuong-hieu .logo { width: 38px; height: 38px; flex: none; }
.thuong-hieu .chu { font: 600 26px/1 "Dancing Script", cursive; color: var(--ruou); }
.dau-trang nav { display: none; gap: 28px; font-size: 16px; }
.dau-trang nav a { text-decoration: none; color: var(--phu); }
.dau-trang nav a:hover { color: var(--ruou); }
@media (min-width: 900px) { .dau-trang nav { display: flex; } }
.dau-trang .nut { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- hiện dần khi cuộn ---------- */
.hien-dan { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hien-dan.da-hien { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hien-dan { opacity: 1; transform: none; transition: none; } }

/* ---------- cam kết (3 dấu tích) ---------- */
.cam-ket { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--phu); }
.cam-ket li { display: flex; align-items: center; gap: 8px; }
.cam-ket li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--hong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%2374243a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- chân trang ---------- */
.chan-trang { background: #241a1c; color: #e9dfd8; margin-top: 72px; padding: 56px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 16px; }
.chan-trang .luoi-chan { display: grid; gap: 32px; }
@media (min-width: 900px) { .chan-trang .luoi-chan { grid-template-columns: 1.4fr 1fr 1fr; } }
.chan-trang .chu-ky { font: 600 34px/1 "Dancing Script", cursive; color: #f1d9c4; }
.chan-trang p { color: #c8b9b2; margin: 10px 0 0; max-width: 28em; }
.chan-trang h4 { font: 600 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kim); margin: 0 0 14px; }
.chan-trang ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chan-trang a { color: #f3ebe5; text-decoration: none; }
.chan-trang a:hover { color: #fff; text-decoration: underline; }
.chan-trang .duoi { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 14px; color: #a8968f; }
