:root {
  --ink: #111;
  --quiet: #8a8a8a;
  --line: #e6e6e6;
  --paper: #fff;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0 var(--gutter);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text a { text-decoration: underline; text-decoration-color: var(--quiet); text-underline-offset: 3px; }
.text a:hover { text-decoration-color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }

header.site, footer.site {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0;
}

header.site .name { font-weight: 700; }
header.site nav { display: flex; gap: 1.25rem; }

footer.site {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

main { max-width: 1100px; }

.intro {
  max-width: var(--measure);
  margin: 64px 0 80px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
}

.index { margin-bottom: 56px; }

.index h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--quiet);
}

.index ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.index li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.index li a:hover { text-decoration: none; }
.index li a:hover .title { text-decoration: underline; text-underline-offset: 3px; }
.index .year { color: var(--quiet); white-space: nowrap; font-variant-numeric: tabular-nums; }
.index .ext { color: var(--quiet); }

.work h1 {
  margin: 56px 0 4px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.work .meta { margin: 0 0 24px; color: var(--quiet); }
.work .sub { margin: 0 0 24px; font-style: italic; }
.work .text { max-width: var(--measure); }
.work .text p { margin: 0 0 1em; }

.media { display: grid; gap: 12px; margin-top: 40px; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stack { display: grid; gap: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 56px;
  color: var(--quiet);
}

.pager a { max-width: 48%; overflow-wrap: anywhere; }
.pager a:last-child { text-align: right; }
.pager a:hover { color: var(--ink); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gutter);
  margin-top: 56px;
}

.about .text { max-width: var(--measure); }
.about .text p:first-child { margin-top: 0; }
.about .quiet { color: var(--quiet); }

@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
}
