/* ============================================================
   Typography — 合乎周礼

   UI text uses modern sans-serif; output text gets a serif
   treatment that echoes woodblock-printed Song/Ming books.
   ============================================================ */

/* ── Font imports ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600&family=Noto+Serif+SC:wght@400;600;700&display=swap');
/* Note: System Chinese fonts (PingFang SC, STSong) serve as
   excellent fallbacks if Google Fonts fail to load. The site
   remains fully usable without the web font download. */

/* ── Headings ──────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: 0.02em;
}

/* ── Body ──────────────────────────────────────────────── */
body {
    font-family: var(--font-sans);
    font-weight: var(--weight-normal);
}

/* ── Placeholder text ──────────────────────────────────── */
::placeholder {
    color: var(--color-text-tertiary);
    opacity: 1;
    font-family: var(--font-serif-cn);
    font-style: italic;
}

/* ── Links ─────────────────────────────────────────────── */
a {
    transition: color var(--transition-fast);
}

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

/* ── Code ──────────────────────────────────────────────── */
code, pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

/* ── Utility text classes ──────────────────────────────── */
.text-serif {
    font-family: var(--font-serif-cn);
}

.text-muted {
    color: var(--color-text-secondary);
}

.text-faint {
    color: var(--color-text-tertiary);
}

.text-accent {
    color: var(--color-accent);
}
