/* Home / hearth — portal cards + footer (shares chrome from catalog-tree-reader.css) */

/* Index background: two doors (lantern + sci-fi glow) — not the museum logbook */
body.museum-home-root {
  background-color: #1a100c;
  background-image:
    linear-gradient(180deg, rgba(26, 14, 8, 0.22) 0%, rgba(26, 14, 8, 0.48) 100%),
    url("/images/home/two-doors-background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.museum-home-root::before {
  display: none;
}

/* Shared museum chrome paints an opaque gradient here — clear it on home so art shows */
body.museum-home-root .campaign-gm-root {
  min-height: 100dvh;
  background: transparent;
}

.campaign-gm-topbar-main-row--home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.museum-home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5.5vw, 3.25rem) clamp(1.5rem, 4.5vw, 2.5rem);
}

.museum-home-intro {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.museum-home-intro h1 {
  margin: 0 0 0.5rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #fff0e0;
  text-shadow: 0 1px 8px rgba(232, 90, 36, 0.2);
}

.museum-home-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.museum-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  max-width: 46rem;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  align-content: center;
}

.museum-portal-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  background: linear-gradient(
    165deg,
    rgba(32, 18, 10, 0.78) 0%,
    rgba(20, 11, 6, 0.82) 100%
  );
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 120, 0.08);
  color: #fff4e8;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.museum-portal-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-glow) 55%, transparent);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(232, 90, 36, 0.18);
}

.museum-portal-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.museum-portal-card h2 {
  margin: 0 0 0.65rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff0e0;
}

.museum-portal-card p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.museum-portal-card-cta {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}

.museum-portal-card:hover .museum-portal-card-cta {
  color: #ffe0a8;
}

.museum-site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.5rem clamp(1.5rem, 4.5vw, 2.5rem) 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--copper) 35%, transparent);
  background: linear-gradient(180deg, rgba(22, 12, 6, 0.72) 0%, rgba(14, 8, 4, 0.8) 100%);
  backdrop-filter: blur(4px);
  text-align: center;
}

.museum-site-footer h2 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.museum-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.museum-site-footer-links a {
  color: var(--link);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.museum-site-footer-links a:hover {
  color: #ffe0a8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .museum-home-cards {
    grid-template-columns: 1fr;
  }
}
