/* Shared design language for The Museum: extends stavtheodor.com tokens. */

:root {
  --ivory: #FAF8F3;
  --ink: #1C1A17;
  --ink-soft: #4A463F;
  --bronze: #A0815C;
  --bronze-soft: #C4AE8F;
  --hairline: rgba(28, 26, 23, 0.14);
  --paper: 250, 248, 243;   /* rgb triplet of the page surface, for veils */
  --en: 'Cormorant Garamond', Georgia, serif;
  color-scheme: light;
}

/* night museum */
[data-theme="dark"] {
  --ivory: #17150F;
  --ink: #EAE4D6;
  --ink-soft: #B3AA99;
  --bronze: #C2A279;
  --bronze-soft: #7E6C52;
  --hairline: rgba(234, 228, 214, 0.16);
  --paper: 23, 21, 15;
  color-scheme: dark;
}

html { background: var(--ivory); transition: background 0.35s ease; }

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

html, body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--en);
  -webkit-font-smoothing: antialiased;
}

button { font-family: var(--en); color: var(--ink); }
a { color: var(--bronze); }

/* ---------- top nav ---------- */
.m-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 28px 14px;
  background: linear-gradient(to bottom, var(--ivory) 65%, rgba(var(--paper), 0));
  pointer-events: none;
}
.m-nav > * { pointer-events: auto; }
.m-nav-brand {
  font-size: 17px;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.m-nav-title {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
}
.m-nav-links { margin-left: auto; display: flex; gap: 22px; }
.m-nav-links a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.m-nav-links a:hover { color: var(--bronze); }
/* click to call, the business line (2026-09-29) */
.m-nav-call { font-size: 13px; letter-spacing: 0.08em; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.m-nav-call:hover { color: var(--bronze); }
.m-nav-call .short { display: none; }
@media (max-width: 480px) { .m-nav-call .num { display: none; } .m-nav-call .short { display: inline; } }

/* ---------- pills / HUD ---------- */
.hud-pill {
  border: 1px solid var(--bronze-soft);
  background: rgba(var(--paper), 0.92);
  color: var(--ink);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.hud-pill:hover { border-color: var(--bronze); color: var(--bronze); box-shadow: 0 2px 14px rgba(160, 129, 92, 0.18); }
.hud-sq {
  width: 44px; height: 44px;
  padding: 0;
  font-size: 18px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Cormorant's +/− glyphs sit low in the em box; nudge to optical center */
#zoom-in, #zoom-out { padding-bottom: 5px; }

/* ---------- placard (museum wall label) ---------- */
.placard-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(28, 26, 23, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.placard-scrim.open { opacity: 1; }

.placard {
  position: fixed; z-index: 61;
  left: 50%; top: 50%;
  transform: translate(-50%, -47%) scale(0.97);
  opacity: 0;
  width: min(560px, calc(100vw - 36px));
  max-height: min(78vh, 720px);
  overflow-y: auto;
  background: var(--ivory);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 80px rgba(28, 26, 23, 0.35);
  padding: 40px 44px 34px;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.placard.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.placard-head { display: flex; gap: 24px; align-items: flex-start; }
.placard-portrait {
  width: 108px; height: 128px;
  object-fit: cover;
  filter: grayscale(60%) sepia(8%);
  border: 1px solid var(--hairline);
  flex-shrink: 0;
  background: rgba(var(--paper), 1);
}
.placard-name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
}
.placard-dates {
  margin-top: 6px;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
}
.placard-periods {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.placard-bio {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.placard-attr {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: 0.75;
}
.placard-attr a { color: inherit; }
.placard-cta {
  /* the doorway into the 3D gallery: a filled, edge-to-edge footer bar,
     sticky at the bottom of the scrolling placard so no visitor can miss it.
     The negative bottom/margins offset the card's own padding (40px 44px
     34px) so the bar pins flush with the card's bottom edge while scrolling */
  position: sticky;
  bottom: -34px;
  display: block;
  text-align: center;
  margin: 26px -44px -34px;
  padding: 16px 28px;
  border: 1px solid var(--bronze);
  color: var(--ivory);
  background: var(--bronze);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(28, 26, 23, 0.28);
  transition: background 0.3s, color 0.3s;
}
.placard-cta:hover {
  background: color-mix(in srgb, var(--bronze) 80%, var(--ink));
  color: var(--ivory);
}
.placard-copyright {
  display: block;
  margin-top: 24px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-soft);
}
.placard-copyright a { color: var(--bronze); }
.placard-close {
  position: absolute;
  top: 14px; right: 16px;
  border: none; background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.placard-close:hover { color: var(--ink); }

@media (max-width: 560px) {
  .placard { padding: 30px 24px 26px; }
  .placard-portrait { width: 84px; height: 100px; }
  .placard-name { font-size: 21px; }
  .placard-cta { bottom: -26px; margin: 22px -24px -26px; }
}

/* Tap target (QA review 2026-10-25): at 768px and under the header call link gets a hit area of at
   least 44 by 44 CSS px from a transparent ::after, growing toward the left; its own box, pixels and
   position do not change. */
@media (max-width: 768px) {
  .m-nav-call { position: relative; }
  .m-nav-call::after { content: ""; position: absolute; top: 50%; right: -4px; width: max(100%, 44px); height: max(100%, 44px); transform: translateY(-50%); background: transparent; }
}
