:root {
  --bg: #f4ece2;
  --olive: #607704;
  --sage: #adba82;
  --sage-dark: #697d18;
  --ink: #050505;
  --header-height: 87px;
  --page-gutter: clamp(1.5rem, 4vw, 3.3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Questrial, Montserrat, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-underline-offset: 0.12em;
}

img,
video {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: #fff;
  color: #116dff;
  padding: 0.65rem 0.85rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--page-gutter);
}

.site-nav {
  display: flex;
  gap: 1.85rem;
  align-items: center;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-link {
  color: var(--bg);
  text-decoration: none;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--sage);
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7.75rem) var(--page-gutter);
}

.hero {
  padding-top: clamp(5.25rem, 9vw, 8.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-inner {
  max-width: 720px;
}

.hero h1,
.pill-title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  background: var(--sage);
  color: var(--bg);
  border-radius: 999px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(3.1rem, 7vw, 4.4rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.42em 0.72em;
}

.hero p {
  max-width: 560px;
  margin: 1.6rem 0 0 2rem;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.45;
}

.latest-work {
  display: grid;
  grid-template-columns: minmax(260px, 386px) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 930px;
  padding: 2rem var(--page-gutter) clamp(5.5rem, 10vw, 7rem);
}

.latest-image {
  background: rgba(96, 119, 4, 0.22);
  border-radius: 8px;
  padding: 0.75rem;
  text-decoration: none;
}

.latest-image img {
  width: 100%;
  aspect-ratio: 360 / 191;
  object-fit: cover;
}

.latest-copy h2 {
  margin: 0 0 0.65rem;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.25rem;
}

.latest-copy p {
  margin: 0 0 1.15rem;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.25rem;
}

.button {
  display: inline-flex;
  min-width: 129px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sage-dark);
  border-radius: 999px;
  background: var(--sage);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.portfolio {
  min-height: 70vh;
}

.portfolio .pill-title,
.project .pill-title {
  margin-inline: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4rem, 7vw, 6rem) clamp(2rem, 4vw, 2.5rem);
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.work-item > a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.work-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 650ms ease;
}

.work-item > a:hover img,
.work-item > a:focus-visible img {
  transform: scale(1.08);
}

.work-item h2 {
  margin: 1.1rem 0 0.55rem;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.work-item h2 a {
  text-decoration: none;
}

.work-item h2 a:hover {
  text-decoration: underline;
}

.work-item p {
  margin: 0;
}

.project {
  border-top: 2px solid rgba(0, 0, 0, 0.48);
}

.project-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  max-width: 1120px;
  margin: clamp(4rem, 7vw, 6rem) auto 0;
}

.detail-block + .detail-block {
  margin-top: 2rem;
}

.detail-block h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.detail-block p {
  margin: 0;
}

.project-meta a {
  overflow-wrap: anywhere;
}

.trailer-block {
  max-width: 920px;
  margin: clamp(4rem, 7vw, 6rem) auto 0;
}

.trailer-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.trailer-heading h2 {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.9rem;
}

.trailer-heading p {
  margin: 0 0 0.35rem;
}

.trailer-block video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.project-artwork {
  width: min(243px, 60vw);
  margin: 2rem auto 0;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1120px;
  margin: clamp(4rem, 7vw, 6rem) auto 0;
}

.image-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.process-note {
  max-width: 920px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.process-note h2 {
  margin: 0 0 0.8rem;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.9rem;
}

.process-note p {
  margin: 0 0 1rem;
}

.site-footer {
  min-height: 220px;
  border-top: 2px solid rgba(0, 0, 0, 0.48);
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem var(--page-gutter);
}

.site-footer p {
  margin: 0;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.back-top span {
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
    justify-content: center;
  }

  .hero h1,
  .pill-title {
    border-radius: 44px;
    padding-inline: 0.58em;
  }

  .hero p {
    margin-left: 0;
  }

  .latest-work,
  .project-details,
  .work-grid,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .latest-work {
    max-width: none;
    padding-top: 1rem;
  }

  .trailer-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
  }

  .section-pad {
    padding-block: 3.5rem;
  }

  .latest-work {
    padding-bottom: 4rem;
  }

  .hero h1,
  .pill-title {
    font-size: clamp(2.35rem, 13vw, 3.1rem);
  }
}
