:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b3a;
  background: #f2f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #182438;
  --muted: #647386;
  --accent: #0f766e;
  --accent-soft: #e4f3f0;
  --line: #e2e8ee;
  --card-shadow: 0 10px 30px rgb(24 36 56 / 5%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 10% 0%, rgb(220 238 235 / 50%), transparent 32rem),
    #f2f5f7;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0b5752;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgb(226 232 238 / 88%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 4px 18px rgb(24 36 56 / 3%);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  width: min(100% - 3rem, 70rem);
  min-height: 4.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

nav a {
  padding: 0.48rem 0.64rem;
  border-radius: 0.55rem;
  color: #4d5c6e;
  font-size: 0.82rem;
  font-weight: 580;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.layout-shell {
  width: min(100% - 3rem, 70rem);
  margin: 2.25rem auto 4rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid #253854;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(ellipse at 88% 12%, rgb(68 154 144 / 38%), transparent 24rem),
    linear-gradient(122deg, #17263c 0%, #203650 62%, #1b4950 100%);
  box-shadow: 0 18px 44px rgb(24 36 56 / 13%);
}

.hero-panel::after {
  position: absolute;
  right: -4rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgb(255 255 255 / 3%), 0 0 0 5rem rgb(255 255 255 / 2%);
  content: "";
  pointer-events: none;
}

.hero-panel__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel .eyebrow {
  color: #8dd3c6;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4 {
  margin-bottom: 0.55rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.headline {
  max-width: 44rem;
  margin: 0;
  color: #d6e3ed;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.1rem;
}

.resume-card {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--card-shadow);
  scroll-margin-top: 6rem;
}

.resume-card--summary,
.resume-card--wide {
  grid-column: 1 / -1;
}

.resume-card--summary {
  padding-bottom: 1.6rem;
}

.summary-copy {
  max-width: 62rem;
  margin-bottom: 0;
  color: #435267;
  font-size: 1.03rem;
}

.timeline-entry {
  position: relative;
  padding: 0.15rem 0 1.65rem 1.2rem;
  border-left: 2px solid #d9e9e6;
}

.timeline-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-entry::before {
  position: absolute;
  top: 0.34rem;
  left: -0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #abd0ca;
  content: "";
}

.timeline-entry__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.entry-organization {
  margin-bottom: 0.1rem;
  color: #3c4d61;
  font-weight: 620;
}

.entry-location {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.entry-date {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 700;
  text-align: right;
}

.detail-list {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: #46566a;
  font-size: 0.92rem;
}

.detail-list li + li {
  margin-top: 0.45rem;
}

.education-entry h3 {
  max-width: 32rem;
}

.education-entry .entry-organization {
  margin-top: 0.75rem;
}

.gpa {
  display: inline-block;
  margin: 0.25rem 0 1.2rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99rem;
  color: #155e57;
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.subheading {
  margin-top: 0.2rem;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.9rem;
  margin: 0;
  padding-left: 1rem;
  color: #526176;
  font-size: 0.85rem;
}

.tag-list,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid #d6e8e4;
  border-radius: 99rem;
  color: #25564f;
  background: #f0f8f6;
  font-size: 0.83rem;
  font-weight: 620;
}

.tag--credential {
  border-color: #e2e7ed;
  color: #3a4a5e;
  background: #f7f9fb;
}

.tag--credential span {
  color: #586678;
  font-size: 0.75rem;
}

.leadership-entry {
  padding-left: 0.9rem;
  border-left: 3px solid #d4e9e4;
}

.leadership-entry .entry-date {
  display: inline-block;
  text-align: left;
}

.project-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e3eaf0;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #fff, #f8fbfc);
}

.project-card + .project-card {
  margin-top: 0.75rem;
}

.project-card p {
  margin-bottom: 0;
  color: #526176;
  font-size: 0.9rem;
}

.project-card a {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.empty-state {
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed #cbd7e0;
  border-radius: 0.7rem;
  color: #647386;
  background: #f8fafb;
  font-size: 0.9rem;
}

.contact-panel {
  border-color: #d4e7e2;
  background: linear-gradient(145deg, #fff, #f5faf9);
}

.contact-list li {
  padding: 0.52rem 0.8rem;
  border: 1px solid #dce9e6;
  border-radius: 0.65rem;
  color: #405267;
  background: #fff;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.contact-list a {
  font-weight: 650;
  text-decoration: none;
}

footer {
  padding: 1.5rem 1rem 2rem;
  color: #586678;
  font-size: 0.82rem;
  text-align: center;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid #55a89d;
  outline-offset: 3px;
}

@media (max-width: 52rem) {
  .site-header__inner {
    width: min(100% - 2rem, 70rem);
    min-height: auto;
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  nav {
    justify-content: flex-start;
    margin: 0 -0.5rem;
  }

  nav a {
    padding: 0.38rem 0.5rem;
    font-size: 0.78rem;
  }

  .layout-shell {
    width: min(100% - 2rem, 70rem);
    margin-top: 1.25rem;
  }

  .resume-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .resume-card--summary,
  .resume-card--wide {
    grid-column: auto;
  }

  .hero-panel {
    border-radius: 1rem;
  }

  .timeline-entry__heading {
    flex-direction: column;
    gap: 0.2rem;
  }

  .entry-date {
    text-align: left;
  }
}

@media (max-width: 36rem) {
  .site-header__inner,
  .layout-shell {
    width: min(100% - 1.25rem, 70rem);
  }

  .hero-panel {
    padding: 2rem 1.35rem;
  }

  .resume-card {
    padding: 1.25rem;
    border-radius: 0.85rem;
  }

  .course-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
