:root {
  --bg: #fdfbf7;
  --bg2: #f5efe6;
  --surface: #ffffff;
  --surface2: #faf6ee;
  --text: #1a1a1a;
  --text-soft: #3a3a3a;
  --muted: #6a6a6a;
  --border: #e8e0d0;
  --accent: #8a3a2a;
  --accent2: #c05030;
  --gold: #b08838;
  --blue: #2a5a8a;
  --blue-soft: #4a7aaa;
  --green: #4a6a3a;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}
[data-theme="dark"] {
  --bg: #14110d;
  --bg2: #1a1612;
  --surface: #1f1b16;
  --surface2: #25201a;
  --text: #ece4d4;
  --text-soft: #c8c0b0;
  --muted: #908878;
  --border: #2f2a22;
  --accent: #d27050;
  --accent2: #e08060;
  --gold: #e0c060;
  --blue: #80b0e0;
  --blue-soft: #6090c0;
  --green: #80a060;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
::selection { background: var(--accent); color: #fff; }

/* ════════ TOPBAR ════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 28px;
  background: rgba(253,251,247,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  transition: background .3s, border-color .3s;
}
[data-theme="dark"] .topbar { background: rgba(20,17,13,0.85); }
.brand {
  font-family: "Lora", Georgia, "Cambria", "Times New Roman", serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.3px;
}
.brand span { color: var(--accent); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text); padding: 6px 12px;
  border-radius: 100px; cursor: pointer;
  font-size: 0.82rem; font-family: inherit;
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ════════ HERO ════════ */
.hero {
  min-height: 100vh;
  padding: 120px 28px 60px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(138,58,42,0.06), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -20%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,90,138,0.05), transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.portrait {
  width: 100%; max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  margin: 0 auto;
  transition: transform .4s;
}
.portrait:hover { transform: scale(1.02); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text { max-width: 580px; }
.hero-eyebrow {
  color: var(--accent); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.hero-title {
  font-family: "Lora", Georgia, "Cambria", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-tagline {
  font-size: 1.18rem; color: var(--text-soft);
  line-height: 1.6; margin-bottom: 32px;
  font-weight: 300;
}
.hero-tagline strong { color: var(--accent); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  font-family: inherit; border: 2px solid transparent;
  display: inline-block; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(138,58,42,0.3); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ════════ SECTIONS ════════ */
.section {
  padding: 80px 28px;
  max-width: 1100px; margin: 0 auto;
}
.section-eyebrow {
  color: var(--accent); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: "Lora", Georgia, "Cambria", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.section-intro {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 720px; margin-bottom: 48px;
  line-height: 1.75;
}

/* ════════ OVERVIEW STATS ════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-family: "Lora", Georgia, "Cambria", serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl { font-size: 0.82rem; color: var(--muted); }

/* ════════ BIOGRAPHY BLOCKS ════════ */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.bio-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bio-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.bio-head {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bio-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.bio-period {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.bio-title {
  font-family: "Lora", Georgia, "Cambria", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.3;
}
.bio-text {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.bio-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.bio-list li {
  padding-left: 18px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.bio-list li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.bio-list li strong { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 18px; }
  .bio-block { padding: 22px 20px 20px; }
  .bio-icon { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 12px; }
}

/* ════════ TIMELINE ════════ */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 28px;
}
.tl-item::before {
  content: ''; position: absolute;
  left: -27px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.tl-year {
  font-weight: 700; color: var(--accent);
  font-size: 0.85rem; margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.tl-title { font-weight: 600; font-size: 1.02rem; margin-bottom: 2px; }
.tl-sub { color: var(--muted); font-size: 0.88rem; }

/* ════════ CARDS ════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.card-desc { color: var(--text-soft); font-size: 0.9rem; line-height: 1.65; }
.card-link {
  display: inline-block; margin-top: 12px;
  color: var(--accent); text-decoration: none;
  font-size: 0.86rem; font-weight: 600;
  transition: gap .2s;
}
.card-link:hover { color: var(--accent2); }
.card-link::after { content: ' →'; transition: margin-left .2s; }
.card-link:hover::after { margin-left: 4px; }

/* ════════ BOOKS ════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.book {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: transform .25s;
}
.book:hover { transform: translateY(-4px); }
.book-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.4; }
.book-meta { font-size: 0.78rem; color: var(--muted); }

/* ════════ AWARDS ════════ */
.awards-list {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 32px;
}
.award {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}
.award-icon { font-size: 1.6rem; flex-shrink: 0; }
.award-text { font-size: 0.95rem; }
.award-text strong { color: var(--gold); }

/* ════════ MUSIC ════════ */
.music-card {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-top: 24px;
}
.music-iframe {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; border: none;
  margin-bottom: 18px;
}
.music-info { font-size: 0.95rem; color: var(--text-soft); }
.music-info strong { color: var(--text); }

/* ════════ PRESS ════════ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.press-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
  text-decoration: none; color: var(--text);
  transition: all .25s;
}
.press-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.press-source { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.press-title { font-size: 0.88rem; font-weight: 500; line-height: 1.4; }

/* ════════ PERSONALITY ════════ */
.pers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.pers {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.pers-emoji { font-size: 2rem; margin-bottom: 10px; }
.pers-title { font-weight: 700; margin-bottom: 6px; }
.pers-desc { font-size: 0.86rem; color: var(--text-soft); line-height: 1.6; }

/* ════════ FOOTER ════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 28px 40px;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-name {
  font-family: "Lora", Georgia, "Cambria", serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.footer-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.contact-row {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none; color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  transition: all .2s;
}
.contact:hover { border-color: var(--accent); color: var(--accent); }
.socials {
  display: flex; gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all .2s;
  font-size: 0.95rem;
}
.social:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.copyright { color: var(--muted); font-size: 0.8rem; }

/* ════════ LANG TOGGLE ════════ */
[data-lang="vi"] .en { display: none; }
[data-lang="en"] .vi { display: none; }

/* ════════ ANIMATIONS ════════ */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}


/* ════════ #1 READING PROGRESS BAR ════════ */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold));
  z-index: 200;
  transition: width .1s linear;
}

/* ════════ #3 HERO SEQUENTIAL ANIMATION ════════ */
.hero-stagger { opacity: 0; transform: translateY(20px); animation: heroIn .8s ease-out forwards; }
.hero-stagger-1 { animation-delay: 0.15s; }
.hero-stagger-2 { animation-delay: 0.35s; }
.hero-stagger-3 { animation-delay: 0.6s; }
.hero-stagger-4 { animation-delay: 0.9s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.portrait { opacity: 0; transform: scale(0.92); animation: portraitIn 1s ease-out 0.1s forwards; }
@keyframes portraitIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ════════ #7 VIETKEY FEATURED SHOWCASE ════════ */
.featured-vietkey {
  background: linear-gradient(135deg, #fdf6ed 0%, #f5e8d5 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.featured-vietkey:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .featured-vietkey {
  background: linear-gradient(135deg, #2a2018 0%, #1e1812 100%);
}
.featured-vietkey::before {
  content: ''; position: absolute;
  top: -40%; right: -10%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(176,136,56,0.15), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.fv-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 14px;
}
.fv-year {
  font-family: "Lora", Georgia, serif;
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 2px;
}
.fv-title {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1; margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -1px;
}
.fv-desc { color: var(--text-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 18px; }
.fv-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 6px;
}
.fv-stat-num { font-family: "Lora", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.fv-stat-lbl { font-size: 0.78rem; color: var(--muted); }
.fv-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), #6a2a20);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(138,58,42,0.25);
  position: relative; z-index: 1;
}
.fv-visual-text {
  font-family: "Lora", Georgia, serif;
  font-weight: 900;
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
  transform: rotate(-4deg);
}

/* ════════ #8 PRESS QUOTE PULL-OUT ════════ */
.press-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 20px;
  position: relative;
}
.press-feature::before {
  content: '"';
  position: absolute;
  top: 6px; left: 20px;
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  font-weight: 700;
}
.press-quote-text {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}
.press-quote-attr {
  display: flex; gap: 14px; align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.press-quote-attr strong { color: var(--accent); font-weight: 600; }
.press-quote-attr a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.press-quote-attr a:hover { color: var(--accent2); }

/* ════════ #13 FLOATING TOC SIDEBAR ════════ */
.toc-float {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 8px;
  background: rgba(253,251,247,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
}
[data-theme="dark"] .toc-float { background: rgba(20,17,13,0.7); }
.toc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  border: none; cursor: pointer; padding: 0;
  position: relative;
  transition: all .25s;
}
.toc-dot:hover { opacity: 1; transform: scale(1.3); background: var(--accent); }
.toc-dot.active { background: var(--accent); opacity: 1; transform: scale(1.5); }
.toc-dot[data-label]::after {
  content: attr(data-label);
  position: absolute;
  right: 22px; top: 50%; transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.toc-dot:hover[data-label]::after { opacity: 1; }
@media (max-width: 1180px) { .toc-float { display: none; } }

/* ════════ #2 COUNT-UP — no visual change in CSS, JS handles ════════ */

@media (max-width: 800px) {
  .featured-vietkey { grid-template-columns: 1fr; padding: 28px 22px; }
  .fv-visual { max-width: 180px; margin: 0 auto; }
  .fv-visual-text { font-size: 4.5rem; }
  .press-feature { padding: 32px 24px; }
  .press-feature::before { font-size: 5rem; }
}

/* ════════ MOBILE ════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .portrait { max-width: 240px; }
  .hero-text { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .section { padding: 60px 20px; }
  .topbar { padding: 12px 18px; }
  .brand { font-size: 0.92rem; }
  .icon-btn { padding: 5px 10px; font-size: 0.76rem; }
}
@media (max-width: 520px) {
  .hero { padding: 100px 20px 40px; }
  .stat-num { font-size: 1.9rem; }
}

/* ════════ ACCESSIBILITY: REDUCED MOTION ════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .hero-stagger, .portrait { opacity: 1; transform: none; animation: none; }
}

/* ════════ ACCESSIBILITY: FOCUS-VISIBLE ════════ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.icon-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.contact:focus-visible,
.social:focus-visible,
.toc-dot:focus-visible {
  outline-offset: 4px;
}

/* ════════ SKIP LINK ════════ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ════════ YOUTUBE FACADE (lazy-load) ════════ */
.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #000 center/cover no-repeat;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.yt-facade::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.yt-facade-play {
  width: 68px; height: 48px;
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  position: relative; z-index: 1;
}
.yt-facade:hover .yt-facade-play { background: #c00; transform: scale(1.05); }
.yt-facade-play::after {
  content: '';
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* ════════ HELPER CLASSES (replacing inline styles) ════════ */
.tl-sub-spaced { margin-bottom: 6px; }
.tl-code { color: var(--muted); font-size: 0.82rem; }
.tl-thesis {
  font-size: 0.86rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 6px;
}
.tl-thesis strong { font-style: normal; }
.books-heading {
  font-family: "Lora", Georgia, "Cambria", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 8px;
}
.books-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.card-link-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
.music-info-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.music-more {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  font-style: italic;
}
.press-highlight {
  color: var(--accent);
  font-style: normal;
}
.press-sep { opacity: 0.4; }
