/* Primitive: raw values (identitas DevOps - GitHub-light inspired) */
:root {
  --blue-600: #0969da;
  --blue-700: #0550ae;
  --blue-800: #0550ae;
  --ink-900: #1f2328;
  --ink-800: #0d1117;
  --muted-500: #59636e;
  --muted-400: #6e7f96;
  --line-200: #d0d7de;
  --line-300: #afb8c1;
  --bg-soft: #f6f8fa;
  --bg-hero: #f6f8fa;
  --white: #ffffff;
  --header-bg: #ffffff;
  --header-bg-translucent: rgba(255, 255, 255, 0.85);

  /* DevOps surfaces (light) */
  --bg-0: #ffffff;
  --bg-1: #f6f8fa;
  --surface: #ffffff;
  --surface-hi: #eef1f4;
  --emerald: #1a7f37;
  --emerald-dim: rgba(26, 127, 55, 0.12);

  /* Semantic */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-ink: var(--ink-900);
  --color-muted: var(--muted-500);
  --color-border: var(--line-200);
  --color-bg: var(--bg-1);

  /* Shape + spacing */
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --space-xs: 10px;
  --space-sm: 15px;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 28px;

  /* Type - DevOps: Inter untuk UI, JetBrains Mono untuk kode/label */
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, Monaco, monospace;
}

/* Base */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

code, kbd, pre, tt {
  font-family: var(--font-mono);
}

/* Pewarisan font + warna untuk kontrol form */
input, button, select, textarea {
  font: inherit;
  color: inherit;
}

h1 {
  font-size: clamp(2.625rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Label teknis gaya konsol */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Semua link berbentuk kartu mewarisi warna teks (hindari biru default browser) */
a.post-card, a.category-card, a.editor-item, a.featured-menu-card {
  color: inherit;
}

/* Halaman default (page.php) - kolom baca rata tengah ala editor */
.page-default {
  padding: 48px 24px 100px;
  background: var(--color-bg);
}

.page-container {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* Aksesibilitas + perilaku global */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
