/* =============================================
   Design Tokens — change these to restyle everything
   ============================================= */
:root {
  --bg: #030610;
  --bg-surface: #060c1e;
  --text: #e8e8e8;
  --text-muted: #999;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 680px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
   Layout
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  background: rgba(3, 6, 16, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* =============================================
   Navigation
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 6, 16, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 1.025rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-name:hover {
  opacity: 0.65;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.0rem;
  text-decoration: none;
  color: var(--text-muted);
}

.nav-mobile a:hover {
  color: var(--text);
  opacity: 1;
}

/* =============================================
   Main content
   ============================================= */
main {
  padding-top: 3.25rem;
  /* nav height */
  position: relative;
  z-index: 1;
}

/* =============================================
   Sections
   ============================================= */
section {
  padding: 2.75rem 0;
}

section+section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section-footer {
  margin-top: 2rem;
}

.section-footer a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.section-footer a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

/* =============================================
   Hero / About
   ============================================= */
.hero-name {
  font-size: 2.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.hero-title {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1.175rem;
  color: var(--text);
  max-width: 560px;
  line-height: 1.75;
}

/* =============================================
   Currently / prose paragraphs
   ============================================= */
.prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 580px;
}

.prose p {
  font-size: 1.075rem;
  color: var(--text);
}

/* =============================================
   Contact
   ============================================= */
.contact-invite {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* =============================================
   Social links (icon row)
   ============================================= */
.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover {
  color: var(--text);
  opacity: 1;
}

.social-links svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* =============================================
   Publications
   ============================================= */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pub-title {
  font-size: 1.075rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.pub-meta {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.pub-meta a {
  color: var(--text-muted);
}

/* =============================================
   Projects
   ============================================= */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-name {
  font-size: 1.075rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.project-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
}

/* =============================================
   Footer
   ============================================= */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

footer .container {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =============================================
   Blog (blog/index.html + posts)
   ============================================= */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-title {
  font-size: 1.075rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.post-meta {
  font-size: 0.925rem;
  color: var(--text-muted);
}

article header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

article .article-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

article .article-body {
  font-size: 1.125rem;
  line-height: 1.8;
}

article .article-body h2 {
  font-size: 1.325rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}

article .article-body p {
  margin-bottom: 1.25rem;
}

article .article-body code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.875em;
  background: var(--bg-surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

article footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

/* =============================================
   Responsive — single breakpoint
   ============================================= */
@media (max-width: 600px) {
  body {
    font-size: 1.0625rem;
    /* scale back slightly on small screens */
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .hero-bio {
    font-size: 1.05rem;
  }

  .prose p {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}