:root {
  --navy: #0a2540;
  --navy-light: #123a5e;
  --gold: #b4863c;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1b1f24;
  --muted: #5a6472;
  --border: #e2e6ec;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.25;
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 24px;
  gap: 12px;
}
.brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero-inner {
  text-align: left;
}
.eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 16px;
}
.tagline {
  max-width: 620px;
  color: #cfd8e3;
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* Entries (education / experience) */
.entry {
  margin-bottom: 40px;
}
.entry:last-child {
  margin-bottom: 0;
}
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.entry-head-sub {
  margin-top: 20px;
}
.entry h3 {
  font-size: 1.15rem;
  color: var(--navy);
}
.entry-role {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
.entry ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.entry li {
  margin-bottom: 8px;
  color: var(--text);
}
.entry li:last-child {
  margin-bottom: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-block h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text);
}

/* Contact */
.contact-section {
  text-align: left;
}
.contact-copy {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}
.contact-section .hero-actions .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.contact-section .hero-actions .btn-outline:hover {
  background: rgba(10, 37, 64, 0.06);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .entry-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry-meta {
    align-items: flex-start;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
