:root {
  --ink: #171717;
  --muted: #6a6a6a;
  --line: #cfcfcf;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --accent: #101010;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
  padding: 76px 0 64px;
  border-bottom: 1px dotted var(--line);
}

.eyebrow,
.section-title span,
.pid,
.example {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  color: var(--muted);
  margin: 0 0 8px;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.07em;
  margin-bottom: 30px;
  font-weight: 800;
}
.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  font-size: 1.05rem;
  color: #333;
}

.button-link, .project-card a {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 40px;
  border: 2px solid var(--accent);
  color: White;
  background-color: #0000AE;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .0s ease, color .0s ease;
}
.button-link:hover, .project-card a:hover {

  background-color: #FFFFFF;
  border: 2px solid Black;
  color: Black;
}

.portrait-wrap {
  margin: 0;
  justify-self: center;
}
.portrait-wrap img {
  width: 325px;
  height: 313px;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.02);
}

section { padding: 60px 0; }
.section-title { margin-bottom: 26px; }
.section-title h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
  margin: 0;
}
.section-title.compact h2 { font-size: 2rem; }
.section-title.centered { text-align: center; }

.skill-table {
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
}
.table-head, .skill-row {
  display: grid;
  grid-template-columns: 210px 80px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.table-head {
  padding: 16px 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.skill-row {
  padding: 21px 0;
  border-top: 1px solid #dedede;
}
.skill-row h3 {
  font-size: .94rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 0;
}
.skill-row strong {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
}
.skill-row p { margin: 0; color: #333; }

.bio-copy {
  columns: 2 360px;
  column-gap: 48px;
  margin-top: 34px;
  color: #333;
}
.bio-copy p { break-inside: avoid; margin-bottom: 16px; }

.resume-grid-section { border-top: 1px dotted var(--line); }
.mini-grid {
  display: grid;
  gap: 22px;
}
.mini-grid.three { grid-template-columns: repeat(3, 1fr); }
.mini-grid div, .tag-cloud span {
  border-top: 1px solid #ddd;
  padding-top: 16px;
}
.mini-grid h4 {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--muted);
}
.mini-grid p { font-weight: 700; text-transform: uppercase; font-size: .94rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-cloud span {
  background: var(--soft);
  padding: 12px 14px;
  font-size: .86rem;
}

.portfolio {
  border-top: 1px dotted var(--line);
  padding-bottom: 90px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.project-card {
  border: 1px solid #d9d9d9;
  background: #fff;
}
.project-card img {
  width: 100%;
  aspect-ratio: 653 / 382;
  display: block;
  object-fit: cover;
  background: #000;
}
.project-body { padding: 26px; }
.project-body h3 {
  font-size: 1.55rem;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.project-body p { color: #363636; }
.project-body hr {
  border: 0;
  border-top: 1px solid #dedede;
  margin: 24px 0 16px;
}
.example { margin-bottom: 0; }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 24px, 680px); }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; }
  .portrait-wrap { justify-self: start; }
  .table-head { display: none; }
  .skill-row { grid-template-columns: 1fr; gap: 8px; }
  .skill-row strong::before { content: "Years: "; font-size: .85rem; color: var(--muted); font-weight: 400; }
  .mini-grid.three, .split, .project-grid { grid-template-columns: 1fr; }
  .bio-copy { columns: 1; }
}

@media (max-width: 420px) {
  h1 { font-size: 3.6rem; }
  .portrait-wrap img { width: 100%; height: auto; }
  section { padding: 42px 0; }
}
