:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d0d7de;
  --link: #0969da;
  --soft: #f6f8fa;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-150%);
  border: 1px solid var(--text);
  background: var(--background);
  color: var(--text);
  padding: 8px 10px;
}

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

.container {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(720px, calc(100% - 40px));
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

main {
  min-height: calc(100vh - 150px);
}

.intro,
.page-header {
  padding: 56px 0 34px;
}

.page-header {
  border-bottom: 1px solid var(--line);
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  line-height: 1.25;
}

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

.lede {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta,
.project-meta,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-row,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
}

.button-link {
  display: inline-block;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: var(--text);
  color: var(--background);
  padding: 8px 12px;
  font-weight: 600;
  text-decoration: none;
}

.button-link:hover {
  background: var(--background);
  color: var(--text);
}

.section {
  padding: 36px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

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

.entry-header h3,
.entry-organization,
.entry-meta {
  margin-bottom: 0;
}

.entry-organization {
  color: var(--muted);
}

.entry-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.resume-bullets {
  max-width: 780px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.resume-bullets li {
  color: #30363d;
}

.resume-bullets li + li {
  margin-top: 7px;
}

.skills-grid {
  margin: 0;
  border-top: 1px solid var(--line);
}

.skills-grid div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.skills-grid dt {
  font-weight: 700;
}

.skills-grid dd {
  margin: 0;
  color: #30363d;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

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

.project h3 {
  margin-bottom: 0;
}

.project > p:not(.project-links),
.project-summary {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.project-links {
  margin-top: 12px;
  font-size: 0.92rem;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  max-width: 720px;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 36px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #30363d;
}

.prose ul {
  padding-left: 22px;
}

.note {
  border-left: 3px solid var(--line);
  padding-left: 16px;
}

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table caption {
  padding: 0 0 8px;
  font-weight: 600;
  text-align: left;
}

.results-table th,
.results-table td {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.results-table thead th {
  background: var(--soft);
  font-size: 0.82rem;
}

.results-table tbody th {
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px 12px 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.facts dd {
  margin: 2px 0 0;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.pdf-preview {
  width: 100%;
  height: 820px;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 900px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .site-nav {
    gap: 12px;
  }

  .intro,
  .page-header {
    padding: 38px 0 26px;
  }

  .project-header,
  .entry-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .skills-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .pdf-preview {
    height: 620px;
  }
}

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