/* ==========================================================================
   Quiet Power Daily Peace — styles.css
   Where Spirit Meets Story
   --------------------------------------------------------------------------
   Design direction: "Candlelit Sanctuary" — deep cinematic black, warm gold
   light, generous space, slow gentle motion. Mobile-first.
   Breakpoints: 768px (tablet), 1024px (desktop), 1280px (large desktop).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand color palette (from CLAUDE.md) */
  --color-bg-primary: #050505;
  --color-bg-secondary: #0E0E0E;
  --color-gold: #D4AF37;
  --color-gold-light: #F4D78A;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #BDBDBD;

  /* Derived atmosphere tones */
  --gold-hairline: rgba(212, 175, 55, 0.22);
  --gold-hairline-strong: rgba(212, 175, 55, 0.45);
  --gold-glow: rgba(212, 175, 55, 0.14);
  --gold-glow-soft: rgba(212, 175, 55, 0.07);
  --ink-overlay: rgba(5, 5, 5, 0.55);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-subheading: 'Marcellus', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  /* Rhythm */
  --space-section: clamp(5rem, 12vw, 8.5rem);
  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  /* Motion — slow and gentle, like breathing */
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed-reveal: 0.9s;
  --speed-hover: 0.35s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--speed-hover) var(--ease-calm);
}

a:hover {
  color: var(--color-gold-light);
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
}

/* Visible keyboard focus — accessibility requirement */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-bg-primary);
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--color-bg-primary);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.5rem, 7.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); }

h4 {
  font-family: var(--font-subheading);
  font-weight: 400;
  color: var(--color-text-primary);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.8;
  font-weight: 300;
}

.gold-italic {
  font-style: italic;
  color: var(--color-gold-light);
}

/* Small uppercase label that opens most sections */
.eyebrow {
  display: inline-block;
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 760px;
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

/* Soft candlelight pooling behind featured sections */
.section--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--gold-glow-soft), transparent 70%);
  pointer-events: none;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1.25rem;
}

/* Gold hairline that fades at both edges */
.hairline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hairline-strong), transparent);
}

/* --------------------------------------------------------------------------
   5. The ring motif — echo of the brand mark, breathing softly
   -------------------------------------------------------------------------- */
.ring-ornament {
  position: relative;
  width: 54px;
  height: 54px;
  margin-inline: auto;
  border: 1px solid var(--gold-hairline-strong);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--gold-glow), inset 0 0 14px var(--gold-glow);
  animation: ring-breathe 6s ease-in-out infinite;
}

.ring-ornament::after {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold);
}

@keyframes ring-breathe {
  0%, 100% { box-shadow: 0 0 14px var(--gold-glow), inset 0 0 10px var(--gold-glow); }
  50%      { box-shadow: 0 0 30px var(--gold-glow), inset 0 0 18px var(--gold-glow); }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-subheading);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition:
    background-color var(--speed-hover) var(--ease-calm),
    color var(--speed-hover) var(--ease-calm),
    border-color var(--speed-hover) var(--ease-calm),
    box-shadow var(--speed-hover) var(--ease-calm),
    transform var(--speed-hover) var(--ease-calm);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--color-gold-light);
  color: var(--color-bg-primary);
  box-shadow: 0 0 28px var(--gold-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--gold-hairline-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  box-shadow: 0 0 22px var(--gold-glow-soft);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.85), transparent);
  transition: background-color var(--speed-hover) var(--ease-calm),
              padding var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

.site-nav.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 0.8rem;
  box-shadow: 0 1px 0 var(--gold-hairline);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Text wordmark — two stacked lines, like the brand mark */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.wordmark__title {
  font-family: var(--font-subheading);
  font-size: 1.02rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color var(--speed-hover) var(--ease-calm);
}

.wordmark__sub {
  font-family: var(--font-subheading);
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.wordmark:hover .wordmark__title {
  color: var(--color-gold-light);
}

/* Desktop link list */
.site-nav__links {
  display: none;
  list-style: none;
  gap: 2.1rem;
  align-items: center;
}

.site-nav__links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding-block: 0.4rem;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--speed-hover) var(--ease-calm);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.site-nav__links a[aria-current="page"] {
  color: var(--color-text-primary);
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Hamburger — three lines that become a calm X */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 100%;
  height: 1.5px;
  background: var(--color-gold);
  transition: transform var(--speed-hover) var(--ease-calm),
              opacity var(--speed-hover) var(--ease-calm);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu — full-screen veil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-calm), visibility 0.45s var(--ease-calm);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: grid;
  gap: 1.9rem;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-text-primary);
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  color: var(--color-gold-light);
}

@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
  .nav-toggle,
  .mobile-menu { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero — homepage
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: 8rem 6rem;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Darkening veil so text floats above the artwork */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.62) 0%, rgba(5, 5, 5, 0.32) 45%, rgba(5, 5, 5, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-inline: var(--container-pad);
}

.hero__content .eyebrow {
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-weight: 500;
  text-shadow: 0 2px 30px rgba(5, 5, 5, 0.8);
}

.hero h1 span {
  display: block;
}

.hero__sub {
  margin: 1.75rem auto 2.75rem;
  max-width: 540px;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--color-text-secondary);
}

.hero .btn-row {
  justify-content: center;
}

/* Staggered entrance for hero children */
.hero__content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 1.1s var(--ease-calm) forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero__content > *:nth-child(2) { animation-delay: 0.35s; }
.hero__content > *:nth-child(3) { animation-delay: 0.6s; }
.hero__content > *:nth-child(4) { animation-delay: 0.85s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Slow pulsing scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  animation: cue-fade 3s ease-in-out infinite;
}

@keyframes cue-fade {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

/* Interior page hero — shorter, glow instead of image */
.page-hero {
  position: relative;
  padding-block: clamp(9rem, 20vw, 12rem) clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 65% 70% at 50% -10%, var(--gold-glow), transparent 70%),
    var(--color-bg-primary);
}

/* About page hero — deep, peaceful space with a slow-breathing gold glow */
.page-hero--deep {
  background: var(--color-bg-primary);
  overflow: hidden;
}

.page-hero--deep::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 42% 34% at 50% 46%, rgba(212, 175, 55, 0.09), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 48%, var(--color-bg-secondary), transparent 72%);
  animation: hero-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

/* Content must sit above the breathing glow layer */
.page-hero--deep .container {
  position: relative;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.03); }
}

.page-hero h1 {
  margin-bottom: 1.25rem;
}

.page-hero .lead {
  max-width: 620px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-secondary);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  transition: transform var(--speed-hover) var(--ease-calm),
              border-color var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-hairline-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--gold-glow-soft);
}

.card__tag {
  font-family: var(--font-subheading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.85rem;
}

.card p {
  font-size: 0.98rem;
  flex-grow: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.card__meta strong {
  color: var(--color-gold-light);
  font-weight: 500;
}

/* Content pillar cards carry a small ring icon */
.pillar-card .ring-ornament {
  width: 44px;
  height: 44px;
  margin: 0 0 1.6rem;
  animation: none;
}

/* Hand-drawn SVG icons on the pillar cards — gold line work with a soft glow */
.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.6rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

/* --------------------------------------------------------------------------
   10. Quote block
   -------------------------------------------------------------------------- */
.quote-block {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-block: 1rem;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-primary);
}

.quote-block blockquote::before {
  content: "\201C";
  display: block;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--color-gold);
  margin-bottom: 1.4rem;
}

.quote-block figcaption {
  margin-top: 1.5rem;
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   11. Featured video block
   -------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212, 175, 55, 0.1), transparent 75%),
    var(--color-bg-secondary);
  border: 1px solid var(--gold-hairline);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

a.video-frame:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 45px var(--gold-glow);
}

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

.video-frame__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding-inline: 1.5rem;
}

.video-frame__play .play-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--gold-glow);
  animation: ring-breathe 6s ease-in-out infinite;
}

/* A second ring that slowly expands and fades — a quiet ripple of light */
.video-frame__play .play-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  animation: play-pulse 3s ease-out infinite;
}

@keyframes play-pulse {
  0%        { transform: scale(1);   opacity: 0.4; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}

.video-frame__play .play-ring::after {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--color-gold);
}

.video-frame__play span {
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Quiet note beneath the play button */
.video-frame__play .video-frame__note {
  margin-top: -0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-text-secondary);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   12. Forms — email signup & contact
   -------------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.field label {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background-color: rgba(245, 245, 245, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(189, 189, 189, 0.55);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 18px var(--gold-glow-soft);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Inline signup: stacked on mobile, one row on tablet+ */
.signup-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .signup-form {
    grid-template-columns: 1fr 1.3fr auto;
    align-items: end;
  }
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

/* Success / error states (toggled by main.js) */
.form-message {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.95rem;
  text-align: center;
}

.form-message.is-visible {
  display: block;
  animation: rise-in 0.6s var(--ease-calm) both;
}

.form-message--success {
  border: 1px solid var(--gold-hairline-strong);
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-gold-light);
}

.form-message--error {
  border: 1px solid rgba(220, 120, 110, 0.5);
  background: rgba(220, 120, 110, 0.08);
  color: #E8B4AC;
}

/* --------------------------------------------------------------------------
   13. Search & filters (Stories / Meditation / Reflections)
   -------------------------------------------------------------------------- */
.library-controls {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.search-bar {
  position: relative;
  max-width: 520px;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  background-color: rgba(245, 245, 245, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 18px var(--gold-glow-soft);
}

/* Thin gold magnifier drawn in CSS */
.search-bar::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
}

.search-bar::after {
  content: "";
  position: absolute;
  left: 1.85rem;
  top: 50%;
  width: 7px;
  height: 1.5px;
  margin-top: 3px;
  background: var(--color-gold);
  transform: rotate(45deg);
  pointer-events: none;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-group__label {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-right: 0.5rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--speed-hover) var(--ease-calm);
}

.filter-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-text-primary);
}

.filter-pill[aria-pressed="true"] {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-primary);
  font-weight: 500;
}

/* Card hidden by filtering */
.is-filtered-out {
  display: none;
}

.empty-state {
  display: none;
  padding: 3.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--gold-hairline-strong);
  border-radius: 3px;
}

.empty-state.is-visible {
  display: block;
}

.empty-state p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-text-primary);
}

.empty-state span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Expandable story text inside cards — native <details>, no JS needed */
.story-more {
  margin-top: 1.3rem;
}

.story-more summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: color var(--speed-hover) var(--ease-calm);
}

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

.story-more summary::after {
  content: " +";
}

.story-more[open] summary::after {
  content: " \2212";
}

.story-more summary:hover {
  color: var(--color-gold-light);
}

.story-more__body {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: grid;
  gap: 1rem;
  animation: rise-in 0.6s var(--ease-calm) both;
}

.story-more__body p {
  font-size: 0.98rem;
}

/* Guided audio player inside meditation cards */
.meditation-player {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.meditation-player figcaption {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.meditation-player audio {
  width: 100%;
  height: 40px;
  color-scheme: dark; /* renders the browser's dark player controls */
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: var(--space-section);
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, var(--gold-glow), transparent 70%),
    var(--color-bg-secondary);
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
}

.cta-band h2 {
  max-width: 620px;
  margin-inline: auto;
}

.cta-band p {
  max-width: 540px;
  margin: 1.25rem auto 2.25rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. About page details
   -------------------------------------------------------------------------- */
.values-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
  margin-inline: auto;
}

.values-list li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  color: var(--color-text-primary);
}

.values-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.brand-image {
  border: 1px solid var(--gold-hairline);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   16. Contact page
   -------------------------------------------------------------------------- */
.contact-form {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
}

.contact-aside {
  display: grid;
  gap: 2.25rem;
  align-content: start;
}

.contact-aside h4 {
  margin-bottom: 0.6rem;
}

.social-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.social-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  transition: background-color var(--speed-hover) var(--ease-calm),
              box-shadow var(--speed-hover) var(--ease-calm);
}

.social-list a:hover {
  color: var(--color-gold-light);
}

.social-list a:hover::before {
  background-color: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--gold-hairline);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 3.5rem;
  }
}

.site-footer__brand img {
  width: 200px;
  border-radius: 3px;
  border: 1px solid var(--gold-hairline);
  margin-bottom: 1.2rem;
}

.site-footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-gold-light);
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.3rem;
}

.site-footer__nav ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.site-footer__nav a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.site-footer__nav a:hover {
  color: var(--color-gold-light);
}

/* Compact footer signup */
.footer-signup {
  display: grid;
  gap: 0.85rem;
}

.footer-signup p {
  font-size: 0.95rem;
}

.site-footer__bottom {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(189, 189, 189, 0.7);
}

.site-footer__bottom .social-inline {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-footer__bottom .social-inline a {
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.site-footer__bottom .social-inline a:hover {
  color: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   17b. Soft glow cursor — homepage only (the .cursor-glow div lives in
        index.html and main.js drifts it after the mouse)
   -------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.10),
    rgba(212, 175, 55, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.6s var(--ease-calm);
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* Desktop with a real mouse: hide the default arrow so only the light leads,
   but keep a visible cursor on anything interactive */
@media (pointer: fine) {
  body.has-cursor-glow {
    cursor: none;
  }

  body.has-cursor-glow a,
  body.has-cursor-glow button,
  body.has-cursor-glow summary,
  body.has-cursor-glow label {
    cursor: pointer;
  }

  body.has-cursor-glow input,
  body.has-cursor-glow textarea {
    cursor: text;
  }
}

/* Touch devices: no mouse, no glow, normal behavior */
@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* Reduced motion: a light that chases the cursor is still motion — remove it */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }

  body.has-cursor-glow {
    cursor: auto;
  }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal (driven by IntersectionObserver in main.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--speed-reveal) var(--ease-calm),
              transform var(--speed-reveal) var(--ease-calm);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JavaScript never runs, content must stay visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Reduced motion — calm includes respecting stillness
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero__content > * {
    opacity: 1;
    transform: none;
  }
}
