:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --ink: #171817;
  --muted: #5e615d;
  --rule: #c8cac3;
  --accent: #343434;
  --measure: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, footer {
  width: min(calc(100% - 3rem), var(--measure));
  margin-inline: auto;
}
.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}
.name {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-weight: 680;
  text-decoration: none;
  letter-spacing: -.02em;
}
.name span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .875rem; }
nav a[aria-current="page"] { color: var(--accent); text-decoration-thickness: 2px; }

.introduction {
  display: grid;
  align-content: center;
  padding-block: clamp(6rem, 12vw, 10rem);
}
.eyebrow, .section > h2, .project-index, .project-type {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow, .project-index { color: var(--accent); }
h1 {
  max-width: 20ch;
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  font-size: clamp(2.75rem, 5.5vw, 4.85rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.01;
  text-wrap: balance;
}
.summary {
  max-width: 47rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}
.text-link { display: inline-block; margin-top: 2rem; font-size: .9rem; font-weight: 600; }
.text-link::after { content: " ↗"; color: var(--accent); }
.text-link.internal::after { content: " →"; }

.section {
  display: grid;
  grid-template-columns: minmax(10rem, .7fr) minmax(0, 2fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}
.index-list { margin: 0; }
.index-list > div {
  display: grid;
  grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.5fr);
  gap: 2rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.index-list > div + div { padding-top: 2rem; }
.index-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
dt { font-weight: 650; }
dd { max-width: 39rem; margin: 0; color: var(--muted); }

.statement { max-width: 49rem; }
.statement p {
  margin: 0;
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -.03em;
}
.statement p + p {
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: 0;
}

.work-list { border-top: 1px solid var(--rule); }
.work-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(10rem, .72fr) minmax(0, 1.5fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2.1rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.work-row:hover .work-title { color: var(--accent); }
.work-title { font-weight: 650; transition: color .15s ease; }
.work-description { color: var(--muted); }
.work-arrow { color: var(--accent); }

.page-introduction { padding-block: clamp(5rem, 9vw, 8rem); }
.page-introduction h1 { max-width: 17ch; }
.project-list { border-top: 1px solid var(--rule); }
.project {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.project-body { max-width: 54rem; }
.project-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; }
.project h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 450;
  letter-spacing: -.035em;
}
.project-type { color: var(--muted); white-space: nowrap; }
.project-lede { margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08rem; }
.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
}
.project-details dt { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.project-details dd { margin-top: .45rem; font-size: .9rem; }
.project-actions { display: flex; gap: 1.5rem; margin-top: 2rem; font-size: .9rem; font-weight: 600; }

.contact-line { max-width: 49rem; }
.contact-line p { margin: 0 0 2rem; color: var(--muted); font-size: 1.15rem; }
.contact-line a { font-size: clamp(1.3rem, 2.7vw, 2rem); letter-spacing: -.025em; }

footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: .875rem;
}
footer p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }

@media (max-width: 52rem) {
  .section, .index-list > div, .work-row { grid-template-columns: 1fr; }
  .section { gap: 3.5rem; }
  .index-list > div { gap: .5rem; }
  .work-row { gap: .5rem; }
  .work-arrow { display: none; }
  .project-details { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 46rem) {
  .site-header, main, footer { width: min(calc(100% - 2rem), var(--measure)); }
  .site-header { min-height: 4.75rem; }
  nav { gap: 1rem; }
  nav a:not(:last-child) { display: none; }
  .introduction { padding-block: 5rem; }
  h1 { margin-block: 2.25rem; font-size: clamp(2.55rem, 12vw, 3.5rem); }
  .project { grid-template-columns: 1fr; gap: 1rem; }
  .project-heading { display: block; }
  .project-type { display: block; margin-top: .75rem; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #aaa; }
  .site-header nav, .skip-link { display: none; }
  .section, .project { break-inside: avoid; }
}
