/* Hallmark · v2.0.0 · built: the project · redesign: polish · theme: brand · genre: editorial · hero: Stage · signature: paired carved faces */
/* Critique: let the carved detail and the complete silhouette share a baseline. */
:root {
  --pair-ivory: #f4eada;
  --pair-brass: #c4ab82;
  --pair-muted: #d9d7c6;
  --pair-contact: rgb(7 17 12 / 46%);
  --pair-shadow: rgb(9 20 14 / 21%);
  --pair-rule: rgb(196 171 130 / 58%);
  --pair-underline: rgb(196 171 130 / 76%);
  --pair-hover: #e6c99b;
}
@font-face {
  font-family: "Exhibit Song";
  src: url("assets/pair-type/text.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Exhibit Song";
  src: url("assets/pair-type/heading.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
  
}
body.three {
  --book: "Exhibit Song", "Songti SC", SimSun, serif;
  --sans: var(--book);
}
.three .photo-exhibit { --label: var(--book); }
.three .chapters { --serif: var(--book); }
.three #duo {
  --plaque-height: clamp(170px, 67.2vw, 399px);
  --ivory: var(--pair-ivory);
  --gold: var(--pair-brass);
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 4.4vw, 60px) var(--space-sm) var(--space-lg);
  color: var(--ivory);
  background: var(--pine);
  text-align: center;
  font-family: var(--book);
}
#duo #pair-heading {
  margin: 0;
  color: inherit;
  font: 600 clamp(32px, 3.7vw, 45px)/1.35 var(--book);
  letter-spacing: .1em;
  text-indent: .1em;
}
#duo .pair-subtitle {
  margin: var(--space-xs) auto 0;
  color: var(--pair-muted);
  font: 400 clamp(14px, 1.45vw, 16px)/1.75 var(--book);
  letter-spacing: .075em;
}
#duo .pair-display, #duo article {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
#duo .pair-display {
  margin: clamp(28px, 3.15vw, var(--space-xl)) auto 0;
  gap: clamp(var(--space-md), 5.25vw, var(--space-2xl));
}
#duo article { gap: clamp(var(--space-xs), 2vw, var(--space-lg)); }
#duo .cutout {
  position: relative;
  display: block;
  isolation: isolate;
  padding: 0;
  border: 0;
  background: transparent;
  height: var(--plaque-height);
  cursor: zoom-in;
}
#duo .cutout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -7% -2.2%;
  height: 4.4%;
  background: radial-gradient(ellipse, var(--pair-contact), transparent 71%);
}
#duo .cutout img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(3px 4px 3px var(--pair-shadow));
}
#duo article .pair-label {
  display: grid;
  justify-items: center;
  align-items: center;
  writing-mode: horizontal-tb;
  border: 0;
  padding: 0;
  gap: clamp(var(--space-xs), .9vw, var(--space-sm));
}
#duo .pair-label::before {
  content: "";
  width: clamp(19px, 2.55vw, 30px);
  border-top: 1px solid var(--pair-rule);
}
#duo .pair-label small, #duo .pair-label h3 {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}
#duo .pair-label small {
  color: var(--gold);
  font: 400 clamp(12px, 1.15vw, 14px)/1.2 var(--book);
  letter-spacing: normal;
}
#duo .pair-label h3 {
  margin: 0;
  color: var(--ivory);
  font: 400 clamp(19px, 2.4vw, 29px)/1.12 var(--book);
  letter-spacing: .12em;
  -webkit-text-stroke: .12px currentColor;
}
#duo .pair-more {
  writing-mode: horizontal-tb;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: clamp(20px, 2.55vw, 32px) auto 0;
  padding: 0 var(--space-sm);
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: 400 15px/1.5 var(--book);
  letter-spacing: normal;
  text-decoration: underline;
  text-decoration-color: var(--pair-underline);
  text-underline-offset: 8px;
  cursor: pointer;
}
#duo :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (hover: hover) {
  #duo .pair-more:hover { color: var(--pair-hover); text-decoration-color: currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  #duo .pair-more { transition: color .22s, text-decoration-color .22s; }
  #duo.entering .cutout { animation: pair-appear 1.05s ease-out both; }
}
@keyframes pair-appear { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 741px) {
  .photo-exhibit #duo { --plaque-height: clamp(314px, 36.4vw, 470px); }
}
#duo .faces article:first-child .cutout { order: 1; }


@font-face {
  font-family: "Exhibit Song";
  src: url("assets/pair-type/text-supplement.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0034, U+0037, U+0038, U+0048, U+0052, U+0058, U+0059, U+005A, U+00D7, U+2192, U+4E09, U+4E0D, U+4E2D, U+4EFB, U+516D, U+51FB, U+5217, U+5236, U+524D, U+53CC, U+5468, U+54C1, U+5546, U+56F4, U+592E, U+5B9D, U+5BDF, U+5E94, U+5ED3, U+5F00, U+5F80, U+6B64, U+6DD8, U+73AF, U+79FB, U+7ED5, U+7EF4, U+7F18, U+81F3, U+8D4F, U+8F6E, U+8FDB, U+987A, U+9970;
}

@font-face {
  font-family: "Exhibit Song";
  src: url("assets/pair-type/heading-supplement.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+539F, U+56FE;
}
