/* Nền chung cho các trang phụ (/ctv/, /qua-20-11/): cùng màu, chữ, nút, ô nhập với styles.css
   nhưng nhẹ hơn nhiều vì không kèm kiểu của lưới sản phẩm, giỏ quà, trò chơi. */
:root {
  --paper: oklch(97.2% 0.018 88);
  --paper-deep: oklch(94.5% 0.026 85);
  --card: oklch(99% 0.008 88);
  --ink: oklch(29% 0.09 295);
  --ink-soft: oklch(44% 0.05 295);
  --line: oklch(87% 0.03 280);
  --grid: oklch(89% 0.035 262 / 0.5);
  --red: oklch(50% 0.19 28);
  --red-deep: oklch(43% 0.17 28);
  --red-tint: oklch(94% 0.03 28);
  --ok: oklch(42% 0.11 150);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px oklch(29% 0.09 295 / 0.1), 0 10px 24px -14px oklch(29% 0.09 295 / 0.35);
  --t: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font-body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
h1 em { font-style: italic; font-weight: 600; color: var(--red); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(1120px, 100% - var(--s6)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 50; }
.skip:focus { left: var(--s2); }

.topbar { position: sticky; top: 0; z-index: 20; background: oklch(97.2% 0.018 88 / 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar__row { display: flex; align-items: center; gap: var(--s4); min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); font: 700 1.125rem/1.2 var(--font-display); text-decoration: none; margin-right: auto; min-height: 44px; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--red); border: 2px solid var(--red);
  border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%; font-size: 0.875rem; transform: rotate(-8deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: var(--s2) var(--s5);
  border-radius: var(--radius-s); border: 1.5px solid transparent; font-weight: 600; text-decoration: none; text-align: center;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn--primary { background: var(--red); color: oklch(99% 0.01 88); }
.btn--primary:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: oklch(36% 0.11 295); }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: var(--s1) var(--s4); font-size: 0.9375rem; }

.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--red-deep); margin-bottom: var(--s3); }
.lead { max-width: 52ch; margin-top: var(--s4); color: var(--ink-soft); font-size: 1.0625rem; }
.hint { font-size: 0.875rem; color: var(--ink-soft); }
.section { padding-block: var(--s8); }
.section--tint { background: var(--paper-deep); }
.section__lead { max-width: 62ch; margin-top: var(--s3); color: var(--ink-soft); }

select, input, textarea { min-height: 44px; padding: var(--s2) var(--s3); background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); max-width: 100%; }
select:hover, input:hover, textarea:hover { border-color: var(--ink-soft); }
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: var(--s1); font-size: 0.9375rem; font-weight: 500; }
.field input, .field textarea { width: 100%; font-weight: 400; }
.field .req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; font-size: 0.9375rem; color: var(--red-deep); }
.msg.is-ok { color: var(--ok); }

.footer { background: var(--ink); color: var(--paper); padding-block: var(--s6); font-size: 0.9375rem; }
.footer__row { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
