.materials {
  --ink: #282521;
  --muted: #625b54;
  --line: #dfdad4;
  --photo-radius: 20px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(82px, 8vw, 124px) clamp(22px, 5.8vw, 78px) clamp(64px, 8vw, 112px);
}
.materials h1, .materials h2, .materials h3 { font-weight: 300; margin: 0; }
.materials img { border-radius: var(--photo-radius); }
.materials-intro, .guide-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}
.materials-intro h1 { font-size: clamp(4.725rem, 9.45vw, 8.4rem); line-height: 1.1; letter-spacing: -.075em; }
.section-link { color: #76461c; font-size: .91rem; }
a.section-link { display: inline-block; padding: .6rem 0; text-underline-offset: .23em; }
.lead { margin-top: 1.2rem; font-size: clamp(1.125rem, 1.575vw, 1.3125rem); line-height: 1.65; }
.materials-intro figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.materials article figure { width: fit-content; max-width: 100%; justify-self: start; }
.materials figcaption {
  /* Let the photograph determine the width, even when the caption is longer. */
  contain: inline-size; overflow-wrap: anywhere;
  margin-top: .65rem; color: var(--muted); font-size: .875rem;
  line-height: 1.55; text-align: left;
}
.credit { display: block; font-size: .75rem; }
.guide-list { margin-top: clamp(45px, 6vw, 90px); }
.guide-list h2 { font-size: clamp(1.68rem, 3.15vw, 2.47rem); letter-spacing: -.045em; }
.guide-list ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 66px) clamp(22px, 3.2vw, 45px); list-style: none;
  padding: 1.5rem 0 0; margin: 1rem 0 0;
}
.guide-list a { display: block; color: inherit; text-decoration: none; }
.guide-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.guide-thumb { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center start; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--photo-radius); background: #f6f4f1; }
.guide-thumb { position: relative; isolation: isolate; }
.guide-thumb::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(57 45 33 / 13%); border-radius: inherit; pointer-events: none; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-list li:first-child .guide-thumb img { width: auto; object-fit: contain; mix-blend-mode: multiply; }
.guide-list h3 { margin-top: .85rem; font-size: clamp(1.18rem, 1.68vw, 1.49rem); line-height: 1.4; letter-spacing: -.035em; }
.guide-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guide-hero h1 {
  margin-top: .55rem; font-size: clamp(2.26rem, 3.885vw, 3.83rem);
  line-height: 1.1; letter-spacing: -.055em; text-wrap: balance;
}
.guide-hero .byline { margin-top: 1.1rem; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.guide-hero figure img { width: auto; height: auto; max-height: min(63vh, 590px); }
.guide-text { max-width: 700px; margin: clamp(40px, 6vw, 88px) auto 0; border-top: 1px solid var(--line); }
.guide-text h2 { margin: 2.7rem 0 .8rem; font-size: clamp(1.52rem, 2.73vw, 2.1rem); line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.guide-text p { margin: .9rem 0; font-size: 1.125rem; line-height: 1.8; }
.guide-text a { color: #67401e; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.guide-text a:hover, a.section-link:hover { color: #34291e; }
.guide-text figure { margin: 1.5rem 0 2rem; }
.guide-text figure img { max-height: 510px; width: auto; }
.paired-photos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.paired-photos figure img { max-height: clamp(110px, 17vw, 210px); }
.material-comparison { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 1rem; line-height: 1.55; }
.material-comparison caption { text-align: left; margin-bottom: .8rem; }
.material-comparison :is(caption, th) { font-weight: 400; }
.material-comparison :is(th,td) { text-align: left; padding: 1rem .75rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.material-comparison thead { background: #f5f1ed; }
.material-comparison tbody th { width: 39%; }
.material-comparison figure { margin: .65rem 0 0; }
.material-comparison figure img { width: 105px; height: 72px; object-fit: cover; border-radius: 12px; }
.material-comparison figcaption { font-weight: 300; }
.guide-text footer { margin-top: 3.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.guide-text footer, .guide-text footer p { font-size: .86rem; line-height: 1.7; }
@media (max-width: 760px) {
  .materials { padding-top: 74px; }
  .materials-intro, .guide-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-hero figure img { max-height: 52vh; }
  .guide-list ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .guide-list ul, .paired-photos { grid-template-columns: 1fr; }
  .guide-text h2 { margin-top: 2.2rem; }
  .paired-photos { gap: 0; }
  .paired-photos figure img { max-height: 510px; }
  .material-comparison :is(th,td) { padding: .65rem .45rem; }
}
