:root {
  --ink: #18221d;
  --muted: #6d766f;
  --green: #315c46;
  --green-dark: #1f4232;
  --sage: #dce6dc;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dfe4dd;
  --serif: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rail: 244px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: block;
  text-decoration: none;
  margin-bottom: 28px;
}

.brand-name {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 50px;
  height: 64px;
  margin-top: 14px;
  object-fit: contain;
  object-position: center;
}

.nav-section + .nav-section {
  margin-top: 26px;
}

.nav-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-heading::before {
  width: 12px;
  height: 1px;
  background: var(--green);
  content: "";
}

.nav-heading[aria-current="page"] {
  color: var(--green);
}

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

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

.nav-link {
  color: #727a74;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--green-dark);
}

.sidebar-social {
  display: block;
  width: 100%;
  margin-top: 28px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.mobile-header {
  display: none;
}

.content {
  min-height: 100vh;
  margin-left: var(--rail);
}

.home {
  width: min(1080px, calc(100% - 80px));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.intro {
  max-width: 790px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro h1,
.project-header h1,
.not-found h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--sans);
  letter-spacing: -0.045em;
}

.intro h1 {
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.02;
  white-space: nowrap;
}

.intro-copy {
  margin-top: 26px;
  color: #505a53;
  font-size: 16px;
  line-height: 1.75;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

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

.project-card {
  min-width: 0;
}

.card-image-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ebe6;
}

.card-image-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 42, 31, 0.14), transparent 45%);
  opacity: 0;
  content: "";
  transition: opacity 240ms ease;
}

.card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .card-image-link img {
  transform: scale(1.025);
}

.project-card:hover .card-image-link::after {
  opacity: 1;
}

.card-title {
  margin: 13px 0 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus-visible {
  color: var(--green);
}

.card-meta {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.card-year {
  color: var(--green);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.card-kind {
  display: block;
}

.project-page {
  width: min(960px, calc(100% - 96px));
  margin: 0 auto;
  padding: 78px 0 0;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}

.project-header h1 {
  max-width: 780px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
}

.project-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.project-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 640px);
  gap: 56px;
  margin: 52px auto 58px;
}

.project-body-label {
  margin: 5px 0 0;
  color: var(--green);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-copy {
  color: #37413b;
  font-size: 17px;
  line-height: 1.76;
}

.project-copy p {
  margin: 0;
}

.project-copy p + p {
  margin-top: 18px;
}

.project-copy a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.media-stack {
  display: grid;
  gap: 20px;
  margin: 0 0 60px;
}

.media-stack.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-stack figure {
  margin: 0;
  background: #e9ece8;
  overflow: hidden;
}

.media-stack .featured-media {
  grid-column: 1 / -1;
}

.media-stack img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
}

.media-stack figcaption,
.video-figure figcaption {
  padding: 11px 14px 12px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.video-figure {
  margin: 0 0 60px;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #101713;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 54px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
}

.project-next a {
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: none;
}

.project-next a:hover,
.project-next a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  margin-top: 74px;
  padding: 32px 40px;
  background: var(--green-dark);
  color: #e7eee9;
  font-family: var(--sans);
  font-size: 11px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

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

.site-footer a {
  text-underline-offset: 3px;
}

.not-found {
  display: grid;
  min-height: 75vh;
  place-content: center;
  padding: 48px;
  text-align: center;
}

.not-found h1 {
  font-size: 54px;
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
}

.not-found a {
  color: var(--green);
}

@media (max-width: 980px) {
  :root {
    --rail: 216px;
  }

  .sidebar {
    padding-inline: 24px;
  }

  .home,
  .project-page {
    width: min(100% - 52px, 900px);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-header {
    grid-template-columns: 1fr;
  }

  .project-meta {
    text-align: left;
  }

  .project-body {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --rail: 0px;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    background: rgba(247, 248, 244, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-brand {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  .sidebar {
    width: min(86vw, 340px);
    padding: 32px;
    box-shadow: 16px 0 60px rgba(20, 35, 27, 0.12);
    transform: translateX(-105%);
    transition: transform 240ms ease;
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: none;
    background: rgba(18, 29, 23, 0.42);
  }

  .nav-open .nav-scrim {
    display: block;
  }

  .content {
    margin-left: 0;
  }

  .home,
  .project-page {
    width: min(100% - 36px, 660px);
  }

  .home,
  .project-page {
    padding-top: 52px;
  }

  .intro {
    margin-bottom: 46px;
  }

  .intro h1 {
    white-space: normal;
  }

  .intro-copy {
    font-size: 15px;
    line-height: 1.65;
  }

  .project-grid {
    gap: 32px 14px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .project-header {
    margin-bottom: 28px;
  }

  .project-header h1 {
    font-size: clamp(38px, 13vw, 64px);
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-block: 36px 46px;
  }

  .project-copy {
    font-size: 16px;
    line-height: 1.7;
  }

  .site-footer {
    margin-top: 56px;
    padding-inline: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .project-grid,
  .media-stack.two-up {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 42px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-meta {
    grid-template-columns: 44px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
