:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: static;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out;
}

nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: #eef2ff;
}

.pill-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
  font-weight: 500;
}

.pill-primary:hover {
  background: #1d4ed8;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 2fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 880px) {
  main {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
    align-items: flex-start;
  }
}

section {
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 0.9rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border);
}

.card-inner {
  position: relative;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.85rem, 2.4vw + 1rem, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-meta span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-actions a {
  font-size: 0.85rem;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 0.98rem;
}

.body-muted {
  color: var(--muted);
  font-size: 0.93rem;
}

.about-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-list strong {
  color: var(--text);
  font-weight: 500;
}

.projects-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.project {
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #f9fafb;
  display: grid;
  gap: 0.3rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.project-title {
  font-size: 0.98rem;
  font-weight: 500;
}

.project-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

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

.project-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-links {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  background: #ffffff;
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out;
}

.chip-link:hover {
  color: var(--text);
  border-color: #cbd5f5;
  background: #eef2ff;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(37, 99, 235, 0.5);
  transition:
    color 0.15s ease-out,
    border-color 0.15s ease-out;
}

.contact-links a:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.9);
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

footer span {
  color: var(--accent);
}

/* Light anchor offset for possible future sticky headers */
[id] {
  scroll-margin-top: 5rem;
}

.no-bullets {
  list-style-type: none;
}

:target {
  animation: highlight 1s ease-out;
}

@keyframes highlight {
  0% {
    background-color: #b3d9ff;
    /* Start with highlight color */
  }
  100% {
    background-color: transparent;
    /* End with no background */
  }
}
