:root {
  --paper: #faf8f4;
  --ink: #1b1a17;
  --body: #3d3a34;
  --dim: #6f6a61;
  --muted: #8a857c;
  --accent: #2f4bd8;
  --accent-dark: #1a30a6;
  --rule: #e2ded5;
  --tint: #f2eee6;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

img { max-width: 100%; }

.page {
  min-height: 100vh;
  background: var(--paper);
  padding: 48px 40px 96px;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
}

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

.topbar-links {
  display: flex;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-link--accent { color: var(--accent); }

.nav-link--accent:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- lede ---------- */

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 72px 0 0;
  max-width: 20ch;
  text-wrap: pretty;
}

.lede em {
  font-style: italic;
  color: var(--accent);
}

.intro {
  margin: 30px 0 0;
  font-size: 20px;
  line-height: 1.55;
  max-width: 58ch;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- section chrome ---------- */

.section-rule,
.section-label {
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-rule {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.section-label { padding-top: 4px; }

.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}

/* ---------- currently building ---------- */

.building { margin-top: 96px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  margin-top: 1px;
}

.card {
  background: var(--paper);
  padding: 36px 40px 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .18s ease;
}

.card:hover {
  background: var(--tint);
  color: inherit;
}

.card-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.5px;
}

.card-body {
  color: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

.card-link {
  color: var(--accent);
  margin-top: 8px;
  font-size: 15px;
}

/* ---------- work ---------- */

.work { margin-top: 104px; }

.work-list {
  display: flex;
  flex-direction: column;
}

.role {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.role:last-child { border-bottom: 1px solid var(--rule); }

.role-org {
  font-family: var(--serif);
  font-size: 26px;
  width: 130px;
  flex: none;
}

.role-main {
  flex: 1;
  min-width: 0;
}

.role-title {
  display: block;
  color: var(--ink);
}

.role-detail {
  display: block;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 4px;
  max-width: 56ch;
}

.role-years {
  color: var(--muted);
  font-size: 14px;
  width: 96px;
  flex: none;
  text-align: right;
}

/* ---------- archive ---------- */

.archive { margin-top: 88px; }

.archive-list {
  display: flex;
  gap: 28px 44px;
  flex-wrap: wrap;
}

.archive-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.archive-item:hover { color: var(--accent); }

.archive-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex: none;
}

.archive-name {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
}

.archive-meta {
  color: var(--muted);
  font-size: 13px;
}

.role-link {
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.role-link:hover { border-bottom-color: var(--accent-dark); }

/* ---------- project pages ---------- */

.project-head {
  margin-top: 72px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.project-icon {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  flex: none;
}

.project-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -1.4px;
  margin: 0;
}

.project-body {
  margin-top: 40px;
  max-width: 62ch;
}

.project-body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.project-body p:last-child { margin-bottom: 0; }

.project-note {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 58ch;
}

.project-section { margin-top: 72px; }

.subsection-lede {
  margin: 20px 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
}

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

.shots--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* a lone landscape shot shouldn't be stranded in one narrow cell */
.shots--wide img {
  max-width: 700px;
  justify-self: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}

.linklist {
  display: flex;
  flex-direction: column;
}

.linklist > a {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.linklist > a:last-child { border-bottom: 1px solid var(--rule); }

.linklist-src {
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.linklist > a:hover .linklist-src { color: var(--accent-dark); }

.linklist-meta {
  color: var(--muted);
  font-size: 13px;
  flex: none;
}

/* ---------- colophon ---------- */

.colophon {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- narrow screens ---------- */

@media screen and (max-width: 820px) {
  .page { padding: 32px 22px 72px; }

  .lede {
    margin-top: 48px;
    letter-spacing: -1px;
  }

  .intro { font-size: 18px; }

  .building { margin-top: 64px; }

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

  .card { padding: 28px 26px 32px; }

  .work { margin-top: 72px; }

  .archive { margin-top: 64px; }

  .row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .role {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .role-org {
    width: auto;
    grid-column: 1;
  }

  .role-years {
    width: auto;
    grid-column: 2;
    grid-row: 1;
  }

  .role-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .archive-list { gap: 24px; }

  .project-head {
    margin-top: 48px;
    gap: 18px;
  }

  .project-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .project-section { margin-top: 56px; }

  .shots { gap: 12px; }

  .colophon { margin-top: 64px; }
}
