:root {
  --paper: #121212;
  --ink: #ebe9e4;
  --soft: #a8a6a0;
  --faint: #76746f;
  --rule: #282826;
  --code: #1b1b1a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 40px 0 0;
  font: 14px/1.4 var(--sans);
  color: var(--soft);
}

.masthead a {
  text-decoration: none;
}

.masthead a:hover {
  color: var(--ink);
}

.masthead nav {
  display: flex;
  gap: 22px;
}

.name {
  color: var(--ink);
  font-weight: 500;
}

.intro {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.intro h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.intro p {
  max-width: 600px;
  color: var(--soft);
  margin: 0;
}

.section {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.section > * {
  min-width: 0;
}

.section > h2 {
  font: 500 13px/1.6 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 4px 0 0;
}

.item + .item {
  margin-top: 32px;
}

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

.item h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.item .org {
  color: var(--soft);
  margin: 2px 0 0;
}

.date {
  font: 14px/1.4 var(--sans);
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.item p,
.item ul {
  margin: 10px 0 0;
}

.item ul {
  padding-left: 20px;
}

.item li + li {
  margin-top: 6px;
}

.stack {
  font: 14px/1.5 var(--sans);
  color: var(--faint);
  margin-top: 6px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 20px;
}

.facts dt {
  color: var(--soft);
}

.facts dd {
  margin: 0;
}

.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain li + li {
  margin-top: 6px;
}

.colophon {
  padding: 40px 0 64px;
  font: 14px/1.5 var(--sans);
  color: var(--faint);
}

/* Project page */

.figure {
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.figure figcaption {
  font: 14px/1.5 var(--sans);
  color: var(--faint);
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tr:first-child td {
  padding-top: 0;
}

td:first-child {
  white-space: nowrap;
  padding-right: 24px;
  font: 15px/1.6 var(--mono);
}

pre {
  margin: 16px 0;
  background: var(--code);
  padding: 18px 20px;
  overflow-x: auto;
  font: 14px/1.7 var(--mono);
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .masthead {
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
  }

  .intro {
    padding: 56px 0 48px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .item-head {
    flex-direction: column;
    gap: 2px;
  }

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

  .facts dd {
    margin-bottom: 10px;
  }

  td:first-child {
    white-space: normal;
  }
}

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

.shots img,
.split img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.split {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: start;
}

code {
  font: 0.85em var(--mono);
  background: var(--code);
  padding: 2px 5px;
}

@media (max-width: 640px) {
  .shots {
    gap: 8px;
  }

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

  .split img {
    max-width: 240px;
  }
}
