:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --background: #090a0c;
  --panel: #17181b;
  --text: #edf1f5;
  --muted: #aaabb0;
  --faint: #81838a;
  --accent: #80baff;
  --line: #303135;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.page-shell {
  width: min(100% - 48px, 820px);
  margin-inline: auto;
}

.intro {
  padding: 68px 0 28px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.summary {
  max-width: 650px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.social-links a {
  font-weight: 650;
}

.social-links span,
.project-entry h3 span {
  color: var(--accent);
  font-size: 0.85em;
}

.content-section {
  padding: 25px 0 24px;
  border-top: 1px solid var(--line);
}

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

.section-heading .eyebrow {
  margin-bottom: 4px;
}

h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.experience-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 19px;
  padding: 0 0 27px;
}

.experience-entry + .experience-entry {
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.company-logo {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid #42454b;
  border-radius: 12px;
  background: #252629;
  object-fit: cover;
  padding: 0;
}

.education-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #42454b;
  border-radius: 12px;
  background: #252629;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

h3 {
  margin-bottom: 2px;
  font-size: 1.1rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.organization {
  margin-bottom: 0;
  color: var(--muted);
}

.date,
.location {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.entry-description {
  max-width: 680px;
  margin: 15px 0 8px;
  color: var(--muted);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 4px 10px;
  border: 1px solid #3d4652;
  border-radius: 999px;
  background: #24272d;
  color: #bed9ff;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.55;
}

.projects-section {
  padding-bottom: 28px;
}

.project-entry {
  padding: 0 0 27px;
}

.project-entry + .project-entry {
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.project-entry .entry-heading {
  align-items: center;
}

.project-entry .entry-description {
  margin-top: 10px;
}

.project-entry .skills {
  margin-top: 12px;
}

.footer {
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 36px, 820px);
  }

  .intro {
    padding-top: 48px;
    padding-bottom: 22px;
    justify-content: center;
  }

  .content-section {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .experience-entry {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .company-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .education-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .entry-heading {
    display: block;
  }

  .entry-heading .date {
    margin-top: 4px;
  }

  .project-entry .entry-heading {
    display: flex;
    align-items: flex-start;
  }

  .project-entry .date {
    margin-top: 2px;
  }
}

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