@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #334155;
  --max-width: 900px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
  background: var(--navy);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-brand:hover { text-decoration: none; opacity: .9; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--white); }

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: .25s;
}

@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    border-top: 1px solid var(--navy-light);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .6rem 0; }
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: .5rem;
}
.hero p {
  color: var(--gray-400);
  font-size: 1.15rem;
  font-weight: 400;
}

@media (min-width: 640px) {
  .hero { padding: 5rem 2rem 4.5rem; }
  .hero h1 { font-size: 3.25rem; }
}

/* ── SECTIONS ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}
.section + .section { padding-top: 0; }

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.bio-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}
.bio-text p + p { margin-top: 1rem; }

.bio-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.bio-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── CARDS ── */
.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(37, 99, 235, .08);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
}
.card .meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: .65rem;
}
.card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.card a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card a:hover { text-decoration: none; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--gray-400);
  margin-top: .4rem;
  font-size: 0.95rem;
}

/* ── RESUME ── */
.resume-section { margin-bottom: 2.5rem; }
.resume-section h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.li-badge {
  display: inline-flex;
  align-items: center;
  opacity: .85;
  transition: opacity .15s;
  line-height: 0;
}
.li-badge:hover { opacity: 1; text-decoration: none; }

.job { margin-bottom: 2rem; }
.job-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.job-header .company {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: .15rem;
}
.job-header .dates {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: .1rem;
}
.job ul {
  margin-top: .6rem;
  padding-left: 1.25rem;
}
.job li {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: .35rem;
  line-height: 1.55;
}

.edu h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.edu .dates {
  font-size: 0.82rem;
  color: var(--gray-400);
}
.edu ul {
  margin-top: .5rem;
  padding-left: 1.25rem;
}
.edu li {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: .3rem;
}

.interests {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ── POST ── */
.post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
}
.post h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}
.post p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}
.post ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.post li {
  margin-bottom: .4rem;
  line-height: 1.7;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  margin-top: auto;
  background: var(--navy);
  color: var(--gray-400);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.85rem;
}
