:root {
  --color-ivory: #fffef1;
  --color-olive: #666551;
  --color-olive-light: rgba(102, 101, 81, 0.55);
  --color-olive-soft: rgba(102, 101, 81, 0.14);
  --color-black: #171611;
  --gap-desktop: 1.875rem;
  --gap-mobile: 1rem;
  --gap: var(--gap-desktop);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --font-serif: "Newsreader", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-ivory);
  color: var(--color-olive);
  font-family: var(--font-serif);
  line-height: 1.3;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a,
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

::selection {
  background: var(--color-olive);
  color: var(--color-ivory);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--color-ivory);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  color: var(--color-olive);
  background: rgba(255, 254, 241, 0.9);
  backdrop-filter: blur(12px);
}

.site-nav {
  position: relative;
  min-height: 5.625rem;
  padding: var(--gap);
}

.site-nav__links {
  position: absolute;
  left: var(--gap);
  top: var(--gap);
  display: flex;
  gap: 1.25rem;
}

.site-nav__links a,
.text-button,
.button,
.gallery-item__caption,
.feature-strip__caption,
.section-kicker,
.section-note,
.site-footer,
.modal-subtitle {
  font-size: 0.8125rem;
}

.site-nav__links a,
.text-button {
  display: inline-block;
  transition: transform 180ms var(--ease);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  transform: translateX(0.25rem);
}

.site-wordmark {
  position: absolute;
  right: var(--gap);
  top: var(--gap);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.site-content .section {
  scroll-margin-top: 6rem;
}

.hero-banner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--color-ivory);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  padding: var(--gap);
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 22, 17, 0.14) 0%, rgba(23, 22, 17, 0.66) 100%),
    linear-gradient(90deg, rgba(23, 22, 17, 0.12) 0%, rgba(23, 22, 17, 0) 42%);
}

.hero-banner__media,
.hero-banner__media img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-banner__media img {
  object-fit: cover;
}

.hero-banner__inner {
  position: relative;
  z-index: 1;
  grid-column: 4 / -1;
  max-width: 42rem;
  margin-bottom: var(--gap);
}

.hero-banner__kicker,
.section-kicker {
  font-style: italic;
  opacity: 0.85;
}

.hero-banner__title {
  margin-top: 0.4rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 400;
}

.hero-banner__copy {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.section {
  background: var(--color-ivory);
  padding: 11.375rem var(--gap) 0;
}

.section:last-of-type {
  padding-bottom: 11.375rem;
}

.intro-section__quote {
  max-width: 60rem;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.375rem);
  line-height: 1.08;
  font-weight: 400;
}

.feature-strip {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.feature-strip::-webkit-scrollbar {
  display: none;
}

.feature-strip__item {
  flex: 0 0 auto;
}

.feature-strip__item:nth-child(odd) {
  width: 25vw;
  min-width: 18rem;
}

.feature-strip__item:nth-child(2n) {
  width: 20vw;
  min-width: 14rem;
}

.feature-strip__caption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.image-text-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.image-text__media {
  grid-column: 3 / 6;
}

.image-text__copy {
  grid-column: 7 / -1;
  display: grid;
  gap: 2.25rem;
}

.image-text__block h2,
.section-heading {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 400;
}

.image-text__block p,
.section-note,
.download-card__body,
.site-footer__column p,
.modal-title {
  line-height: 1.45;
}

.image-text__block p {
  margin-top: 0.65rem;
  font-size: 1.0625rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.full-width-media-section {
  padding-inline: var(--gap);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-note {
  max-width: 24rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
  align-items: start;
}

.gallery-item {
  display: block;
  width: 100%;
  text-align: left;
  transition: none;
}

.gallery-item__frame {
  display: block;
  overflow: hidden;
}

.gallery-item__frame img {
  transition: transform 320ms var(--ease), opacity 220ms ease;
}

.gallery-item__caption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (hover: hover) {
  .gallery-item__caption {
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .gallery-item:hover .gallery-item__caption,
  .gallery-item:focus-visible .gallery-item__caption {
    opacity: 1;
  }

  .gallery-item:hover .gallery-item__frame img,
  .gallery-item:focus-visible .gallery-item__frame img {
    transform: scale(1.02);
  }
}

.gallery-item:focus-visible {
  outline: 0;
}

.gallery-item:focus-visible .gallery-item__frame {
  box-shadow: 0 0 0 2px var(--color-olive);
}

.gallery-item:nth-child(5n + 1) {
  grid-column: 3 / 6;
}

.gallery-item:not(:first-child):nth-child(5n + 1) {
  margin-top: 8vh;
}

.gallery-item:nth-child(5n + 2) {
  grid-column: 7 / -1;
  margin-top: 30vh;
}

.gallery-item:nth-child(5n + 3) {
  grid-column: 4 / 8;
  margin-top: 8vh;
}

.gallery-item:nth-child(5n + 4) {
  grid-column: 3 / 10;
  margin-top: 8vh;
}

.gallery-item:nth-child(5n + 5) {
  grid-column: 7 / 12;
  margin-top: 8vh;
}

.download-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: 1rem;
}

.download-card > :first-child {
  grid-column: 3 / 6;
}

.download-card__body {
  grid-column: 7 / -1;
  display: grid;
  gap: 1rem;
  font-size: 1.0625rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--color-ivory);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.site-footer__column:first-child {
  grid-column: 3 / 5;
}

.site-footer__column {
  grid-column: span 2;
}

.site-footer__column--wide {
  grid-column: span 6;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 22, 17, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 60;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(1120px, 100%);
  max-height: 100%;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 254, 241, 0.96);
}

.modal-frame {
  min-height: 0;
  background: rgba(102, 101, 81, 0.08);
}

.modal-frame img {
  max-height: min(72vh, 900px);
  object-fit: contain;
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-copy {
  display: grid;
  gap: 0.15rem;
}

.modal-title {
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-olive-soft);
  transition:
    transform 180ms var(--ease),
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-black);
  color: var(--color-ivory);
  border-color: var(--color-black);
}

.button-secondary {
  background: transparent;
}

.icon-button {
  min-width: 2.75rem;
  padding-inline: 0.85rem;
}

.empty-state {
  border: 1px dashed var(--color-olive-soft);
  padding: 2rem;
}

@media (max-width: 900px) {
  :root {
    --gap: var(--gap-mobile);
  }

  .site-nav {
    display: grid;
    gap: 0.9rem;
    padding-top: 1.2rem;
  }

  .site-nav__links,
  .site-wordmark {
    position: static;
  }

  .site-nav__links {
    order: 2;
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    padding-top: 7.5rem;
  }

  .hero-banner__inner,
  .image-text__media,
  .image-text__copy,
  .download-card > :first-child,
  .download-card__body {
    grid-column: 1 / -1;
  }

  .hero-banner__inner {
    max-width: 24rem;
  }

  .section {
    padding-top: 5rem;
  }

  .section:last-of-type {
    padding-bottom: 5rem;
  }

  .feature-strip__item:nth-child(n) {
    width: 72vw;
    min-width: 16rem;
  }

  .image-text-section,
  .download-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-header {
    display: grid;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-item:nth-child(5n + 1),
  .gallery-item:nth-child(5n + 2),
  .gallery-item:nth-child(5n + 3),
  .gallery-item:nth-child(5n + 4),
  .gallery-item:nth-child(5n + 5) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .gallery-item__caption {
    opacity: 1;
  }

  .site-footer__columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal-frame img {
    max-height: 60vh;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
