/* Public-page layer for citare.dev/_controls/ — wall label and statement.
   Kept outside src/ and styles.css so the artwork itself stays untouched. */

.work-label {
  position: fixed;
  z-index: 3;
  left: clamp(18px, 5vw, 44px);
  bottom: clamp(18px, 5vh, 40px);
  max-width: min(360px, calc(100vw - 36px));
  color: #3b352c;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: .02em;
  opacity: .82;
  transition: opacity 1.4s ease;
  animation: work-label-in 2.4s ease 2.2s both;
}

html[data-viewer-idle='true'] .work-label { opacity: .28; }
.work-label:hover,
.work-label:focus-within { opacity: 1; }

html[data-capture-mode='fixed'] .work-label { display: none; }

.work-label p { margin: 0; }

.work-label__title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
}

.work-label__meta { font-size: 12px; }

.work-label__more {
  margin: 8px 0 0;
  padding: 4px 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
}

.work-label__more:focus-visible,
.about button:focus-visible,
.about a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@keyframes work-label-in {
  from { opacity: 0; }
}

/* Statement dialog */

.about {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  color: #3b352c;
  border: 1px solid rgba(59, 53, 44, .18);
  background: rgba(246, 241, 229, .97);
  box-shadow: 0 18px 60px rgba(40, 32, 20, .18);
  font-size: 15px;
  line-height: 1.8;
}

.about::backdrop {
  background: rgba(236, 228, 210, .45);
  backdrop-filter: blur(2px);
}

.about__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 12px;
  background: inherit;
}

.about__header h2 {
  flex: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .06em;
}

.about__lang {
  display: flex;
  gap: 2px;
}

.about__lang button,
.about__close {
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.about__lang button[aria-pressed='true'] { border-color: currentColor; }
.about__close { font-size: 22px; line-height: 1; }

.about__body { padding: 4px 24px 28px; }
.about__body[hidden] { display: none; }

.about h3 {
  margin: 28px 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about p { margin: 0 0 12px; }
.about ul { margin: 0 0 12px; padding-left: 1.2em; }
.about a { color: inherit; }

.about__venue {
  font-size: 13px;
  letter-spacing: .04em;
}

.about__credit { margin-bottom: 8px; }
.about__credit small { display: block; font-size: 12px; opacity: .8; }

@media (max-width: 520px) {
  .work-label { font-size: 12px; }
  .work-label__title { font-size: 15px; }
  .about { font-size: 14px; }
  .about__header, .about__body { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-label { animation: none; transition: none; }
}

/* The blank subject: same solid rule as the artwork's title, text kept for indexing */
.work-label .blank,
.about .blank {
  display: inline-block;
  width: 2.6em;
  color: transparent;
  border-bottom: 1px solid #3b352c;
  line-height: 1;
  vertical-align: baseline;
  font-style: normal;
  user-select: all;
}

.about__header h2 { white-space: nowrap; }

@media (max-width: 520px) {
  .about__header { flex-wrap: wrap; row-gap: 4px; }
  .about__header h2 { font-size: 19px; }
}
