:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fff;
  --ink: #20211e;
  --muted: #676a62;
  --line: #d8d8d0;
  --green: #245c42;
  --coral: #db684e;
  --yellow: #e8b646;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.intro {
  min-height: 360px;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 76px 0 58px;
}

.eyebrow,
.project-number {
  margin: 0;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 16px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.96;
}

.lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.projects {
  padding: 28px 0 120px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.project {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-link {
  display: block;
  text-decoration: none;
}

.project-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8e7e1;
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

.project-link:hover .project-media img,
.project-link:focus-visible .project-media img {
  transform: scale(1.018);
}

.project-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.status {
  position: absolute;
  top: 16px;
  left: 16px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 750;
}

.status-active {
  background: var(--green);
}

.status-production {
  background: var(--coral);
}

.project-copy {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 22px;
}

.project-copy h3 {
  margin: 12px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.project-copy p:not(.project-number) {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.project-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
}

.project-action span {
  font-size: 1.2rem;
}

.project-action.muted {
  color: var(--muted);
}

.project-upcoming {
  background: #eeede7;
}

.about {
  display: grid;
  grid-template-columns: 0.65fr 1.6fr 0.9fr;
  gap: 42px;
  padding: 96px 0 120px;
  border-top: 1px solid var(--ink);
}

.about h2 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.about > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 0.65fr 1.6fr 0.9fr;
  align-items: center;
  gap: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1280px);
  }

  .site-header {
    min-height: 70px;
  }

  nav {
    gap: 18px;
  }

  .intro {
    min-height: 330px;
    padding: 56px 0 44px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .lede {
    font-size: 1rem;
  }

  .projects {
    padding-bottom: 84px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .project-copy {
    min-height: 210px;
    padding: 20px;
  }

  .project-copy h3 {
    font-size: 1.7rem;
  }

  .about,
  footer {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 24px;
    padding: 72px 0 84px;
  }

  footer {
    gap: 12px;
    padding: 28px 0;
  }

  footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.25rem;
  }
}

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

  .project-media img {
    transition: none;
  }
}
