:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #53606b;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --line: #d8dfdd;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #d14f3f;
  --blue: #274c77;
  --gold: #b8892d;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
footer,
.hero,
.summary-band,
.content-section,
.contact-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  font-size: 1rem;
  font-weight: 900;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

nav a:hover,
.repo-card a:hover,
.contact-links a:hover {
  color: var(--teal-dark);
}

.hero {
  min-height: calc(100vh - 126px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 56px;
  padding: 38px 0 78px;
}

.hero-copy {
  position: relative;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -72px auto auto 52%;
  width: min(34vw, 330px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 22%, transparent);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 4.8rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.24rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.profile-panel {
  display: grid;
  gap: 26px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 70px rgb(17 20 24 / 12%);
}

.profile-panel img {
  display: block;
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--surface-soft);
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dt {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.summary-band div {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
}

.summary-band strong {
  color: var(--blue);
  font-size: 1.15rem;
}

.summary-band span,
.work-grid p,
.repo-card p {
  color: var(--muted);
}

.content-section {
  padding: 78px 0;
}

.content-section.alt {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.work-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--paper);
}

.work-grid article:nth-child(2) {
  background: var(--surface);
}

.work-grid article:nth-child(3) {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}

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

.repo-card {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.repo-card.feature {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  background: color-mix(in srgb, var(--teal) 8%, var(--surface));
}

.repo-meta {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repo-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 70px 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 16px;
  font-weight: 900;
}

footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .summary-band,
  .work-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 30px;
  }

  h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  footer,
  .hero,
  .summary-band,
  .content-section,
  .contact-section {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  footer,
  .section-heading,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .button,
  .contact-links,
  .contact-links a {
    width: 100%;
  }

  .contact-links {
    justify-content: stretch;
  }
}
