
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg:       #FFFFFF;
  --surface:  #F8FAFC;
  --surface2: #F1F5F9;
  --border:   #E2E8F0;
  --border2:  #CBD5E1;
  --blue:     #2563EB;
  --blue-lt:  #EFF6FF;
  --blue-mid: #BFDBFE;
  --green:    #16A34A;
  --amber:    #D97706;
  --red:      #DC2626;
  --text:     #0F172A;
  --text2:    #334155;
  --muted:    #64748B;
  --muted2:   #94A3B8;
  --sans:     'Plus Jakarta Sans', system-ui, sans-serif;
  --serif:    'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Site Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.4px;
}
.site-logo span { color: var(--blue); }
.site-nav { display: flex; gap: 2px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover  { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--blue); background: var(--blue-lt); font-weight: 600; }

/* ── Site Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand { font-weight: 700; font-size: 13px; color: var(--text); }
.footer-brand span { color: var(--blue); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }
.footer-x,
.footer-substack {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-x:hover,
.footer-substack:hover { color: var(--text); }
.footer-update { font-size: 11px; color: var(--muted2); }

/* ── Hamburger button (hidden on desktop) ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle svg { display: block; }

@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .site-footer { padding: 20px 16px; }
  .site-logo { font-size: 14px; }

  /* Hide desktop nav, show hamburger */
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
  }
}
