@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --ink: #0f0f0f;
  --ink-soft: #3a3a3a;
  --ink-faint: #888;
  --paper: #faf8f4;
  --paper-warm: #f3ede3;
  --paper-dark: #ede7db;
  --accent: #c84b2f;
  --accent-soft: #f0e0da;
  --accent-dark: #a03820;
  --teal: #1a6b6b;
  --teal-soft: #d8eeee;
  --gold: #b07d2a;
  --gold-soft: #f5ecd4;
  --code-bg: #1a1a1a;
  --code-text: #e8dcc8;
  --rule: #d4cec5;
  --rule-light: #e8e2d8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── SITE HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-logo .dot { color: var(--accent); font-size: 28px; line-height: 0; position: relative; top: 3px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--ink); font-weight: 500; }

/* ── SITE FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
}

/* ── SHARED TAG PILL ── */
.tag-pill {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tag-pill-red   { background: var(--accent-soft); color: var(--accent); }
.tag-pill-teal  { background: var(--teal-soft); color: var(--teal); }
.tag-pill-gold  { background: var(--gold-soft); color: var(--gold); }
.tag-pill-gray  { background: var(--paper-dark); color: var(--ink-faint); }

/* ── UTILITIES ── */
.mono { font-family: 'DM Mono', monospace; }
.serif { font-family: 'Fraunces', serif; }

@media (max-width: 600px) {
  .site-header-inner { padding: 0 20px; }
  .site-nav { gap: 16px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
