:root {
  --bg: #0c0c0e;
  --surface: #141416;
  --border: #1e1e22;
  --muted: #3a3a42;
  --text: #e8e8f0;
  --sub: #606070;
  --accent: #f5c842;
  --correct: #4ade80;
  --error: #f87171;
  --cursor: #f5c842;
  --radius: 12px;
  --nav-bg: rgba(12, 12, 14, 0.92);
  --accent-alpha: rgba(245, 200, 66, 0.12);
}

[data-theme="light"] {
  --bg: #f8f8fb;
  --surface: #ffffff;
  --border: #e1e1e8;
  --muted: #c1c1cb;
  --text: #1a1a1e;
  --sub: #646470;
  --accent: #d9a300;
  --correct: #10b981;
  --error: #ef4444;
  --cursor: #d9a300;
  --nav-bg: rgba(248, 248, 251, 0.92);
  --accent-alpha: rgba(217, 163, 0, 0.08);
}

[data-theme="modern"] {
  --bg: #050507;
  --surface: rgba(20, 20, 25, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --muted: #2d2d35;
  --text: #ffffff;
  --sub: #94a3b8;
  --accent: #00f2ff;
  --correct: #00ff9d;
  --error: #ff4d4d;
  --cursor: #00f2ff;
  --nav-bg: rgba(5, 5, 7, 0.8);
  --accent-alpha: rgba(0, 242, 255, 0.15);
  --glass: blur(16px);
}

[data-theme="modern"] body {
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
  position: relative;
}

[data-theme="modern"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="modern"] .typing-container,
[data-theme="modern"] .nav-links a.active,
[data-theme="modern"] .mode-btn.active,
[data-theme="modern"] .hero h1 em,
[data-theme="modern"] .btn-primary {
  text-shadow: 0 0 20px var(--accent-alpha);
}

[data-theme="modern"] .typing-container {
  backdrop-filter: var(--glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-theme="modern"] .word-char.correct {
  text-shadow: 0 0 8px var(--correct);
}

[data-theme="modern"] .word-char.error {
  text-shadow: 0 0 8px var(--error);
}

[data-theme="kids"] {
  --bg: #fff9e6;
  --surface: #ffffff;
  --border: #ffd966;
  --muted: #e2e8f0;
  --text: #2d3748;
  --sub: #718096;
  --accent: #ff6b6b;
  --correct: #48bb78;
  --error: #f56565;
  --cursor: #ff6b6b;
  --nav-bg: rgba(255, 249, 230, 0.95);
  --accent-alpha: rgba(255, 107, 107, 0.15);
  --radius: 24px;
}

[data-theme="kids"] body {
  font-family: 'Fredoka', sans-serif;
  background-image:
    radial-gradient(#ffd966 1px, transparent 1px),
    radial-gradient(#ffd966 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

[data-theme="kids"] .logo,
[data-theme="kids"] .hero h1,
[data-theme="kids"] .hero h2,
[data-theme="kids"] h2,
[data-theme="kids"] h3 {
  font-family: 'Fredoka', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

[data-theme="kids"] .typing-container {
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0px var(--border);
}

[data-theme="kids"] .btn,
[data-theme="kids"] .mode-btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Fredoka', sans-serif;
}

[data-theme="kids"] .btn-primary {
  background: #4ecdc4;
  color: white;
  border: none;
  box-shadow: 0 4px 0 #36b1a8;
}

[data-theme="kids"] .btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #36b1a8;
}

[data-theme="kids"] .logo span {
  color: #4ecdc4;
}

[data-theme="kids"] .stat-val {
  font-family: 'Fredoka', sans-serif;
  color: #ff6b6b;
}

[data-theme="kids"] .nav-links a.active {
  background: #ffe66d;
  color: #2d3748;
}

[data-theme="kids"] .word-char {
  font-size: 1.5rem;
}

[data-theme="kids"] .word-char.cursor::after {
  width: 4px;
  border-radius: 4px;
}

[data-theme="kids"] .stat {
  background: white;
  padding: 10px 20px;
  border-radius: 20px;
  border: 3px solid #ffd966;
  transform: rotate(-2deg);
  transition: transform 0.2s;
}

[data-theme="kids"] .stat:nth-child(even) {
  transform: rotate(2deg);
}

[data-theme="kids"] .stat:hover {
  transform: scale(1.1) rotate(0deg);
}

[data-theme="kids"] .btn:hover {
  transform: scale(1.05) rotate(1deg);
}

[data-theme="kids"] .mode-btn.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

@keyframes kidsBouncy {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

[data-theme="kids"] .hero h1 em,
[data-theme="kids"] .hero h2 em {
  display: inline-block;
  animation: kidsBouncy 2s infinite;
  color: #ff6b6b;
}

[data-theme="kids"] .results-card {
  border: 4px solid #4ecdc4;
  background: white;
}

[data-theme="kids"] .result-item {
  background: #f0fff4;
  border: 3px solid #48bb78;
  border-radius: 20px;
}

[data-theme="kids"] .result-val {
  color: #48bb78;
}

[data-theme="kids"] .results-card h2 {
  color: #2d3748;
  letter-spacing: 0;
  font-size: 1.5rem;
}

[data-theme="kids"] .countdown-num {
  font-family: 'Fredoka', sans-serif;
  color: #ff6b6b;
}

[data-theme="kids"] .click-hint {
  color: #718096;
  font-weight: 600;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateX(-4px);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--sub);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--border);
}

/* ─── MAIN ─────────────────────────────────── */
.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.sidebar {
  width: 160px;
  min-width: 160px;
  position: sticky;
  top: 100px;
  padding-top: 40px;
}

main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  padding: 40px 0 80px;
}

@media (max-width: 1280px) {
  .sidebar {
    display: none;
  }

  .main-layout {
    display: block;
    padding: 0;
  }

  main {
    margin: 0 auto;
    padding: 40px 24px 80px;
  }
}

/* ─── PAGES ────────────────────────────────── */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── HERO ─────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1,
.hero h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero h1 em,
.hero h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  color: var(--sub);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ─── MODE SELECTOR ────────────────────────── */
.mode-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.mode-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--sub);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.mode-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.mode-btn.active {
  background: var(--accent);
  color: #0c0c0e;
  border-color: var(--accent);
  font-weight: 500;
}

/* ─── STATS BAR ────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 28px;
}

.stat {
  text-align: center;
}

.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-val.timer-danger {
  color: var(--error);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ─── TYPING AREA ──────────────────────────── */
.typing-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.typing-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

#word-display {
  font-family: 'DM Mono', monospace;
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--sub);
  position: relative;
  user-select: none;
  max-height: 6.6rem;
  overflow: hidden;
  word-break: break-all;
}

.word-char {
  position: relative;
}

.word-char.correct {
  color: var(--correct);
}

.word-char.error {
  color: var(--error);
  text-decoration: underline;
  text-decoration-color: var(--error);
}

.word-char.cursor::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: var(--cursor);
  border-radius: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#typing-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  top: 0;
  left: 0;
}

.click-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.click-hint.hidden {
  opacity: 0;
}

/* ─── CONTROLS ─────────────────────────────── */
.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  padding: 10px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0e;
  border-color: var(--accent);
  font-weight: 500;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--sub);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ─── THEME TOGGLE ──────────────────────────── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .sun-icon {
  display: none;
}

/* ─── THEME TOGGLE ICON VISIBILITY ─── */
/* Sequence: Dark -> Light -> Modern -> Kids -> Dark */

/* In Dark theme, show Sun (to go to Light) */
[data-theme="dark"] .moon-icon,
[data-theme="dark"] .variant-icon,
[data-theme="dark"] .kids-icon {
  display: none;
}

/* In Light theme, show Zap (to go to Modern) */
[data-theme="light"] .sun-icon,
[data-theme="light"] .moon-icon,
[data-theme="light"] .kids-icon {
  display: none;
}

/* In Modern theme, show Star (to go to Kids) */
[data-theme="modern"] .sun-icon,
[data-theme="modern"] .moon-icon,
[data-theme="modern"] .variant-icon {
  display: none;
}

/* In Kids theme, show Moon (to go to Dark) */
[data-theme="kids"] .sun-icon,
[data-theme="kids"] .variant-icon,
[data-theme="kids"] .kids-icon {
  display: none;
}

/* ─── COUNTDOWN ────────────────────────────── */
.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
}

.countdown-num {
  font-family: 'Syne', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  animation: countPulse 0.8s ease;
}

@keyframes countPulse {
  from {
    transform: scale(1.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.countdown-overlay.hidden {
  display: none;
}

/* ─── RESULTS ──────────────────────────────── */
.results-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.results-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-alpha, rgba(245, 200, 66, 0.12)) 0%, transparent 70%);
  pointer-events: none;
}

.results-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.result-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 12px;
}

.result-val {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.result-label {
  font-size: 0.7rem;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.share-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── LESSONS PAGE ─────────────────────────── */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.lesson-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lesson-card .badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--border);
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
}

.lesson-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lesson-card p {
  font-size: 0.8rem;
  color: var(--sub);
  line-height: 1.5;
}

.lesson-card .arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform 0.2s, color 0.2s;
}

.lesson-card:hover .arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ─── LEADERBOARD ──────────────────────────── */
.leaderboard-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr 80px 80px 80px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.lb-row:last-child {
  border-bottom: none;
}

.lb-row:hover {
  background: var(--bg);
}

.lb-row.header {
  color: var(--sub);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg);
}

.rank {
  color: var(--muted);
  font-weight: 500;
}

.rank.gold {
  color: #f5c842;
}

.rank.silver {
  color: #a0a0b0;
}

.rank.bronze {
  color: #cd7f32;
}

.lb-wpm {
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* ─── SEO CONTENT ──────────────────────────── */
.seo-content {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.seo-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.seo-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--accent);
}

.seo-content p {
  color: var(--sub);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}

/* ─── FAQ ──────────────────────────────────── */
.faq {
  margin-top: 48px;
}

.faq h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.faq-q:hover {
  background: var(--surface);
}

.faq-q .chevron {
  color: var(--sub);
  transition: transform 0.3s;
  font-size: 0.9rem;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a p {
  padding: 0 20px 16px;
  color: var(--sub);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── FOOTER ───────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

footer a {
  color: var(--sub);
  text-decoration: none;
  margin: 0 12px;
}

footer a:hover {
  color: var(--accent);
}

/* ─── TOAST ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #0c0c0e;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 640px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .typing-container {
    padding: 24px 20px;
  }

  #word-display {
    font-size: 1rem;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-row {
    grid-template-columns: 36px 1fr 60px 60px;
  }

  .lb-row>*:last-child {
    display: none;
  }

  .stat-val {
    font-size: 1.5rem;
  }
}

/* ─── PREMIUM ARTICLE ───────────────────────── */
.premium-article {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.premium-article h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.premium-article h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-top: 4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.618rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.premium-article p {
  margin-bottom: 1.5rem;
  color: var(--sub);
  line-height: 1.9;
  font-size: 0.95rem;
}

.premium-article .lede {
  display: block;
  font-style: italic;
  color: var(--text);
  margin-bottom: 3rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.premium-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.premium-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

.premium-article strong {
  color: var(--text);
  font-weight: 600;
}

[data-theme="kids"] .premium-article h2,
[data-theme="kids"] .premium-article h3 {
  font-family: 'Fredoka', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

[data-theme="kids"] .premium-article .lede {
  border-left-width: 8px;
  border-radius: 4px;
}