/* --------------------------------------------------------------------------
   Layout & tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #f6f4f0;
  --bg-alt: #eeebe5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent: #1e4d6b;
  --accent-hover: #163a52;
  --border: rgba(26, 26, 26, 0.12);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 44rem;
  --header-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: min(100% - 2rem, calc(var(--max) + 4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 0.5rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 52rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.hero {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38ch;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 650;
}

h4.subheading {
  margin: 1rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.coursework {
  margin: 0;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Cards & lists
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card--plain {
  box-shadow: none;
}

.card__header h3 {
  margin-bottom: 0.2rem;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.card li {
  margin-bottom: 0.4rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.contact-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}
