/* alt-lab shared styles. Dark room, warm paper. */

@font-face {
  font-family: 'IM Fell English';
  src: url('../fonts/IMFellEnglish-Regular.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('../fonts/IMFellEnglish-Italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Regular.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #101114;
  --bg-raise: #1a1c21;
  --ink: #e8e4da;
  --ink-dim: #9a958a;
  --accent: #7fa3c8;      /* cyanotype blue, desaturated */
  --line: #2a2d34;
  --paper: #efe9dc;
  --serif: 'IM Fell English', 'Georgia', 'Times New Roman', serif;
  --prose: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  --parchment: #e9e2d0;
  --parchment-ink: #3a3226;
  --sans: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.82);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.site-nav { display: flex; gap: 18px; font-size: 0.85rem; }
.site-nav a { color: var(--ink-dim); }
.site-nav a.active, .site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Landing */
.hero {
  padding: 14vh 0 8vh;
  text-align: center;
}
.hero.hero-scene {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 0;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.hero-note {
  margin-top: 30px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.hero-doors {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  perspective: 700px;
}
.hero-doors .enter {
  margin-top: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.hero-doors .enter:first-child { transform: rotateY(14deg); }
.hero-doors .enter:last-child { transform: rotateY(-14deg); }
.hero-doors .enter:hover { transform: rotateY(0deg) scale(1.04); }
.hero .enter.quiet {
  border-color: var(--line);
  color: var(--ink-dim);
}
.hero .enter.quiet:hover {
  background: none;
  color: var(--ink);
  border-color: var(--ink-dim);
}
.hero-standing {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #beb7a6;
}
.hero-standing a { color: var(--accent); }
.hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(16, 17, 20, 0.45) 0%,
    rgba(16, 17, 20, 0.72) 55%, var(--bg) 100%);
}
.hero-scene .wrap { position: relative; z-index: 1; }
.hero-scene h1, .hero-scene p { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }
.hero-scene p { color: #c9c4b8; }
.hero-scene .enter {
  background: rgba(16, 17, 20, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Label worn by every AI-generated illustration */
.ai-note {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}
.hero p {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--ink-dim);
  font-family: var(--prose);
  font-size: 1.18rem;
}
.hero .enter {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 34px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .enter:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

/* Lab picker */
.family {
  margin: 48px 0;
}
.family h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.family .family-note {
  font-family: var(--prose);
  font-size: 1rem;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
/* The benches hang in shallow 3D: an arc of framed prints in a dark room.
   The .card keeps reveal transforms; .card-inner carries the spatial ones. */
.family { perspective: 1200px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  transform-style: preserve-3d;
}
.card {
  display: block;
  color: var(--ink);
  transform-style: preserve-3d;
}
.card:hover { text-decoration: none; }
.card-inner {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  transform: rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) translateZ(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.25s ease, box-shadow 0.45s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}
.card:hover .card-inner {
  transform: rotateY(calc(var(--ry, 0deg) * 0.25)) rotateZ(0deg) translateZ(38px);
  border-color: var(--accent);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.58);
}
.card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  filter: saturate(0.82);
  opacity: 0.88;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.card:hover img { opacity: 1; filter: saturate(1); }
.card .card-body { padding: 14px 18px 18px; }
.card .year { font-size: 0.75rem; color: var(--ink-dim); letter-spacing: 0.08em; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 4px 0 6px; }
.card p { font-family: var(--prose); font-size: 0.98rem; color: var(--ink-dim); }

/* Ritual page */
.ritual {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ritual-head {
  text-align: center;
  margin: 10px 0 4px;
}
.ritual-head h1 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.ritual-head .meta { color: var(--ink-dim); font-size: 0.85rem; margin-top: 2px; }

.steps {
  display: flex;
  gap: 6px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.steps span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--line);
}
.steps span.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.steps span.done { color: var(--accent); border-color: var(--accent); }

.stage-canvas-holder {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
canvas.print {
  max-width: 100%;
  max-height: 62vh;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  touch-action: none;
  background: #0b0c0e;
}

.caption {
  max-width: 44em;
  text-align: center;
  color: var(--ink-dim);
  font-family: var(--prose);
  font-size: 1.08rem;
  min-height: 3.2em;
  margin: 6px 0 14px;
}
.caption strong { color: var(--ink); font-weight: 600; }

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 56px;
}
.btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 26px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost { border-color: var(--line); color: var(--ink-dim); }
.btn.ghost:hover:not(:disabled) { background: none; color: var(--ink); border-color: var(--ink-dim); }
.btn.hold { min-width: 220px; -webkit-touch-callout: none; touch-action: none; }
.btn.hold:active { background: var(--accent); color: var(--bg); }

.skip {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.skip button {
  background: none; border: none; color: var(--ink-dim);
  font-size: inherit; cursor: pointer; text-decoration: underline;
}
.skip button:hover { color: var(--ink); }

.meter {
  width: 220px;
  height: 4px;
  background: var(--line);
  position: relative;
}
.meter > div {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 0%;
}
.meter .ideal {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--ink-dim);
}
.meter-label { font-size: 0.75rem; color: var(--ink-dim); min-width: 9em; text-align: left; }

.sliders {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  width: min(420px, 90vw);
  margin: 4px 0;
}
.sliders label { font-size: 0.78rem; color: var(--ink-dim); letter-spacing: 0.05em; }
.sliders input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Upload panel */
.upload-panel {
  border: 1px dashed var(--line);
  padding: 60px 30px;
  text-align: center;
  width: min(560px, 92vw);
  margin: 20px 0;
}
.upload-panel.dragover { border-color: var(--accent); }
.upload-panel p { color: var(--ink-dim); font-family: var(--prose); font-size: 1.02rem; margin-top: 14px; }
.upload-panel .privacy { font-size: 0.78rem; margin-top: 22px; }
.upload-panel .drawer-line { margin-top: 18px; }
.upload-panel .drawer-line button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}
.upload-panel .drawer-line button:hover { color: var(--ink); }

/* Prose pages (history, about) */
.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
}
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin-bottom: 24px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 40px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--ink-dim); font-family: var(--prose); font-size: 1.12rem; }
.prose p strong { color: var(--ink); }

/* History timeline */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
}
.timeline > h1 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.timeline > .lede { color: var(--ink-dim); margin: 14px 0 40px; font-family: var(--prose); font-size: 1.14rem; }
.chapter {
  border-left: 1px solid var(--line);
  padding: 0 0 44px 28px;
  position: relative;
}
.chapter::before {
  content: '';
  position: absolute;
  left: -4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.chapter .year {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}
.chapter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 2px 0 10px;
  color: var(--ink-dim);
}
.chapter p { color: var(--ink-dim); margin-bottom: 12px; font-family: var(--prose); font-size: 1.1rem; }
.chapter figure { margin: 4px 0 16px; }
.chapter figure .frame {
  overflow: hidden;
  border: 1px solid var(--line);
}
.chapter figure img {
  width: 100%;
  display: block;
  filter: saturate(0.85);
}
.chapter figcaption { margin-top: 8px; }
.chapter .try {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 14px;
}
.chapter .try:hover { border-color: var(--accent); text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 24px 0 48px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-align: center;
}
.footer-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a { color: var(--ink-dim); }
.footer-nav a:hover { color: var(--ink); text-decoration: none; }
.site-footer .copyright {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #6f6a60;
}

/* ---- The apprentice layer: master's voice, letters, seals, ledger ---- */

.sound-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  cursor: pointer;
}
.sound-toggle.on { color: var(--accent); border-color: var(--accent); }

.master-note {
  max-width: 42em;
  margin: 0 auto 12px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #beb7a6;
  animation: notein 0.8s ease both;
}
.master-note .master-says {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
@keyframes notein { from { opacity: 0; transform: translateY(6px); } }

.fulfilled-note {
  max-width: 42em;
  margin: 0 auto 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  animation: notein 0.8s ease both;
}

.letters-btn {
  margin-top: 10px;
  background: none;
  border: 1px dashed var(--line);
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  padding: 6px 16px;
  cursor: pointer;
}
.letters-btn:hover { border-color: var(--accent); }
.letters-btn.all-done { color: var(--ink-dim); }

.letters-overlay[hidden] { display: none; }
.letters-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.letters-sheaf {
  max-width: 540px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.letters-sheaf h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  text-align: center;
}

.letter {
  position: relative;
  width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0.6 0.6 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.08'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23p)'/%3E%3C/svg%3E"),
    var(--parchment);
  color: var(--parchment-ink);
  padding: 22px 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.5deg);
}
.letter:nth-child(even) { transform: rotate(0.6deg); }
.letter .letter-from {
  font-family: var(--serif);
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.letter p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.letter .letter-goal {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5f4a;
  border-top: 1px dotted #b3a88e;
  padding-top: 10px;
}
.letter .letter-stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  transform: rotate(-11deg);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a3a2a;
  border: 2px solid #8a3a2a;
  border-radius: 4px;
  padding: 2px 10px;
  opacity: 0.85;
}
.letter.done { opacity: 0.82; }
.letter-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 14px; }
.letter-nav[hidden] { display: none; }
.letter-count { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-dim); }
.letters-list, .master-letters { width: 100%; }

/* Wax seals */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 47% 53% 50% 50% / 52% 48% 53% 47%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.28), transparent 42%),
    var(--seal, #444);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.18),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.5);
  font-family: var(--serif);
  font-size: 1.35rem;
  color: rgba(255, 250, 240, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.seal.ghost {
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--line);
  text-shadow: none;
}
.seal.mini {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  z-index: 2;
}
.card { position: relative; }
.card-status {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-status.done { color: var(--ink-dim); }

/* Ledger page */
.ledger-page { padding-top: 40px; }
.ledger-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
}
.ledger-page .apprentice-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  margin: 10px 0 30px;
}
.ledger-page section { margin: 40px 0; }
.ledger-page h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.ledger-note { font-size: 0.83rem; color: var(--ink-dim); margin-bottom: 18px; }
.ledger-note.privacy { margin-top: 50px; }

.seal-row { display: flex; gap: 18px; flex-wrap: wrap; }
.seal-slot { width: 86px; text-align: center; }
.seal-slot small {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--ink-dim);
  line-height: 1.3;
}

.commission-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.commission-row .commission-goal { color: var(--ink-dim); }
.commission-row .commission-state {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.commission-row.done .commission-state { color: #a8613e; }
@media (max-width: 560px) {
  .commission-row { grid-template-columns: 1fr auto; }
  .commission-row .commission-goal { grid-column: 1 / -1; }
}

.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.album-empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
}
.album-print {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 10px;
  margin: 0;
}
.album-print img { width: 100%; display: block; }
.album-print figcaption {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ink-dim);
  display: grid;
  gap: 1px;
}
.album-print .album-name { color: var(--ink); }
.album-print .album-verdict { font-family: var(--serif); font-style: italic; }
.album-print .album-remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 0.68rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.album-print .album-remove:hover { color: var(--ink); }

/* ---- Motion layer (only when js adds html.motion; reduced-motion never gets it) */

@view-transition { navigation: auto; }

html.motion main { animation: pagein 0.5s ease both; }
@keyframes pagein { from { opacity: 0; } }

html.motion .family,
html.motion .card,
html.motion .chapter,
html.motion .teaser,
html.motion .prose > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.motion .in { opacity: 1; transform: none; }
html.motion .chapter figure img { will-change: transform; }

/* Ritual life */
.caption, .controls { transition: opacity 0.18s ease; }
.stage-fade { opacity: 0; }
.meter > div { transition: width 0.12s linear; }
@keyframes sunpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 163, 200, 0); }
  50% { box-shadow: 0 0 26px 3px rgba(127, 163, 200, 0.4); }
}
.btn.hold.exposing {
  background: var(--accent);
  color: var(--bg);
  animation: sunpulse 1.4s ease-in-out infinite;
}

/* the herbarium on the ledger page */
.herbarium-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.herb-sheet { background: var(--parchment); color: var(--parchment-ink); padding: 8px 8px 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.herb-sheet canvas { width: 100%; height: auto; display: block; background: #fbf7ec; }
.herb-sheet figcaption { font-family: var(--serif); font-size: 0.95rem; margin-top: 6px; }
.herb-sheet small { display: block; font-family: var(--sans); font-size: 0.68rem; color: #6b5f4a; }
.herb-sheet.unknown { opacity: 0.45; }
