:root {
  --paper: #000;
  --ink: #f6f6f6;
  --muted: rgba(246, 246, 246, .72);
  --line: rgba(246, 246, 246, .38);
  --gutter: 3vw;
  --mobile-gutter: 6vw;
  --max: 1500px;
  --heading: "ivymode", Georgia, "Times New Roman", serif;
  --body: "athelas-web", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.home) {
  min-height: 100vh;
}

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

a:hover {
  opacity: .66;
}

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

.site-header {
  height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  font-family: var(--heading);
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 600;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 17px;
  line-height: 1;
}

.home .site-nav a:first-child,
.site-nav a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 10px 0;
}

main {
  min-height: 60vh;
}

.home-hero,
.section-block,
.about-layout,
.project-feature,
.project-head,
.project-gallery,
.project-nav,
.review,
.intro,
.hero-photo {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 58.5%) minmax(360px, 1fr);
  gap: clamp(54px, 5.5vw, 90px);
  align-items: start;
  padding-top: 52px;
}

.home-hero-photo {
  margin: 0;
}

.home-hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
}

.home-hero-copy {
  text-align: center;
  padding-top: 4px;
  max-width: 520px;
}

.home-hero-copy h1 {
  font-family: var(--heading);
  font-size: clamp(56px, 4.85vw, 80px);
  font-weight: 600;
  line-height: .96;
  margin: 0 0 40px;
  letter-spacing: 0;
}

.home-hero-copy h1 em {
  font-style: italic;
}

.home-hero-copy h1 strong {
  font-weight: 700;
}

.home-hero-copy p {
  margin: 0 auto 24px;
  color: var(--ink);
  font-size: clamp(16px, 1.22vw, 18px);
  line-height: 1.56;
}

.button-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  max-width: 390px;
  margin: 42px auto 0;
  padding: 18px 28px;
  border: 2px solid var(--line);
  border-radius: 5px;
  font-size: 20px;
  line-height: 1.2;
}

.button-outline:hover {
  opacity: 1;
  border-color: var(--ink);
}

.featured-heading {
  padding-top: clamp(260px, 35vw, 500px);
  padding-bottom: clamp(190px, 25vw, 355px);
}

.section-block > h2,
.featured-heading h2 {
  font-family: var(--heading);
  font-size: clamp(42px, 4.3vw, 60px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
  margin: 0;
}

.section-block {
  padding-bottom: 120px;
}

.section-block.featured-heading {
  padding-top: clamp(260px, 35vw, 500px);
  padding-bottom: clamp(210px, 26.5vw, 375px);
}

.gallery {
  width: 100%;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  cursor: zoom-in;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.home-gallery img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
}

.masonry {
  columns: 3;
  column-gap: 35px;
}

.masonry figure {
  margin: 0 0 35px;
  break-inside: avoid;
}

.portfolio-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 110px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.portfolio-card {
  display: block;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}

.portfolio-card:hover {
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.02);
}

.portfolio-card h3 {
  font-family: var(--heading);
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin: 18px 0 0;
}

.project-links {
  border-top: 1px solid var(--line);
}

.project-links a {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  font-family: var(--heading);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.project-links a::after {
  content: "↗";
  font-size: .65em;
  margin-left: auto;
}

.site-footer {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 62px var(--gutter) 70px;
  display: grid;
  grid-template-columns: minmax(180px, 4fr) minmax(320px, 8fr);
  gap: 35px;
  font-size: 18px;
}

.site-footer strong {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 600;
}

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

.hero-photo img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
}

.intro {
  padding-top: 76px;
  padding-bottom: 94px;
}

.prose {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.66;
}

.prose h1,
.project-head h1,
.review-header h1 {
  font-family: var(--heading);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 38px;
}

.prose p {
  max-width: 760px;
  margin: 0 0 1.25em;
}

.text-link,
.review-copy a {
  border-bottom: 1px solid currentColor;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
  padding-top: 60px;
  padding-bottom: 110px;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
}

.about-layout .prose {
  padding-top: 10px;
}

.project-head {
  padding-top: 55px;
  padding-bottom: 55px;
  text-align: center;
}

.project-gallery {
  padding-bottom: 80px;
}

.project-gallery.no-title {
  padding-top: 55px;
}

.project-nav {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.project-nav a {
  font-size: 20px;
  max-width: 45%;
}

.project-nav a span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
}

.project-nav .next {
  text-align: right;
  margin-left: auto;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  padding-top: 60px;
  padding-bottom: 100px;
}

.project-feature figure {
  margin: 0;
}

.project-feature .prose h1 {
  margin-bottom: 34px;
}

.archive-hero {
  max-width: 1120px;
}

.archive-hero img {
  max-height: 78vh;
  object-fit: contain;
  margin: auto;
}

.archive-gallery figure:first-child {
  display: none;
}

.small-title {
  font-size: clamp(30px, 3vw, 44px) !important;
}

.review {
  max-width: 1040px;
  padding-top: 55px;
  padding-bottom: 70px;
}

.review-header {
  max-width: 800px;
}

.review-meta {
  display: flex;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.review-cover {
  margin: 64px 0 62px;
}

.review-cover img {
  max-height: 700px;
  max-width: min(100%, 620px);
  width: auto;
  margin: auto;
}

.review-copy {
  margin: auto;
  max-width: 760px;
}

.review-copy p {
  max-width: 100%;
}

.review-byline {
  max-width: 760px;
  margin: 38px auto 0;
  font-size: 16px;
}

.review-nav {
  padding-left: 0;
  padding-right: 0;
  margin-top: 72px;
}

.review-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px var(--gutter) 90px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(50px, 8vw, 110px);
}

.review-categories {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.review-categories a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
}

.review-categories span,
.eyebrow,
.review-card-meta,
.review-card-category {
  color: var(--muted);
}

.review-list > h1 {
  font-family: var(--heading);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 50px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 12px;
  margin: 0 0 14px;
}

.review-card {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  position: relative;
}

.review-card h2 {
  font-family: var(--heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin: 5px 0 12px;
}

.review-card-meta,
.review-card-category {
  font-size: 14px;
}

.review-card-category {
  margin-right: 20px;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
}

.not-found {
  padding: 90px var(--gutter);
  max-width: var(--max);
  margin: auto;
}

.lightbox {
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .94);
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .94);
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  right: 24px;
  top: 17px;
  border: 0;
  background: none;
  color: white;
  font-size: 40px;
  font-weight: 200;
  cursor: pointer;
}

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

  .site-header {
    height: 100px;
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .brand {
    font-size: 22px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: var(--mobile-gutter);
    background: #000;
    border: 1px solid var(--line);
    padding: 16px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 5;
  }

  .site-nav.open {
    display: flex;
  }

  .home-hero,
  .about-layout,
  .project-feature,
  .review-index {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .section-block,
  .about-layout,
  .project-feature,
  .project-head,
  .project-gallery,
  .project-nav,
  .review,
  .intro,
  .hero-photo,
  .portfolio-section {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .home-hero {
    gap: 18px;
    padding-top: 0;
  }

  .home-hero-photo {
    margin-left: calc(var(--mobile-gutter) * -1);
    margin-right: calc(var(--mobile-gutter) * -1);
  }

  .home-hero-photo img {
    border-radius: 0;
    aspect-ratio: auto;
    height: 334px;
    object-fit: cover;
  }

  .home-hero-copy {
    max-width: none;
    padding-top: 0;
  }

  .home-hero-copy h1 {
    font-size: clamp(48px, 13vw, 68px);
    margin-bottom: 30px;
  }

  .home-hero-copy p {
    font-size: 17px;
    line-height: 1.62;
  }

  .button-outline {
    min-height: 60px;
    margin-top: 34px;
    font-size: 18px;
  }

  .featured-heading {
    padding-top: 120px;
    padding-bottom: 110px;
  }

  .home-gallery,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .masonry {
    columns: 1;
  }

  .masonry figure {
    margin-bottom: 22px;
  }

  .intro {
    padding-top: 54px;
    padding-bottom: 70px;
  }

  .section-block {
    padding-bottom: 82px;
  }

  .about-layout,
  .project-feature {
    gap: 44px;
    padding-top: 32px;
    padding-bottom: 74px;
  }

  .project-feature .prose {
    order: 2;
  }

  .project-feature figure {
    order: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 48px;
    padding: 42px var(--mobile-gutter) 54px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .review {
    padding-top: 30px;
  }

  .review-cover {
    margin: 44px 0;
  }

  .project-nav a {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portfolio-card img {
    transition: none;
  }
}
