/* The Heliotrope Tarot — brand stylesheet
   Colours, type and spacing pulled directly from CLAUDE.md brand notes. */

@font-face {
  font-family: 'IM Fell English';
  src: url('../fonts/IMFell/IMFellEnglish-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('../fonts/IMFell/IMFellEnglish-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/Lora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/Lora-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora/Lora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --purple: #6B2D8B;
  --gold: #C2A46F;
  --gold-bright: #F2A900;
  --cream: #FFF8EE;
  --near-white: #FFFAF4;
  --dark-top: #0A0414;
  --dark-bottom: #26103C;
  --shadow: #0D0518;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  color: var(--near-white);
  background: linear-gradient(var(--dark-top), var(--dark-bottom));
  line-height: 1.7;
}

h1, h2, h3, .display {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.6em; }
h3 { font-size: 1.4rem; margin: 0 0 0.5em; }

p { color: var(--cream); }

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

.italic { font-style: italic; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 40px 0; }

.center { text-align: center; }

/* ---------- header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 4, 20, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(194, 164, 111, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 44px; width: 44px; border-radius: 50%; }

.brand-name {
  font-family: 'IM Fell English', serif;
  color: var(--near-white);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a.active,
.nav-links a:hover { color: var(--gold); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark-top);
    padding: 20px 24px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(194, 164, 111, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.4rem;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background-image:
    linear-gradient(rgba(10,4,20,0.55), rgba(10,4,20,0.75)),
    url('../img/night-sky.jpg');
  background-size: cover;
  background-position: center 30%;
  text-align: center;
}

.hero img.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 24px;
}

.hero .greeting {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.hero p.lede {
  max-width: 640px;
  margin: 18px auto 34px;
  font-size: 1.1rem;
  color: var(--cream);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 6px;
}

.btn:hover {
  background: var(--gold);
  color: var(--dark-top);
  text-decoration: none;
}

.btn--solid {
  background: var(--gold);
  color: var(--dark-top);
}

.btn--solid:hover {
  background: transparent;
  color: var(--gold);
}

.btn-row { margin-top: 8px; }

/* ---------- cards / panels ---------- */
.panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(194, 164, 111, 0.35);
  border-radius: 18px;
  padding: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(194, 164, 111, 0.3);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }

/* ---------- affirmation ---------- */
.affirmation {
  background: rgba(107, 45, 139, 0.18);
  border: 1px solid rgba(194, 164, 111, 0.35);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  font-style: italic;
  color: var(--cream);
}

.affirmation h2 { font-style: normal; }
.affirmation p { margin: 0 0 18px; }
.affirmation p:last-child { margin-bottom: 0; color: var(--gold); font-size: 1.15rem; }

/* ---------- video embed ---------- */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(194, 164, 111, 0.35);
  background: rgba(0,0,0,0.3);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}

.video-placeholder .icon { font-size: 2.4rem; }

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid rgba(194, 164, 111, 0.25);
  padding: 50px 0 40px;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 28px;
  list-style: none;
  padding: 0;
}

.disclaimer {
  font-size: 0.82rem;
  color: rgba(255, 248, 238, 0.6);
  max-width: 780px;
  margin: 0 auto 20px;
  text-align: center;
  line-height: 1.6;
}

.copyright {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 248, 238, 0.45);
}

.community-line {
  text-align: center;
  color: var(--gold);
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* ---------- misc ---------- */
.divider {
  width: 90px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto;
  opacity: 0.6;
}

.safety-note {
  background: rgba(194, 164, 111, 0.1);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 24px 0;
}

.mail-btn { font-size: 1.05rem; }

/* ==========================================================================
   THE READING ROOM — interactive hero scene
   ========================================================================== */

.room-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.room-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 720;
  overflow: hidden;
}

.room-frame img.room-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* soft vignette so the room reads as part of the page, not a pasted photo */
.room-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(10,4,20,0.75);
}

.room-intro {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.room-intro .greeting {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--near-white);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin: 0 0 4px;
}

.room-intro h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
  margin: 0;
}

.room-hint {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  z-index: 5;
  opacity: 0.85;
  pointer-events: none;
}

/* hotspot markers: soft pulsing spirit-orb, glows and labels on hover/focus */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 9%;
  aspect-ratio: 1;
  min-width: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
}

.hotspot .orb {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,220,170,0.95) 0%, rgba(194,164,111,0.55) 45%, rgba(194,164,111,0) 75%);
  box-shadow: 0 0 10px 3px rgba(242,220,170,0.5);
  animation: orb-pulse 3.2s ease-in-out infinite;
  transition: all 0.35s ease;
}

.hotspot:hover .orb,
.hotspot:focus-visible .orb {
  width: 55%;
  box-shadow: 0 0 22px 8px rgba(242,220,170,0.85);
  animation-play-state: paused;
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 8px 2px rgba(242,220,170,0.35); }
  50% { opacity: 1; box-shadow: 0 0 16px 5px rgba(242,220,170,0.6); }
}

.hotspot .label {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  background: rgba(10, 4, 20, 0.92);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.hotspot:hover .label,
.hotspot:focus-visible .label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* mobile: hover doesn't exist, so swap the room for a simple elegant menu */
.room-mobile-menu { display: none; }

@media (max-width: 640px) {
  .room-hero { display: none; }
  .room-mobile-menu {
    display: block;
    padding: 70px 0 50px;
    background-image:
      linear-gradient(rgba(10,4,20,0.55), rgba(10,4,20,0.85)),
      url('../img/room-table.jpg');
    background-size: cover;
    background-position: center 35%;
    text-align: center;
  }
  .room-mobile-menu .greeting { font-family:'IM Fell English',serif; font-style:italic; color:var(--near-white); margin-bottom:4px; }
  .room-mobile-menu h1 { margin-bottom: 8px; }
  .room-mobile-menu p.lede { margin-bottom: 30px; }
  .room-mobile-links { display:flex; flex-direction:column; gap:14px; max-width:320px; margin:0 auto; }
  .room-mobile-links a {
    display:block; padding:16px 20px; border:1px solid var(--gold); border-radius:14px;
    color:var(--gold); background:rgba(10,4,20,0.6); font-family:'IM Fell English',serif; font-size:1.05rem;
  }
}

/* ==========================================================================
   Sacred subpages — parchment / candlelit panel style for room sections
   ========================================================================== */

.parchment {
  background: rgba(255, 248, 238, 0.06);
  border: 1px solid rgba(194, 164, 111, 0.4);
  border-radius: 20px;
  padding: 44px;
  position: relative;
}

.parchment::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(194, 164, 111, 0.2);
  border-radius: 14px;
  pointer-events: none;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.meaning-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(194, 164, 111, 0.3);
  border-radius: 14px;
  padding: 24px;
}

.meaning-card h3 {
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meaning-card .stone-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.meaning-card p.keyword {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 0 10px;
}

.deck-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.deck-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(194,164,111,0.25);
  border-radius: 14px;
  padding: 22px 26px;
}

.deck-row .deck-icon { font-size: 1.6rem; line-height: 1; margin-top: 2px; }

.deck-row h3 { margin-bottom: 4px; }

.back-to-room {
  display: inline-block;
  margin: 30px 0 0;
  color: var(--cream);
  font-style: italic;
  font-size: 0.95rem;
}
