:root {
  --bg: #0f1419;
  --bg-elevated: #171d24;
  --text: #e8edf2;
  --text-muted: #9aa7b5;
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 72rem;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.06), transparent 24%),
    var(--bg);
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 20, 25, 0.82);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #082f2a;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-heading h2 {
  margin: 0 0 2rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-grid p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.2rem;
}

.timeline-org {
  margin: 0.35rem 0 0.75rem;
  color: var(--text-muted);
}

.timeline-content p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.project-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
}

.project-card-static {
  cursor: default;
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.92rem;
}

.contact-lead {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-links a {
  color: var(--accent);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .timeline-item {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }

}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.85rem;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 4rem;
  }
}
