:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #d9e0e7;
  --panel: #ffffff;
  --soft: #f3f6f8;
  --navy: #102a43;
  --teal: #0f766e;
  --gold: #b7791f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-links a,
.button {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.hero {
  color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(16, 42, 67, 0.96) 0%, rgba(16, 42, 67, 0.86) 54%, rgba(15, 118, 110, 0.58) 100%),
    url("../images/Delicate-Arch.jpg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, contain;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  min-height: 520px;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 6vw, 72px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ae6dc;
}

.hero-title {
  max-width: 780px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--navy);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}

.icon-button {
  width: 46px;
  padding: 0;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  font-size: 1.35rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.profile-panel {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.profile-img {
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  object-fit: cover;
}

.profile-label {
  margin-bottom: 4px;
  color: #9ae6dc;
  font-weight: 800;
}

.profile-summary {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.content-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 76px);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stats-grid div,
.skill-grid article,
.education-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stats-grid div {
  padding: 20px;
}

.stats-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.stats-grid p,
.education-list p,
.experience-meta p,
.experience-meta span {
  margin-bottom: 0;
  color: var(--muted);
}

.work,
.course {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.experience-list {
  display: grid;
  gap: 18px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.experience-meta p {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
}

.experience-meta span {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-body p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.project-card p {
  color: var(--muted);
}

.project-type {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-link {
  justify-self: start;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--teal);
  outline: none;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid article {
  padding: 22px;
}

.skill-grid ul {
  padding-left: 0;
  list-style: none;
}

.skill-grid li {
  margin-top: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.skill-grid li:first-child {
  border-top: 0;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-list article {
  padding: 20px 22px;
}

.education-list h3 {
  margin-bottom: 4px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--white);
  background: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

footer {
  color: var(--white);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 52px;
  padding-bottom: 52px;
}

footer .section-kicker {
  color: #9ae6dc;
}

footer h2 {
  margin-bottom: 0;
}

.copyright {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.contact-info {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.contact-info a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info a:hover,
.contact-info a:focus-visible {
  color: var(--white);
  outline: none;
}

@media (max-width: 920px) {
  .hero-inner,
  .two-column,
  .experience-card {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner {
    padding-top: 54px;
  }

  .profile-panel {
    grid-template-columns: 74px 1fr;
  }

  .profile-img {
    width: 74px;
    height: 74px;
  }

  .stats-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    padding: 22px;
  }

  .footer-inner {
    display: block;
  }

  .contact-info {
    margin-top: 24px;
  }
}
