/* The three readings share a single print on a softly lit inspection table. */
#standards {
  overflow: clip;
  background: radial-gradient(ellipse at 24% 52%, #e5e1d1 0%, #eeebe0 25%, transparent 62%);
}
.inspection {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .92fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(40px, 6.8vw, 130px);
  row-gap: clamp(32px, 4svh, 50px);
}
.inspection-title { grid-column: 2; align-self: end; }
.inspection-kicker {
  display: block;
  color: #82483c;
  font: italic clamp(25px, 2.55vw, 45px)/1.18 var(--latin);
}
.inspection-title h2 {
  margin: 8px 0 0;
  font-size: clamp(46px, 5.25vw, 94px);
  letter-spacing: -.035em;
  line-height: 1.22;
  font-weight: 470;
}
.proof { grid-column: 1; grid-row: 1 / 3; align-self: center; min-width: 0; }
.proof-table {
  padding: clamp(26px, 3vw, 60px) 8% clamp(32px, 3.5vw, 70px) 3.5%;
  perspective: 1000px;
}
.proof-mount {
  position: relative;
  padding: clamp(5px, .65vw, 12px);
  background: #f0ecdf;
  box-shadow: 0 2px 3px #52463030, 0 14px 19px -10px #55473455, 0 32px 50px -24px #57472a70;
  transform: rotate(-3deg);
  transition: transform .65s cubic-bezier(.2,.7,.18,1);
}
.proof-mount::before {
  content: '';
  z-index: -1;
  position: absolute;
  inset: 3px -3px -3px 3px;
  background: #ece6d4;
  box-shadow: 0 1px 2px #6e645138;
}
.proof-image { position: relative; isolation: isolate; }
.proof-image > img { width: 100%; height: auto; }
#standards[data-mode="scan"] .proof-image { cursor: crosshair; }
.proof-glass {
  --diameter: clamp(98px, 14.5vw, 248px);
  position: absolute;
  width: var(--diameter);
  aspect-ratio: 1;
  left: var(--loupe-x, 30%);
  top: var(--loupe-y, 47%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: clamp(4px, .36vw, 7px);
  background: linear-gradient(145deg, #efead8, #7d7466 20%, #413f38 43%, #eae6d7 64%, #746e5d 88%, #d9d1ba);
  box-shadow: 2px 4px 5px #100d0740, 6px 17px 18px #231e1250;
  transition: opacity .25s;
  pointer-events: none;
}
.proof-optic {
  height: 100%;
  border-radius: 50%;
  background: #e1dbbf url('media/yangtze-gorge.webp') no-repeat;
  background-size: var(--sample-width, 1100px) var(--sample-height, 736px);
  background-position: var(--sample-x, 64%) var(--sample-y, 52%);
  box-shadow: inset 0 0 0 2px #443f30, inset 0 0 12px 3px #3e362642;
}
.proof figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 3.5% 6%;
  color: #524e40;
  font: 400 clamp(13px, 1.05vw, 16px)/1.55 var(--serif);
  font-synthesis: none;
}
.proof figcaption > :last-child { white-space: nowrap; }
.loupe-control {
  min-height: 44px;
  margin: 7px 6% 0 3.5%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #655a4b;
  font-size: 14px;
}
.loupe-control label { cursor: pointer; }
.loupe-control input {
  appearance: none;
  width: clamp(90px, 10vw, 165px);
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  accent-color: var(--wine);
}
.loupe-control input::-webkit-slider-runnable-track { height: 2px; background: #b3a795; border-radius: 2px; }
.loupe-control input::-moz-range-track { height: 2px; background: #b3a795; }
.loupe-control input::-webkit-slider-thumb {
  appearance: none; width: 13px; height: 13px; margin-top: -5.5px;
  border-radius: 50%; background: var(--wine); border: 2px solid #fff9eb;
  box-shadow: 0 0 0 1px #927766;
}
.loupe-control input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--wine); border: 2px solid #fff9eb; }
.loupe-control input:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }
.inspection-menu { grid-column: 2; min-height: 255px; }
.inspection-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  min-height: 47px;
  padding-block: 4px;
  text-align: start;
  color: #665f54;
  font: 450 clamp(18px, 1.56vw, 29px)/1.48 var(--serif);
}
.inspection-item > button:hover, .inspection-item > button[aria-expanded="true"] { color: var(--wine); }
.inspection-item i {
  width: 12px; height: 12px;
  margin-inline-end: 3px;
  position: relative; color: inherit;
}
.inspection-item i::before, .inspection-item i::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor;
}
.inspection-item i::after { transform: rotate(90deg); transition: transform .25s; }
.inspection-item [aria-expanded="true"] i::after { transform: rotate(0deg); }
.method-note p {
  padding: 3px clamp(15px, 2vw, 40px) 16px 0;
  color: #514c41;
  font-size: clamp(16px, 1.08vw, 20px);
  line-height: 1.85;
  text-wrap: pretty;
}
.proof-slip {
  position: absolute;
  inset: auto -5% 6% auto;
  width: 51%;
  padding: clamp(13px, 1.7vw, 27px);
  background: #f7f4e9;
  color: #382e25;
  box-shadow: 0 13px 24px -7px #1f170d68;
  opacity: 0;
  transform: translateY(7%) rotate(3deg);
  transition: transform .45s, opacity .32s;
  pointer-events: none;
}
.proof-slip > div { display: grid; gap: 7px; }
.proof-slip small { font: italic clamp(15px, 1.45vw, 24px)/1.15 var(--latin); }
.proof-slip strong { font: 400 clamp(26px, 3.1vw, 54px)/1.15 var(--latin); }
.proof-slip span { font-size: clamp(12px, 1vw, 16px); }
.proof-slip .rights-slip, [data-mode="rights"] .ref-slip { display: none; }
[data-mode="rights"] .rights-slip { display: grid; }
.rights-slip strong { font-family: var(--serif); font-size: clamp(18px, 2.1vw, 34px); }
#standards:not([data-mode="scan"]) .proof-mount { transform: rotate(-1deg); }
#standards:not([data-mode="scan"]) .proof-glass { opacity: 0; }
#standards:is([data-mode="record"], [data-mode="rights"]) .proof-slip { opacity: 1; transform: translateY(0) rotate(3deg); }
#standards[data-mode="rights"] .proof-slip { background: #504636; color: #fff8e9; }
#standards:not([data-mode="scan"]) .loupe-control { visibility: hidden; }
html[lang="en"] .inspection-kicker { display: none; }
html[lang="en"] .inspection-title h2 { font: 400 clamp(51px, 5.5vw, 100px)/.98 var(--latin); }
html[lang="en"] .inspection-item > button { font-family: Georgia, serif; }
@media (max-width: 760px) {
  #standards { padding-block: clamp(48px, 8svh, 80px); }
  .inspection { max-width: 540px; grid-template-columns: minmax(0, 1fr); row-gap: 15px; }
  .inspection-title, .proof, .inspection-menu { grid-area: auto; }
  .inspection-title { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: baseline; }
  .inspection-title h2 { order: -1; font-size: clamp(34px, 8.8vw, 48px); margin: 0; }
  .inspection-kicker { font-size: clamp(19px, 4.6vw, 26px); }
  .proof-table { padding: 18px 8% 25px 4%; }
  .proof-glass { --diameter: clamp(86px, 23vw, 140px); }
  .proof-slip { padding: 12px 15px; }
  .loupe-control { margin-top: 0; }
  .inspection-menu { min-height: 229px; }
  .inspection-item > button { min-height: 44px; }
  .method-note p { padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-mount, .proof-slip, .proof-glass, .inspection-item i::after { transition: none; }
}
