:root {
  --hong: #e8338a;
  --hong-dam: #c21f6e;
  --hong-nhat: #fff0f6;
  --muc: #1d1b17;
  --xam: #6b6660;
  --giay: #f4ecd5;
  --nen: #fffafc;
  --vien: #f1d9e5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: var(--muc); background: var(--nen); line-height: 1.5; }
a { color: var(--hong-dam); }
img { display: block; max-width: 100%; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muc); font-weight: 500; }
.logo b { font-weight: 800; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--hong); color: #fff; font-weight: 800; font-size: 14px; }
.tagline { font-size: 13px; color: var(--xam); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px 56px; }
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.hero p { color: var(--xam); margin-top: 10px; max-width: 620px; margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .wrap { padding: 20px 16px 40px; } .tagline { display: none; } }

.card { background: #fff; border: 1px solid var(--vien); border-radius: 16px; padding: 12px; cursor: pointer; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; gap: 8px; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(232, 51, 138, .14); outline: none; border-color: var(--hong); }
.cover { aspect-ratio: 148 / 210; border-radius: 10px; overflow: hidden; background: var(--giay); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 4px 0 0 -2px #d9cfae inset; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.card p { font-size: 12.5px; color: var(--xam); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; font-size: 11.5px; font-weight: 600; color: var(--hong-dam); background: var(--hong-nhat); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }

.foot { text-align: center; color: var(--xam); font-size: 13px; padding: 24px; border-top: 1px solid var(--vien); }

/* Popup */
.popup { position: fixed; inset: 0; background: rgba(29, 27, 23, .62); display: grid; place-items: center; padding: 16px; z-index: 50; backdrop-filter: blur(3px); }
.popup[hidden] { display: none; }
.popup-card { background: #fff; border-radius: 20px; width: min(760px, 100%); display: grid; grid-template-columns: 240px 1fr; overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-cover { width: 100%; height: 100%; object-fit: cover; background: var(--giay); }
.popup-body { padding: 28px 28px 24px; }
.popup-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hong-dam); font-weight: 700; }
.popup-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 1.2; margin: 6px 0 8px; }
.popup-note { font-size: 13px; color: var(--xam); margin-bottom: 16px; }
.popup-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: #fff; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--xam); box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 1; }
form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
form input { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--vien); border-radius: 10px; font: inherit; font-size: 15px; }
form input:focus { outline: none; border-color: var(--hong); box-shadow: 0 0 0 3px rgba(232, 51, 138, .15); }
.form-err { color: #c0392b; font-size: 13px; margin: -2px 0 8px; }
.btn-primary { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--hong); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s; }
.btn-primary:hover { background: var(--hong-dam); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
@media (max-width: 640px) { .popup-card { grid-template-columns: 1fr; } .popup-cover { height: 150px; object-position: top; } }
