/* Protein identity and a considered wall setting, shared by every collection view. */
#main .wall-scene {
  --wall-colour: #c0c8bc;
  --wall-light: rgba(255, 253, 244, .20);
  background-color: var(--wall-colour);
  background-image:
    linear-gradient(125deg, var(--wall-light), transparent 55%, rgba(35, 49, 40, .10)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(40, 51, 43, .025) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18);
}
#main .wall-scene[data-wall="white"],
#main .wall-scene[data-wall="ivory"],
#main .wall-scene[data-wall="beech"],
#main .wall-scene[data-wall="silver"] {
  --wall-colour: #82958c;
  --wall-light: rgba(244, 243, 224, .16);
}
#main .wall-scene[data-wall="black"] { --wall-colour: #d0cbbf; }
#main .wall-scene[data-wall="walnut"] { --wall-colour: #c5cbbb; }
#main .wall-scene[data-wall="gold"],
#main .wall-scene[data-wall="ornate"] { --wall-colour: #9daaa0; }
#main .wall-scene .framed {
  box-shadow: 7px 12px 21px rgba(25, 41, 30, .20), 1px 2px 4px rgba(25, 41, 30, .20);
}

/* The common name leads, followed by scientific identity and the visual style. */
.art-card .card-copy > div,
.collection-card-copy { min-width: 0; }
.art-card .card-copy h3,
.home-style-preview .card-copy h3,
.collection-card-copy h2 {
  font-size: clamp(23px, 2.15vw, 31px);
  line-height: 1.16;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.card-protein-detail {
  display: block;
  color: #657164;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.card-style {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 11px;
}
.art-card .card-copy .card-description { margin-top: 12px; }
.home-style-preview .card-copy .card-protein-detail { display: block; }
.home-style-preview .card-copy .card-style { display: block; }
.collection-card-action { margin-top: 14px; }
.protein-secondary {
  font-size: 14px;
  line-height: 1.6;
  color: #657164;
  overflow-wrap: anywhere;
}
.protein-style-heading h2 { font-size: clamp(28px, 3vw, 39px); }
.protein-style-heading p { font-size: 14px; }
.protein-study-subject {
  display: block;
  padding-top: 11px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.protein-study-name { font-size: 13px; padding-top: 5px; color: #596b5a; }
.poetic-hero .scene-caption { align-items: flex-start; font-size: 12px; }
.scene-caption > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.scene-caption strong { font: 26px/1.15 var(--serif); color: var(--ink); }
.scene-caption > span:first-child > span { font: 17px/1.3 var(--serif); color: var(--ink); }
.inspiration-copy .inspiration-protein { margin-bottom: 7px; }
.inspiration-copy .inspiration-moment { font: 24px/1.25 var(--serif); margin: 23px 0 0; }
.subject-identity h3 { font-size: 29px; line-height: 1.2; }
.subject-identity > span { font: 13px/1.6 var(--sans); margin-top: 7px; }
.space-direction-title { font: 18px/1.35 var(--serif); margin-top: 20px; }
.saved-item .protein-secondary { margin-top: 7px; font-size: 13px; }

/* Name and function precede the artwork in document order and on phones. */
.product-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-areas: "art intro" "art controls";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.product-intro { grid-area: intro; padding: 36px 12% 0 10%; min-width: 0; }
.product-intro .breadcrumbs { margin-bottom: 18px; font-size: 11px; }
.product-intro .collection-back-link { margin: 0 0 22px; font-size: 13px; }
.product-intro h1 {
  margin: 0;
  font-size: clamp(37px, 4.25vw, 56px);
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.product-intro > .protein-secondary { margin-top: 12px; font-size: 14px; }
.protein-function { margin: 25px 0 0; }
.protein-function h2 {
  font: 11px/1.5 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: #667364;
}
.protein-function p { font-size: 16px; line-height: 1.75; color: #33483d; margin: 0; }
.product-style-intro { margin-top: 25px; padding: 20px 0 18px; border-top: 1px solid var(--line); }
.product-style-intro > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #667364; }
.product-style-intro .product-subtitle { margin-top: 7px; font-size: 25px; line-height: 1.2; }
.product-view { grid-area: art; }
.product-controls { grid-area: controls; padding-top: 0; }
.product-controls .choice-group:first-child { padding-top: 18px; margin-top: 0; }
.product-controls .product-state { padding-bottom: 0; border: 0; margin-top: 28px; font-size: 11px !important; }
.product-view .style-pager span { font-size: 14px; }
.product-view .image-zoom { min-height: 44px; font-size: 12px; }
.product-controls .selected-style-name { font-size: 13px; line-height: 1.6; }
.product-controls .size-caption { font-size: 13px; line-height: 1.6; }
.details-section { border-top: 0; }
.details-section p, .details-section details p { font-size: 14px; line-height: 1.8; }
.details-section summary { font-size: 14px; line-height: 1.5; }
.details-section .frame-source-note, .details-section .mat-source-note { font-size: 13px; }
.crystal-introduction .protein-secondary { margin-top: 12px; }
.crystal-introduction .crystal-protein-function { font-size: 16px; line-height: 1.75; }
.crystal-introduction h1 { font-size: clamp(37px, 4.2vw, 58px); line-height: 1.08; }
.crystal-introduction .crystal-interaction-note { font-size: 14px; }

@media (min-width: 901px) {
  .product-view { position: sticky; top: 0; min-height: min(760px, 100vh); justify-content: center; }
  .product-art-stage { max-width: min(560px, calc(100vh - 200px)); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .product-intro { padding-left: 8%; padding-right: 8%; }
  .product-controls { padding-left: 8%; padding-right: 8%; }
  .protein-function p { font-size: 15px; }
}
@media (max-width: 900px) {
  .product-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "art" "controls"; grid-template-rows: none; }
  .product-intro { padding: 28px 7% 0; }
  .product-intro .breadcrumbs { margin-bottom: 13px; }
  .product-intro .collection-back-link { margin-bottom: 20px; }
  .product-intro h1 { font-size: clamp(34px, 8.8vw, 48px); }
  .product-intro > .protein-secondary { font-size: 13px; margin-top: 10px; }
  .protein-function { margin-top: 22px; }
  .protein-function p { font-size: 15px; line-height: 1.7; }
  .product-style-intro { margin-top: 22px; padding: 15px 0 20px; }
  .product-style-intro .product-subtitle { font-size: 23px; }
  .product-view { position: static; padding: 26px 9% 20px; }
  .product-controls { padding: 22px 7% 38px; }
  .product-controls .choice-group:first-child { border-top: 0; }
  .product-view .style-pager span { font-size: 12px; }
}
@media (max-width: 600px) {
  .home-style-preview .card-copy h3, .collection-card-copy h2 { font-size: 23px; }
  .card-protein-detail { font-size: 11px; line-height: 1.45; }
  .card-style { font-size: 17px; margin-top: 9px; }
  .protein-study-subject { font-size: 17px; }
  .protein-study-name { font-size: 12px; }
  .protein-style-heading > span { white-space: normal; text-align: right; }
  .poetic-hero .scene-caption { font-size: 11px; }
  .scene-caption strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #main .wall-scene, #main .wall-scene .framed { transition: none; }
}
