/* ==========================================================================
   TIPOGRAFI — NihongoDo
   Shippori Mincho untuk aksara/judul, Zen Kaku Gothic New untuk teks isi,
   JetBrains Mono untuk angka/statistik/label teknis.
   ========================================================================== */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.01em;
}
h1 {
  font-size: var(--fs-2xl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
}

p {
  margin: 0 0 var(--space-3);
}
small {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

code,
.font-mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.text-soft {
  color: var(--text-soft);
}
.text-faint {
  color: var(--text-faint);
}
.text-accent {
  color: var(--shu-light);
}
.text-gold {
  color: var(--gold-light);
}
.text-jade {
  color: var(--jade-light);
}
.text-indigo {
  color: var(--indigo-light);
}

/* ---- Furigana / ruby ---- */
ruby.jfuri {
  ruby-position: over;
  padding: 0 1px;
}
ruby.jfuri rt {
  font-family: var(--font-mono);
  font-size: 0.55em;
  color: var(--indigo-light);
  font-weight: 600;
  letter-spacing: 0;
  user-select: none;
}
ruby.jfuri.furi-hidden rt {
  display: none;
}

/* ---- Label level JLPT ---- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  line-height: 1.6;
}
.tag-n5 {
  background: var(--indigo-ghost);
  color: var(--indigo-light);
  border-color: rgba(74, 109, 161, 0.3);
}
.tag-n4 {
  background: var(--jade-ghost);
  color: var(--jade-light);
  border-color: rgba(47, 139, 99, 0.3);
}
.tag-n3 {
  background: var(--gold-ghost);
  color: var(--gold-light);
  border-color: rgba(203, 161, 53, 0.3);
}
.tag-n2 {
  background: rgba(123, 95, 192, 0.14);
  color: var(--amethyst-light);
  border-color: rgba(123, 95, 192, 0.3);
}
.tag-n1 {
  background: var(--shu-ghost);
  color: var(--shu-light);
  border-color: rgba(200, 69, 46, 0.3);
}
