/* Homepage material references. Every rule stays within the materials section. */
body.home-page .materials-section .materials-gallery-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: 48px;
}

body.home-page .materials-section .materials-gallery-header .tag {
  display: block;
  margin-bottom: 16px;
  color: var(--orange-dark);
}

body.home-page .materials-section .materials-gallery-header h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(34px, 3.3vw, 50px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.home-page .materials-section .materials-gallery-header > p {
  max-width: 48ch;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

body.home-page .materials-section .materials-group-header {
  margin-bottom: 26px;
}

body.home-page .materials-section .materials-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

body.home-page .materials-section .materials-group-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

body.home-page .materials-section .materials-range-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #dfd3c8;
  border-radius: 4px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

body.home-page .materials-section .materials-group-header > p {
  max-width: 84ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

body.home-page .materials-section .materials-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

body.home-page .materials-section .materials-sample-card {
  min-width: 0;
}

body.home-page .materials-section .materials-sample-image,
body.home-page .materials-section .materials-secondary-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

body.home-page .materials-section .materials-sample-image img,
body.home-page .materials-section .materials-secondary-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.home-page .materials-section .materials-sample-card h4 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
}

body.home-page .materials-section .materials-sample-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

body.home-page .materials-section .materials-project-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

body.home-page .materials-section .materials-project-details > div {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.home-page .materials-section .materials-project-details dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.home-page .materials-section .materials-project-details dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

body.home-page .materials-section .materials-acrylic-details {
  margin-top: 28px;
}

body.home-page .materials-section .materials-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

body.home-page .materials-section .materials-secondary-card {
  min-width: 0;
}

body.home-page .materials-section .materials-secondary-copy {
  padding-top: 24px;
}

body.home-page .materials-section .materials-secondary-copy > p {
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

body.home-page .materials-section .materials-secondary-copy .materials-project-details dd {
  font-size: 15px;
}

body.home-page .materials-section .materials-gallery-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

body.home-page .materials-section .materials-gallery-notes > div {
  min-width: 0;
}

body.home-page .materials-section .materials-gallery-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

body.home-page .materials-section .materials-gallery-notes .materials-note-label {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.home-page .materials-section .materials-reference-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.home-page .materials-section .materials-guide-footer {
  margin-top: 20px;
}

body.home-page .materials-section .materials-guide-footer a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.home-page .materials-section .materials-guide-footer a:hover {
  color: var(--ink);
}

body.home-page .materials-section .materials-guide-footer a:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  body.home-page .materials-section .materials-sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  body.home-page .materials-section .materials-gallery-header {
    gap: 28px;
  }

  body.home-page .materials-section .materials-secondary-grid {
    gap: 26px;
  }

  body.home-page .materials-section .materials-secondary-copy .materials-project-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  body.home-page .materials-section .materials-gallery-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 34px;
  }

  body.home-page .materials-section .materials-gallery-header h2 {
    font-size: clamp(31px, 7.5vw, 38px);
  }

  body.home-page .materials-section .materials-gallery-header > p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
  }

  body.home-page .materials-section .materials-sample-grid,
  body.home-page .materials-section .materials-secondary-grid,
  body.home-page .materials-section .materials-project-details,
  body.home-page .materials-section .materials-gallery-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page .materials-section .materials-sample-grid {
    gap: 30px;
  }

  body.home-page .materials-section .materials-sample-card h4 {
    margin-top: 16px;
    font-size: 21px;
  }

  body.home-page .materials-section .materials-sample-card > p {
    font-size: 16px;
  }

  body.home-page .materials-section .materials-acrylic-details {
    margin-top: 30px;
  }

  body.home-page .materials-section .materials-secondary-grid {
    gap: 36px;
    margin-top: 36px;
    padding-top: 30px;
  }

  body.home-page .materials-section .materials-secondary-copy {
    padding-top: 20px;
  }

  body.home-page .materials-section .materials-group-header > p,
  body.home-page .materials-section .materials-secondary-copy > p {
    font-size: 16px;
    line-height: 1.7;
  }

  body.home-page .materials-section .materials-gallery-notes {
    gap: 22px;
    margin-top: 32px;
  }
}
