:root {
  --paper: #f5f2e8;
  --ink: #15130f;
  --muted: #4c473d;
  --line: #15130f;
  --panel: #fffdf4;
  --accent: #f5c542;
  --accent-2: #da4f35;
  --accent-3: #2f7d68;
  --shadow: 5px 5px 0 var(--ink);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 19, 15, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(21, 19, 15, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-2);
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(245, 242, 232, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(10px);
}

.wordmark,
.header-link,
.site-nav a,
.button,
.filter-button,
.project-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 820;
  text-decoration: none;
}

.wordmark {
  width: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.header-link {
  padding: 9px 12px;
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
  padding: 62px 0 42px;
  min-height: auto;
}

.eyebrow,
.section-kicker,
.date,
.tag,
.project-meta,
.panel-label,
.project-type,
footer {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(61px, 9.5vw, 125px);
  line-height: 0.86;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 .last-name {
  margin-left: 0.11em;
}

.name-alias {
  margin: -8px 0 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 620;
  line-height: 1.38;
}

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

.button {
  padding: 10px 15px;
  border-radius: 0;
}

.button.primary,
.filter-button.is-active {
  background: var(--accent);
}

.hero-panel {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card {
  overflow: hidden;
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
}

.panel-label {
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.profile-facts {
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px 14px;
  border-bottom: 2px solid var(--line);
}

.profile-facts div:last-child {
  border-bottom: 0;
}

.profile-facts dt {
  color: var(--muted);
  font-weight: 820;
}

.profile-facts dd {
  margin: 0;
  font-weight: 720;
  line-height: 1.28;
}

.impact-strip {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
}

.impact-strip .section-kicker {
  color: #c9c2ac;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--paper);
  border: 2px solid var(--paper);
}

.impact-grid article {
  min-height: 168px;
  padding: 18px;
  background: var(--ink);
}

.impact-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 42px;
  line-height: 0.9;
}

.impact-grid span {
  color: #f0ead8;
  line-height: 1.32;
}

.projects-section,
.experience-section,
.contact-section {
  padding: 64px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.42;
}

.project-tools {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 720;
  outline: none;
}

.search-box input:focus {
  background: #ffffff;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 46px;
  padding: 9px 12px;
  cursor: pointer;
}

.project-count {
  min-height: 24px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

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

.open-source-grid {
  margin-bottom: 58px;
}

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-card.is-featured {
  grid-column: span 2;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 2px solid var(--line);
  background: #fff8d6;
}

.project-type,
.project-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-body p {
  color: var(--muted);
  font-weight: 620;
  line-height: 1.42;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.tag {
  border: 2px solid var(--line);
  background: #f5f2e8;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.project-link {
  min-height: 38px;
  padding: 8px 12px;
}

.timeline {
  border-top: 2px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 2px solid var(--line);
}

.date {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.timeline p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 620;
  line-height: 1.45;
}

.contact-section {
  border-top: 2px solid var(--line);
}

.contact-section h2 {
  max-width: 900px;
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid a {
  min-height: 62px;
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
  font-weight: 820;
  text-decoration: none;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-link {
    display: none;
  }

  .site-nav {
    justify-content: end;
    overflow-x: auto;
  }

  .hero,
  .section-heading,
  .project-tools {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

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

  .project-card.is-featured {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 34px 34px;
  }

  .site-header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  .site-nav a {
    min-height: 36px;
    padding: 7px 9px;
    box-shadow: none;
  }

  .wordmark {
    min-height: 38px;
    width: 38px;
    box-shadow: none;
  }

  .section-shell {
    width: min(calc(100% - 26px), var(--max));
  }

  h1 {
    font-size: clamp(42px, 14.25vw, 72px);
  }

  h1 .last-name {
    margin-left: 0.08em;
  }

  .impact-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid article {
    min-height: auto;
  }

  .timeline article,
  .profile-facts div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  footer {
    width: min(calc(100% - 26px), var(--max));
    flex-direction: column;
  }
}
