:root {
  color: #d8d6cf;
  background: #030306;
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #030306;
}

#painting {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.identity,
.now,
.controls,
#memory-panel,
#artist-panel,
#error {
  position: fixed;
  z-index: 2;
}

.identity {
  top: 24px;
  left: 26px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(216, 214, 207, 0.48);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.mark {
  color: rgba(216, 214, 207, 0.84);
  font-family: Syne, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.now {
  left: 26px;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 52px));
  pointer-events: none;
}

.now p { margin: 0; }

#note {
  color: rgba(216, 214, 207, 0.68);
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.4vw, 17px);
  font-style: italic;
  line-height: 1.5;
}

.metadata {
  margin-top: 7px !important;
  color: rgba(216, 214, 207, 0.34);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.controls {
  right: 22px;
  bottom: 20px;
  display: flex;
  gap: 7px;
}

button {
  border: 1px solid rgba(216, 214, 207, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(216, 214, 207, 0.5);
  background: rgba(3, 3, 6, 0.36);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

button:hover,
button:focus-visible {
  color: rgba(216, 214, 207, 0.9);
  border-color: rgba(216, 214, 207, 0.3);
}

button:disabled {
  color: rgba(216, 214, 207, 0.2);
  cursor: default;
}

#memory-panel,
#artist-panel {
  top: 50%;
  left: 50%;
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(216, 214, 207, 0.13);
  background: rgba(3, 3, 6, 0.84);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

#memory-panel {
  width: min(390px, calc(100vw - 36px));
}

#artist-panel {
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.memory-title,
.memory-summary,
.memory-description {
  margin: 0;
}

.memory-title {
  color: rgba(216, 214, 207, 0.82);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.memory-summary {
  margin-top: 14px;
  color: rgba(216, 214, 207, 0.7);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-description {
  margin-top: 8px;
  color: rgba(216, 214, 207, 0.48);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.panel-kicker,
.panel-title,
.artist-identity,
.artist-goal,
.artist-statement p,
.artist-inquiry p,
.artist-practice,
.artist-proposition {
  margin: 0;
}

.panel-kicker {
  color: rgba(216, 214, 207, 0.34);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-title {
  margin-top: 8px;
  color: rgba(216, 214, 207, 0.86);
  font-family: Syne, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.artist-identity {
  margin-top: 18px;
  color: rgba(216, 214, 207, 0.56);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

.artist-goal {
  margin-top: 18px;
  color: rgba(216, 214, 207, 0.9);
  font-family: Georgia, serif;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.3;
}

.artist-statement {
  margin-top: 20px;
}

.artist-statement p {
  margin-top: 10px;
  color: rgba(216, 214, 207, 0.58);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
}

.artist-inquiry {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 214, 207, 0.11);
}

#artist-inquiry {
  margin-top: 8px;
  color: rgba(216, 214, 207, 0.76);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.artist-practice,
.artist-proposition {
  margin-top: 18px;
  color: rgba(216, 214, 207, 0.42);
  font-size: 10px;
  line-height: 1.6;
}

.artist-proposition {
  color: rgba(216, 214, 207, 0.56);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

#artist-close {
  margin-top: 24px;
}

#error {
  inset: 50% auto auto 50%;
  width: min(520px, calc(100vw - 48px));
  margin: 0;
  transform: translate(-50%, -50%);
  color: #d7a49b;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 640px) {
  .identity { top: 18px; left: 18px; }
  .now { left: 18px; bottom: 64px; }
  .controls { right: 16px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #replay { display: none; }
}
