:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --paper: #ffffff;
  --paper-soft: #f8fafb;
  --ink: #101418;
  --muted: #58616b;
  --line: #dce3e8;
  --accent: #0f766e;
  --accent-2: #1d4ed8;
  --accent-soft: #e4f4f1;
  --shadow: 0 20px 60px rgba(18, 28, 38, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.resume-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 248, 0.92);
}

.top-nav,
.resume-shell,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 760;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.resume-shell {
  padding: 42px 0 72px;
}

.resume-cover,
.resume-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.resume-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
}

.eyebrow,
.card-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.summary {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.resume-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.resume-card div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 1rem;
}

.resume-card strong {
  display: block;
  line-height: 1.25;
}

.resume-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  margin-top: 22px;
}

.resume-sidebar {
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 24px;
}

.side-section + .side-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.side-section h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.skill-list,
.role-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list {
  display: grid;
  gap: 0.85rem;
}

.skill-list li {
  color: var(--muted);
}

.skill-list span {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.impact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.impact-list div {
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
}

.impact-list dt {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.impact-list dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.side-section p {
  margin: 0;
  color: var(--muted);
}

.resume-main {
  padding: 28px;
}

.resume-section + .resume-section {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
}

.role {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.role:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.role-meta {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.role-meta span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.role-meta strong {
  line-height: 1.2;
}

.role-body ul {
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
}

.role-body li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.role-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-list,
.repo-list {
  display: grid;
  gap: 12px;
}

.project-list article,
.repo-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 1rem;
}

.project-list p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.repo-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repo-list a {
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
}

.repo-list a:hover {
  border-color: rgba(15, 118, 110, 0.55);
}

.repo-list span {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.repo-list em {
  color: var(--muted);
  font-style: normal;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 36px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .resume-cover,
  .resume-grid,
  .role,
  .repo-list {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .top-nav,
  .resume-shell,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .resume-shell {
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .resume-cover,
  .resume-sidebar,
  .resume-main {
    padding: 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
