/* jennie.yinyangmasters.com — editorial light-luxury, ấm và tĩnh.
   Token màu ở :root; dark mode theo hệ điều hành. Số liệu: Be Vietnam Pro + tabular-nums (không mono). */
:root {
  --bg: #f7f2ea;
  --surface: #fffdf8;
  --surface-2: #efe6da;
  --ink: #2a211c;
  --muted: #6b5d53;
  --line: #e2d6c6;
  --accent: #8c4a3b;
  --accent-hover: #74392c;
  --accent-ink: #fffaf4;
  --sage: #5e6b57;
  --danger: #a3332b;
  --ok: #3f6b4a;
  --shadow: 0 1px 2px rgba(42, 33, 28, .06), 0 12px 32px -16px rgba(42, 33, 28, .25);
  --radius-s: 10px;
  --radius-l: 22px;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --text-hero: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  --text-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  --space-section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --duration-fast: 160ms;
  --duration-normal: 280ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110e;
    --surface: #1e1915;
    --surface-2: #261f1a;
    --ink: #f2eae0;
    --muted: #b8aa9a;
    --line: #3a3029;
    --accent: #e3a58f;
    --accent-hover: #f0b9a5;
    --accent-ink: #1a120e;
    --sage: #a8b59f;
    --danger: #f08b80;
    --ok: #8fc49b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -18px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-s); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: .95rem; color: var(--muted); border-radius: 999px;
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.menu a:hover { color: var(--ink); background: var(--surface-2); }
.menu .menu-cta { color: var(--accent-ink); background: var(--accent); padding: 0 18px; }
.menu .menu-cta:hover { color: var(--accent-ink); background: var(--accent-hover); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); cursor: pointer;
  }
  .menu-btn span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform var(--duration-normal) var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), visibility 0s linear var(--duration-normal);
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .menu a { min-height: 48px; font-size: 1.05rem; padding: 0 14px; }
  .menu .menu-cta { justify-content: center; margin-top: 6px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; background: var(--surface-2); color: var(--ink); }
.btn-small:hover { background: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 var(--space-section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sage); margin-bottom: 1.2em; }
.hero h1 { font-size: var(--text-hero); font-weight: 500; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-photo { margin: 0; position: relative; justify-self: end; width: min(100%, 440px); }
.hero-photo::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent); border-radius: var(--radius-l); opacity: .45;
}
.hero-photo img { position: relative; border-radius: var(--radius-l); box-shadow: var(--shadow); aspect-ratio: 1066 / 1600; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; width: min(100% - 18px, 300px); order: -1; }
  .hero-photo img { aspect-ratio: 4 / 5; object-position: center 22%; }
}

/* Sections */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-bottom: 2rem; }
.pillars { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; }
.pillars li { padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.pillars strong { font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-l);
  text-decoration: none;
}
.section:not(.alt) .card { background: var(--surface); }
.link-card { transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
@media (hover: hover) { .link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); } }
.card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sage); font-weight: 600; }
.card-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.card-text { color: var(--muted); }
.card-go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 500; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* Media kit */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; margin: 0 0 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--bg); }
.stat { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.stat dt { font-size: .9rem; color: var(--muted); }
.stat dd { margin: 0; }
.stat .num { font-size: 2.4rem; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.formats ul { padding-left: 1.2em; margin: 0 0 1em; }
.formats li { margin-bottom: .35em; }
.fine { font-size: .9rem; color: var(--muted); }

/* Form */
.lead-form { display: grid; gap: 18px; background: var(--surface); padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 48px;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { margin: 0; min-height: 0; color: var(--danger); font-size: .9rem; }
.err:empty { display: none; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn-submit { width: 100%; }
.success { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--ok); border-radius: var(--radius-l); background: var(--surface); }
.success h3 { color: var(--ok); }

/* Footer */
.site-footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-row p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
