:root {
  --paper: #f7f6f1;
  --ink: #151515;
  --soft: #6f6f68;
  --rule: #d8d6ce;
  --blue: #1f5d78;
  --green: #6f8468;
  --red: #bc493d;
  --acid: #d7d26b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.42;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(12px);
}

.site-title,
.primary-nav a,
.kicker,
figcaption,
.footer,
.project-link span,
.project-link em {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title {
  font-weight: 700;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.primary-nav a,
.footer a {
  color: var(--soft);
}

.primary-nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.opening {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  min-height: calc(100svh - 45px);
  border-bottom: 1px solid var(--rule);
}

.opening-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 20px 18px;
  border-right: 1px solid var(--rule);
}

.kicker {
  margin: 0;
  color: var(--soft);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 94px);
  font-weight: 400;
  line-height: 0.96;
}

.opening-image {
  display: grid;
  min-width: 0;
  margin: 0;
  grid-template-rows: 1fr auto;
}

.opening-image img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

figcaption {
  padding: 10px 18px 12px;
  color: var(--soft);
  border-top: 1px solid var(--rule);
}

.index-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.index-row p {
  min-height: 112px;
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
}

.index-row p:last-child {
  border-right: 0;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}

.project-aside,
.project-body {
  padding: clamp(18px, 3vw, 34px) 18px;
}

.project-aside {
  display: grid;
  align-content: start;
  gap: 26px;
  border-right: 1px solid var(--rule);
}

.project-aside h2,
.project-list h2,
.about h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.5vw, 74px);
  font-weight: 400;
  line-height: 0.98;
}

.project-aside p:last-child {
  color: var(--soft);
}

.project-body {
  display: grid;
  max-width: 980px;
  gap: 18px;
  font-size: clamp(18px, 2vw, 26px);
}

.project-body .lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 54px);
  line-height: 1.05;
}

.image-run {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}

.image-run figure,
.essay-block figure {
  margin: 0;
  background: var(--paper);
}

.image-run img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-list {
  display: grid;
  border-bottom: 1px solid var(--rule);
}

.project-list h2 {
  padding: 26px 18px 36px;
  border-bottom: 1px solid var(--rule);
}

.project-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 0.3fr);
  gap: 16px;
  align-items: baseline;
  padding: 17px 18px;
  border-bottom: 1px solid var(--rule);
}

.project-link:last-child {
  border-bottom: 0;
}

.project-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.6vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.project-link span,
.project-link em {
  color: var(--soft);
  font-style: normal;
}

.project-link:hover {
  background: #eeece5;
}

.essay-block {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  border-bottom: 1px solid var(--rule);
}

.essay-block img {
  min-height: 520px;
  object-fit: cover;
}

.essay-block > div {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 18px;
  border-left: 1px solid var(--rule);
  font-size: clamp(17px, 1.8vw, 22px);
}

.about {
  padding: clamp(48px, 8vw, 96px) 18px;
  border-bottom: 1px solid var(--rule);
}

.about h2 {
  max-width: 1100px;
  margin-top: 22px;
}

.about-columns {
  display: grid;
  max-width: 900px;
  margin-top: 42px;
  margin-left: auto;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--soft);
  font-size: 18px;
}

.contact {
  display: grid;
  min-height: 360px;
  padding: 18px;
  align-content: space-between;
  background: var(--ink);
  color: var(--paper);
}

.contact a {
  width: fit-content;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 96px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

@media (max-width: 820px) {
  .masthead,
  .opening,
  .index-row,
  .project-feature,
  .essay-block,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .masthead {
    gap: 12px;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .opening-copy {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .opening-image img {
    min-height: 360px;
  }

  .index-row p,
  .project-aside,
  .essay-block > div {
    border-right: 0;
    border-left: 0;
  }

  .index-row p,
  .project-aside {
    border-bottom: 1px solid var(--rule);
  }

  .project-link {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-link em {
    grid-column: 2;
  }

  .essay-block img {
    min-height: 360px;
  }
}
