/* The Strategic Disciple — base site styles (Track B / index.html)
   Approximated palette from the live Kadence site (near-black + gold).
   Not extracted from the actual Kadence theme CSS — treat as a first
   pass to be refined once this sits next to the real thing. */

:root {
  --ink: #1a1a1a;
  --ink-deep: #111;
  --gold: #c8aa64;
  --gold-soft: rgba(200, 170, 100, 0.6);
  --text: #e9e2d0;
}

* {
  box-sizing: border-box;
}

/* 2026-09-16 pre-launch fix: several rooms (this hub, Office, Chapel,
   Workshop) had zero heading elements anywhere on the page — everything
   is illustrated hotspot art, not prose, so a visible <h1> was never
   part of the design. Screen readers still need one landmark heading per
   page to orient by, so this adds it without changing anything visual. */
.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;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
}

.liturgic-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.liturgic-hero .page {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

#hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* This div spans the whole image, painted or not — without this, its
     empty space would swallow clicks meant for anything a page places
     *behind* it at a lower z-index (e.g. the chapel's liturgical bar),
     even where no hotspot exists. Individual hotspots re-enable it below. */
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  pointer-events: auto;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.hotspot:hover,
.hotspot:focus,
.hotspot.hotspot-preview {
  background: rgba(200, 170, 100, 0.08);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 100, 0.35);
  outline: none;
}

/* The label shown on hover/focus — same text as that hotspot's entry in
   the fallback-links list below, via the data-label attribute already
   set when each hotspot is built. Secret hotspots (the admin boat) never
   get a data-label, so this stays empty and invisible for them.
   .hotspot-preview (toggled by js/hotspot-preview.js) reuses this same
   look: hovering/focusing a page's fallback-links entry highlights the
   matching on-image hotspot the same way hovering the hotspot itself
   does, and clears when the pointer/focus moves elsewhere. */
.hotspot::after {
  content: attr(data-label);
  max-width: 200px;
  padding: 0.3em 0.7em;
  border-radius: 3px;
  background: rgba(10, 8, 5, 0.9);
  border: 1px solid rgba(200, 170, 100, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  color: rgba(233, 226, 208, 0.95);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.hotspot:hover::after,
.hotspot:focus::after,
.hotspot.hotspot-preview::after {
  opacity: 1;
  transform: translateY(0);
}

.fallback-links {
  width: 100%;
  max-width: 700px;
  margin: 1.25rem auto 0;
}

.fallback-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.fallback-links a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fallback-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.site-footer {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(200, 170, 100, 0.4);
  text-align: center;
}

/* Shared "Read More" link for js/wp-feed.js's single-card destinations
   (office notebook/computer, mountain's reading.php). */
.wp-feed-read-more {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(200, 170, 100, 0.4);
  border-radius: 4px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.wp-feed-read-more:hover {
  background: var(--gold);
  color: var(--ink);
}

/* The "single most recent item" card — shared by every World destination
   that reads from Read (mountain/reading.php, office computer, office
   notebook): one card, one Read More link out. See WPFeed.renderLatestCard
   in js/wp-feed.js. */
.wp-latest-card {
  display: block;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(200, 170, 100, 0.2);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.wp-latest-card-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wp-latest-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.4rem 1.4rem;
}

.wp-latest-card-title {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.wp-latest-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(233, 226, 208, 0.75);
  margin-bottom: 1.1rem;
}

.wp-latest-loading,
.wp-latest-empty {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(233, 226, 208, 0.5);
  font-style: italic;
}
