:root{
  --bg: #0f1115;
  --text: #e8ebf2;
  --muted: #a7b0c0;
  --accent: #7bdff2;
  --orange: #f7b267;
  --header-h: 72px; /* fallback; JS updates this dynamically */
}

* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0c0e12 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.wrap{ width: min(1100px, 92vw); margin-inline: auto; }
.section{ padding: 10px 0; }

/* Ensure in-page anchors account for sticky header height */
.section, section { scroll-margin-top: var(--header-h); }

/* Typography */
h1,h2,h3{
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
}
h1{ font-size: clamp(2rem, 3vw, 2.6rem); }
h2{ font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h3{ font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
p { margin: 0 0 8px; }
em { font-style: italic; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner{ padding: 14px 0; display: grid; gap: 18px; }
@media (min-width: 880px){
  .header-inner{ grid-template-columns: 1fr auto; align-items: center; }
}

.id-card{ display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; }
.headshot{
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; background: #222a;
  border: 2px solid rgba(255,255,255,0.1);
}
.role{ color: var(--muted); margin: 2px 0 6px; font-size: .95rem; }

/* Contact list (top + footer section use these) */
.contact-list{ list-style: none; }
.contact-list li{ margin: 4px 0; }
.contact-list a{
  color: var(--text); text-decoration: none; border-bottom: 1px solid transparent;
  word-break: break-word;
}
.contact-list a:hover{ color: var(--accent); border-bottom-color: var(--accent); }

/* Navigation */
.site-nav{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.site-nav a{ color: var(--text); text-decoration: none; }
.site-nav a:hover{ color: var(--accent); text-decoration: underline; }

/* Lists (no bullets) */
.list, .stacked{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.list.compact{ gap: 6px; }
.year { font-weight: 700; color: var(--orange); margin-right: 6px; }

/* Experience */
.list.experience-list{ gap: 12px; }
.list.experience-list li{ line-height: 1.35; }
.list.experience-list p.muted{
  margin: 4px 0 0 0;
  font-size: 0.92rem; color: var(--muted);
}

/* Skills */
.skills{ display: grid; gap: 14px; }
@media (min-width: 720px){ .skills{ grid-template-columns: 1fr 1fr; } }
.stacked li{ margin: 2px 0; }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; color: var(--muted); text-align: center; font-size: .95rem;
}
.to-top{ color: var(--text); text-decoration: none; }
.to-top:hover{ color: var(--accent); text-decoration: underline; }

/* Print */
@media print{
  body{ background:#fff; color:#111; }
  .site-header, .site-footer{ display:none !important; }
  a{ color:#000; text-decoration: underline; }
}
