/* The photograph supplies the setting; the exposure overlays only the selected layers. */
.atmosphere-study {
  --study-ink: #e5e2d9;
  --study-muted: #b2b4b0;
  width: min(100%, 73rem);
  margin-inline: auto;
  color: var(--study-ink);
  text-align: left;
}
.atmosphere-study .atmosphere-picture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1672 / 941;
  background-color: #151a1b;
  background-image: var(--study-backdrop, url("print-room.webp"));
  background-position: var(--study-position, 50% 50%);
  background-repeat: no-repeat;
  background-size: cover;
  mask-image: var(--scene-side-mask, linear-gradient(to right, transparent, black 3%, black 97%, transparent)),
    linear-gradient(to bottom, transparent, #0003 2%, #000b 6%, black 11%, black 88%, #000b 94%, #0003 98%, transparent);
  mask-composite: intersect;
}
.atmosphere-study .atmosphere-picture canvas {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Only the air is masked. Reference the page's SVG so the registered
     alpha image works when the studio is opened directly from the USB. */
  mask-image: url("#workshop-air-mask");
}
.atmosphere-study .atmosphere-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: clamp(16px, 4vw, 52px);
  row-gap: 5px;
  align-items: start;
  padding: clamp(16px,2.4vw,30px) 0 0;
}
.atmosphere-study .atmosphere-panel h3 {
  grid-column: 1;
  margin: 0;
  color: var(--study-ink);
  font-family: var(--serif,Georgia,serif);
  font-size: clamp(22px,2.4vw,35px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-transform: none;
}
.atmosphere-study .atmosphere-panel .atmosphere-caption {
  grid-column: 1;
  max-width: 48ch;
  margin: 0;
  color: var(--study-muted);
  font: 400 clamp(13px,1.05vw,15px)/1.55 var(--sans,"Segoe UI",Arial,sans-serif);
  letter-spacing: 0;
  text-transform: none;
}
#atmosphere-study .atmosphere-layers {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#atmosphere-study .atmosphere-layers legend {
  padding: 0;
  margin-bottom: 10px;
  color: #d1b999;
  font: 600 11px/1.2 var(--mono, monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
}
#atmosphere-study .atmosphere-layers label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px,.55vw,10px);
  min-height: 51px;
  padding: 6px clamp(6px,.65vw,12px);
  box-sizing: border-box;
  color: #e4dbcc;
  border: 1px solid #5a5145;
  border-radius: 8px;
  background: linear-gradient(160deg,#34312a,#1c1b18);
  box-shadow: inset 0 1px #fff1, 0 2px 3px #0008;
  font: 600 clamp(14px,1.04vw,17px)/1.15 var(--sans, sans-serif);
  cursor: pointer;
  user-select: none;
}
#atmosphere-study .atmosphere-layers label:has(:checked) {
  color: #fff0d6;
  border-color: #9c8053 #736044 #5f4b33 #8a724f;
  background: linear-gradient(155deg,#493c2f,#2c261f 80%);
}
#atmosphere-study .atmosphere-layers input {
  appearance: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 22px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #756957;
  border-radius: 20px;
  background: linear-gradient(#151614,#302e27);
  box-shadow: inset 0 2px 3px #000b,0 1px #ebd5ae42;
  cursor: inherit;
}
#atmosphere-study .atmosphere-layers input:checked {
  background: linear-gradient(#654319,#c79446);
}
#atmosphere-study .atmosphere-layers input::after {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border: 1px solid #ebd5ab;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 20%,#fff1c9,#ceb485 36%,#a28352 67%,#6f5839);
  box-shadow: inset 0 0 0 1px #69533866,1px 2px 2px #110b05ac;
}
#atmosphere-study .atmosphere-layers input:checked::after { transform: translateX(14px); }
#atmosphere-study .atmosphere-layers label:has(:focus-visible) { outline: 2px solid #ffe1a4; outline-offset: 2px; }
@media (hover:hover) {
  #atmosphere-study .atmosphere-layers label:hover { border-color: #dec293; }
}
@media (prefers-reduced-motion:no-preference) {
  html:not([data-studio-motion=off]) .atmosphere-layers input::after { transition: transform 145ms ease-out; }
}
@media (max-width:899px) {
  .atmosphere-study .atmosphere-panel { grid-template-columns: minmax(0,1fr); }
  #atmosphere-study .atmosphere-layers { grid-column: 1; grid-row: auto; margin-top: 12px; width: min(100%,30rem); }
}
@media (forced-colors:active) {
  #atmosphere-study .atmosphere-layers input { appearance: auto; width: 22px; height: 22px; }
  #atmosphere-study .atmosphere-layers input::after { display: none; }
  #atmosphere-study .atmosphere-layers label:has(:focus-visible) { outline-color: Highlight; }
}

