:root {
  color-scheme: light;
  --wall-cream: #f5ecc8;
  --wall-light: #faf2d4;
  --wall-mid:   #ebd9a4;
  --wall-shadow:#c8b270;
  --buttercup:  #f0c45a;
  --canary:     #f5d978;
  --lemon:      #fceea0;
  --ivory:      #fcf5da;
  --paper:      #fbf2d2;
  --paper-edge: #d8c790;
  --ochre:      #b8862e;
  --gilded:     #d8a948;
  --brass:      #b78b3a;
  --brass-light:#e7c578;
  --brass-glow: #c08a18;
  --sepia:      #4a3318;
  --sepia-soft: #7a5a30;
  --sepia-mid:  #604628;
  --umber-deep: #2e1d0a;
  --bone:       #5a4218;
  --ink:        #3a2410;
  --ink-soft:   #6e4f24;
  --lavender-shade: rgba(140, 120, 160, 0.18);
  --hairline:      rgba(120, 90, 30, 0.35);
  --hairline-soft: rgba(120, 90, 30, 0.18);
  --display: "Italiana", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wall-cream);
  color: var(--sepia);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body.gallery-wall {
  background:
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(255, 232, 150, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 50% at 18% 75%, rgba(180, 160, 200, 0.18), transparent 65%),
    radial-gradient(ellipse 60% 50% at 82% 78%, rgba(200, 175, 120, 0.22), transparent 65%),
    linear-gradient(180deg, var(--wall-light) 0%, var(--wall-cream) 45%, var(--wall-mid) 100%);
}

body.drop-highlight { outline: 3px solid rgba(200, 145, 30, 0.55); outline-offset: -3px; }

.wall-texture, .wall-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wall-texture {
  background-image: url('/static/textures/canvas.svg');
  background-size: 640px 640px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.32;
}

.wall-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.6' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.82  0 0 0 0 0.45  0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.cursor-lantern {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-9999px, -9999px, 0);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 235, 140, 0.45) 0%,
    rgba(255, 220, 110, 0.22) 22%,
    rgba(255, 200, 80, 0.08) 45%,
    rgba(255, 200, 80, 0) 70%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  will-change: transform;
}

@media (hover: none) { .cursor-lantern { display: none; } }

/* Deposit CTA — small ivory plaque pinned top-right */
.deposit-cta {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem 0.65rem 0.9rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 250, 220, 0.7), transparent 60%),
    linear-gradient(160deg, var(--ivory) 0%, var(--paper) 50%, #f0e0a8 100%);
  border: 1px solid rgba(216, 169, 72, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 220, 0.7),
    inset 0 -1px 0 rgba(120, 90, 30, 0.12),
    0 6px 16px rgba(120, 90, 40, 0.2);
  font-family: var(--sc);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--umber-deep);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 240, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.deposit-cta:hover {
  border-color: var(--ochre);
  color: var(--umber-deep);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 220, 0.85),
    inset 0 -1px 0 rgba(120, 90, 30, 0.18),
    0 8px 24px rgba(200, 145, 30, 0.3),
    0 0 22px rgba(245, 220, 130, 0.6);
  transform: translateY(-1px);
}

.deposit-cta-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff2c2 0%, #e7c578 18%, #b78b3a 50%, #6e4a14 90%);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.55),
    inset 0 2px 3px rgba(255, 240, 200, 0.55),
    inset 0 0 0 1px rgba(94, 60, 12, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.45);
  color: #2a1808;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 0.08em;
}

@media (max-width: 560px) {
  .deposit-cta {
    top: 0.7rem;
    right: 0.7rem;
    padding: 0.5rem 0.55rem;
    gap: 0;
  }
  .deposit-cta-label { display: none; }
}

#app-shell { position: relative; z-index: 2; }

.memorial-serif { font-family: var(--display); }

/* ---------------------------------------------------------------------
 * Masthead + hero (artist title card)
 * ------------------------------------------------------------------- */

.gallery-masthead {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.gallery-eyebrow {
  margin: 0;
  font-family: var(--sc);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.gallery-eyebrow--muted {
  color: var(--sepia-soft);
  letter-spacing: 0.28em;
}

.gallery-eyebrow + .gallery-eyebrow {
  position: relative;
  padding-top: 0.5rem;
}

.gallery-eyebrow + .gallery-eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 36px;
  height: 1px;
  background: rgba(120, 90, 30, 0.55);
  transform: translateX(-50%);
}

.memorial-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.memorial-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memorial-name {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.05;
  color: var(--umber-deep);
  text-shadow: 0 1px 0 rgba(255, 250, 220, 0.5);
}

.memorial-dates {
  margin: 0 0 1.4rem;
  position: relative;
  padding: 0.5rem 0 0;
  font-family: var(--sc);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.memorial-dates::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 1px;
  background: rgba(120, 90, 30, 0.55);
  transform: translateX(-50%);
}

.memorial-lede {
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sepia);
  max-width: 46ch;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------
 * FRAME — ornate cutout + soft-light spotlight + drop-shadow stack
 * (shared by hero gallery, memory cards, and spotlight)
 * ------------------------------------------------------------------- */

.frame-mount {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 240px;
}

.memory-grid.salon-wall .frame-mount { max-width: 220px; }

.frame-mount::before {
  content: "";
  position: absolute;
  left: -45%;
  right: -45%;
  top: -75%;
  height: 170%;
  background: radial-gradient(ellipse 55% 65% at 50% 55%,
    rgba(255, 234, 150, 0.55) 0%,
    rgba(255, 222, 120, 0.32) 22%,
    rgba(248, 210, 110, 0.14) 50%,
    rgba(240, 196, 90, 0.04) 75%,
    rgba(240, 196, 90, 0) 90%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.frame-mount > .frame {
  position: relative;
  z-index: 1;
}

.frame {
  --aperture-pad: 12% 12%;
  --frame-svg: url('/static/frames/options/botanical-garland.svg');
  --aspect: 4 / 5;
  display: inline-block;
  width: 100%;
  aspect-ratio: var(--aspect);
  background-image: var(--frame-svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: var(--aperture-pad);
  filter:
    saturate(0.78)
    contrast(0.94)
    brightness(1.04)
    drop-shadow(0 2px 3px rgba(150, 110, 50, 0.16))
    drop-shadow(0 8px 14px rgba(150, 110, 50, 0.12))
    drop-shadow(0 22px 34px rgba(150, 110, 50, 0.1));
}

.frame--ebony   { --frame-svg: url('/static/frames/ebony-gold.svg');   --aperture-pad: 10.4% 10.4%; }
.frame--cream   { --frame-svg: url('/static/frames/cream-modern.svg'); --aperture-pad: 7.2% 7%; }
.frame--polaroid {
  --frame-svg: url('/static/frames/polaroid.svg');
  --aperture-pad: 5.6% 7% 19.2% 7%;
}
.frame--landscape { --aspect: 5 / 4; }
.frame--square    { --aspect: 1 / 1; }

.frame-aperture {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0805;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 6px 18px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-aperture > img,
.frame-aperture > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-aperture--audio {
  background:
    radial-gradient(circle at 50% 45%, #fbecc8 0%, #ecd9a4 55%, #cba968 100%);
  color: var(--ink);
  padding: 0;
}

.record-deck-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-deck-wrap > audio.record-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.record-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record {
  position: relative;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(0,0,0,0) 18.1%),
    repeating-radial-gradient(circle at 50% 50%,
      #1a120a 0 1.4px,
      #2a2018 1.4px 3px),
    #1a120a;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 -8px 30px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(60, 40, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.record::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(255, 230, 150, 0.18) 0deg,
      transparent 60deg,
      rgba(255, 230, 150, 0.10) 180deg,
      transparent 270deg,
      rgba(255, 230, 150, 0.18) 360deg);
  pointer-events: none;
}

.record[data-playing="true"] {
  animation: record-spin 4s linear infinite;
}

@keyframes record-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.record-label {
  position: relative;
  width: 36%;
  height: 36%;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 6%, rgba(0,0,0,0.7) 6.1% 9%, transparent 9.1%),
    radial-gradient(circle at 35% 30%, #fbedb8 0%, #e7c578 35%, #a87b30 90%);
  box-shadow:
    inset 0 0 0 1px rgba(120, 80, 20, 0.4),
    inset 0 -3px 8px rgba(60, 40, 10, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  text-align: center;
  overflow: hidden;
}

.record-label-text {
  font-family: var(--display);
  font-size: 0.7rem;
  line-height: 1.05;
  color: var(--umber-deep);
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(255, 250, 220, 0.4);
  max-width: 100%;
}

.record-tonearm {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 38%;
  height: 4px;
  background: linear-gradient(180deg, #fbedb8, #b78b3a);
  border-radius: 2px;
  transform-origin: right center;
  transform: rotate(-32deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.record-tonearm::before {
  content: "";
  position: absolute;
  right: -3px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbedb8 0%, #b78b3a 90%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.4);
}

.record-tonearm::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 8px;
  height: 4px;
  background: #2a1808;
  border-radius: 1px;
}

.record-transport {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 250, 220, 0.88);
  border: 1px solid rgba(216, 169, 72, 0.5);
  box-shadow: 0 4px 10px rgba(120, 90, 40, 0.18);
  backdrop-filter: blur(2px);
}

.transport-btn {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1px solid rgba(168, 123, 48, 0.55);
  background:
    radial-gradient(circle at 32% 28%, #fff2c2 0%, #e7c578 22%, #b78b3a 65%, #7a5418 100%);
  color: rgba(40, 22, 4, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 245, 200, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.transport-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 245, 200, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(232, 200, 140, 0.5);
}

.transport-btn--main {
  width: 1.95rem;
  height: 1.95rem;
}

.transport-btn svg { display: block; }

.frame-aperture--file {
  background: linear-gradient(140deg, #2a201a, #0d0805);
  color: var(--brass-glow);
  font-family: var(--sc);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.7rem;
  text-align: center;
  padding: 1rem;
}

.frame-aperture--file a {
  color: var(--brass-glow);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 200, 140, 0.55);
  padding-bottom: 0.2em;
}

.frame-aperture--file a:hover { color: #fff5d8; }

a.frame, button.frame {
  border: none;
  cursor: pointer;
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, filter 0.4s ease;
}

a.frame:hover, button.frame:hover {
  transform: translateY(-2px);
  filter:
    saturate(0.85)
    contrast(0.95)
    brightness(1.07)
    drop-shadow(0 3px 4px rgba(150, 110, 50, 0.2))
    drop-shadow(0 12px 18px rgba(150, 110, 50, 0.16))
    drop-shadow(0 30px 42px rgba(150, 110, 50, 0.13));
}

/* Heaviest treatment for the hero portrait gallery */
.frame-mount--portrait {
  max-width: 460px;
}

.frame-mount--portrait::before {
  left: -65%;
  right: -65%;
  top: -100%;
  height: 240%;
  background: radial-gradient(ellipse 50% 55% at 50% 55%,
    rgba(255, 234, 140, 0.6) 0%,
    rgba(255, 220, 110, 0.36) 24%,
    rgba(248, 208, 100, 0.16) 52%,
    rgba(240, 196, 90, 0.04) 75%,
    rgba(240, 196, 90, 0) 92%);
}

.frame-mount--portrait > .frame {
  filter:
    saturate(0.78)
    contrast(0.94)
    brightness(1.04)
    drop-shadow(0 3px 4px rgba(150, 110, 50, 0.18))
    drop-shadow(0 14px 20px rgba(150, 110, 50, 0.14))
    drop-shadow(0 38px 56px rgba(150, 110, 50, 0.12));
}

/* ---------------------------------------------------------------------
 * HERO GALLERY (rotating portrait)
 * ------------------------------------------------------------------- */

.memorial-gallery-mount {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.memorial-gallery {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memorial-gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Map legacy gallery elements onto the new frame structure */
.memorial-gallery-frame {
  position: relative;
  width: 100%;
  background: transparent;
  display: block;
}

.memorial-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memorial-gallery-caption {
  margin: 1.4rem auto 0;
  padding: 0.9rem 1.4rem 0.85rem;
  max-width: 28rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 250, 220, 0.6), transparent 60%),
    linear-gradient(160deg, var(--ivory) 0%, var(--paper) 50%, #f0e0a8 100%);
  border: 1px solid rgba(216, 169, 72, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 220, 0.6),
    inset 0 -1px 0 rgba(120, 90, 30, 0.12),
    0 6px 18px rgba(120, 90, 40, 0.18);
  color: var(--umber-deep);
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 240, 0.8);
}

.memorial-gallery-plate,
.spotlight-plate {
  margin: 0.55rem 0 0;
  text-align: center;
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.spotlight-plate {
  margin: 0.35rem 0 1.1rem;
}

.memorial-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.memorial-gallery-btn {
  font-family: var(--sc);
  font-size: 0.75rem;
  line-height: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.4);
  color: var(--sepia);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.memorial-gallery-btn:hover {
  border-color: var(--ochre);
  color: var(--ochre);
  background: rgba(245, 220, 130, 0.4);
}

.memorial-gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.memorial-gallery-dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(120, 90, 30, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.memorial-gallery-dot.is-active {
  background: var(--ochre);
  transform: scale(1.4);
}

/* ---------------------------------------------------------------------
 * SPOTLIGHT (on this day)
 * ------------------------------------------------------------------- */

.spotlight-mount {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
}

.spotlight {
  background: rgba(255, 250, 220, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 2rem 2rem 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.5), 0 8px 24px rgba(120, 90, 40, 0.12);
  backdrop-filter: blur(3px);
}

.spotlight-headline {
  margin: 0 0 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--sc);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.spotlight-empty {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia-soft);
}

.spotlight-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-start;
}

.spotlight-gallery-media {
  flex: 0 0 min(100%, 280px);
  width: min(100%, 280px);
}

.spotlight-gallery-media .spotlight-media {
  width: 100%;
}

.spotlight-gallery-controls {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.spotlight-media {
  flex: 0 0 min(100%, 280px);
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid rgba(216, 169, 72, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 220, 0.6), 0 4px 12px rgba(120, 90, 40, 0.15);
}

.spotlight-media--audio {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 45%, #fbecc8 0%, #ecd9a4 55%, #cba968 100%);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-media audio { width: 88%; }

.spotlight-text { flex: 1 1 14rem; min-width: 0; }

.spotlight-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--umber-deep);
}

.spotlight-when {
  margin: 0 0 0.85rem;
  font-family: var(--sc);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.spotlight-snippet {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.spotlight-file-link {
  font-family: var(--sc);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.spotlight-jump {
  margin-top: 1.5rem;
  font-family: var(--sc);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.5);
  color: var(--sepia);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.spotlight-jump:hover { border-color: var(--ochre); color: var(--ochre); background: rgba(245, 220, 130, 0.4); }

/* ---------------------------------------------------------------------
 * AMBIENT PLAYER
 * ------------------------------------------------------------------- */

.ambient-root {
  position: fixed;
  z-index: 30;
  left: 1rem;
  bottom: 1rem;
  max-width: min(100vw - 2rem, 320px);
}

.ambient-player {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 250, 220, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(216, 169, 72, 0.45);
  box-shadow: 0 8px 28px rgba(120, 90, 40, 0.2);
  font-family: var(--sc);
  color: var(--sepia);
}

.ambient-player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.ambient-player-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ochre);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  flex: 1;
}

.ambient-player-close {
  flex-shrink: 0;
  margin: -0.2rem -0.15rem 0 0;
  padding: 0 0.25rem;
  line-height: 1;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--sepia-soft);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ambient-player-close:hover {
  color: var(--ochre);
}

.ambient-player-toggle {
  font-family: var(--sc);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 0.5rem 0.95rem;
  border-radius: 0;
  border: 1px solid var(--ochre);
  background: transparent;
  color: var(--ochre);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ambient-player-toggle:hover {
  background: var(--ochre);
  color: var(--ivory);
}

.ambient-player audio {
  width: 100%;
  margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------
 * SALON — the wall of user-uploaded memories
 * ------------------------------------------------------------------- */

.site-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.salon-section {
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.salon-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.salon-section-header .gallery-eyebrow { margin-bottom: 0.5rem; }

.salon-heading {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--umber-deep);
}

.salon-sub {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia);
}

.salon-toolbar {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 250, 220, 0.55);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(120, 90, 40, 0.08);
}

.search-field { display: flex; flex-direction: column; gap: 0.45rem; }

.search-label {
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.search-input {
  font: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0.55rem 0.2rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input::placeholder { color: var(--sepia-soft); }
.search-input:focus { border-bottom-color: var(--ochre); }

.shortcuts-label {
  margin: 0.4rem 0 0.3rem;
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.shortcut-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
}

.shortcut-chip {
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--sepia);
  border-radius: 0;
  padding: 0.2rem 0.05rem;
  font: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shortcut-chip:hover { border-bottom-color: var(--ochre); color: var(--ochre); }

/* SALON WALL — asymmetric salon-hang grid */

.memory-grid.salon-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 1rem;
  align-items: start;
  padding: 1.5rem 0.5rem 4rem;
}

.memory-grid.salon-wall .card {
  /* placement assigned via inline style by JS */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0;
  overflow: visible;
}

/* When an empty grid is rendered we still show the empty message gracefully */
.memory-grid.salon-wall .card-empty-msg { grid-column: 1 / -1; }

/* ---------------------------------------------------------------------
 * MEMORY CARD — the framed plate + plaque + drop-down details
 * ------------------------------------------------------------------- */

.card { position: relative; }

.card-media {
  /* Used as the inner aperture content; the .frame around it is added by JS */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0805;
}

.card-media img,
.card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media audio { width: 90%; }

.card-body {
  width: 100%;
  max-width: 280px;
  margin-top: 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--sepia);
  text-align: center;
}

/* Plaque holding the title + date + byline */
.card-title-block {
  width: auto;
  max-width: 280px;
  padding: 0.7rem 1rem 0.75rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 250, 220, 0.6), transparent 60%),
    linear-gradient(160deg, var(--ivory) 0%, var(--paper) 50%, #f0e0a8 100%);
  border: 1px solid rgba(216, 169, 72, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 220, 0.6),
    inset 0 -1px 0 rgba(120, 90, 30, 0.12),
    0 6px 16px rgba(120, 90, 40, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 240, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.card-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--umber-deep);
  cursor: pointer;
}

.card-title.desc-placeholder {
  font-style: italic;
  color: var(--sepia-soft);
}

.title-edit {
  width: 100%;
  font: inherit;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.6);
  color: var(--umber-deep);
}

.card-byline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--sepia-soft);
}

.memory-date-block { width: 100%; text-align: center; margin: 0; }
.memory-date-view {
  margin: 0;
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.memory-date-actions { margin-top: 0.35rem; }

.memory-date-input {
  font: inherit;
  font-family: var(--serif);
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.7);
  color: var(--ink);
  margin-bottom: 0.35rem;
}

/* "More" disclosure button under each plaque */
.card-more-toggle {
  margin-top: 0.45rem;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sc);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card-more-toggle:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

.card-more-chevron {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  line-height: 1;
  transform: translateY(-1px);
}

.card-more-toggle[aria-expanded="true"] .card-more-chevron {
  transform: translateY(-1px) rotate(180deg);
}

/* Collapsible details container */
.card-info {
  width: 100%;
  max-width: 280px;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.card-delete-row {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(62, 48, 32, 0.12);
  display: flex;
  justify-content: center;
}

.card-delete-memory {
  color: #7a2828;
  border-color: rgba(122, 40, 40, 0.35);
}

.card-delete-memory:hover {
  color: #fff;
  background: #7a2828;
  border-color: #7a2828;
}

/* Body details that sit below the plaque */
.card-desc {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0 0.25rem;
  text-align: left;
}

.card-text-block { display: flex; flex-direction: column; gap: 0.3rem; }

.card-section-label {
  margin: 0;
  font-family: var(--sc);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.card-summary,
.desc-view {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  cursor: pointer;
}

.desc-placeholder { font-style: italic; color: var(--sepia-soft); }

.desc-edit {
  width: 100%;
  font: inherit;
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.7);
  color: var(--ink);
  resize: vertical;
}

.desc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.desc-btn {
  font-family: var(--sc);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.5);
  color: var(--sepia);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.desc-btn:hover { border-color: var(--brass-glow); color: var(--ochre); background: rgba(255, 235, 160, 0.6); }

.primary-inline {
  background: var(--ochre);
  color: var(--ivory);
  border-color: var(--ochre);
}

.primary-inline:hover:not(:disabled) {
  background: var(--brass-glow);
  border-color: var(--brass-glow);
  color: var(--ivory);
}

.desc-error {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #8a3318;
}

/* Transcript */
.transcript-disclosure {
  margin-top: 0.35rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 250, 220, 0.55);
}

.transcript-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sc);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  background: rgba(245, 220, 130, 0.4);
  color: var(--sepia);
  user-select: none;
}

.transcript-summary::-webkit-details-marker { display: none; }

.transcript-summary::after {
  content: "";
  float: right;
  width: 0.4em;
  height: 0.4em;
  margin-top: 0.5em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.transcript-disclosure[open] .transcript-summary::after {
  margin-top: 0.65em;
  transform: rotate(-135deg);
}

.transcript-text {
  margin: 0;
  padding: 0.55rem 0.7rem;
  max-height: 16rem;
  overflow-y: auto;
  border-top: 1px solid var(--hairline-soft);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
}

.transcript-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.55rem 0;
}

.transcript-turns-view {
  max-height: 16rem;
  overflow-y: auto;
  border-top: 1px solid var(--hairline-soft);
  padding: 0.5rem 0.7rem 0.6rem;
}

.transcript-turn { margin-bottom: 0.7rem; }
.transcript-turn:last-child { margin-bottom: 0; }

.transcript-speaker-label {
  display: block;
  font-family: var(--sc);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
  margin-bottom: 0.2rem;
}

.transcript-line { margin: 0; padding: 0; border: none; max-height: none; }

.transcript-edit-wrap {
  border-top: 1px solid var(--hairline-soft);
  padding: 0.5rem 0.7rem 0.6rem;
}

.transcript-edit-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.transcript-edit-row { display: flex; flex-direction: column; gap: 0.25rem; }

.transcript-speaker-select {
  font: inherit;
  font-family: var(--sc);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  max-width: 11rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0;
  border: 1px solid var(--hairline-soft);
  background: rgba(255, 250, 220, 0.6);
  color: var(--ink);
}

.transcript-edit-ta {
  font: inherit;
  font-family: var(--serif);
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border-radius: 0;
  border: 1px solid var(--hairline-soft);
  background: rgba(255, 250, 220, 0.7);
  color: var(--ink);
  resize: vertical;
  min-height: 4rem;
}

.transcript-edit-actions { margin-top: 0.45rem; }

.transcript-en-block { border-top: 1px solid var(--hairline-soft); }

.transcript-en-label {
  margin: 0;
  padding: 0.5rem 0.7rem 0;
  font-family: var(--sc);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.transcript-en { border-top: none; padding-top: 0.25rem; }

.transcript-en-actions {
  padding: 0.4rem 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.transcript-actions {
  padding: 0.55rem 0.7rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

/* Tag axes */
.axis-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
  width: 100%;
  max-width: 280px;
  padding: 0 0.25rem;
}

.axis-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
}

.axis-label {
  font-family: var(--sc);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia-soft);
  min-width: 5.5rem;
}

.axis-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.axis-pill {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: rgba(255, 250, 220, 0.65);
  color: var(--ink);
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.axis-people     { border-color: rgba(110, 140, 175, 0.55); background: #e3edf5; color: #2c3d4d; }
.axis-era        { border-color: rgba(168, 130, 180, 0.55); background: #f0e8f5; color: #4a354f; }
.axis-place      { border-color: rgba(120, 165, 130, 0.55); background: #e6f1ea; color: #2d4a35; }
.axis-mood       { border-color: rgba(220, 165, 90, 0.65);  background: #fceec8; color: #5c3d24; }
.axis-sensitivity{ border-color: rgba(190, 165, 110, 0.55); background: #f5ecd0; color: #52462e; }
.axis-legacy .axis-pill { border-color: var(--hairline); background: rgba(245, 220, 130, 0.4); color: var(--sepia); }

/* ---------------------------------------------------------------------
 * ARCHIVE / DEPOSIT
 * ------------------------------------------------------------------- */

.archive {
  margin: 4rem auto 0;
  max-width: 720px;
}

.archive-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sc);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 1.2rem 1.35rem;
  border-radius: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--sepia);
  text-align: center;
  transition: color 0.2s ease;
}

.archive-summary:hover { color: var(--ochre); }

.archive-summary::-webkit-details-marker { display: none; }

.archive-summary::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.7em;
  width: 0.4em;
  height: 0.4em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.archive[open] .archive-summary::after { transform: rotate(-135deg); }

.archive-body {
  padding: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel {
  background: linear-gradient(180deg, #f7eed8 0%, #ece1c2 100%);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(120, 90, 50, 0.08) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.4  0 0 0 0 0.18  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-color: #f7eed8;
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: 0;
  padding: 2.5rem 2.6rem;
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.panel-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel h2,
.panel-heading-ui {
  margin: 0 0 1.6rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: none;
}

.upload-form { display: flex; flex-direction: column; gap: 1.2rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field > span {
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(58, 42, 24, 0.45);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(58, 42, 24, 0.4); }

.field-memory-note textarea {
  min-height: 9rem;
  line-height: 1.6;
}

.memory-note-input { font-family: var(--serif); font-style: italic; }

.file-drop-field { gap: 0.5rem; }

.file-drop-label {
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.file-drop-optional {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sepia-soft);
  margin-left: 0.4em;
}

.file-drop-fallback {
  margin: 0.65rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sepia-soft);
}

.file-drop-zone {
  position: relative;
  min-height: 7rem;
  border: 1px dashed rgba(58, 42, 24, 0.5);
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  margin-top: 0.45rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop-zone:focus-within {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.file-drop-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 30ch;
  pointer-events: none;
}

.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.primary {
  align-self: flex-start;
  font-family: var(--sc);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 0;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.primary:hover:not(:disabled) { background: #18110a; }
.primary:disabled { opacity: 0.55; cursor: not-allowed; }

.primary-save {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.primary-save:hover:not(:disabled) { background: #18110a; }

.status {
  min-height: 1.25rem;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.status.error { color: #8a2a18; }

/* ---------------------------------------------------------------------
 * MISC + FOOTER
 * ------------------------------------------------------------------- */

.gallery-colophon {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  font-family: var(--sc);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

.gallery-colophon p { margin: 0; }

.empty {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia-soft);
  text-align: center;
  padding: 3rem 1rem;
}

.hidden { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .memory-grid.salon-wall { gap: 2.8rem 1.2rem; }
}

@media (max-width: 820px) {
  .memorial-name { font-size: clamp(2.1rem, 7vw, 3.2rem); }
  .panel { padding: 2rem 1.6rem 2.2rem; }
  .ambient-root { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .gallery-masthead { padding: 2.4rem 1rem 0.4rem; }
  .memorial-hero { padding: 1.5rem 1rem 2rem; }
  .memorial-gallery-mount { padding: 1rem 1rem 1.5rem; }
  .memory-grid.salon-wall {
    grid-template-columns: 1fr !important;
    gap: 3rem 0;
  }
  .memory-grid.salon-wall .card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin-top: 0 !important;
  }
  .frame-mount { max-width: 100%; }
  .frame-mount--portrait { max-width: 90vw; }
  .panel { padding: 1.6rem 1.2rem 1.8rem; }
  .ambient-player audio { max-width: 100%; }
}
