/*
 * taste.css — taste-skill inspired overrides for MkDocs Material
 *
 * Principles:
 * - Warm monochrome base, 1 accent (amber)
 * - Clean typography with Vietnamese-friendly vertical rhythm
 * - No AI-purple gradients, no glassmorphism
 * - Tight prose, generous whitespace
 */

/* ───────── Google Font: Be Vietnam Pro ───────── */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

body, .md-typeset, .md-nav, .md-header, .md-footer {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif !important;
}

/* ───────── Typographic fine-tuning ───────── */

.md-typeset {
  font-size: 0.8rem;
  line-height: 1.75;
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.4rem;
}

.md-typeset h3 {
  font-weight: 600;
  margin-top: 1.4rem;
}

.md-typeset code {
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.md-typeset pre > code {
  font-size: 0.7rem;
  line-height: 1.6;
}

/* ───────── Table of Contents ───────── */

.md-sidebar--secondary .md-nav__item {
  font-size: 0.7rem;
  line-height: 1.4;
}

/* ───────── Navigation tabs ───────── */

.md-tabs__link {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ───────── Prose width ───────── */

.md-grid {
  max-width: 62rem;
}

.md-typeset .md-content__inner {
  max-width: 100%;
}

/* ───────── Admonition polish ───────── */

.md-typeset .admonition,
.md-typeset details {
  font-size: 0.75rem;
  border-radius: 6px;
}

/* ───────── Math block spacing ───────── */

.md-typeset .MathJax {
  outline: none;
}

.md-typeset div.arithmatex {
  overflow-x: auto;
  padding: 0.5rem 0;
}

/* ───────── Image consistency ───────── */

.md-typeset img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* ───────── Accent colour refinement ───────── */

:root {
  --md-primary-fg-color: #d97706;      /* amber-600 */
  --md-primary-fg-color--light: #f59e0b;
  --md-primary-fg-color--dark: #b45309;
  --md-accent-fg-color: #d97706;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #f59e0b;      /* amber-500 on dark */
  --md-accent-fg-color: #fbbf24;
}

/* ───────── Footer subtlety ───────── */

.md-footer-meta {
  font-size: 0.65rem;
}

/* ───────── Search results ───────── */

.md-search-result__meta {
  font-size: 0.6rem;
}

.md-search-result__more summary {
  font-size: 0.7rem;
}

/* ───────── Tables ───────── */

.md-typeset table:not([class]) {
  font-size: 0.75rem;
  border-radius: 6px;
}

.md-typeset table:not([class]) th {
  font-weight: 600;
}

/* ───────── Blockquotes ───────── */

.md-typeset blockquote {
  border-left: 3px solid var(--md-accent-fg-color);
  padding-left: 1rem;
  color: var(--md-default-fg-color--light);
  font-style: italic;
}
