/* ============================================================
   BASE — shared across all pages
   CSS variables, reset, nav, footer
   ============================================================ */

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

:root {
  --ink: #1a1a18;
  --paper: #f5f3ef;
  --muted: #6b6b62;
  --warm: #8a7c5e;
  --surface: #eceae4;
  --rule: #d8d4cc;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

/* NAV (sticky — used on blog pages; resume overrides this) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.nav-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
  transition: box-shadow .15s;
}

.logo-wrap:hover .nav-avatar {
  box-shadow: 0 0 0 2px var(--warm);
}

nav ul { list-style: none; display: flex; gap: 32px; }

nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}

nav a:hover, nav a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 6px 16px;
  font-size: 12px !important;
}

.nav-cta:hover { background: #333 !important; }

/* FOOTER (dark bg — used on blog pages) */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 48px;
}

.f-logo { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; }
footer span { color: #555550; }
footer a { color: #555550; text-decoration: none; }
footer a:hover { color: var(--warm); }

/* HAMBURGER BUTTON — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 20px; position: relative; flex-wrap: wrap; height: auto; min-height: 72px; }
  nav ul { display: none; width: 100%; flex-direction: column; gap: 0; padding: 8px 0 16px; }
  nav ul.open { display: flex; }
  nav ul li { border-top: 1px solid var(--rule); }
  nav ul li a { display: block; padding: 12px 0; font-size: 14px; }
  .nav-toggle { display: block; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
}
