/* 水中墨: a basin of clear water, warm white, the words in ink. The page itself is /light-room/room.css. */
:root {
  color-scheme: light;
  --bg: #f3efe6;
  --text: #24211d;
  --muted: #5d574f;
  --quiet: #7d766c;
  --accent: #b2382c;
  --accent-rgb: 178 56 44;
  --hair: rgb(40 30 20 / 16%);
  --hover: rgb(40 30 20 / 6%);
  --glass: rgb(250 247 240 / 70%);
  --lab: linear-gradient(100deg, #24211d 10%, #b2382c 70%);
}
.say-name { color: var(--text); }
/* The site's mark is drawn for dark pages; on the white of the basin it is darkened to read. */
tipo-bar .tipo-mark { filter: brightness(0.42) saturate(1.4); }

/* The tool button shows the tool in the hand. */
#toolBtn .i-brush, #toolBtn .i-water, #toolBtn .i-gold { display: none; }
#toolBtn:not([data-tool='finger']) .i-finger { display: none; }
#toolBtn[data-tool='brush'] .i-brush, #toolBtn[data-tool='water'] .i-water, #toolBtn[data-tool='gold'] .i-gold { display: inline; }

/* The sheet of paper laid on the water: it comes down over the basin, lies a moment, and is lifted away. */
.paper {
  position: fixed;
  z-index: 4;
  inset: 4vmin;
  border-radius: 2px;
  background: linear-gradient(170deg, #fbf8f1, #f1ebdf);
  box-shadow: 0 30px 80px rgb(60 40 20 / 28%);
  opacity: 0;
  transform: translateY(-14vh) rotate(-1.5deg) scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
  pointer-events: none;
}
.paper.is-down { opacity: 0.96; transform: none; box-shadow: 0 2px 8px rgb(60 40 20 / 18%); }
.paper.is-up { opacity: 0; transform: translateY(-20vh) rotate(2deg) scale(1.03); }

/* The print, shown on a quiet sheet to save or put away. */
.print-sheet {
  position: fixed;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(36 30 24 / 38%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.print-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: min(920px, 100%);
  max-height: 100%;
  padding: 18px;
  border-radius: 14px;
  background: #fbf8f2;
  box-shadow: 0 30px 80px rgb(40 30 20 / 30%);
}
.print-card h2 { margin: 0; font: 500 20px/1.3 var(--serif); letter-spacing: 0.08em; color: var(--text); }
html[data-lang='en'] .print-card h2 { letter-spacing: 0.01em; }
#printCanvas { display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; box-shadow: 0 6px 24px rgb(40 30 20 / 18%); }
.print-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { background: transparent; cursor: pointer; font: inherit; }
.btn-solid { border-color: transparent; background: var(--text); color: #fbf8f2; }

@media (prefers-reduced-motion: reduce) {
  .paper { transition-duration: 0.2s; }
}
