/* =====================================================================
   Uthark Tzolkin — v2
   A symbolic portal. Cinematic, color-rich, alive.
   No brickwork. No library aesthetic.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,500;9..144,600;9..144,700,9..144,900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
  /* === The palette of the two worlds === */
  --clay:           #c79068;   /* warm terracotta — the page surface */
  --clay-soft:      #d4a482;
  --clay-deep:      #a06942;
  --clay-shadow:    #7a4e2e;

  --stone:          #1c1410;   /* deep night stone — atmospheric */
  --stone-warm:     #2a1c12;
  --stone-edge:     #0e0907;

  --ink:            #2a1810;   /* warm ink, body on clay */
  --ink-soft:       #4a3424;

  --cream:          #f4e2c4;   /* highlight cream */
  --cream-soft:     #ead2ae;

  --gold:           #c9a04a;   /* real gold — the ornament */
  --gold-bright:    #e8c878;
  --gold-deep:      #8b6914;

  --jade:           #2d5e4a;   /* deep jade green from Maya inlay */
  --jade-bright:    #4a8770;

  --cinnabar:       #8b2e1c;   /* Maya red — deepened for contrast on clay */
  --cinnabar-deep:  #5a1e10;
  --cinnabar-bright: #b04830;

  --sky:            #3e6885;   /* Maya / cold-blue, used rarely */

  --shadow-deep:   0 24px 60px -20px rgba(15, 8, 4, 0.55),
                   0 6px 16px rgba(15, 8, 4, 0.25);
  --shadow-soft:   0 12px 32px -16px rgba(40, 24, 12, 0.45);
  --glow-gold:     0 0 38px rgba(232, 200, 120, 0.32),
                   0 0 80px rgba(201, 160, 74, 0.18);

  --font-display:  "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:     "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --shell:         70rem;
  --measure:       38rem;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--clay);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-wide warm grain — subtle, lives below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%,
      rgba(255, 220, 165, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 50%,
      rgba(160, 90, 50, 0.2), transparent 60%),
    radial-gradient(ellipse 80% 50% at 0% 90%,
      rgba(80, 40, 20, 0.18), transparent 60%);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* =====================================================================
   Scroll reveal — set by JS via IntersectionObserver
   ===================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms var(--ease-out),
              transform 1100ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-visible { transition-delay: 120ms; }
[data-reveal-delay="2"].is-visible { transition-delay: 240ms; }
[data-reveal-delay="3"].is-visible { transition-delay: 380ms; }
[data-reveal-delay="4"].is-visible { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Masthead — sits over the hero, transparent until you scroll
   ===================================================================== */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.4rem 0;
  transition: background 400ms var(--ease-out),
              backdrop-filter 400ms var(--ease-out),
              border-color 400ms var(--ease-out),
              padding 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.masthead.is-scrolled {
  background: rgba(199, 144, 104, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(40, 24, 12, 0.18);
  padding: 0.85rem 0;
}

.masthead-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1rem 0 0.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  transition: color 400ms;
}
.masthead.is-scrolled .brand { color: var(--ink); }

.brand-mark {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
  transition: width 400ms var(--ease-out), height 400ms var(--ease-out);
}

/* When the masthead compacts on scroll, shrink the mark so the
   sticky header doesn't eat the screen */
.masthead.is-scrolled .brand-mark {
  width: 56px;
  height: 56px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variation-settings: "opsz" 24, "SOFT" 30;
  white-space: nowrap;
  transition: font-size 400ms var(--ease-out), text-shadow 400ms var(--ease-out);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.masthead.is-scrolled .brand-text {
  text-shadow: none;
}
.masthead.is-scrolled .brand-text {
  font-size: 1.1rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(244, 226, 196, 0.92);
  transition: color 220ms, text-shadow 220ms;
  white-space: nowrap;
  position: relative;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.masthead.is-scrolled .primary-nav a {
  text-shadow: none;
}
.primary-nav a:hover,
.primary-nav a.is-current {
  color: var(--cream);
}
.masthead.is-scrolled .primary-nav a { color: var(--ink-soft); }
.masthead.is-scrolled .primary-nav a:hover,
.masthead.is-scrolled .primary-nav a.is-current { color: var(--ink); }

.primary-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
}

.signin {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--cream);
  border: 1px solid rgba(244, 226, 196, 0.55);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: all 220ms;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.masthead.is-scrolled .signin {
  text-shadow: none;
  box-shadow: none;
}
.signin:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.masthead.is-scrolled .signin { color: var(--ink); border-color: rgba(40, 24, 12, 0.3); }
.masthead.is-scrolled .signin:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =====================================================================
   Hero — full viewport, cinematic, atmospheric
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--stone);
  color: var(--cream);
  padding: 6rem 1.5rem 3rem;
}

/* Atmospheric warm gradient layer + slow-drifting glow */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%,
      rgba(70, 35, 18, 0.7), transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%,
      rgba(80, 50, 25, 0.55), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 110%,
      rgba(201, 160, 74, 0.18), transparent 70%),
    linear-gradient(180deg, #0e0907 0%, #1c1410 50%, #2a1c12 100%);
  animation: heroBreathe 18s ease-in-out infinite alternate;
}

@keyframes heroBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Drifting ember/dust particles — restrained, warm */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 78% 38%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 35% 70%, rgba(232, 200, 120, 0.10) 0, transparent 2px),
    radial-gradient(circle at 64% 84%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 90% 12%, rgba(232, 200, 120, 0.07) 0, transparent 1.5px),
    radial-gradient(circle at 8% 88%, rgba(232, 200, 120, 0.09) 0, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(232, 200, 120, 0.06) 0, transparent 1.5px);
  background-size: 600px 600px;
  animation: drift 60s linear infinite;
  opacity: 0.7;
}
.hero-bg::after {
  background-size: 380px 380px;
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 600px -400px; }
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 88rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-art {
  position: relative;
  opacity: 0;
  animation: heroArtIn 1400ms var(--ease-out) forwards;
}
.hero-art--rune  { animation-delay: 200ms; }
.hero-art--glyph { animation-delay: 700ms; }
@keyframes heroArtIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { opacity: 1; animation: none; }
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-deep), var(--glow-gold);
}

.hero-art--rune img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: floatA 9s ease-in-out infinite alternate;
}

.hero-art--glyph img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  animation: floatB 11s ease-in-out infinite alternate;
}

@keyframes floatA {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}
@keyframes floatB {
  from { transform: translateY(-8px); }
  to   { transform: translateY(10px); }
}

.hero-words {
  text-align: center;
  padding: 0 1rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeIn 1200ms 600ms var(--ease-out) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 500;
  margin: 0;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: titleIn 1400ms var(--ease-out) forwards;
}
.hero-title .word--1 { animation-delay: 200ms; }
.hero-title .dot {
  color: var(--gold);
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 1200ms 900ms var(--ease-out) forwards;
}
.hero-title .word--2 { animation-delay: 600ms; }

@keyframes titleIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(244, 226, 196, 0.78);
  margin: 1.6rem auto 0;
  max-width: 26rem;
  line-height: 1.55;
  opacity: 0;
  animation: fadeIn 1200ms 1100ms var(--ease-out) forwards;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: rgba(244, 226, 196, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeIn 1200ms 1500ms var(--ease-out) forwards;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* =====================================================================
   Section 2 — The Meeting
   Cinematic, image-led, dark-to-clay transition into section 3.
   ===================================================================== */

.meeting {
  position: relative;
  min-height: 86vh;
  padding: 6rem 2rem 9rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  margin-top: -1px;  /* seal the seam with the hero */
}

.meeting-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("webpageImages/Exchange.jpg");
  background-size: cover;
  background-position: center 32%;
  animation: meetingBreathe 24s ease-in-out infinite alternate;
}

@keyframes meetingBreathe {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-12px); }
}

/* Gradient mask: lifts the bottom into clay, darkens for text reading,
   and softens the top so the cut from the hero feels intentional. */
.meeting::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(28, 20, 16, 0.55) 0%,
      rgba(28, 20, 16, 0.10) 18%,
      rgba(28, 20, 16, 0.00) 38%,
      rgba(28, 20, 16, 0.30) 65%,
      rgba(40, 24, 14, 0.85) 88%,
      var(--clay) 100%);
}

.meeting-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  text-align: center;
  color: var(--cream);
}

.meeting-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.meeting-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.42;
  color: var(--cream);
  margin: 0 0 1.8rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.meeting-prose {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(244, 226, 196, 0.92);
  margin: 0 auto;
  max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

/* =====================================================================
   Section 3 — The Meeting Place
   The cultural encounter of two ancestral worlds. Image-led.
   Editorial prose, not a workshop / library catalog.
   ===================================================================== */

.meeting-place {
  padding: 7rem 1.5rem 8rem;
  text-align: center;
  position: relative;
}

.meeting-place-head {
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.meeting-place-figure {
  max-width: 64rem;
  margin: 0 auto 4rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  background: var(--stone);
}

.meeting-place-figure img {
  width: 100%;
  height: auto;
  display: block;
  animation: mingleBreathe 26s ease-in-out infinite alternate;
}

@keyframes mingleBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.meeting-place-figure figcaption {
  position: absolute;
  bottom: 1.1rem;
  right: 1.4rem;
  background: rgba(28, 20, 16, 0.78);
  color: var(--cream);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.meeting-place-prose {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
}

.meeting-place-prose p {
  font-size: 1.18rem;
  line-height: 1.72;
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.meeting-place-prose p:last-child { margin: 0; }

.meeting-place-action {
  margin-top: 3.5rem;
  text-align: center;
}

/* =====================================================================
   Constellation — the 44 living symbols (still used elsewhere)
   ===================================================================== */

.constellation {
  padding: 6rem 1.5rem 8rem;
  position: relative;
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.01em;
}

.section-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto 4rem;
  font-variation-settings: "opsz" 48, "SOFT" 90;
}

.symbol-cloud {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem 0;
}

.symbol-orb {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 380ms var(--ease-out), z-index 0s 380ms;
  z-index: 1;
}

.symbol-orb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 160, 74, 0.4);
  box-shadow:
    0 6px 18px rgba(28, 20, 16, 0.4),
    inset 0 0 0 1px rgba(244, 226, 196, 0.08);
  transition: box-shadow 380ms var(--ease-out),
              border-color 380ms var(--ease-out);
}

.symbol-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Per-symbol drift: a few different rhythms via nth-child */
.symbol-orb:nth-child(3n)   { animation: orbDriftA 7s ease-in-out infinite alternate; }
.symbol-orb:nth-child(3n+1) { animation: orbDriftB 9s ease-in-out infinite alternate; }
.symbol-orb:nth-child(3n+2) { animation: orbDriftC 11s ease-in-out infinite alternate; }

@keyframes orbDriftA {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
@keyframes orbDriftB {
  from { transform: translateY(-3px); }
  to   { transform: translateY(5px); }
}
@keyframes orbDriftC {
  from { transform: translateY(2px); }
  to   { transform: translateY(-7px); }
}

.symbol-orb:hover {
  transform: scale(1.4);
  z-index: 10;
  transition: transform 380ms var(--ease-out), z-index 0s;
}

.symbol-orb:hover .symbol-orb-inner {
  box-shadow:
    0 12px 36px rgba(28, 20, 16, 0.55),
    0 0 28px rgba(232, 200, 120, 0.55),
    inset 0 0 0 1px rgba(244, 226, 196, 0.18);
  border-color: var(--gold-bright);
}

.symbol-orb-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--stone);
  color: var(--cream);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  border: 1px solid rgba(201, 160, 74, 0.3);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
  z-index: 11;
  font-variation-settings: "opsz" 14, "SOFT" 100;
}

.symbol-orb:hover .symbol-orb-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.constellation-action {
  margin-top: 4rem;
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--cinnabar);
  padding-bottom: 3px;
  transition: color 220ms, border-color 220ms;
  letter-spacing: 0.02em;
}
.link-arrow:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}
.link-arrow span {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 240ms;
}
.link-arrow:hover span { transform: translateX(4px); }

/* =====================================================================
   Section 4 — Today's RGT Calendar Day
   A daily reading. Atmospheric weight, ornamented, jade-tinted.
   ===================================================================== */

.today {
  padding: 7rem 1.5rem 8rem;
  background:
    linear-gradient(180deg,
      rgba(45, 94, 74, 0.04) 0%,
      rgba(45, 94, 74, 0.18) 30%,
      rgba(45, 94, 74, 0.18) 70%,
      rgba(45, 94, 74, 0.04) 100%);
  position: relative;
  text-align: center;
  isolation: isolate;
  /* land below the fixed masthead when targeted by #today anchor */
  scroll-margin-top: 5rem;
}
[data-page="calendar-v2"] .paths { scroll-margin-top: 5rem; }

/* Subtle warm glow behind the symbols, like temple candle light */
.today::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%,
      rgba(232, 200, 120, 0.10), transparent 70%);
  pointer-events: none;
}

/* Top and bottom gold rules — ceremonial frame */
.today {
  border-top:
    1px solid transparent;
  border-bottom:
    1px solid transparent;
  border-image:
    linear-gradient(90deg,
      transparent 0%,
      rgba(201, 160, 74, 0.55) 50%,
      transparent 100%) 1;
  border-image-slice: 1;
}

.today-head { margin-bottom: 4rem; }

.today .section-eyebrow {
  color: var(--jade);
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  margin-bottom: 1.4rem;
}

.today-date {
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  min-height: 1.2em;
}

.today-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
}

/* The two-symbol stage */
.today-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin: 0 auto 3.5rem;
  max-width: 60rem;
}

.today-symbol {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.today-symbol-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: var(--stone);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}

/* Soft outer glow so each symbol feels lit */
.today-symbol-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: radial-gradient(circle at 50% 55%,
    rgba(232, 200, 120, 0.28), transparent 70%);
  filter: blur(8px);
}

.today-symbol-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 160, 74, 0.32);
  border-radius: 4px;
  pointer-events: none;
}

.today-symbol-frame img {
  display: block;
  height: auto;
  width: 18rem;
  animation: pulseSoft 7s ease-in-out infinite alternate;
}
.today-symbol--rune  .today-symbol-frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.today-symbol--glyph .today-symbol-frame img { aspect-ratio: 1 / 1; object-fit: cover; animation-delay: 2s; }

@keyframes pulseSoft {
  from { transform: scale(1); filter: brightness(1); }
  to   { transform: scale(1.02); filter: brightness(1.05); }
}

.today-symbol figcaption {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  max-width: 18rem;
}

.today-symbol-name {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--jade);
  font-weight: 600;
}

.today-symbol-voice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 100;
}

/* The ceremonial ornament between the two symbols */
.today-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  align-self: center;
  padding: 0 0.4rem;
  min-height: 18rem;
}

.today-ornament-line {
  width: 1px;
  flex: 0 0 4rem;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--gold) 50%,
    transparent 100%);
}

.today-ornament-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.today-ornament-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 16px rgba(232, 200, 120, 0.55);
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}

@keyframes ornamentShimmer {
  from { text-shadow: 0 0 12px rgba(232, 200, 120, 0.4); transform: scale(1); }
  to   { text-shadow: 0 0 22px rgba(232, 200, 120, 0.85); transform: scale(1.1); }
}

/* Reading prose */
.today-reading {
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.today-meeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.2rem;
  font-variation-settings: "opsz" 60, "SOFT" 100;
  font-weight: 500;
  min-height: 1.4em;
}

.today-tone {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
  min-height: 1.4em;
}

.today-action {
  margin-top: 0;
}

/* =====================================================================
   Books — real covers
   ===================================================================== */

.books {
  padding: 3.5rem 1.5rem 4.5rem;
  text-align: center;
}

.books-head {
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.books .section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.books .section-sub {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.books-stage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 1.4rem;
  max-width: 54rem;
  margin: 0 auto;
}

.book {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 380ms var(--ease-out);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  margin: 0 0 1rem;
  background: var(--stone-warm);
  transition: box-shadow 380ms var(--ease-out), transform 380ms var(--ease-out);
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

/* Placeholder cover for Book IV (Spreads) until a real cover exists */
.book-cover--placeholder {
  background: linear-gradient(160deg, var(--gold-deep) 0%, #5a3f0d 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.8rem;
  color: var(--cream);
}
.book-cover--placeholder::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(232, 200, 120, 0.4);
  pointer-events: none;
}
.placeholder-mark {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: rgba(232, 200, 120, 0.75);
  text-align: center;
  position: relative;
}
.placeholder-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
}

.book-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--cinnabar);
  margin: 0;
}

.book-blurb {
  /* The blurb reserves its space at all times so hovering one cover does
     not cause the grid row to grow and push siblings/rows below. Only
     opacity transitions on hover. */
  display: block;
  margin-top: 0.5rem;
  padding: 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0;
  transition: opacity 320ms;
  pointer-events: none;
}

.book:hover {
  transform: translateY(-6px);
}
.book:hover .book-cover {
  box-shadow:
    0 32px 64px -24px rgba(15, 8, 4, 0.65),
    0 0 28px rgba(232, 200, 120, 0.22);
}
.book:hover .book-cover img {
  transform: scale(1.03);
}
.book:hover .book-blurb {
  opacity: 1;
}

.books-action {
  margin-top: 2.4rem;
}

/* =====================================================================
   Section 6 — The Inward Path
   Split layout: the seer at work + the inner-room invitation.
   Atmospheric dark, drifting embers, gold accents.
   ===================================================================== */

.inward {
  padding: 7rem 1.5rem 8rem;
  background:
    radial-gradient(ellipse 90% 100% at 50% 50%,
      rgba(70, 38, 18, 0.55), transparent 70%),
    linear-gradient(180deg, var(--stone-warm) 0%, var(--stone) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Drifting embers — restrained, warm */
.inward::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 82% 68%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 45% 88%, rgba(232, 200, 120, 0.10) 0, transparent 2px),
    radial-gradient(circle at 70% 14%, rgba(232, 200, 120, 0.07) 0, transparent 1.5px),
    radial-gradient(circle at 30% 50%, rgba(232, 200, 120, 0.06) 0, transparent 1.5px);
  background-size: 520px 520px;
  animation: drift 90s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

/* Soft warm glow behind the figure side, like firelight */
.inward::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 25% 50%,
      rgba(190, 110, 50, 0.20), transparent 60%);
  pointer-events: none;
}

.inward-stage {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

/* The figure side — the seer */
.inward-figure {
  margin: 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(190, 110, 50, 0.18);
}

.inward-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  animation: inwardBreathe 28s ease-in-out infinite alternate;
}

@keyframes inwardBreathe {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.06) translateY(-6px); }
}

/* Gold inner border on the figure */
.inward-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 160, 74, 0.32);
  border-radius: 4px;
  pointer-events: none;
}

/* Figure caption — small atmospheric pill */
.inward-figure figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  background: rgba(28, 20, 16, 0.78);
  color: var(--cream);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* The content side — invitation */
.inward-content {
  text-align: left;
}

.inward .section-eyebrow {
  color: var(--gold-bright);
  font-weight: 600;
}

.inward .section-title {
  color: var(--cream);
  max-width: 18ch;
  margin: 0 0 1.4rem;
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.inward-prose {
  max-width: 32rem;
  margin: 0 0 2rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(244, 226, 196, 0.88);
}

/* The list of what's inside */
.inward-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.4rem;
  max-width: 30rem;
}

.inward-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: rgba(244, 226, 196, 0.92);
  border-top: 1px solid rgba(201, 160, 74, 0.18);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.inward-list li:last-child {
  border-bottom: 1px solid rgba(201, 160, 74, 0.18);
}

.inward-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.95rem;
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1;
}

.inward-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  transition: all 260ms var(--ease-out);
  cursor: pointer;
  border: 1px solid;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--gold);
  color: var(--stone);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 32px rgba(232, 200, 120, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 226, 196, 0.35);
}
.btn--ghost:hover {
  background: rgba(244, 226, 196, 0.08);
  border-color: var(--cream);
}

/* =====================================================================
   Footer — atmospheric closing band
   ===================================================================== */

.footer {
  background: var(--stone-edge);
  color: rgba(244, 226, 196, 0.85);
  padding: 4rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(201, 160, 74, 0.18);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-variation-settings: "opsz" 24, "SOFT" 30;
}

.footer-tag {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  font-family: var(--font-display);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(244, 226, 196, 0.85);
  font-size: 0.95rem;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--cream); }

.footer-base {
  max-width: var(--shell);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 160, 74, 0.12);
  font-size: 0.82rem;
  color: rgba(244, 226, 196, 0.4);
  text-align: center;
}

/* ============================================================
   Unified footer (v2) — final clean layout:
     row 1 = brand block (left) + three link columns (right), no h4 titles
     divider
     row 2 = centered copyright with year, alone
   ============================================================ */

.footer-grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  /* brand col is content-sized; link cols share the remaining space */
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 2rem 4.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 160, 74, 0.12);
}

/* Brand column (left) */
.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.footer-brand-col img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}
.footer-brand-col-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-variation-settings: "opsz" 24, "SOFT" 30;
  white-space: nowrap;
}
.footer-brand-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(244, 226, 196, 0.65);
  max-width: 22rem;
}

/* Link columns — no h4 titles, just clean lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-col li { margin: 0; }
.footer-col a {
  color: rgba(244, 226, 196, 0.82);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--cream); }

/* Copyright — alone, centered, below the divider */
.footer-copyright {
  max-width: var(--shell);
  margin: 1.75rem auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(244, 226, 196, 0.5);
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (privacy.html, terms.html) — narrow prose layout
   on the clay surface
   ============================================================ */

[data-page="legal-v2"] .masthead {
  background: rgba(199, 144, 104, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(40, 24, 12, 0.18);
}
[data-page="legal-v2"] .primary-nav a { color: var(--ink-soft); text-shadow: none; }
[data-page="legal-v2"] .primary-nav a:hover,
[data-page="legal-v2"] .primary-nav a.is-current { color: var(--ink); }
[data-page="legal-v2"] .brand,
[data-page="legal-v2"] .brand-text { color: var(--ink); }
[data-page="legal-v2"] .signin {
  color: var(--ink);
  border-color: rgba(40, 24, 12, 0.3);
}
[data-page="legal-v2"] .signin:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

.legal-hero {
  padding: 9rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
}
.legal-hero-shell { max-width: 44rem; margin: 0 auto; }
.legal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: #3a280f;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.55);
  margin: 0;
}

.legal-section {
  padding: 4rem 1.5rem 6rem;
  max-width: 44rem;
  margin: 0 auto;
}
.legal-prose {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(40, 24, 12, 0.88);
}
.legal-prose .legal-lede {
  font-size: 1.18rem;
  font-style: italic;
  color: #3a280f;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74, 52, 18, 0.14);
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #3a280f;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.005em;
}
.legal-prose p { margin: 0 0 1rem; }
.legal-prose strong { color: #3a280f; }
.legal-prose a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.legal-prose a:hover {
  color: #3a280f;
  border-color: #3a280f;
}
.legal-prose .legal-note {
  background: rgba(192, 138, 58, 0.08);
  border-left: 3px solid rgba(192, 138, 58, 0.55);
  padding: 1rem 1.25rem;
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: 1rem;
  font-style: italic;
  color: rgba(40, 24, 12, 0.72);
  margin-top: 2.5rem;
}

/* ============================================================
   SUBSCRIBE — refreshed v2: free vs. member comparison + CTA
   ============================================================ */

[data-page="subscribe-v2"] .masthead {
  background: rgba(199, 144, 104, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(40, 24, 12, 0.18);
}
[data-page="subscribe-v2"] .primary-nav a { color: var(--ink-soft); text-shadow: none; }
[data-page="subscribe-v2"] .primary-nav a:hover,
[data-page="subscribe-v2"] .primary-nav a.is-current { color: var(--ink); }
[data-page="subscribe-v2"] .brand,
[data-page="subscribe-v2"] .brand-text { color: var(--ink); }
[data-page="subscribe-v2"] .signin {
  color: var(--ink); border-color: rgba(40, 24, 12, 0.3);
}
[data-page="subscribe-v2"] .signin:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

/* Hero */
.subscribe-hero {
  padding: 9rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(192, 138, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(106, 141, 111, 0.10), transparent 60%);
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
}
.subscribe-hero-shell { max-width: 48rem; margin: 0 auto; }
.subscribe-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}
.subscribe-hero-lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(40, 24, 12, 0.85);
  margin: 0 0 1.75rem;
}
.subscribe-hero-price {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}
.subscribe-hero-price-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #3a280f;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.subscribe-hero-price-unit {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(40, 24, 12, 0.65);
}
.subscribe-hero-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(40, 24, 12, 0.55);
  margin: 0;
}

/* Compare section */
.subscribe-compare-section {
  padding: 4.5rem 1.5rem 2.5rem;
  max-width: 78rem;
  margin: 0 auto;
}
.subscribe-section-head {
  margin: 0 auto 2.5rem;
  text-align: center;
  max-width: 48rem;
}
.subscribe-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.005em;
}
.subscribe-section-sub {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(40, 24, 12, 0.78);
  margin: 0;
}

.subscribe-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.subscribe-tier {
  background: rgba(255, 250, 238, 0.85);
  border: 1px solid rgba(74, 52, 18, 0.18);
  border-radius: 0.85rem;
  padding: 2rem 1.85rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.subscribe-tier--member.is-featured {
  border-color: rgba(192, 138, 58, 0.55);
  box-shadow: 0 18px 42px rgba(74, 52, 18, 0.18);
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
}
.subscribe-tier-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: #3a280f;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.subscribe-tier-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
}
.subscribe-tier-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
  margin: 0 0 0.5rem;
}
.subscribe-tier-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #3a280f;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.subscribe-tier-price {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: rgba(40, 24, 12, 0.72);
  margin: 0;
  font-style: italic;
}
.subscribe-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.75rem;
  flex: 1;
}
.subscribe-tier-list li {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(40, 24, 12, 0.85);
  padding-left: 1.4rem;
  position: relative;
}
.subscribe-tier-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(192, 138, 58, 0.7);
  font-size: 0.85em;
}
.subscribe-tier-list strong { color: #3a280f; font-weight: 600; }
.subscribe-tier--member .subscribe-tier-list li::before { color: #c08a3a; }

.subscribe-tier-cta {
  align-self: stretch;
  text-align: center;
}

/* Rhythm section */
.subscribe-rhythm-section {
  padding: 4rem 1.5rem;
  background: rgba(192, 138, 58, 0.08);
  border-top: 1px solid rgba(74, 52, 18, 0.1);
  border-bottom: 1px solid rgba(74, 52, 18, 0.1);
}
.subscribe-rhythm-shell {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.subscribe-rhythm-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.subscribe-rhythm-lede {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(40, 24, 12, 0.85);
  margin: 0 0 1.25rem;
}
.subscribe-rhythm-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(40, 24, 12, 0.72);
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(74, 52, 18, 0.12);
}
.subscribe-rhythm-note a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
}

/* CTA section */
.subscribe-cta-section {
  padding: 5rem 1.5rem;
  scroll-margin-top: 5rem;
}
.subscribe-cta-shell {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.subscribe-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.005em;
}
.subscribe-cta-price {
  margin: 0 0 2rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}
.subscribe-cta-price-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  color: #3a280f;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.subscribe-cta-price-unit {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(40, 24, 12, 0.6);
}
.subscribe-cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  text-align: left;
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
}
.subscribe-cta-bullets li {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(40, 24, 12, 0.82);
  padding-left: 1.4rem;
  position: relative;
}
.subscribe-cta-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a8d6f;
  font-weight: 600;
}
.subscribe-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.subscribe-cta-actions .btn--ghost {
  color: var(--ink);
  border-color: rgba(40, 24, 12, 0.4);
  background: rgba(255, 250, 238, 0.4);
}
.subscribe-cta-actions .btn--ghost:hover {
  background: rgba(40, 24, 12, 0.08);
  border-color: rgba(40, 24, 12, 0.7);
}
.subscribe-cta-note {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(40, 24, 12, 0.65);
  margin: 0 0 1rem;
}
.subscribe-cta-stub {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(40, 24, 12, 0.55);
  margin: 1.5rem auto 0;
  max-width: 32rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(74, 52, 18, 0.25);
  border-radius: 0.4rem;
  background: rgba(255, 250, 238, 0.4);
}
.subscribe-cta-stub a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
}

/* FAQ */
.subscribe-faq-section {
  padding: 4.5rem 1.5rem 6rem;
  max-width: 60rem;
  margin: 0 auto;
}
.subscribe-faq {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}
.subscribe-faq li {
  background: rgba(255, 250, 238, 0.6);
  border: 1px solid rgba(74, 52, 18, 0.14);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}
.subscribe-faq h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #3a280f;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.subscribe-faq p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(40, 24, 12, 0.82);
  margin: 0;
}
.subscribe-faq a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
}
.subscribe-faq a:hover { color: #3a280f; border-color: #3a280f; }

@media (max-width: 760px) {
  .subscribe-tiers { grid-template-columns: 1fr; }
  .subscribe-hero { padding-top: 7rem; }
}

/* =====================================================================
   Inner-page hero — short atmospheric, used by Runes & Glyphs and others
   ===================================================================== */

.page-hero {
  position: relative;
  padding: 9rem 1.5rem 5rem;
  background: var(--stone);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 80% at 50% 60%,
      rgba(70, 35, 18, 0.55), transparent 70%),
    linear-gradient(180deg, var(--stone-edge) 0%, var(--stone-warm) 100%);
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 78% 38%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 35% 70%, rgba(232, 200, 120, 0.10) 0, transparent 2px),
    radial-gradient(circle at 64% 84%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px);
  background-size: 600px 600px;
  animation: drift 80s linear infinite;
  opacity: 0.6;
}

.page-hero-content { max-width: 44rem; margin: 0 auto; }

.page-hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 1.6rem;
  font-weight: 600;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.005em;
}

.page-hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(244, 226, 196, 0.88);
  max-width: 38rem;
  margin: 0 auto;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

/* =====================================================================
   Symbol clusters — interactive index at the top of Runes & Glyphs.
   Each plate is NAVIGATION (anchor jumper) — not the main content.
   ===================================================================== */

.symbol-clusters {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.cluster-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 3.5rem;
}

.cluster {
  max-width: 64rem;
  margin: 0 auto 4rem;
}
.cluster:last-child { margin-bottom: 0; }

.cluster-head {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.cluster-eyebrow {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.cluster--runes  .cluster-eyebrow { color: var(--gold-deep); }
.cluster--glyphs .cluster-eyebrow { color: var(--jade); }

.cluster-count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cluster-plates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 0.85rem;
}

.plate {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 380ms var(--ease-out);
}

.plate-frame {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 160, 74, 0.32);
  box-shadow: 0 6px 16px rgba(28, 20, 16, 0.4);
  transition: box-shadow 380ms, border-color 380ms;
  background: var(--stone);
}

.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-name {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--stone);
  color: var(--cream);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms, transform 240ms;
  z-index: 6;
}

.plate:hover {
  transform: scale(1.18);
  z-index: 5;
}
.cluster--runes .plate:hover .plate-frame {
  border-color: var(--gold-bright);
  box-shadow:
    0 12px 28px rgba(28, 20, 16, 0.55),
    0 0 22px rgba(232, 200, 120, 0.55);
}
.cluster--glyphs .plate:hover .plate-frame {
  border-color: var(--jade-bright);
  box-shadow:
    0 12px 28px rgba(28, 20, 16, 0.55),
    0 0 22px rgba(74, 135, 112, 0.55);
}
.plate:hover .plate-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================================
   Individual symbol section — one full window per symbol
   Three-column header: illustration | title | rune image
   Then a thin gold divider, then wide prose below.
   ===================================================================== */

.symbol-page {
  min-height: 96vh;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-margin-top: 5rem;  /* anchor offset for sticky masthead */
}

/* Subtle alternating tint so glyph sections read distinct from runes */
.symbol-page--glyph {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(45, 94, 74, 0.05) 50%,
    transparent 100%);
}

.symbol-page-stage {
  max-width: 78rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* The three-column header */
.symbol-page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto 2.5rem;
}

/* Left column — atmospheric illustration */
.symbol-page-illustration {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.symbol-page-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 160, 74, 0.20);
  border-radius: 4px;
  pointer-events: none;
}

.symbol-page-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.symbol-page-illustration--empty {
  background: var(--paper-edge, rgba(201,160,74,0.08));
}

/* Centre column — title block */
.symbol-page-titleblock {
  text-align: center;
  min-width: 16rem;
}

.symbol-page-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin: 0 0 1rem;
}
.symbol-page--rune  .symbol-page-meta { color: var(--gold-deep); }
.symbol-page--glyph .symbol-page-meta { color: var(--jade); }

.symbol-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.005em;
}

/* Right column — modernized rune/glyph image */
.symbol-page-figure {
  margin: 0;
  justify-self: start;
  width: 100%;
  max-width: 14rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  position: relative;
}

.symbol-page-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 160, 74, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.symbol-page-figure--rune  { aspect-ratio: 4 / 5; }
.symbol-page-figure--glyph { aspect-ratio: 1 / 1; max-width: 13rem; }

.symbol-page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thin gold divider between header and prose */
.symbol-page-divider {
  border: 0;
  height: 1px;
  margin: 0 auto 2.4rem;
  width: min(48rem, 90%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 160, 74, 0.55) 50%,
    transparent 100%);
}

/* Prose — wide, readable, centered shell with left-aligned text */
.symbol-page-prose {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.symbol-page-prose p {
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  color: var(--ink);
}

.symbol-page-prose p:last-child { margin: 0; }

.symbol-page-prose strong {
  font-weight: 600;
  color: var(--ink);
}

.symbol-page-cta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 2rem auto 1.4rem;
  max-width: 36rem;
  text-align: center;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}

.symbol-page-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 220ms, border-color 220ms;
  letter-spacing: 0.02em;
}

.symbol-page-back:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

/* =====================================================================
   Calendar page
   ===================================================================== */

/* Hero with atmospheric image background — fills the viewport,
   text sits at the bottom on a darkened band so it doesn't crowd faces.
   Top band darkened so the masthead links read on the sky. */
.page-hero--calendar {
  min-height: 100vh;
  padding: 9rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero--calendar .page-hero-content {
  padding-bottom: 1.5rem;
}

.page-hero--calendar .page-hero-bg--image {
  background:
    linear-gradient(180deg,
      rgba(28, 20, 16, 0.65) 0%,
      rgba(28, 20, 16, 0.40) 8%,
      rgba(28, 20, 16, 0.10) 18%,
      rgba(28, 20, 16, 0.05) 50%,
      rgba(28, 20, 16, 0.55) 75%,
      rgba(28, 20, 16, 0.92) 100%),
    url("webpageImages/calendarImage1.jpg");
  background-size: cover;
  background-position: center 38%;
  animation: calendarBreathe 28s ease-in-out infinite alternate;
}

.page-hero--calendar .page-hero-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.page-hero--calendar .page-hero-sub {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.page-hero--calendar .page-hero-eyebrow {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

@keyframes calendarBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.page-hero--calendar .page-hero-bg--image::after {
  display: none;  /* skip the dust pattern, the image carries enough */
}

/* =====================================================================
   The Counts — three movements with real visual presence
   ===================================================================== */

.counts {
  padding: 6rem 1.5rem 5rem;
}

.counts-head {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.counts-movement {
  max-width: 64rem;
  margin: 0 auto 4rem;
}
.counts-movement:last-of-type { margin-bottom: 0; }

.movement-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--cinnabar);
  margin: 0 0 2rem;
  position: relative;
}
.movement-label::before,
.movement-label::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 58, 37, 0.6), transparent);
  vertical-align: middle;
  margin: 0 1rem;
}

.counts-movement--cycles .movement-label { color: var(--gold-deep); }
.counts-movement--cycles .movement-label::before,
.counts-movement--cycles .movement-label::after {
  background: linear-gradient(90deg, transparent, rgba(139, 105, 20, 0.6), transparent);
}

.counts-movement--super .movement-label { color: var(--jade); }
.counts-movement--super .movement-label::before,
.counts-movement--super .movement-label::after {
  background: linear-gradient(90deg, transparent, rgba(45, 94, 74, 0.6), transparent);
}

/* Trio — three columns of basic counts */
.counts-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Duo — two columns of cycle counts */
.counts-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 50rem;
  margin: 0 auto;
}

/* Card — the wrapper for each count entry */
.count-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Visualisation container */
.count-vis {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.4rem;
}

.count-vis--row {
  width: 11rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.count-vis-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a3a10;
  box-shadow:
    0 0 14px rgba(232, 200, 120, 0.95),
    inset 0 0 3px rgba(232, 200, 120, 0.5);
  z-index: 2;
}

.count-card--glyph .count-vis-center {
  background: #1f4a38;
  box-shadow:
    0 0 14px rgba(74, 135, 112, 0.95),
    inset 0 0 3px rgba(74, 135, 112, 0.5);
}

/* The dots — generated by JS, positioned around the ring.
   Deep ink fill + luminous halo so they pop against warm clay
   without breaking the palette. */
.count-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #5a3a10;
  box-shadow:
    0 0 10px rgba(232, 200, 120, 0.85),
    0 0 2px rgba(40, 24, 12, 0.5),
    inset 0 0 2px rgba(232, 200, 120, 0.4);
  transform: rotate(var(--angle)) translateY(-3.5rem);
  transform-origin: center;
}

.count-card--glyph .count-dot {
  background: #1f4a38;
  box-shadow:
    0 0 10px rgba(74, 135, 112, 0.85),
    0 0 2px rgba(40, 24, 12, 0.5),
    inset 0 0 2px rgba(74, 135, 112, 0.4);
}

/* Row variant (for the 13 tones) — flex-positioned, not rotated */
.count-vis--row .count-dot {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
  transform: none;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: #5a3a10;
  opacity: calc(0.6 + 0.4 * (var(--idx) / var(--total)));
  box-shadow:
    0 0 10px rgba(232, 200, 120, 0.85),
    inset 0 0 2px rgba(232, 200, 120, 0.4);
}

/* Number */
.count-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.01em;
  font-feature-settings: "lnum" 1;
}

.count-card--glyph .count-num    { color: var(--jade); }
.count-card--cycle .count-num    { color: var(--cinnabar); }
.count-card--super .count-num    {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--gold-deep);
}

/* Name & prose */
.count-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.count-card--super .count-name { font-size: 1.6rem; }

.count-prose {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 18rem;
}

/* Cycle cards — bigger, with intersection visual */
.count-card--cycle .count-vis {
  width: 11rem;
  height: 9rem;
}

.count-vis--cross {
  position: relative;
}

.count-vis-ring {
  position: absolute;
  top: 50%;
  width: 7rem;
  height: 7rem;
  margin-top: -3.5rem;
  border-radius: 50%;
}
.count-vis-ring--a { left: 0; }
.count-vis-ring--b { right: 0; }

.count-vis-ring .count-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  transform: rotate(var(--angle)) translateY(-3rem);
}

.count-vis-ring--a .count-dot {
  background: #5a3a10;
  box-shadow:
    0 0 9px rgba(232, 200, 120, 0.85),
    inset 0 0 2px rgba(232, 200, 120, 0.4);
}
.count-vis-ring--b .count-dot {
  background: #1f4a38;
  box-shadow:
    0 0 9px rgba(74, 135, 112, 0.85),
    inset 0 0 2px rgba(74, 135, 112, 0.4);
}

/* Tone-cycle (260) uses cinnabar for the inner ring */
.counts-duo .count-card:nth-child(2) .count-vis-ring--b .count-dot {
  background: #5a1e10;
  box-shadow:
    0 0 9px rgba(176, 72, 48, 0.8),
    inset 0 0 2px rgba(176, 72, 48, 0.4);
}

/* Supercycle — featured with the wheel */
.counts-movement--super .count-card--super {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  max-width: 56rem;
  margin: 0 auto;
}

.count-wheel {
  position: relative;
  width: 18rem;
  height: 18rem;
  margin: 0 auto;
}

.count-wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.count-wheel-ring--outer { width: 17rem; height: 17rem; }
.count-wheel-ring--mid   { width: 12rem; height: 12rem; }
.count-wheel-ring--inner { width:  7rem; height:  7rem; }

.count-wheel-ring--outer .count-dot {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #5a3a10;
  box-shadow:
    0 0 12px rgba(232, 200, 120, 0.95),
    inset 0 0 3px rgba(232, 200, 120, 0.5);
  transform: rotate(var(--angle)) translateY(-8.5rem);
}
.count-wheel-ring--mid .count-dot {
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  background: #1f4a38;
  box-shadow:
    0 0 11px rgba(74, 135, 112, 0.95),
    inset 0 0 3px rgba(74, 135, 112, 0.5);
  transform: rotate(var(--angle)) translateY(-6rem);
}
.count-wheel-ring--inner .count-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: #5a1e10;
  box-shadow:
    0 0 10px rgba(176, 72, 48, 0.9),
    inset 0 0 3px rgba(176, 72, 48, 0.5);
  transform: rotate(var(--angle)) translateY(-3.5rem);
}

.count-wheel-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(232, 200, 120, 0.65);
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}

.count-super-text { text-align: left; }
.count-super-text .count-num {
  display: block;
  margin-bottom: 0.4rem;
}
.count-super-text .count-prose { max-width: 24rem; font-size: 1.08rem; line-height: 1.6; }

/* Slow rotation on the supercycle wheel rings — opposing directions */
.count-wheel-ring--outer { animation: spin 80s linear infinite; }
.count-wheel-ring--mid   { animation: spin 60s linear infinite reverse; }
.count-wheel-ring--inner { animation: spin 40s linear infinite; }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg);   }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .count-wheel-ring--outer,
  .count-wheel-ring--mid,
  .count-wheel-ring--inner { animation: none; }
}

/* Anchor line */
.counts-anchor {
  max-width: 38rem;
  margin: 4rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

.counts-anchor-mark {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(232, 200, 120, 0.5);
}

/* The Four Harmonic Paths */
.paths {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg,
    rgba(80, 50, 25, 0.04) 0%,
    rgba(80, 50, 25, 0.10) 50%,
    rgba(80, 50, 25, 0.04) 100%);
}

.paths-head {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.paths-list {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.path {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.path:last-child { border-bottom: none; }

.path-emblem {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 12rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--paper-soft);
}

.path-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.path-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 0.7rem;
  display: block;
}

.path--protection .path-meta { color: var(--jade); }
.path--illumination .path-meta { color: var(--gold-deep); }
.path--balance .path-meta { color: var(--clay-shadow); }

.path-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}

.path-theme {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.path-pairs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: flex-start;
}

.path-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  min-width: 4.5rem;
  position: relative;
}

.path-pair strong {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 30;
  line-height: 1.1;
}

.path-pair > span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 30;
  line-height: 1.1;
}

/* Subtle gold dot between rune and glyph (the harmonic meeting point) */
.path-pair:not(.path-pair--alone)::before {
  content: "·";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 0;
  opacity: 0.6;
}

/* The solitary rune at the end — visually distinct */
.path-pair--alone {
  padding-left: 1rem;
  margin-left: 0.6rem;
  border-left: 1px dashed var(--rule);
}

.path-pair--alone strong {
  color: var(--ink);
  font-weight: 600;
}

.path-pair--alone > span {
  font-style: italic;
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 500;
  font-variation-settings: "opsz" 14;
}

/* Per-path tinted accent for the harmonic dot */
.path--protection   .path-pair:not(.path-pair--alone)::before { color: var(--jade); }
.path--illumination .path-pair:not(.path-pair--alone)::before { color: var(--gold); }
.path--balance      .path-pair:not(.path-pair--alone)::before { color: var(--clay-shadow); }

/* Member workspace teasers */
.teasers {
  padding: 6rem 1.5rem 7rem;
}

.teasers-head {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.teaser {
  max-width: 70rem;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.teaser:last-child { margin-bottom: 0; }

.teaser--right .teaser-mockup { order: 2; }
.teaser--right .teaser-text { order: 1; }

.teaser-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(201, 160, 74, 0.12);
  border: 1px solid rgba(201, 160, 74, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.teaser-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}

.teaser-text p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 30rem;
}

/* The mockups — CSS-rendered previews of member features */
.teaser-mockup {
  position: relative;
}

.mockup {
  background:
    linear-gradient(180deg, rgba(244, 226, 196, 0.95) 0%, rgba(234, 210, 174, 0.95) 100%);
  border: 1px solid rgba(201, 160, 74, 0.35);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  box-shadow:
    0 16px 40px -16px rgba(40, 24, 12, 0.4),
    0 2px 6px rgba(40, 24, 12, 0.1);
  position: relative;
}

.mockup::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(201, 160, 74, 0.18);
  border-radius: 4px;
  pointer-events: none;
}

.mockup-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 0.85rem;
}

.mockup-date,
.mockup-bday-date {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.mockup-result {
  border-top: 1px solid rgba(201, 160, 74, 0.3);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.mockup-result-line {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-variation-settings: "opsz" 30;
}

.mockup-result-sub {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.mockup-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(201, 160, 74, 0.3);
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant: small-caps;
  letter-spacing: 0.1em;
}

/* Finder pills */
.mockup-pills {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mockup-pill {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(201, 160, 74, 0.18);
  border: 1px solid rgba(201, 160, 74, 0.4);
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}

/* Cast mockup */
.mockup-cast-symbols {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.mockup-rune,
.mockup-glyph {
  width: 4.5rem;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(40, 24, 12, 0.3);
}
.mockup-rune  { aspect-ratio: 4 / 5; object-fit: cover; }
.mockup-glyph { aspect-ratio: 1 / 1; object-fit: cover; }

.mockup-cast-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
  text-align: center;
}

.mockup-cast-basic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.mockup-locked {
  position: relative;
  padding: 0.85rem;
  background: rgba(28, 20, 16, 0.04);
  border: 1px solid rgba(201, 160, 74, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.mockup-locked-snippet {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  filter: blur(2px);
  user-select: none;
}

.mockup-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0) 0%, rgba(244, 226, 196, 0.85) 70%);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  font-weight: 600;
}

/* Birthday cycles */
.mockup-cycles {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(201, 160, 74, 0.3);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 0.5rem;
}

/* A thin gold rule separates the ages row from the next-birthdays row */
.mockup-cycles > div:nth-child(4) {
  border-top: 1px dashed rgba(201, 160, 74, 0.25);
  padding-top: 0.85rem;
  margin-top: 0.15rem;
}
.mockup-cycles > div:nth-child(5) {
  border-top: 1px dashed rgba(201, 160, 74, 0.25);
  padding-top: 0.85rem;
  margin-top: 0.15rem;
}
.mockup-cycles > div:nth-child(6) {
  border-top: 1px dashed rgba(201, 160, 74, 0.25);
  padding-top: 0.85rem;
  margin-top: 0.15rem;
}

.mockup-cycles div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mockup-cycles-label {
  font-size: 0.66rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.2;
}

.mockup-cycles-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 30;
}

/* Journal mockup */
.mockup-journal-entry {
  background: rgba(244, 226, 196, 0.5);
  border: 1px solid rgba(201, 160, 74, 0.25);
  border-radius: 4px;
  padding: 0.85rem;
  margin-bottom: 0.9rem;
}

.mockup-journal-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.mockup-journal-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.mockup-journal-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup-journal-item {
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.25);
}

/* Grid mockup */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.mockup-grid-cell {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.3rem;
  border: 1px solid rgba(201, 160, 74, 0.25);
  border-radius: 2px;
  background: rgba(244, 226, 196, 0.5);
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-grid-cell--harmonic {
  background: rgba(201, 160, 74, 0.32);
  border-color: rgba(201, 160, 74, 0.55);
  color: var(--ink);
  font-weight: 600;
}

.mockup-grid-cell--disharmonic {
  background: rgba(160, 58, 37, 0.18);
  border-color: rgba(160, 58, 37, 0.4);
  color: var(--cinnabar-deep);
}

.mockup-grid-legend {
  display: flex;
  gap: 0.9rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  margin: 0.6rem 0 0;
  flex-wrap: wrap;
}

.mockup-grid-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mockup-grid-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.mockup-grid-dot--harmonic    { background: rgba(201, 160, 74, 0.6); }
.mockup-grid-dot--disharmonic { background: rgba(160, 58, 37, 0.45); }
.mockup-grid-dot--neutral     { background: rgba(150, 130, 100, 0.3); }

/* Path-color cell + dot variants for the calendar.html grid teaser */
.mockup-grid-cell--p1 { background: rgba(192,138,58,0.30);  border-color: rgba(192,138,58,0.55); color: #5a3d12; font-weight: 600; }
.mockup-grid-cell--p2 { background: rgba(177, 74,58,0.28);  border-color: rgba(177, 74,58,0.5);  color: #5a1a12; font-weight: 600; }
.mockup-grid-cell--p3 { background: rgba(106,141,111,0.30); border-color: rgba(106,141,111,0.55); color: #1f3a23; font-weight: 600; }
.mockup-grid-cell--p4 { background: rgba(108, 91,142,0.28); border-color: rgba(108, 91,142,0.5);  color: #2a1d4a; font-weight: 600; }
.mockup-grid-dot--p1 { background: #c08a3a; }
.mockup-grid-dot--p2 { background: #b14a3a; }
.mockup-grid-dot--p3 { background: #6a8d6f; }
.mockup-grid-dot--p4 { background: #6c5b8e; }

/* Hero CTA pair on the calendar page */
.page-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ============================================================
   BIRTHDAY — birthday.html (member tool)
   ============================================================ */

[data-page="birthday-v2"] {
  background: linear-gradient(180deg, #f8f1e2 0%, #efe3c8 100%);
}
[data-page="birthday-v2"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.55) 0%,
      rgba(20, 12, 8, 0.20) 14%,
      rgba(20, 12, 8, 0.06) 35%,
      rgba(20, 12, 8, 0.06) 60%,
      rgba(20, 12, 8, 0.50) 80%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/mayanPriestess.jpg");
  background-size: cover;
  background-position: center 25%;
}

/* ---- Tool / form ---- */
.birthday-tool {
  padding: 5rem 1.5rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
  scroll-margin-top: 5rem;
}
.birthday-shell { max-width: 44rem; margin: 0 auto; text-align: center; }
.birthday-head { margin-bottom: 2.5rem; }
.birthday-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}
.birthday-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(58, 40, 15, 0.85);
  margin: 0;
}
.birthday-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
}
.birthday-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 14rem;
  text-align: left;
}
.birthday-field-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
}
.birthday-input {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(74, 52, 18, 0.25);
  border-radius: 0.4rem;
  background: rgba(255, 250, 238, 0.85);
  color: #3a280f;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.birthday-input:focus {
  outline: none;
  border-color: rgba(192, 138, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(192, 138, 58, 0.18);
}
.birthday-saved {
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(58, 40, 15, 0.65);
  font-style: italic;
}

/* ---- Result panel ---- */
.birthday-result-section {
  padding: 2rem 1.5rem 5rem;
  max-width: 70rem;
  margin: 0 auto;
}
.birthday-result {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74, 52, 18, 0.18);
  border-radius: 0.85rem;
  padding: 3rem 2rem;
  box-shadow: 0 16px 36px rgba(74, 52, 18, 0.12);
  position: relative;
  overflow: hidden;
}
.birthday-result::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c08a3a, #b14a3a, #6a8d6f, #6c5b8e);
}
.birthday-result-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.birthday-result-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.65);
  margin: 0 0 0.85rem;
}
.birthday-result-sig {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #3a280f;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.birthday-result-path {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(74, 52, 18, 0.78);
  margin: 0;
}

.birthday-result-symbols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 2rem auto 2.5rem;
}
.birthday-result-figure { margin: 0; text-align: center; }
.birthday-result-figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 14rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(74, 52, 18, 0.18);
  box-shadow: 0 8px 20px rgba(74, 52, 18, 0.18);
}
.birthday-result-figure--rune img { aspect-ratio: 4 / 5; }
.birthday-result-figure figcaption {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #3a280f;
  margin-top: 0.85rem;
}
.birthday-result-cross {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #c08a3a;
}

.birthday-result-cycles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 250, 238, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.12);
  border-radius: 0.5rem;
}
.birthday-result-cycles > div {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.birthday-cycles-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
}
.birthday-cycles-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  color: #3a280f;
  font-variant-numeric: tabular-nums;
}

/* ---- Next birthdays ---- */
.birthday-next {
  margin-top: 1rem;
}
.birthday-next-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #3a280f;
  margin: 0 0 1.25rem;
  text-align: center;
  letter-spacing: -0.005em;
}
.birthday-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.birthday-next-card {
  background: rgba(255, 250, 238, 0.7);
  border: 1px solid rgba(74, 52, 18, 0.14);
  border-top: 3px solid rgba(192, 138, 58, 0.7);
  border-radius: 0.45rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.birthday-next-card:nth-child(2) { border-top-color: rgba(106, 141, 111, 0.7); }
.birthday-next-card:nth-child(3) { border-top-color: rgba(108,  91, 142, 0.7); }
.birthday-next-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.62);
  margin: 0 0 0.65rem;
}
.birthday-next-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: #5a3d12;
  margin: 0 0 0.3rem;
}
.birthday-next-from {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(58, 40, 15, 0.8);
  margin: 0 0 0.65rem;
}
.birthday-next-note {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(58, 40, 15, 0.6);
  margin: 0;
  line-height: 1.5;
}

.birthday-result-prose {
  margin: 2.5rem auto 0;
  max-width: 44rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(58, 40, 15, 0.88);
  text-align: center;
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 52, 18, 0.12);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .birthday-result-cycles { grid-template-columns: 1fr 1fr; }
  .birthday-next-grid { grid-template-columns: 1fr; }
  .birthday-result-symbols {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }
  .birthday-result-cross { display: none; }
  .birthday-result { padding: 2rem 1.25rem; }
}

/* ============================================================
   SETTINGS + HELP — utility pages
   ============================================================ */

[data-page="help-v2"] {
  background: linear-gradient(180deg, #f8f1e2 0%, #efe3c8 100%);
}

/* Force the masthead into the solid scrolled state on help —
   it has a light-cream text-only hero, not a dark photo */
[data-page="help-v2"] .masthead {
  background: rgba(199, 144, 104, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(40, 24, 12, 0.18);
}
[data-page="help-v2"] .primary-nav a {
  color: var(--ink-soft);
  text-shadow: none;
}
[data-page="help-v2"] .primary-nav a:hover,
[data-page="help-v2"] .primary-nav a.is-current {
  color: var(--ink);
}
[data-page="help-v2"] .brand,
[data-page="help-v2"] .brand-text { color: var(--ink); }
[data-page="help-v2"] .signin {
  color: var(--ink);
  border-color: rgba(40, 24, 12, 0.3);
}
[data-page="help-v2"] .signin:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Hero (settings + help share a smaller text-only hero) */
.settings-hero,
.help-hero {
  padding: 9rem 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(192, 138, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(106, 141, 111, 0.10), transparent 60%),
    linear-gradient(180deg, #f6ecd4 0%, #f3e6c4 100%);
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
}
.settings-hero-shell,
.help-hero-shell {
  max-width: 48rem;
  margin: 0 auto;
}
.settings-hero-title,
.help-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}
.settings-hero-lede,
.help-hero-lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(58, 40, 15, 0.85);
  margin: 0;
}

/* Sections */
.settings-section,
.help-section {
  padding: 4rem 1.5rem 1rem;
  max-width: 60rem;
  margin: 0 auto;
}
.settings-section-head,
.help-section-head { margin-bottom: 1.75rem; }
.settings-section-title,
.help-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 0;
  letter-spacing: -0.005em;
}

/* Settings — local data list */
.settings-data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.settings-data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  background: rgba(255, 250, 238, 0.7);
  border: 1px solid rgba(74, 52, 18, 0.16);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}
.settings-data-row.is-empty .settings-data-clear { display: none; }
.settings-data-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #3a280f;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}
.settings-data-note {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(58, 40, 15, 0.7);
  margin: 0;
}
.settings-data-state {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}
.settings-data-value {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(58, 40, 15, 0.8);
}
.settings-data-clear {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  color: var(--ink);
  border-color: rgba(40, 24, 12, 0.4);
  background: rgba(255, 250, 238, 0.4);
}
.settings-data-clear:hover {
  background: rgba(40, 24, 12, 0.08);
  border-color: rgba(40, 24, 12, 0.7);
}

/* Settings — actions cards */
.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.settings-action-card {
  background: rgba(255, 250, 238, 0.8);
  border: 1px solid rgba(74, 52, 18, 0.18);
  border-radius: 0.6rem;
  padding: 1.5rem 1.5rem 1.75rem;
}
.settings-action-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #3a280f;
  margin: 0 0 0.65rem;
  letter-spacing: -0.005em;
}
.settings-action-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(58, 40, 15, 0.82);
  margin: 0 0 1.25rem;
}
.settings-action-card--danger {
  border-color: rgba(177, 74, 58, 0.32);
  background: rgba(177, 74, 58, 0.06);
}
.settings-action-card--danger h3 { color: #5a1a12; }
.settings-action-card--danger .btn--ghost {
  border-color: rgba(177, 74, 58, 0.45);
  color: #5a1a12;
}
.settings-action-card--danger .btn--ghost:hover {
  background: rgba(177, 74, 58, 0.12);
  border-color: rgba(177, 74, 58, 0.7);
  color: #5a1a12;
}

/* Settings — generic note */
.settings-note {
  background: rgba(255, 250, 238, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.12);
  border-left: 3px solid rgba(192, 138, 58, 0.55);
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 1.25rem 1.5rem;
}
.settings-note p {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(58, 40, 15, 0.85);
  margin: 0 0 1rem;
}
.settings-note p:last-child { margin: 0; }

/* Help — TOC */
.help-toc {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 0.85rem 1.5rem;
  background: rgba(248, 241, 226, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
  scroll-margin-top: 4rem;
}
.help-toc-shell {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  justify-content: center;
}
.help-toc-shell a {
  color: rgba(58, 40, 15, 0.75);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  transition: color 0.15s, background 0.15s;
}
.help-toc-shell a:hover {
  color: var(--ink);
  background: rgba(74, 52, 18, 0.06);
}

/* Help section anchor margin so the sticky TOC doesn't cover the heading */
.help-section { scroll-margin-top: 4.5rem; }

/* Help — prose */
.help-prose {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(58, 40, 15, 0.88);
}
.help-prose p { margin: 0 0 1.1rem; }
.help-prose p:last-child { margin: 0; }
.help-prose ol,
.help-prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.5rem;
}
.help-prose li { margin-bottom: 0.5rem; }
.help-prose a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.help-prose a:hover {
  color: #3a280f;
  border-color: #3a280f;
}
.help-prose strong { color: #3a280f; }

/* Responsive */
@media (max-width: 760px) {
  .settings-data-row {
    grid-template-columns: 1fr;
  }
  .settings-data-state { justify-content: space-between; }
  .settings-actions {
    grid-template-columns: 1fr;
  }
  .settings-hero,
  .help-hero { padding-top: 7rem; }
}

/* ============================================================
   CONTACT — contact.html (formal, clay/terracotta page surface)
   ============================================================ */

[data-page="contact-v2"] {
  /* inherits the default body --clay background; no override here */
  color: var(--ink);
}

/* Hero — simple text-only band on the clay surface, no image */
[data-page="contact-v2"] .dash-hero {
  min-height: auto;
  padding: 9rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(70, 38, 18, 0.20), transparent 70%);
}
[data-page="contact-v2"] .dash-hero-bg { display: none; }
[data-page="contact-v2"] .dash-hero-shell {
  padding: 0;
  text-align: center;
}
[data-page="contact-v2"] .dash-hero-content {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--ink);
}
[data-page="contact-v2"] .dash-hero-eyebrow {
  color: var(--gold-deep, #8a6a2c);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-shadow: none;
}
[data-page="contact-v2"] .dash-hero-title {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
}
[data-page="contact-v2"] .dash-hero-date {
  color: rgba(40, 24, 12, 0.78);
  text-shadow: none;
  font-size: 1.1rem;
  font-style: normal;
  font-family: var(--font-serif);
  display: block;
  margin-top: 1.25rem;
}
[data-page="contact-v2"] .dash-hero-scroll { display: none; }

/* Sections sit on the clay body */
.contact-section {
  padding: 3.5rem 1.5rem 1rem;
  max-width: 60rem;
  margin: 0 auto;
}
.contact-section-head {
  margin-bottom: 1.75rem;
  text-align: center;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}
[data-page="contact-v2"] .section-eyebrow { color: var(--gold-deep, #8a6a2c); }
.contact-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0.5rem 0 0.85rem;
  letter-spacing: -0.005em;
}
.contact-section-sub {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(40, 24, 12, 0.78);
  margin: 0;
}

/* Form — cream card floating on the dark body */
.contact-form {
  background: rgba(255, 250, 238, 0.96);
  border: 1px solid rgba(232, 200, 120, 0.22);
  border-radius: 0.6rem;
  padding: 2rem 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-field--full { grid-column: 1 / -1; }
.contact-field-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.62);
}
.contact-field-optional {
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
  color: rgba(74, 52, 18, 0.5);
  font-size: 0.85em;
}
.contact-input {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(74, 52, 18, 0.25);
  border-radius: 0.4rem;
  background: rgba(255, 250, 238, 0.9);
  color: #3a280f;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-input:focus {
  outline: none;
  border-color: rgba(192, 138, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(192, 138, 58, 0.18);
}
.contact-textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.55;
}
.contact-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  margin-top: 0.5rem;
}
.contact-form-status {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(58, 40, 15, 0.6);
  margin: 0;
  min-height: 1.2em;
}
.contact-form-status.is-error { color: #b14a3a; font-style: normal; }
.contact-form-status.is-ok    { color: #3f6a48; font-style: normal; }

/* Before-you-write checks */
.contact-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-checks li {
  background: rgba(255, 250, 238, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.12);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}
.contact-checks h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #3a280f;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.contact-checks p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(58, 40, 15, 0.82);
  margin: 0;
}
.contact-checks a {
  color: #5a3d12;
  border-bottom: 1px solid rgba(192, 138, 58, 0.45);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-checks a:hover {
  color: #3a280f;
  border-color: #3a280f;
}

/* Privacy aside — sits below the form, smaller and quieter */
.contact-privacy {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 250, 238, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.16);
  border-left: 3px solid rgba(192, 138, 58, 0.5);
  border-radius: 0 0.4rem 0.4rem 0;
}
.contact-privacy h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.65);
  margin: 0 0 0.65rem;
}
.contact-privacy ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-privacy li {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(40, 24, 12, 0.82);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.contact-privacy li:last-child { margin-bottom: 0; }
.contact-privacy li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(192, 138, 58, 0.6);
  font-size: 0.85em;
}

/* Newsletter form */
.contact-newsletter {
  background: rgba(255, 250, 238, 0.96);
  border: 1px solid rgba(232, 200, 120, 0.28);
  border-radius: 0.6rem;
  padding: 1.75rem 2rem 1.85rem;
  max-width: 36rem;
  margin: 0 auto;
  box-shadow: 0 18px 36px rgba(40, 24, 12, 0.18);
}
.contact-newsletter .contact-form-actions {
  margin-top: 0.85rem;
}
.contact-newsletter-note {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(40, 24, 12, 0.62);
  margin: 1rem 0 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-newsletter { padding: 1.5rem 1.25rem; }
}

/* Calendar membership bridge */
.calendar-bridge {
  padding: 7rem 1.5rem 8rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%,
      rgba(70, 38, 18, 0.55), transparent 70%),
    linear-gradient(180deg, var(--stone-warm) 0%, var(--stone) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.calendar-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 82% 68%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 45% 88%, rgba(232, 200, 120, 0.10) 0, transparent 2px);
  background-size: 480px 480px;
  animation: drift 80s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}

.calendar-bridge-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
}

.calendar-bridge .section-eyebrow { color: var(--gold); }
.calendar-bridge .section-title   { color: var(--cream); }

.calendar-bridge-prose {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(244, 226, 196, 0.88);
  margin: 1.4rem 0 2.4rem;
}

.calendar-bridge-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================================================================
   About page
   ===================================================================== */

/* Hero — About1 image, same treatment as Calendar hero */
.page-hero--about {
  min-height: 100vh;
  padding: 9rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero--about .page-hero-content {
  padding-bottom: 1.5rem;
}

.page-hero--about .page-hero-bg--image {
  background:
    linear-gradient(180deg,
      rgba(28, 20, 16, 0.65) 0%,
      rgba(28, 20, 16, 0.40) 8%,
      rgba(28, 20, 16, 0.10) 18%,
      rgba(28, 20, 16, 0.05) 50%,
      rgba(28, 20, 16, 0.55) 75%,
      rgba(28, 20, 16, 0.92) 100%),
    url("webpageImages/About1.jpg");
  background-size: cover;
  background-position: center 38%;
  animation: calendarBreathe 28s ease-in-out infinite alternate;
}

.page-hero--about .page-hero-bg--image::after { display: none; }

.page-hero--about .page-hero-title,
.page-hero--about .page-hero-sub,
.page-hero--about .page-hero-eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

/* Anchor TOC */
.about-toc {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}

.about-toc-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.about-toc-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.about-toc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  padding: 1rem 0.6rem;
  border-top: 1px solid var(--rule);
  transition: color 220ms, border-color 220ms;
}

.about-toc-link:hover {
  color: var(--cinnabar);
  border-top-color: var(--cinnabar);
}

.about-toc-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
  font-variation-settings: "opsz" 36;
  letter-spacing: 0.05em;
}

.about-toc-name {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  text-align: center;
  font-weight: 600;
}

/* About sections — long-form editorial */
.about-section {
  padding: 5rem 1.5rem;
  scroll-margin-top: 5rem;
}

.about-section:nth-child(odd) {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(80, 50, 25, 0.04) 50%,
    transparent 100%);
}

.about-section-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.about-section-head {
  margin-bottom: 3rem;
  text-align: center;
}

.about-section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.5rem;
}

.about-section-eyebrow::before,
.about-section-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
}
.about-section-eyebrow::before { right: 100%; }
.about-section-eyebrow::after  { left:  100%; }

/* A tiny gold ✦ above each section title */
.about-section-head::before {
  content: "✦";
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}

.about-section--mission     .about-section-eyebrow { color: var(--gold-deep); }
.about-section--birth-story .about-section-eyebrow { color: var(--cinnabar); }
.about-section--sceptics    .about-section-eyebrow { color: var(--jade); }
.about-section--project     .about-section-eyebrow { color: var(--gold-deep); }

.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.005em;
}

.about-section-body p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.3rem;
  color: var(--ink);
}

.about-section-body p:last-child { margin: 0; }

.about-h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 2.8rem 0 1rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  position: relative;
  padding-top: 1.5rem;
}
.about-h3:first-child {
  margin-top: 0;
  padding-top: 0;
}
.about-h3:first-child::before { display: none; }

/* Small gold ornament above each H2 sub-section */
.about-h3::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(232, 200, 120, 0.5);
  opacity: 0.7;
}

/* Drop cap on the first paragraph of each section's body */
.about-section-body > p:first-child::first-letter,
.about-section-body > .about-h3:first-child + p::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.4rem 0.55rem 0 0;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.about-h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 1.8rem 0 0.7rem;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.about-list {
  margin: 1rem 0 1.4rem;
  padding-left: 1.4rem;
}

.about-list li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* Mission Statement — virtue grid */
.virtue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin-top: 1rem;
}

.virtue {
  position: relative;
  padding-top: 1.3rem;
}

.virtue::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}

.virtue-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 30, "SOFT" 30;
  line-height: 1.2;
}

.virtue-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* Sceptics Q+A — expandable on click using <details>/<summary> */
.qa-prompt {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.qa-list {
  display: flex;
  flex-direction: column;
}

.qa-pair {
  padding: 0;
  border-top: 1px dashed rgba(201, 160, 74, 0.3);
}

.qa-pair:last-child {
  border-bottom: 1px dashed rgba(201, 160, 74, 0.3);
}

.qa-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 1.4rem 2.2rem 1.4rem 2.4rem;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-variation-settings: "opsz" 30, "SOFT" 80;
  transition: color 220ms, background-color 220ms;
  user-select: none;
}

/* Hide the default details marker in all browsers */
.qa-question::-webkit-details-marker { display: none; }

/* The + / × indicator on the left */
.qa-question::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: normal;
  color: var(--cinnabar);
  font-weight: 600;
  line-height: 1;
  transition: transform 320ms var(--ease-out), color 220ms;
  transform-origin: center;
  width: 1.2rem;
  text-align: center;
}

/* Subtle arrow on the right */
.qa-question::after {
  content: "›";
  position: absolute;
  right: 0.5rem;
  top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-muted);
  font-style: normal;
  line-height: 1;
  transition: transform 280ms, color 220ms;
}

.qa-pair[open] .qa-question {
  color: var(--cinnabar);
  background: rgba(160, 58, 37, 0.04);
}

.qa-pair[open] .qa-question::before {
  transform: rotate(45deg);
}

.qa-pair[open] .qa-question::after {
  transform: rotate(90deg);
  color: var(--cinnabar);
}

.qa-pair:hover .qa-question {
  color: var(--cinnabar);
  background: rgba(160, 58, 37, 0.03);
}

.qa-answer {
  padding: 0 2.2rem 1.5rem 2.4rem;
  animation: qaExpand 360ms var(--ease-out);
}

.qa-answer p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 0.8rem;
}

.qa-answer p:last-child { margin: 0; }

@keyframes qaExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .qa-answer { animation: none; }
  .qa-question::before,
  .qa-question::after { transition: none; }
}

/* Logo feature — large logo + Aurochs/Crocodile passage in the Project section */
.logo-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin: 2.5rem 0 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.logo-feature::before,
.logo-feature::after {
  content: "✦";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--clay);
  padding: 0 0.6rem;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}
.logo-feature::before { top: -0.65rem; }
.logo-feature::after  { bottom: -0.65rem; }

.logo-feature-mark {
  margin: 0;
  text-align: center;
  position: relative;
}

.logo-feature-mark img {
  width: 100%;
  max-width: 18rem;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(40, 24, 12, 0.4));
  animation: logoFloat 8s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.logo-feature-text {
  text-align: left;
}

.logo-feature-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

.logo-feature-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}

.logo-feature-text p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.logo-feature-text p:last-child { margin: 0; }

/* Bridge */
.about-bridge {
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%,
      rgba(70, 38, 18, 0.55), transparent 70%),
    linear-gradient(180deg, var(--stone-warm) 0%, var(--stone) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.about-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 82% 68%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 45% 88%, rgba(232, 200, 120, 0.10) 0, transparent 2px);
  background-size: 480px 480px;
  animation: drift 80s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}

.about-bridge-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
}

.about-bridge .section-eyebrow { color: var(--gold); }
.about-bridge .section-title   { color: var(--cream); }

.about-bridge-prose {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(244, 226, 196, 0.88);
  margin: 1.4rem 0 2.4rem;
}

.about-bridge-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================================================================
   Member Calendar workspace — Pick a date + RGT Finder
   ===================================================================== */

body[data-page="member-calendar-v2"] {
  font-size: 1.18rem;
  line-height: 1.6;
}

.mcal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0;
}

.mcal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.65) 0%,
      rgba(20, 12, 8, 0.30) 8%,
      rgba(20, 12, 8, 0.10) 30%,
      rgba(20, 12, 8, 0.10) 55%,
      rgba(20, 12, 8, 0.55) 78%,
      rgba(20, 12, 8, 0.92) 100%),
    url("webpageImages/calendarImage1.jpg");
  background-size: cover;
  background-position: center 35%;
  animation: heroSlowZoom 28s ease-in-out infinite alternate;
}

.mcal-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10rem;
  background: linear-gradient(180deg,
    rgba(199, 144, 104, 0) 0%,
    rgba(199, 144, 104, 0.20) 40%,
    rgba(199, 144, 104, 0.55) 75%,
    var(--clay) 100%);
  pointer-events: none;
  z-index: -1;
}

.mcal-hero-shell {
  width: 100%;
  max-width: var(--shell, 70rem);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 2;
}

.mcal-hero-content { color: var(--cream); max-width: 50rem; }

.mcal-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.mcal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: var(--cream);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.mcal-hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(244, 226, 196, 0.92);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
}

.mcal-hero-sep {
  color: var(--gold);
  font-style: normal;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}

.mcal-hero-sig {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--cream);
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

/* Page sections — constrained shell */
body[data-page="member-calendar-v2"] > section.mcal-pick,
body[data-page="member-calendar-v2"] > section.mcal-finder,
body[data-page="member-calendar-v2"] > section.mcal-cycles-ref {
  max-width: var(--shell, 70rem);
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

body[data-page="member-calendar-v2"] > section.mcal-pick {
  padding-top: 4rem;
}

body[data-page="member-calendar-v2"] .section-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

body[data-page="member-calendar-v2"] .section-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.26em;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 0.5rem;
  display: block;
}

body[data-page="member-calendar-v2"] .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--ink);
}

body[data-page="member-calendar-v2"] .section-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0.8rem auto 0;
  max-width: 38rem;
}

/* The tool card — paper feel */
.mcal-tool {
  max-width: 56rem;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.85) 0%, rgba(244, 226, 196, 0.75) 100%);
  border: 1px solid rgba(201, 160, 74, 0.4);
  border-radius: 12px;
  padding: 2rem 2rem 1.8rem;
  box-shadow:
    0 24px 60px -28px rgba(40, 24, 12, 0.4),
    inset 0 0 0 1px rgba(255, 248, 230, 0.7);
}

.mcal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  align-items: flex-end;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.4);
}

.mcal-form--finder {
  align-items: flex-end;
  /* reserve room for the absolutely-positioned path tags / tone hint
     that float below the rune, glyph, and tone fields */
  padding-bottom: 2.2rem;
}

/* ---- Mode tabs ---- */
.mcal-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.4);
}
.mcal-mode-tab {
  flex: 1 1 8rem;
  min-width: 8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  text-align: center;
  padding: 0.7rem 1rem;
  background: rgba(244, 226, 196, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.18);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  font-family: var(--font-body);
  color: rgba(58, 40, 15, 0.78);
}
.mcal-mode-tab:hover {
  background: rgba(244, 226, 196, 0.85);
  border-color: rgba(74, 52, 18, 0.35);
  color: var(--ink);
}
.mcal-mode-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(40, 24, 12, 0.22);
}
.mcal-mode-tab-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: -0.005em;
}
.mcal-mode-tab-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- Mode-driven field visibility ---- */
.mcal-form--finder.is-mode-rg  .mcal-field--tone { display: none; }
.mcal-form--finder.is-mode-gt  .mcal-field--rune { display: none; }
/* RGT shows everything (no rule needed) */

/* ---- Path tag (next to rune/glyph after selection) ----
   Positioned absolutely so the field height stays stable when the
   tag appears or disappears — otherwise the label jumps up under
   the form's align-items: flex-end. */
.mcal-field--rune,
.mcal-field--glyph {
  position: relative;
}
.mcal-path-tag {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.6);
  border: 1px solid rgba(74, 52, 18, 0.2);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(58, 40, 15, 0.82);
  white-space: nowrap;
}
.mcal-path-tag-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
  background: rgba(74, 52, 18, 0.5);
}
.mcal-path-tag.is-path-1 .mcal-path-tag-dot { background: #c08a3a; }
.mcal-path-tag.is-path-2 .mcal-path-tag-dot { background: #b14a3a; }
.mcal-path-tag.is-path-3 .mcal-path-tag-dot { background: #6a8d6f; }
.mcal-path-tag.is-path-4 .mcal-path-tag-dot { background: #6c5b8e; }
.mcal-path-tag[hidden] { display: none; }

/* ---- Path status banner (live aligned/cross-path indicator) ---- */
.mcal-path-status {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.55;
  border-left: 3px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
/* Without this, display:flex above wins over the browser's default
   [hidden] { display: none } and the banner stays visible after .hidden=true. */
.mcal-path-status[hidden] { display: none; }
.mcal-path-status.is-aligned {
  background: rgba(106, 141, 111, 0.12);
  border-left-color: #6a8d6f;
  color: #1f3a23;
}
.mcal-path-status.is-cross {
  background: rgba(177, 74, 58, 0.10);
  border-left-color: #b14a3a;
  color: #5a1a12;
}
.mcal-path-status-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ---- Field hint (small note under tone select) ---- */
.mcal-field--tone {
  position: relative;
}
.mcal-field-hint {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(58, 40, 15, 0.6);
  font-style: italic;
  white-space: nowrap;
}

.mcal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 12rem;
}

.mcal-field-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
  font-weight: 600;
}

.mcal-input {
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(201, 160, 74, 0.45);
  background: rgba(255, 248, 230, 0.65);
  border-radius: 4px;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 30;
  transition: border-color 220ms, background 220ms, box-shadow 220ms;
  width: 100%;
}

.mcal-input:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: rgba(255, 248, 230, 0.9);
  box-shadow: 0 0 0 3px rgba(232, 200, 120, 0.22);
}

.mcal-btn,
.mcal-btn-ghost {
  flex: 0 0 auto;
  font-size: 0.98rem;
  padding: 0.78rem 1.4rem;
  white-space: nowrap;
}

/* Result panel — appears after submit */
.mcal-result {
  padding: 0;
}

.mcal-result-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mcal-result-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mcal-result-sig {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.mcal-result-path {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-deep);
  margin: 0;
  font-variation-settings: "opsz" 30, "SOFT" 80;
}

/* Symbol images in the result */
.mcal-result-symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.8rem auto 1.6rem;
}

.mcal-result-figure {
  margin: 0;
  text-align: center;
}

.mcal-result-figure img {
  width: 9rem;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(201, 160, 74, 0.4);
  box-shadow: 0 12px 28px -14px rgba(40, 24, 12, 0.45);
  display: block;
  margin: 0 auto;
}

.mcal-result-figure--rune  img { aspect-ratio: 4 / 5; object-fit: cover; }
.mcal-result-figure--glyph img { aspect-ratio: 1 / 1; object-fit: cover; }

.mcal-result-figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
  font-weight: 600;
}

.mcal-result-cross {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 200, 120, 0.55);
  align-self: center;
}

/* The cycle context grid */
.mcal-result-cycles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px dashed rgba(201, 160, 74, 0.4);
  border-bottom: 1px dashed rgba(201, 160, 74, 0.4);
  margin: 0.5rem 0 1.4rem;
}

.mcal-result-cycles > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.mcal-cycles-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 600;
}

.mcal-cycles-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  letter-spacing: -0.005em;
}

.mcal-cycles-value--accent {
  color: var(--gold-deep);
  font-size: 1.35rem;
}

.mcal-result-prose {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 30, "SOFT" 80;
}

.mcal-result-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 1.2rem;
  text-align: center;
}

.mcal-finder-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem 0 0;
  border-top: 1px dashed rgba(201, 160, 74, 0.4);
}

.mcal-finder-cells > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

/* The cycles quick reference grid */
.mcal-cycles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 64rem;
  margin: 0 auto;
}

.mcal-cycle-card {
  padding: 1.6rem 1.4rem 1.4rem;
  background: rgba(255, 248, 230, 0.5);
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mcal-cycle-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.mcal-cycle-card--cycle::before { background: linear-gradient(90deg, var(--cinnabar), var(--cinnabar-deep)); }
.mcal-cycle-card--super::before  { background: linear-gradient(90deg, var(--jade-bright), var(--jade)); }

.mcal-cycle-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
  margin: 0.4rem 0 0.7rem;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
}

.mcal-cycle-card--cycle .mcal-cycle-num { color: var(--cinnabar); }
.mcal-cycle-card--super  .mcal-cycle-num { color: var(--jade); }

.mcal-cycle-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 30, "SOFT" 30;
}

.mcal-cycle-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* Responsive */
@media (max-width: 760px) {
  .mcal-hero { min-height: 85vh; }
  .mcal-hero-shell { padding: 0 1.25rem 2.5rem; }
  .mcal-hero-title { font-size: 2.2rem; }
  body[data-page="member-calendar-v2"] > section.mcal-pick,
  body[data-page="member-calendar-v2"] > section.mcal-finder,
  body[data-page="member-calendar-v2"] > section.mcal-cycles-ref {
    padding: 0 1.25rem;
    margin-bottom: 3rem;
  }
  .mcal-tool { padding: 1.4rem 1.4rem 1.2rem; }
  .mcal-form { gap: 0.8rem; }
  .mcal-field { min-width: 100%; flex: 1 1 100%; }
  .mcal-btn, .mcal-btn-ghost { width: 100%; }
  .mcal-result-cycles { grid-template-columns: 1fr 1fr; }
  .mcal-finder-cells { grid-template-columns: 1fr; }
  .mcal-result-symbols { gap: 1rem; }
  .mcal-result-figure img { width: 7rem; }
  .mcal-cycles-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Journal — member writing space, atmospheric, contemplative
   ===================================================================== */

body[data-page="journal-v2"] {
  font-size: 1.18rem;
  line-height: 1.6;
}

/* Hero — full bleed sorcerer image, atmospheric */
.journal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0;
}

.journal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.65) 0%,
      rgba(20, 12, 8, 0.30) 8%,
      rgba(20, 12, 8, 0.10) 30%,
      rgba(20, 12, 8, 0.10) 55%,
      rgba(20, 12, 8, 0.55) 78%,
      rgba(20, 12, 8, 0.92) 100%),
    url("webpageImages/mayan sorcerer.jpg");
  background-size: cover;
  background-position: center 30%;
  animation: heroSlowZoom 28s ease-in-out infinite alternate;
}

/* Soft feather at the bottom — fades into the warm clay below */
.journal-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(180deg,
    rgba(199, 144, 104, 0) 0%,
    rgba(199, 144, 104, 0.20) 40%,
    rgba(199, 144, 104, 0.55) 75%,
    var(--clay) 100%);
  pointer-events: none;
  z-index: -1;
}

.journal-hero-shell {
  width: 100%;
  max-width: var(--shell, 70rem);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 2;
}

.journal-hero-content { color: var(--cream); max-width: 50rem; }

.journal-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.journal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--cream);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.journal-hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(244, 226, 196, 0.92);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
}

.journal-hero-sep {
  color: var(--gold);
  font-style: normal;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}

.journal-hero-sig {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--cream);
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

/* Page sections — constrained shell width */
body[data-page="journal-v2"] > section.journal-today,
body[data-page="journal-v2"] > section.journal-archive {
  max-width: var(--shell, 70rem);
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 5rem;
}

body[data-page="journal-v2"] > section.journal-today {
  padding-top: 4rem;
}

/* Today's writing space — featured */
.journal-today-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.4rem;
}

.journal-today-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0.6rem 0 0.7rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.journal-today-prompt-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

.journal-today-prompt-sub strong {
  color: var(--gold-deep);
  font-weight: 600;
  font-style: normal;
}

/* Editor card — paper feel */
.journal-editor {
  max-width: 56rem;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.9) 0%, rgba(244, 226, 196, 0.85) 100%);
  border: 1px solid rgba(201, 160, 74, 0.4);
  border-radius: 12px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow:
    0 24px 60px -28px rgba(40, 24, 12, 0.4),
    inset 0 0 0 1px rgba(255, 248, 230, 0.7);
  position: relative;
}

/* Stamp at the top of the editor — date + signature + symbol thumbnails */
.journal-editor-stamp {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.4);
}

.journal-editor-rune,
.journal-editor-glyph {
  width: 3rem;
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(201, 160, 74, 0.35);
  box-shadow: 0 4px 10px rgba(40, 24, 12, 0.3);
}
.journal-editor-rune  { aspect-ratio: 4 / 5; object-fit: cover; }
.journal-editor-glyph { aspect-ratio: 1 / 1; object-fit: cover; }

.journal-editor-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-left: 0.4rem;
}

.journal-editor-meta-date {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 600;
}

.journal-editor-meta-sig {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  line-height: 1.1;
}

.journal-editor-meta-path {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

/* Textarea — paper-feeling */
.journal-editor-area {
  width: 100%;
  min-height: 16rem;
  padding: 1.2rem 0.4rem;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 30;
}

.journal-editor-area::placeholder {
  color: var(--ink-muted);
  font-style: italic;
  opacity: 0.85;
}

/* Footer of the editor — auto-save status + actions */
.journal-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.1rem;
  margin-top: 0.6rem;
  border-top: 1px dashed rgba(201, 160, 74, 0.4);
}

.journal-editor-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--jade);
  font-weight: 600;
  transition: color 280ms;
}

.journal-editor-status.is-saving {
  color: var(--gold-deep);
}
.journal-editor-status.is-saved {
  color: var(--jade);
}
.journal-editor-status.is-error {
  color: var(--cinnabar);
}

.journal-editor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 8px rgba(74, 135, 112, 0.7);
  animation: journalPulse 2.4s ease-in-out infinite;
  transition: background 280ms, box-shadow 280ms;
}

.journal-editor-status.is-saving .journal-editor-dot {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 200, 120, 0.8);
  animation-duration: 0.9s;
}

.journal-editor-status.is-saved .journal-editor-dot {
  background: var(--jade-bright);
  box-shadow: 0 0 12px rgba(74, 135, 112, 0.9);
  animation: none;
}

.journal-editor-status.is-error .journal-editor-dot {
  background: var(--cinnabar);
  box-shadow: 0 0 10px rgba(160, 58, 37, 0.7);
  animation: none;
}

@keyframes journalPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.journal-editor-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.journal-editor-btn-ghost {
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
}
.journal-editor-btn-primary {
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
}

/* Archive — past entries */
.journal-archive-head {
  margin-bottom: 2.5rem;
}

.journal-archive-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 56rem;
  margin: 0 auto;
}

.journal-entry {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(255, 248, 230, 0.4);
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 8px;
  transition: all 280ms var(--ease-out);
  position: relative;
}

.journal-entry::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: 8px 0 0 8px;
}

.journal-entry:hover {
  transform: translateX(4px);
  background: rgba(255, 248, 230, 0.7);
  border-color: rgba(40, 24, 16, 0.22);
  box-shadow: 0 12px 28px -16px rgba(40, 24, 12, 0.35);
}

/* Date stamp */
.journal-entry-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0;
  border-right: 1px dashed rgba(201, 160, 74, 0.35);
}

.journal-entry-day {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.02em;
}

.journal-entry-month {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-top: 0.3rem;
}

.journal-entry-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.journal-entry-sig {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  font-weight: 600;
}

.journal-entry-sig strong { color: var(--ink); font-weight: 700; }

.journal-entry-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0.1rem 0 0.4rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 80;
}

.journal-entry-prose {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.journal-entry-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--cinnabar);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 220ms;
}

.journal-entry-link:hover { border-bottom-color: var(--cinnabar); }

.journal-archive-action {
  text-align: center;
  margin-top: 2.5rem;
}

/* Empty state — when no past entries exist */
.journal-empty {
  text-align: center;
  max-width: 38rem;
  margin: 1rem auto;
  padding: 3rem 2rem;
}

.journal-empty-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 120, 0.6);
  margin-bottom: 1rem;
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}

.journal-empty-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

.journal-empty-prose {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* Responsive */
@media (max-width: 760px) {
  .journal-hero { min-height: 85vh; }
  .journal-hero-shell { padding: 0 1.25rem 2.5rem; }
  .journal-hero-title { font-size: 2.4rem; }
  body[data-page="journal-v2"] > section.journal-today,
  body[data-page="journal-v2"] > section.journal-archive {
    padding: 0 1.25rem;
    margin-bottom: 3rem;
  }
  .journal-editor { padding: 1.2rem 1.2rem 1.1rem; }
  .journal-editor-stamp {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }
  .journal-editor-meta { grid-column: 1 / -1; margin-left: 0; }
  .journal-entry { grid-template-columns: 1fr; gap: 1rem; }
  .journal-entry-stamp {
    flex-direction: row;
    gap: 0.6rem;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px dashed rgba(201, 160, 74, 0.35);
    padding-bottom: 0.8rem;
  }
  .journal-entry-month { margin-top: 0; }
}

/* =====================================================================
   Dashboard v3 — public masthead, big, colorful, alive
   ===================================================================== */

/* Base font on dashboard body — bigger so nothing needs a magnifying glass */
body[data-page="dashboard-v3"] {
  font-size: 1.18rem;
  line-height: 1.6;
}

/* Hero — FULL BLEED, fills viewport edge to edge, atmospheric */
.dash-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.70) 0%,
      rgba(20, 12, 8, 0.30) 8%,
      rgba(20, 12, 8, 0.04) 25%,
      rgba(20, 12, 8, 0.04) 50%,
      rgba(20, 12, 8, 0.40) 70%,
      rgba(20, 12, 8, 0.65) 88%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/dashboard2.jpg");
  background-size: cover;
  background-position: center 30%;
  animation: heroSlowZoom 24s ease-in-out infinite alternate;
}

/* Drifting gold particles — like home hero */
.dash-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 78% 38%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 35% 70%, rgba(232, 200, 120, 0.10) 0, transparent 2px),
    radial-gradient(circle at 64% 84%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 90% 12%, rgba(232, 200, 120, 0.07) 0, transparent 1.5px),
    radial-gradient(circle at 8% 88%, rgba(232, 200, 120, 0.09) 0, transparent 2px);
  background-size: 600px 600px;
  animation: drift 60s linear infinite;
  opacity: 0.6;
}

/* Long soft feather at the bottom — sits BEHIND content, not over it */
.dash-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12rem;
  background: linear-gradient(180deg,
    rgba(199, 144, 104, 0) 0%,
    rgba(199, 144, 104, 0.20) 40%,
    rgba(199, 144, 104, 0.60) 75%,
    var(--clay) 100%);
  pointer-events: none;
  z-index: -1;
}

.dash-hero-shell {
  width: 100%;
  max-width: var(--shell, 70rem);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 2;
}

.dash-hero-content {
  color: var(--cream);
  max-width: 50rem;
}

/* Sequential fade-in on the hero pieces */
.dash-hero-eyebrow,
.dash-hero-title,
.dash-hero-date,
.dash-hero-sig {
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-out) forwards;
}
.dash-hero-eyebrow { animation-delay: 300ms; }
.dash-hero-title   { animation-delay: 500ms; }
.dash-hero-date    { animation-delay: 800ms; }
.dash-hero-sig     { animation-delay: 1100ms; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero-eyebrow,
  .dash-hero-title,
  .dash-hero-date,
  .dash-hero-sig {
    opacity: 1;
    animation: none;
  }
}

.dash-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.dash-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--cream);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.dash-hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(244, 226, 196, 0.92);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.dash-hero-sep {
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(232, 200, 120, 0.5);
}

.dash-hero-path {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.dash-hero-sig {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(100deg,
    rgba(232, 200, 120, 0.18) 0%,
    rgba(176, 72, 48, 0.18) 50%,
    rgba(74, 135, 112, 0.18) 100%);
  border: 1px solid rgba(232, 200, 120, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dash-hero-sig-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  font-weight: 600;
}

.dash-hero-sig-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.005em;
}

/* Scroll indicator at bottom of hero — pulsing line */
.dash-hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: rgba(244, 226, 196, 0.78);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: heroFadeIn 1200ms 1500ms var(--ease-out) forwards;
  transition: color 220ms;
}
.dash-hero-scroll:hover { color: var(--cream); }

.dash-hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* Page sections — constrained, but the hero breaks free */
body[data-page="dashboard-v3"] > section {
  max-width: var(--shell, 70rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  margin-bottom: 4.5rem;
}

/* Hero ignores the section constraints — full bleed across viewport */
body[data-page="dashboard-v3"] > section.dash-hero {
  max-width: none;
  margin: 0 0 4rem;
  padding: 0;
}

/* Section heads — small category tags. The IMPORTANT headers are on the cards. */
body[data-page="dashboard-v3"] .section-head {
  margin-bottom: 2rem;
  text-align: center;
}

body[data-page="dashboard-v3"] .section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--cinnabar);
}

body[data-page="dashboard-v3"] .section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 50;
}

/* Today section — atmospheric, warm gold "illumination" tint, cheerful */
body[data-page="dashboard-v3"] .today {
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%,
      rgba(232, 200, 120, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 100%,
      rgba(176, 72, 48, 0.10) 0%, transparent 60%),
    linear-gradient(180deg,
      rgba(244, 226, 196, 0.45) 0%,
      rgba(232, 200, 120, 0.18) 50%,
      rgba(244, 226, 196, 0.45) 100%);
  border-top: 1px solid rgba(201, 160, 74, 0.45);
  border-bottom: 1px solid rgba(201, 160, 74, 0.45);
  padding: 5rem 2rem !important;
  border-radius: 12px;
  box-shadow:
    0 24px 60px -28px rgba(232, 200, 120, 0.4),
    inset 0 0 80px rgba(232, 200, 120, 0.10);
  position: relative;
  overflow: hidden;
}

/* Subtle drifting gold sparkles in the today section */
body[data-page="dashboard-v3"] .today::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(232, 200, 120, 0.18) 0, transparent 2px),
    radial-gradient(circle at 82% 38%, rgba(232, 200, 120, 0.16) 0, transparent 2px),
    radial-gradient(circle at 35% 70%, rgba(232, 200, 120, 0.18) 0, transparent 2.5px),
    radial-gradient(circle at 70% 80%, rgba(232, 200, 120, 0.14) 0, transparent 2px);
  background-size: 480px 480px;
  animation: drift 80s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

body[data-page="dashboard-v3"] .today > * { position: relative; z-index: 1; }

body[data-page="dashboard-v3"] .today-line {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
}

/* Smaller symbol images on the dashboard so book prose can sit naturally below */
body[data-page="dashboard-v3"] .today-symbol-frame img {
  width: 14rem;
}

body[data-page="dashboard-v3"] .today-stage {
  margin-bottom: 2.2rem;
}

/* The book entry — celebratory, magazine-style, designed to match the joy of the daily reading */

/* Short name — big italic display title, flanked by gold ornaments */
.today-shortname {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 auto 1.4rem;
  max-width: 38rem;
  font-variation-settings: "opsz" 144, "SOFT" 120;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  letter-spacing: -0.005em;
}

.today-shortname::before,
.today-shortname::after {
  content: "✦";
  font-style: normal;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  text-shadow: 0 0 14px rgba(232, 200, 120, 0.7);
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}

.today-shortname::after { animation-delay: 1.5s; }

/* Pair title — confident, weight without being heavy */
.today-pair-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  letter-spacing: -0.005em;
}

/* Sub — italic descriptors, gold-tinted */
.today-pair-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  text-align: center;
  color: var(--gold-deep);
  margin: 0 0 2.5rem;
  font-variation-settings: "opsz" 30, "SOFT" 80;
  position: relative;
}

.today-pair-sub::after {
  content: "";
  display: block;
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

/* Body prose — single readable column with drop cap, magazine-style */
.today-prose {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.today-prose p {
  font-size: 1.18rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.today-prose p:last-child {
  margin: 0;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-variation-settings: "opsz" 24, "SOFT" 80;
  padding-top: 1rem;
  position: relative;
}

.today-prose p:last-child::before {
  content: "✦";
  display: block;
  text-align: center;
  color: var(--gold);
  font-style: normal;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(232, 200, 120, 0.6);
}

/* Drop cap on the very first letter — makes it feel chapter-like */
.today-prose p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  margin: 0.3rem 0.5rem 0 0;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

/* Tone block — a real pill with color, not a muted aside */
.today-tone-block {
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: 1.6rem 2rem;
  background: linear-gradient(135deg,
    rgba(232, 200, 120, 0.32) 0%,
    rgba(176, 72, 48, 0.18) 100%);
  border: 1px solid rgba(201, 160, 74, 0.55);
  border-radius: 999px 999px 12px 12px;
  text-align: center;
  position: relative;
  box-shadow:
    0 8px 24px -10px rgba(232, 200, 120, 0.35),
    inset 0 1px 0 rgba(255, 248, 230, 0.4);
}

.today-tone-block::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.today-tone-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.today-tone-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 36, "SOFT" 80;
  font-weight: 500;
}

/* Source attribution — quiet but elegant, spaced with thin gold rules */
.today-source {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 2rem auto 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 44rem;
}

.today-source::before,
.today-source::after {
  content: "";
  flex: 0 1 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 74, 0.5), transparent);
}

.today-date--small {
  font-size: 0.95rem !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 1.4rem !important;
}

/* From Book II — single quiet callout that points to the source */
.dash-book-entry {
  margin: 3rem auto 0;
  padding: 2rem 2.2rem;
  max-width: 44rem;
  background: rgba(255, 248, 230, 0.4);
  border-left: 4px solid var(--gold-deep);
  border-radius: 0 6px 6px 0;
  position: relative;
  animation: cardFadeIn 600ms 100ms var(--ease-out) backwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-book-entry-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.dash-book-entry-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  letter-spacing: -0.005em;
}

.dash-book-entry-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

/* CTA — atmospheric rune-image backdrop */
.dash-cta {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  min-height: 26rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-shadow:
    0 28px 70px -28px rgba(15, 8, 4, 0.55),
    0 6px 16px rgba(15, 8, 4, 0.18);
}

.dash-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center center;
  animation: actionBreathe 18s ease-in-out infinite alternate;
}

.dash-cta-content {
  text-align: left;
}

.dash-cta-aside {
  padding: 3.5rem 3rem;
  color: var(--cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.dash-cta-aside-eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.dash-cta-aside-pair {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.dash-cta-aside-tone {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(244, 226, 196, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
  margin: 0;
}
.dash-cta-aside-mark {
  font-size: 1.4rem;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(232, 200, 120, 0.7);
  margin-top: 0.4rem;
}
@media (max-width: 760px) {
  .dash-cta { grid-template-columns: 1fr; }
  .dash-cta-aside { padding: 0 3rem 3rem; }
}

.dash-cta-content {
  padding: 3.5rem 3rem;
  max-width: 38rem;
  color: var(--cream);
}

.dash-cta-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.dash-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  color: var(--cream);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.01em;
}

.dash-cta-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(244, 226, 196, 0.92);
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.dash-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-cta-actions .btn {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.dash-cta-actions .btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 226, 196, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.dash-cta-actions .btn--ghost:hover {
  background: rgba(244, 226, 196, 0.12);
  border-color: var(--cream);
}

/* Context — birthday card spans full width with plaque, next+ages below */
.dash-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 2rem;
}

.dash-context-card--birthday {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 2.5rem;
}

/* The plaque image — featured, centered, with subtle warm halo */
.dash-birthday-plaque {
  margin: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 28px 60px -22px rgba(15, 8, 4, 0.55),
    0 0 50px rgba(232, 200, 120, 0.18);
  background: var(--stone-warm);
}

.dash-birthday-plaque::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 200, 120, 0.25);
  border-radius: 8px;
  pointer-events: none;
}

.dash-birthday-plaque img {
  width: 100%;
  height: auto;
  display: block;
  animation: deepdiveBreathe 14s ease-in-out infinite alternate;
}

.dash-birthday-text {
  text-align: left;
}

.dash-birthday-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 1rem 0 1.4rem;
  font-variation-settings: "opsz" 30, "SOFT" 100;
}

.dash-context-card {
  padding: 2rem 1.8rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.7), rgba(234, 210, 174, 0.5));
  border: 1px solid rgba(40, 24, 16, 0.10);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 380ms;
  position: relative;
  overflow: hidden;
}

.dash-context-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.dash-context-card--birthday::before { background: linear-gradient(90deg, #c9a04a, #e8c878); }
.dash-context-card--next::before     { background: linear-gradient(90deg, #a03a25, #d97558); }
.dash-context-card--ages::before     { background: linear-gradient(90deg, #2d5e4a, #4a8770); }

.dash-context-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 8, 4, 0.4);
  border-color: rgba(40, 24, 16, 0.25);
}

.dash-context-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 48, "SOFT" 30;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.dash-context-card--birthday .dash-context-eyebrow { color: var(--gold-deep); }
.dash-context-card--next     .dash-context-eyebrow { color: var(--cinnabar-deep); }
.dash-context-card--ages     .dash-context-eyebrow { color: var(--jade); }

.dash-context-line {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.dash-context-line strong { color: var(--gold-deep); font-weight: 700; }

.dash-context-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.dash-context-foot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 0;
  text-align: center;
}

.dash-context-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-context-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(40, 24, 16, 0.18);
}
.dash-context-list li:last-child { border-bottom: none; }

.dash-context-list .when {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
  font-weight: 600;
}

.dash-context-list .when-date {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 0.3rem;
}

.dash-context-list .what {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}

.dash-context-ages {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.dash-context-ages > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.age-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--jade);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
}

.age-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Recent activity — 2 column, with vivid accent stripes */
body[data-page="dashboard-v3"] .dash-recent-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
  margin-top: 2rem;
}

body[data-page="dashboard-v3"] .dash-recent-block {
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.7), rgba(234, 210, 174, 0.4));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

body[data-page="dashboard-v3"] .dash-recent-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}

.dash-recent-block--journal::before { background: linear-gradient(180deg, #c9a04a, #8b6914); }
.dash-recent-block--casts::before   { background: linear-gradient(180deg, #4a8770, #2d5e4a); }

body[data-page="dashboard-v3"] .dash-recent-block-eyebrow {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variant: normal;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--ink);
  font-variation-settings: "opsz" 48, "SOFT" 30;
  margin-bottom: 0.6rem;
}
body[data-page="dashboard-v3"] .dash-recent-block-title {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 80;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(40, 24, 16, 0.18);
}
body[data-page="dashboard-v3"] .dash-recent-block-body {
  font-size: 1.22rem;
}
body[data-page="dashboard-v3"] .dash-cast-pair {
  font-size: 1.3rem;
  font-weight: 600;
}
body[data-page="dashboard-v3"] .dash-cast-note {
  font-size: 1.08rem;
}

/* Tools list overrides */
body[data-page="dashboard-v3"] .dash-tools-title {
  font-size: 1.65rem;
}
body[data-page="dashboard-v3"] .dash-tools-prose {
  font-size: 1.15rem;
}

/* =====================================================================
   Today's Deep Dive — multi-aspect learning section
   ===================================================================== */

.dash-deepdive {
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%,
      rgba(232, 200, 120, 0.18), transparent 70%),
    linear-gradient(180deg,
      rgba(80, 50, 25, 0.06) 0%,
      rgba(80, 50, 25, 0.14) 50%,
      rgba(80, 50, 25, 0.06) 100%);
  border-top: 1px solid rgba(201, 160, 74, 0.30);
  border-bottom: 1px solid rgba(201, 160, 74, 0.30);
  padding: 5rem 2rem !important;
  border-radius: 8px;
}

/* Featured block — image + intro */
.deepdive-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  max-width: 64rem;
  margin: 2rem auto 4rem;
}

.deepdive-figure {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -20px rgba(15, 8, 4, 0.55),
    0 0 40px rgba(232, 200, 120, 0.25);
  position: relative;
  justify-self: center;
}

.deepdive-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 200, 120, 0.35);
  border-radius: 6px;
  pointer-events: none;
}

.deepdive-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: deepdiveBreathe 12s ease-in-out infinite alternate;
}

@keyframes deepdiveBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.deepdive-intro { text-align: left; }

.deepdive-name-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.deepdive-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
}

.deepdive-voice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--gold-deep);
  margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 60, "SOFT" 100;
  font-weight: 500;
}

.deepdive-prose {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* Aspect grid — 3 columns of colorful cards */
.deepdive-aspects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 72rem;
  margin: 0 auto;
}

.aspect {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  border-radius: 8px;
  background: linear-gradient(180deg,
    rgba(244, 226, 196, 0.85) 0%,
    rgba(232, 210, 174, 0.65) 100%);
  border: 1px solid rgba(40, 24, 16, 0.10);
  overflow: hidden;
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 380ms;
  opacity: 0;
  animation: cardFadeIn 700ms var(--ease-out) forwards;
}

.aspect:nth-child(1) { animation-delay:  60ms; }
.aspect:nth-child(2) { animation-delay: 160ms; }
.aspect:nth-child(3) { animation-delay: 260ms; }
.aspect:nth-child(4) { animation-delay: 360ms; }
.aspect:nth-child(5) { animation-delay: 460ms; }
.aspect:nth-child(6) { animation-delay: 560ms; }

.aspect:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -20px rgba(15, 8, 4, 0.4);
  border-color: rgba(40, 24, 16, 0.25);
}

/* Color stripe at the top of each aspect */
.aspect::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.aspect--movement::before { background: linear-gradient(90deg, #c9a04a, #e8c878); }
.aspect--sound::before    { background: linear-gradient(90deg, #a03a25, #d97558); }
.aspect--elixir::before   { background: linear-gradient(90deg, #2d5e4a, #4a8770); }
.aspect--color::before    { background: linear-gradient(90deg, #b8860b, #f4d35e); }
.aspect--body::before     { background: linear-gradient(90deg, #5b738e, #88a4c0); }
.aspect--mantra::before   { background: linear-gradient(90deg, #6a3022, #a03a25); }

.aspect-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.aspect--movement .aspect-label { color: var(--gold-deep); }
.aspect--sound    .aspect-label { color: var(--cinnabar); }
.aspect--elixir   .aspect-label { color: var(--jade); }
.aspect--color    .aspect-label { color: #b8860b; }
.aspect--body     .aspect-label { color: #5b738e; }
.aspect--mantra   .aspect-label { color: var(--cinnabar-deep); }

.aspect-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  letter-spacing: -0.005em;
}

.aspect p {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.deepdive-action {
  text-align: center;
  margin: 3rem 0 0;
}

.deepdive-action .link-arrow {
  font-size: 1.1rem;
}

/* Footer adjustments — stays the same as public */

/* =====================================================================
   Responsive — dashboard
   ===================================================================== */

/* On tablets & phones, keep the hero substantial so the full-bleed
   imagery still has room to land. 85vh reads as a proper hero while
   leaving a small peek of the section below to signal scrollability. */
@media (max-width: 880px) {
  .dash-hero { min-height: 85vh; }
  .dash-hero-shell { padding: 0 1.25rem 2.5rem; }
  .dash-hero-title { font-size: 2.4rem; }
  body[data-page="dashboard-v3"] > section {
    padding: 0 1.25rem;
    margin-bottom: 3rem;
  }
  .dash-premium-grid { grid-template-columns: 1fr; }
  .dash-context-grid { grid-template-columns: 1fr; }
  .dash-context-card--birthday {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
    padding: 1.8rem 1.4rem;
  }
  .dash-birthday-plaque { max-width: 18rem; }
  .dash-birthday-text { text-align: center; }
  body[data-page="dashboard-v3"] .dash-recent-grid { grid-template-columns: 1fr; }
  .dash-cta-content { padding: 2.5rem 1.5rem; }
  .today-shortname { gap: 0.8rem; }
  .today-shortname::before,
  .today-shortname::after { font-size: 0.8rem; }
  .today-tone-block { padding: 1.2rem 1.4rem; }
  .dash-deepdive { padding: 3rem 1.25rem !important; }
  .deepdive-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .deepdive-figure { max-width: 16rem; }
  .deepdive-intro { text-align: center; }
  .deepdive-aspects { grid-template-columns: 1fr; }
}

/* =====================================================================
   Member area — sidebar chrome (legacy, unused on dashboard-v3)
   ===================================================================== */

/* The body shifts to a sidebar+main layout */
.member-page {
  display: grid;
  grid-template-columns: 19rem 1fr;
  min-height: 100vh;
}

/* Sidebar — sticky, atmospheric, generous spacing */
.member-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%,
      rgba(70, 38, 18, 0.45), transparent 70%),
    linear-gradient(180deg,
      var(--stone-warm) 0%,
      var(--stone) 100%);
  color: var(--cream);
  padding: 1.8rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201, 160, 74, 0.22);
  overflow-y: auto;
}

/* Subtle drifting embers in the sidebar */
.member-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 75% 55%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(232, 200, 120, 0.10) 0, transparent 2px);
  background-size: 380px 380px;
  animation: drift 90s linear infinite;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.member-sidebar > * { position: relative; z-index: 1; }

.member-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(201, 160, 74, 0.2);
}

.member-brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}

.member-brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variation-settings: "opsz" 24, "SOFT" 30;
  white-space: nowrap;
}

/* Member identity */
.member-identity {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(201, 160, 74, 0.18);
}

.member-identity-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.member-identity-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.25rem;
  color: var(--cream);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  font-weight: 500;
}

.member-identity-tier {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(244, 226, 196, 0.78);
  margin: 0;
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

/* Nav */
.member-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

.member-nav-section {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin: 1.4rem 0.7rem 0.6rem;
}

.member-nav-section:first-child { margin-top: 0; }

.member-nav-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: rgba(244, 226, 196, 0.85);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: background 200ms, color 200ms, transform 200ms;
  position: relative;
}

.member-nav-link:hover {
  background: rgba(232, 200, 120, 0.10);
  color: var(--cream);
  transform: translateX(2px);
}

.member-nav-link.is-current {
  background: linear-gradient(90deg,
    rgba(232, 200, 120, 0.18),
    rgba(232, 200, 120, 0.04));
  color: var(--cream);
}

.member-nav-link.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 3px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 200, 120, 0.7);
}

.member-nav-icon {
  width: 1.6rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.member-nav-link--quiet {
  color: rgba(244, 226, 196, 0.65);
  font-size: 0.95rem;
}
.member-nav-link--quiet .member-nav-icon { color: rgba(232, 200, 120, 0.7); }

.member-sidebar-foot {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201, 160, 74, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Main content area */
.member-main {
  padding: 0 0 3rem;
  background: var(--clay);
  min-width: 0;
}

/* Welcome — full-bleed atmospheric hero with dashboard2 image */
.member-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 3rem;
}

.member-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(28, 20, 16, 0.20) 0%,
      rgba(28, 20, 16, 0.05) 35%,
      rgba(28, 20, 16, 0.40) 70%,
      rgba(28, 20, 16, 0.85) 100%),
    url("webpageImages/dashboard2.jpg");
  background-size: cover;
  background-position: center 35%;
  animation: heroSlowZoom 24s ease-in-out infinite alternate;
}

@keyframes heroSlowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.member-hero-content {
  position: relative;
  padding: 2.5rem 3.5rem 2.8rem;
  color: var(--cream);
  max-width: 50rem;
  width: 100%;
}

.member-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0 0 0.7rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.member-hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0 0 0.7rem;
  color: var(--cream);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.member-hero-date {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: rgba(244, 226, 196, 0.92);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* Inner content padding (everything below the hero) */
.member-main > section,
.member-main > footer {
  margin-left: 3.5rem;
  margin-right: 3.5rem;
}

/* Section heads inside main */
.dash-section-head {
  margin-bottom: 2rem;
}

.dash-section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.dash-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.005em;
}

/* Today's reading — the centerpiece. No tinted background — sits clean on clay. */
.dash-today {
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-soft);
}

.dash-today-head { text-align: center; margin-bottom: 2.4rem; }

.dash-today-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.26em;
  color: var(--jade);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.dash-today-line {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
}

.dash-today-cycle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0;
}

.dash-today-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.8rem;
  margin: 0 auto 2.4rem;
  max-width: 48rem;
}

.dash-today-symbol {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-today-symbol .today-symbol-frame img {
  width: 14rem;
}

/* Reading prose */
.dash-today-reading {
  max-width: 58rem;
  margin: 0 auto;
}

.dash-today-meeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.9rem;
  text-align: center;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

.dash-today-tone {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2.4rem;
  text-align: center;
}

/* Premium block — clean, no nougat panel, just a thin top rule */
.dash-premium-block {
  padding: 2rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

.dash-premium-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}

.dash-premium-prose p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.1rem;
  position: relative;
}

.dash-premium-prose p:last-child { margin: 0; }

.dash-premium-prose strong {
  color: var(--cinnabar);
  font-weight: 600;
}

.dash-premium-action {
  display: flex;
  gap: 2rem;
  margin: 1.4rem 0 0;
  flex-wrap: wrap;
  position: relative;
}

/* Featured action band — atmospheric CTA backed by today's rune image */
.dash-action {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  min-height: 24rem;
  display: flex;
  align-items: center;
  box-shadow:
    0 24px 60px -24px rgba(15, 8, 4, 0.5),
    0 4px 12px rgba(15, 8, 4, 0.15);
}

.dash-action-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: right center;
  animation: actionBreathe 18s ease-in-out infinite alternate;
}

@keyframes actionBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.dash-action-content {
  position: relative;
  padding: 3rem 3rem 3rem 3rem;
  max-width: 36rem;
  color: var(--cream);
}

.dash-action-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.dash-action-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  color: var(--cream);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.dash-action-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(244, 226, 196, 0.92);
  margin: 0 0 1.8rem;
  font-variation-settings: "opsz" 36, "SOFT" 80;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.dash-action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-action-primary {
  font-size: 1.05rem;
  padding: 0.95rem 1.8rem;
}

.dash-action-ghost {
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 226, 196, 0.45);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.dash-action-ghost:hover {
  background: rgba(244, 226, 196, 0.10);
  border-color: var(--cream);
}

/* Tools — flowing list, not a brick grid */
.dash-tools { margin-bottom: 2.5rem; }

.dash-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dash-tools-link {
  display: grid;
  grid-template-columns: 3rem 1fr 1.5rem;
  gap: 1.6rem;
  align-items: center;
  padding: 1.6rem 0.5rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(40, 24, 16, 0.10);
  transition: padding-left 240ms, border-color 240ms;
  position: relative;
}

.dash-tools-list li:last-child .dash-tools-link {
  border-bottom: 1px solid rgba(40, 24, 16, 0.10);
}

.dash-tools-link:hover {
  padding-left: 1rem;
  border-top-color: rgba(40, 24, 16, 0.30);
}

.dash-tools-list li:last-child .dash-tools-link:hover {
  border-bottom-color: rgba(40, 24, 16, 0.30);
}

.dash-tools-mark {
  font-size: 1.8rem;
  color: var(--ink-soft);
  text-align: center;
  transition: color 240ms, transform 240ms;
}

.dash-tools-link:hover .dash-tools-mark {
  color: var(--gold-deep);
  transform: scale(1.1);
}

.dash-tools-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dash-tools-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  line-height: 1.15;
}

.dash-tools-prose {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.dash-tools-arrow {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-muted);
  text-align: right;
  transition: transform 240ms, color 240ms;
}

.dash-tools-link:hover .dash-tools-arrow {
  transform: translateX(6px);
  color: var(--cinnabar);
}

/* Recent activity */
.dash-recent { margin-bottom: 2.5rem; }

.dash-recent-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.dash-recent-block {
  padding: 0;
  position: relative;
}

.dash-recent-block-head {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.3);
  position: relative;
}

.dash-recent-block-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.dash-recent-block--casts .dash-recent-block-eyebrow { color: var(--gold-deep); }

.dash-recent-block-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

.dash-recent-block-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 36, "SOFT" 80;
  position: relative;
}

.dash-cast-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  position: relative;
}

.dash-cast-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.2);
}
.dash-cast-list li:last-child { border-bottom: none; }

.dash-cast-date {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  font-weight: 600;
}

.dash-cast-pair {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.dash-cast-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.4;
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

/* Week ahead strip — with rune + glyph images per day */
.dash-week { margin-bottom: 1rem; }

.dash-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.dash-week-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.4rem 0.9rem 1.2rem;
  background: rgba(255, 248, 230, 0.45);
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 220ms var(--ease-out);
  opacity: 0;
  animation: weekFadeIn 600ms var(--ease-out) forwards;
}

@keyframes weekFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-week-cell:hover {
  background: rgba(255, 248, 230, 0.85);
  border-color: rgba(40, 24, 16, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(15, 8, 4, 0.35);
}

.dash-week-cell.is-today {
  background: linear-gradient(180deg,
    rgba(232, 200, 120, 0.30),
    rgba(232, 200, 120, 0.10));
  border-color: var(--gold);
  box-shadow:
    0 0 24px rgba(232, 200, 120, 0.35),
    inset 0 0 0 1px rgba(232, 200, 120, 0.4);
}

.dash-week-day {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
  font-weight: 600;
}

.dash-week-cell.is-today .dash-week-day { color: var(--gold-deep); }

.dash-week-date {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}

.dash-week-imgs {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0.2rem 0;
}

.dash-week-rune,
.dash-week-glyph {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(201, 160, 74, 0.4);
  box-shadow: 0 2px 6px rgba(40, 24, 12, 0.3);
}

.dash-week-rune  { aspect-ratio: 4 / 5; height: 36px; width: auto; }
.dash-week-glyph { aspect-ratio: 1 / 1; }

.dash-week-cell.is-today .dash-week-rune,
.dash-week-cell.is-today .dash-week-glyph {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(232, 200, 120, 0.5);
}

.dash-week-sig {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.1;
  font-variation-settings: "opsz" 24, "SOFT" 30;
}

.dash-week-sig strong {
  color: var(--ink);
  font-weight: 600;
}

.dash-week-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.1;
}

.dash-week-action { text-align: right; margin: 0; }

/* =====================================================================
   Subscribe page
   ===================================================================== */

/* Hero — uses About2 image (the wider gathering) */
.page-hero--subscribe {
  min-height: 100vh;
  padding: 9rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero--subscribe .page-hero-content {
  padding-bottom: 1.5rem;
}

.page-hero--subscribe .page-hero-bg--image {
  background:
    linear-gradient(180deg,
      rgba(28, 20, 16, 0.65) 0%,
      rgba(28, 20, 16, 0.40) 8%,
      rgba(28, 20, 16, 0.10) 18%,
      rgba(28, 20, 16, 0.05) 50%,
      rgba(28, 20, 16, 0.55) 75%,
      rgba(28, 20, 16, 0.92) 100%),
    url("webpageImages/About2.jpg");
  background-size: cover;
  background-position: center 38%;
  animation: calendarBreathe 28s ease-in-out infinite alternate;
}

.page-hero--subscribe .page-hero-bg--image::after { display: none; }

.page-hero--subscribe .page-hero-title,
.page-hero--subscribe .page-hero-sub,
.page-hero--subscribe .page-hero-eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

/* Opening invitation */
.subscribe-intro {
  padding: 5rem 1.5rem 2rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.subscribe-intro-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}

.subscribe-intro-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Two tier cards */
.tiers {
  padding: 4rem 1.5rem 5rem;
}

.tiers-head {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.tiers-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.tier {
  position: relative;
  padding: 2.4rem 2rem 2.2rem;
  background: linear-gradient(180deg,
    rgba(244, 226, 196, 0.55) 0%,
    rgba(234, 210, 174, 0.55) 100%);
  border: 1px solid rgba(201, 160, 74, 0.32);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.tier::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(201, 160, 74, 0.15);
  border-radius: 3px;
  pointer-events: none;
}

.tier--premium {
  background: linear-gradient(180deg,
    rgba(80, 50, 25, 0.10) 0%,
    rgba(232, 200, 120, 0.12) 100%);
  border-color: rgba(201, 160, 74, 0.55);
  box-shadow:
    var(--shadow-deep),
    0 0 32px rgba(232, 200, 120, 0.18);
}

.tier-flag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(232, 200, 120, 0.5);
  white-space: nowrap;
}

.tier-head {
  text-align: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px dashed rgba(201, 160, 74, 0.3);
}

.tier-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 0.7rem;
}

.tier--premium .tier-eyebrow { color: var(--gold-deep); }

.tier-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}

.tier-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.tier-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--ink);
}

.tier-price-currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  vertical-align: super;
  position: relative;
  top: -0.5rem;
  color: var(--gold-deep);
}

.tier-price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tier--premium .tier-price-amount { color: var(--gold-deep); }

.tier-price-unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-left: 0.2rem;
}

.tier-price-alt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.tier-includes {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1rem;
  text-align: center;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.tier-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px dashed rgba(201, 160, 74, 0.18);
}
.tier-list li:last-child { border-bottom: none; }

.tier-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--gold);
  font-size: 0.7rem;
  text-shadow: 0 0 8px rgba(232, 200, 120, 0.5);
}

.tier--premium .tier-list li::before {
  color: var(--gold-bright);
}

.tier-action {
  text-align: center;
}

.tier-action .btn {
  width: 100%;
  max-width: 18rem;
}

.tier-action-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin: 0.85rem 0 0;
}

/* Sign-up form */
.subscribe-signup {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(180deg,
    rgba(45, 94, 74, 0.04) 0%,
    rgba(45, 94, 74, 0.10) 50%,
    rgba(45, 94, 74, 0.04) 100%);
  border-top: 1px solid rgba(45, 94, 74, 0.22);
  border-bottom: 1px solid rgba(45, 94, 74, 0.22);
  scroll-margin-top: 5rem;
}

.subscribe-signup-head {
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.subscribe-signup-prose {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 1.4rem 0 0;
}

.signup-form {
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
}

.signup-fields {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.signup-field-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--cinnabar);
}

.signup-field input[type="text"],
.signup-field input[type="email"] {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(201, 160, 74, 0.4);
  background: rgba(244, 226, 196, 0.4);
  border-radius: 3px;
  color: var(--ink);
  transition: border-color 220ms, background 220ms, box-shadow 220ms;
  font-variation-settings: "opsz" 24;
}

.signup-field input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
  opacity: 0.7;
}

.signup-field input:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: rgba(244, 226, 196, 0.7);
  box-shadow: 0 0 0 3px rgba(232, 200, 120, 0.18);
}

.signup-tier {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.signup-tier .signup-field-label {
  margin-bottom: 0.7rem;
}

.signup-radio {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(201, 160, 74, 0.3);
  background: rgba(244, 226, 196, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all 220ms;
  font-size: 0.98rem;
  color: var(--ink);
}

.signup-radio:hover {
  border-color: rgba(201, 160, 74, 0.55);
  background: rgba(244, 226, 196, 0.5);
}

.signup-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-radio-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 74, 0.6);
  background: var(--paper-soft, rgba(244,226,196,0.5));
  flex-shrink: 0;
  position: relative;
  transition: all 220ms;
}

.signup-radio input:checked + .signup-radio-mark {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(232, 200, 120, 0.5);
}

.signup-radio input:checked + .signup-radio-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cream);
}

.signup-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.signup-fineprint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.5;
}

/* Confirmation panel after submission */
.signup-confirm {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn 0.6s ease-out;
}

.signup-confirm-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin: 0 0 1rem;
  text-shadow: 0 0 20px rgba(232, 200, 120, 0.7);
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}

.signup-confirm-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}

.signup-confirm-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reassurance band */
.subscribe-reassure {
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}

.subscribe-reassure-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.reassure-item {
  text-align: center;
}

.reassure-mark {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(232, 200, 120, 0.5);
}

.reassure-item h4 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.reassure-item p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* =====================================================================
   Library page — eight book spreads, alternating layout.
   ===================================================================== */

.library-intro {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.library-intro-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 38rem;
  margin: 0 auto;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}

.library-books { padding: 2rem 0 4rem; }

.library-book {
  padding: 5rem 1.5rem;
  scroll-margin-top: 5rem;
  position: relative;
}

/* Subtle alternating tint between books for visual rhythm */
.library-book:nth-child(odd) {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(80, 50, 25, 0.04) 50%,
    transparent 100%);
}

.library-book-stage {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.library-book--right .library-book-stage {
  grid-template-columns: 1.15fr 0.85fr;
}

.library-book--right .library-book-cover {
  order: 2;
  justify-self: end;
}

.library-book--right .library-book-text {
  order: 1;
}

.library-book-cover {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: var(--stone-warm);
  position: relative;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  justify-self: start;
}

.library-book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  pointer-events: none;
}

.library-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-out);
}

.library-book:hover .library-book-cover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 70px -22px rgba(15, 8, 4, 0.6),
    0 0 32px rgba(232, 200, 120, 0.15);
}
.library-book:hover .library-book-cover img { transform: scale(1.025); }

.library-book-text { max-width: 36rem; }

.library-book-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--cinnabar);
  margin: 0 0 1rem;
}

.library-book-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.005em;
}

.library-book-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.library-book-prose {
  margin-bottom: 1.6rem;
}

.library-book-prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--ink);
}

.library-book-prose p:last-child { margin: 0; }

.library-book-detail {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule-soft);
}
.library-book-detail:last-of-type {
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.6rem;
}

.library-book-detail-label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
  font-weight: 600;
}

.library-book-detail-body {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.library-book-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  font-style: italic;
}

.library-book-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 160, 74, 0.55);
  flex-shrink: 0;
}

/* Library bridge at the bottom — launch invitation */
.library-bridge {
  padding: 7rem 1.5rem 8rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%,
      rgba(70, 38, 18, 0.55), transparent 70%),
    linear-gradient(180deg, var(--stone-warm) 0%, var(--stone) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.library-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(232, 200, 120, 0.10) 0, transparent 1.5px),
    radial-gradient(circle at 82% 68%, rgba(232, 200, 120, 0.08) 0, transparent 1.5px),
    radial-gradient(circle at 45% 88%, rgba(232, 200, 120, 0.10) 0, transparent 2px);
  background-size: 480px 480px;
  animation: drift 80s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}

.library-bridge-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
}

.library-bridge .section-eyebrow { color: var(--gold); }
.library-bridge .section-title { color: var(--cream); }

.library-bridge-prose {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(244, 226, 196, 0.88);
  margin: 1.4rem 0 2.4rem;
}

.library-bridge-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================================================================
   Bridge to calendar at the bottom of Runes & Glyphs
   ===================================================================== */

.symbols-bridge {
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  background:
    linear-gradient(180deg, transparent 0%, rgba(45, 94, 74, 0.10) 100%);
  border-top: 1px solid var(--rule-soft);
}

.symbols-bridge-inner { max-width: 38rem; margin: 0 auto; }

.symbols-bridge .section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: 0.5rem;
}

.symbols-bridge-prose {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 1.4rem 0 2rem;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 880px) {
  .hero {
    padding: 5rem 1rem 3rem;
    min-height: auto;
  }
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 24rem;
  }
  .hero-art--rune,
  .hero-art--glyph { max-width: 18rem; margin: 0 auto; }
  .hero-words { order: -1; }

  .masthead-inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0 1rem;
  }
  .primary-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    gap: 1.4rem;
    justify-content: flex-start;
    padding: 0.4rem 0 0.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav::-webkit-scrollbar { display: none; }

  .meeting {
    min-height: 70vh;
    padding: 4rem 1.25rem 6rem;
  }
  .meeting-line { font-size: 1.45rem; }
  .meeting-prose { font-size: 1rem; }

  .meeting-place { padding: 4.5rem 1rem 5rem; }
  .meeting-place-head { margin-bottom: 2.5rem; }
  .meeting-place-figure { margin-bottom: 2.5rem; }
  .meeting-place-prose p { font-size: 1.05rem; }
  .meeting-place-figure figcaption {
    font-size: 0.7rem;
    bottom: 0.6rem;
    right: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
  .constellation { padding: 4rem 1rem 5rem; }
  .symbol-cloud { gap: 0.8rem; }
  .symbol-orb { width: 56px; height: 56px; }

  .today { padding: 5rem 1rem 6rem; }
  .today-head { margin-bottom: 2.5rem; }
  .today-line { font-size: 2.2rem; }
  .today-stage {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .today-symbol-frame img { width: 13rem; }
  .today-ornament {
    flex-direction: row;
    min-height: auto;
    gap: 0.9rem;
    padding: 0.4rem 0;
  }
  .today-ornament-line {
    flex: 0 0 3rem;
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%, var(--gold) 50%, transparent 100%);
  }
  .today-ornament-mark { font-size: 1.3rem; }
  .today-meeting { font-size: 1.18rem; }
  .today-tone { font-size: 1rem; }

  .books { padding: 3.5rem 1rem 4rem; }
  .books-head { margin-bottom: 2rem; }
  .books-stage { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; max-width: 26rem; }
  .book-blurb { font-size: 0.74rem; }

  .inward { padding: 4.5rem 1.25rem 5rem; }
  .inward-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 28rem;
  }
  .inward-content { text-align: left; }
  .inward .section-title { font-size: 1.85rem; }
  .inward-list li { font-size: 0.98rem; padding: 0.7rem 0 0.7rem 1.4rem; }
  .footer-brand img { width: 88px; height: 88px; }
  .footer-brand-text { font-size: 1.1rem; }

  /* Runes & Glyphs page responsive */
  .page-hero { padding: 6rem 1rem 3rem; }
  .symbol-clusters { padding: 3rem 1rem 2rem; }
  .cluster-prompt { margin-bottom: 2rem; }
  .cluster-plates { gap: 0.7rem 0.6rem; }
  .plate-frame { width: 56px; height: 56px; }
  .plate:hover { transform: scale(1.12); }

  .symbol-page {
    min-height: auto;
    padding: 4rem 1rem 3rem;
  }
  .symbol-page-header {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 22rem;
    margin-bottom: 2rem;
  }
  .symbol-page-illustration {
    max-width: 14rem;
    justify-self: center;
    order: 1;
  }
  .symbol-page-titleblock { order: 3; min-width: auto; }
  .symbol-page-figure {
    max-width: 14rem;
    justify-self: center;
    order: 2;
  }
  .symbol-page-figure--glyph { max-width: 13rem; }
  .symbol-page-divider { margin-bottom: 2rem; }
  .symbol-page-prose { max-width: none; }
  .symbol-page-prose p { font-size: 1rem; }
  .symbols-bridge { padding: 4rem 1rem 5rem; }

  /* Library page responsive */
  .library-intro { padding: 3rem 1rem 1.5rem; }
  .library-book { padding: 3rem 1rem; }
  .library-book-stage,
  .library-book--right .library-book-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 26rem;
  }
  .library-book-cover,
  .library-book--right .library-book-cover {
    max-width: 18rem;
    justify-self: center;
    order: 1;
  }
  .library-book-text,
  .library-book--right .library-book-text {
    order: 2;
    max-width: none;
  }
  .library-book-detail {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .library-book-prose p { font-size: 1rem; }
  .library-bridge { padding: 5rem 1rem 6rem; }

  /* Calendar page responsive */
  .page-hero--calendar {
    min-height: 80vh;
    padding: 5rem 1rem 2.5rem;
  }
  .counts { padding: 4rem 1rem 3rem; }
  .counts-movement { margin-bottom: 3rem; }
  .counts-trio { grid-template-columns: 1fr; gap: 3rem; max-width: 22rem; margin: 0 auto; }
  .counts-duo  { grid-template-columns: 1fr; gap: 3rem; max-width: 22rem; }
  .count-vis   { width: 6.5rem; height: 6.5rem; }
  .count-vis--row { width: 9rem; }
  .count-dot   { transform: rotate(var(--angle)) translateY(-2.8rem); }
  .count-card--cycle .count-vis { width: 9rem; height: 7rem; }
  .count-vis-ring { width: 5.5rem; height: 5.5rem; margin-top: -2.75rem; }
  .count-vis-ring .count-dot { transform: rotate(var(--angle)) translateY(-2.4rem); }
  .counts-movement--super .count-card--super {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .count-super-text { text-align: center; }
  .count-super-text .count-prose { margin: 0 auto; }
  .count-wheel { width: 14rem; height: 14rem; }
  .count-wheel-ring--outer { width: 13rem; height: 13rem; }
  .count-wheel-ring--mid   { width: 9rem;  height: 9rem;  }
  .count-wheel-ring--inner { width: 5.5rem; height: 5.5rem; }
  .count-wheel-ring--outer .count-dot { transform: rotate(var(--angle)) translateY(-6.5rem); }
  .count-wheel-ring--mid   .count-dot { transform: rotate(var(--angle)) translateY(-4.5rem); }
  .count-wheel-ring--inner .count-dot { transform: rotate(var(--angle)) translateY(-2.75rem); }
  .counts-anchor { margin-top: 2.5rem; font-size: 0.92rem; }

  .paths { padding: 4rem 1rem; }
  .paths-list { gap: 2.4rem; }
  .path {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: center;
  }
  .path-emblem { max-width: 9rem; justify-self: center; }
  .path-pairs { justify-content: center; }

  .teasers { padding: 4rem 1rem 5rem; }
  .teaser,
  .teaser--right {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-bottom: 3rem;
    max-width: 26rem;
  }
  .teaser--right .teaser-mockup { order: 1; }
  .teaser--right .teaser-text { order: 2; }
  .mockup { padding: 1.1rem 1.2rem; }
  .mockup-grid { grid-template-columns: repeat(3, 1fr); }
  .calendar-bridge { padding: 5rem 1rem 6rem; }

  /* About page responsive */
  .page-hero--about {
    min-height: 80vh;
    padding: 5rem 1rem 2.5rem;
  }
  .about-toc { padding: 3rem 1rem 1.5rem; }
  .about-toc-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 26rem;
  }
  .about-section { padding: 3.5rem 1rem; }
  .about-section-head { margin-bottom: 2rem; }
  .virtue-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .qa-question {
    font-size: 1rem;
    padding: 1.1rem 1.8rem 1.1rem 1.8rem;
  }
  .qa-question::before { font-size: 1.3rem; top: 1.05rem; }
  .qa-question::after  { font-size: 1.2rem; top: 1.15rem; }
  .qa-answer { padding: 0 1.8rem 1.2rem 1.8rem; }
  .logo-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.4rem 0;
    text-align: center;
  }
  .logo-feature-text { text-align: center; }
  .logo-feature-mark img { max-width: 12rem; }
  .about-bridge { padding: 4.5rem 1rem 5rem; }

  /* Subscribe page responsive */
  .page-hero--subscribe {
    min-height: 80vh;
    padding: 5rem 1rem 2.5rem;
  }
  .subscribe-intro { padding: 3.5rem 1rem 1.5rem; }
  .tiers { padding: 2.5rem 1rem 4rem; }
  .tiers-head { margin-bottom: 2rem; }
  .tiers-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 24rem;
  }
  .tier { padding: 2rem 1.4rem 1.8rem; }
  .tier-price-amount { font-size: 2.6rem; }
  .subscribe-signup { padding: 4rem 1rem 4rem; }
  .subscribe-reassure {
    padding: 4rem 1rem 5rem;
  }
  .subscribe-reassure-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Member dashboard responsive */
  .member-page { grid-template-columns: 1fr; }
  .member-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(201, 160, 74, 0.18);
    padding: 1.2rem 1rem;
  }
  .member-nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
  .member-nav-section { width: 100%; margin: 0.6rem 0 0.2rem; }
  .member-nav-link { padding: 0.45rem 0.7rem; font-size: 0.88rem; }
  .member-nav-link.is-current::before { display: none; }
  .member-sidebar-foot {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .member-main { padding: 2rem 1.25rem 3rem; }

  .member-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .member-welcome-date { text-align: left; }

  .dash-today { padding: 2rem 1.2rem; }
  .dash-today-stage {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .dash-today-symbol .today-symbol-frame img { width: 11rem; }
  .today-ornament {
    flex-direction: row !important;
    min-height: auto !important;
  }
  .dash-today-meeting { font-size: 1.18rem; }
  .dash-premium-block { padding: 1.4rem 1.2rem; }

  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-recent-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .dash-week-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
  .dash-week-cell { padding: 0.7rem 0.3rem; }
  .dash-week-day { font-size: 0.62rem; }
  .dash-week-date { font-size: 1rem; }
  .dash-week-sig { font-size: 0.6rem; }
  .dash-cast-list li { grid-template-columns: 1fr; gap: 0.2rem; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .books-stage { grid-template-columns: 1fr 1fr; }
  .symbol-orb { width: 48px; height: 48px; }
}

/* ============================================================
   THE GRID — 480-pair matrix workspace (grid.html)
   ============================================================ */

[data-page="grid-v2"] {
  --grid-path-1: #c08a3a; /* gold — Path I (Growth) */
  --grid-path-2: #b14a3a; /* cinnabar — Path II (Protection) */
  --grid-path-3: #6a8d6f; /* jade — Path III (Illumination) */
  --grid-path-4: #6c5b8e; /* violet — Path IV (Balance) */
  --grid-path-0: #b9a98a; /* cross-path: muted parchment */
  /* inherit the default clay/terracotta body background — matches the
     down-toned theme of journal, dashboard, member-calendar */
}

/* ---- Hero (re-uses .dash-hero scaffolding from the dashboard) ---- */
[data-page="grid-v2"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.55) 0%,
      rgba(20, 12, 8, 0.18) 12%,
      rgba(20, 12, 8, 0.04) 30%,
      rgba(20, 12, 8, 0.04) 55%,
      rgba(20, 12, 8, 0.45) 75%,
      rgba(20, 12, 8, 0.70) 90%,
      rgba(20, 12, 8, 0.82) 100%),
    url("webpageImages/matrix1.jpg");
  background-size: cover;
  background-position: center 35%;
}

/* The legend group inside the hero — laid out like dash-hero-sig */
.grid-hero-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.grid-hero-legend-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0;
}
.grid-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 245, 220, 0.35);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.grid-legend-dot.is-path-1 { background: var(--grid-path-1); }
.grid-legend-dot.is-path-2 { background: var(--grid-path-2); }
.grid-legend-dot.is-path-3 { background: var(--grid-path-3); }
.grid-legend-dot.is-path-4 { background: var(--grid-path-4); }
.grid-legend-dot.is-path-0 { background: var(--grid-path-0); }

/* Path legend banner shown ABOVE the matrix on the page itself */
.grid-legend-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(58,40,15,0.78);
  margin: 0 auto 1.25rem;
  max-width: 60rem;
  padding: 0.85rem 1rem;
  background: rgba(255,250,238,0.6);
  border: 1px solid rgba(74,52,18,0.12);
  border-radius: 0.5rem;
}
.grid-legend-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.grid-legend-banner .grid-legend-dot {
  border-color: rgba(58,40,15,0.25);
  box-shadow: none;
}

/* ---- Controls bar ---- */
.grid-controls {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 1.5rem;
  background: rgba(248,241,226,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74,52,18,0.12);
}
.grid-controls-shell {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
}
.grid-search {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 16rem;
}
.grid-search-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74,52,18,0.6);
}
.grid-search-input {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(74,52,18,0.25);
  border-radius: 0.4rem;
  background: rgba(255,250,238,0.85);
  color: #3a280f;
  transition: border-color .15s, box-shadow .15s;
}
.grid-search-input:focus {
  outline: none;
  border-color: rgba(192,138,58,0.7);
  box-shadow: 0 0 0 3px rgba(192,138,58,0.18);
}
.grid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.grid-filter {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(74,52,18,0.22);
  background: transparent;
  color: rgba(58,40,15,0.78);
  cursor: pointer;
  transition: all .15s;
}
.grid-filter:hover {
  background: rgba(74,52,18,0.06);
  border-color: rgba(74,52,18,0.35);
}
.grid-filter.is-active {
  background: #3a280f;
  border-color: #3a280f;
  color: #f6ecd4;
}
.grid-count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(58,40,15,0.6);
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

/* ---- Matrix ---- */
.grid-matrix-wrap {
  padding: 2.5rem 1.5rem 2rem;
  max-width: 84rem;
  margin: 0 auto;
}
.grid-matrix-scroll {
  overflow-x: auto;
  border: 1px solid rgba(74,52,18,0.18);
  border-radius: 0.6rem;
  background: rgba(255,250,238,0.55);
  box-shadow: 0 12px 32px rgba(74,52,18,0.08);
}
.grid-matrix {
  display: grid;
  grid-template-columns: 5.5rem repeat(20, minmax(2.4rem, 1fr));
  min-width: 60rem;
}
.grid-cell {
  border-right: 1px solid rgba(74,52,18,0.08);
  border-bottom: 1px solid rgba(74,52,18,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.4rem 0.25rem;
  text-align: center;
  position: relative;
}
.grid-cell--corner {
  background: rgba(74,52,18,0.08);
  color: rgba(74,52,18,0.4);
  font-size: 1rem;
}
.grid-cell--head {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(58,40,15,0.78);
  background: rgba(74,52,18,0.06);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-cell--head-glyph {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244,230,196,0.96);
}
.grid-cell--head-rune {
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(244,230,196,0.96);
  font-size: 0.78rem;
  text-align: left;
  justify-content: flex-start;
  padding-left: 0.7rem;
}
.grid-cell--corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  background: rgba(225,202,158,0.98);
}

.grid-cell--pair {
  cursor: pointer;
  border: none;
  border-right: 1px solid rgba(74,52,18,0.08);
  border-bottom: 1px solid rgba(74,52,18,0.08);
  background: transparent;
  font-family: var(--font-sans);
  color: rgba(58,40,15,0.92);
  transition: transform .15s, background .15s, box-shadow .15s, opacity .25s;
  min-height: 2.4rem;
}
.grid-cell-n {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: inherit;
}
.grid-cell--pair.is-path-0 { background: rgba(185,169,138,0.16); }
.grid-cell--pair.is-path-1 { background: rgba(192,138,58,0.30); color: #5a3d12; }
.grid-cell--pair.is-path-2 { background: rgba(177, 74, 58,0.28); color: #5a1a12; }
.grid-cell--pair.is-path-3 { background: rgba(106,141,111,0.30); color: #1f3a23; }
.grid-cell--pair.is-path-4 { background: rgba(108, 91,142,0.28); color: #2a1d4a; }

.grid-cell--pair:hover {
  transform: scale(1.08);
  z-index: 8;
  box-shadow: 0 6px 16px rgba(74,52,18,0.25);
  filter: brightness(1.08);
}
.grid-cell--pair.is-selected {
  outline: 2px solid #3a280f;
  outline-offset: -2px;
  z-index: 9;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(74,52,18,0.35);
}
.grid-cell--pair.is-dim {
  opacity: 0.18;
  pointer-events: none;
}

.grid-hint {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(58,40,15,0.55);
  margin: 0.85rem 0 0;
  text-align: center;
  font-style: italic;
}

/* ---- Detail panel ---- */
.grid-detail-section {
  padding: 2rem 1.5rem 5rem;
  max-width: 78rem;
  margin: 0 auto;
}
.grid-detail {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74,52,18,0.15);
  border-radius: 0.8rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 36px rgba(74,52,18,0.12);
  position: relative;
  overflow: hidden;
}
.grid-detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--detail-stripe, rgba(74,52,18,0.2));
}
.grid-detail.is-path-0 { --detail-stripe: var(--grid-path-0); }
.grid-detail.is-path-1 { --detail-stripe: var(--grid-path-1); }
.grid-detail.is-path-2 { --detail-stripe: var(--grid-path-2); }
.grid-detail.is-path-3 { --detail-stripe: var(--grid-path-3); }
.grid-detail.is-path-4 { --detail-stripe: var(--grid-path-4); }

.grid-detail-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.grid-detail-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74,52,18,0.65);
  margin: 0 0 0.85rem;
}
.grid-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: #3a280f;
  font-style: italic;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.grid-detail-pair {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #3a280f;
  margin: 0 0 0.65rem;
}
.grid-detail-cross {
  color: #c08a3a;
  margin: 0 0.5rem;
}
.grid-detail-glosses {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(58,40,15,0.78);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}
.grid-detail-glosses strong {
  color: #3a280f;
}
.grid-detail-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(58,40,15,0.7);
  margin: 0;
  font-style: italic;
}

.grid-detail-symbols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 38rem;
  margin: 1.75rem auto;
}
.grid-detail-figure {
  margin: 0;
  text-align: center;
}
.grid-detail-figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 15rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(74,52,18,0.18);
  box-shadow: 0 8px 20px rgba(74,52,18,0.18);
}
.grid-detail-figure--rune img {
  /* Runes are typically portrait-leaning compositions */
  aspect-ratio: 4 / 5;
}
.grid-detail-figure figcaption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #3a280f;
  margin-top: 0.85rem;
}
.grid-detail-bigcross {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #c08a3a;
  text-shadow: 0 2px 6px rgba(74,52,18,0.18);
}

.grid-detail-body {
  max-width: 38rem;
  margin: 0 auto;
}
.grid-detail-description {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.75;
  color: #3a280f;
  margin: 0 0 1.5rem;
}
.grid-detail-encouragement {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a280f;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.25rem;
  border-left: 3px solid rgba(192,138,58,0.7);
  background: rgba(192,138,58,0.08);
  border-radius: 0 0.3rem 0.3rem 0;
  font-style: italic;
}
.grid-detail-reflection {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.85);
  margin: 0;
  text-align: center;
  font-style: italic;
  padding: 0 1rem;
}
.grid-detail-orn {
  color: #c08a3a;
  margin: 0 0.3rem;
}
.grid-detail-foot {
  margin-top: 2rem;
  text-align: center;
}
.grid-detail-source {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(58,40,15,0.7);
  margin: 0;
  font-style: italic;
}
.grid-status {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(58,40,15,0.7);
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed rgba(74,52,18,0.25);
  border-radius: 0.6rem;
  background: rgba(255,250,238,0.4);
}
.grid-status-error {
  color: #b14a3a;
  font-style: italic;
  margin: 0 0 1rem;
}
.grid-status .btn {
  margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .grid-controls-shell {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .grid-count { text-align: left; }
  .grid-matrix { grid-template-columns: 4.5rem repeat(20, minmax(2rem, 1fr)); }
  .grid-cell { font-size: 0.7rem; }
  .grid-cell--head-rune { font-size: 0.7rem; padding-left: 0.4rem; }
  .grid-detail { padding: 1.75rem 1.25rem; }
  .grid-detail-symbols {
    grid-template-columns: 1fr;
    max-width: 14rem;
  }
  .grid-detail-bigcross { display: none; }
  .grid-detail-figure img { height: 5.5rem; }
}

/* ============================================================
   CAST — spreads hub (cast.html)
   ============================================================ */

[data-page="cast-v2"] {
  /* inherit the default clay/terracotta body background */
}

/* ---- Hero override (uses dash-hero scaffolding, swaps the image) ---- */
[data-page="cast-v2"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.55) 0%,
      rgba(20, 12, 8, 0.18) 12%,
      rgba(20, 12, 8, 0.05) 30%,
      rgba(20, 12, 8, 0.06) 55%,
      rgba(20, 12, 8, 0.45) 75%,
      rgba(20, 12, 8, 0.70) 90%,
      rgba(20, 12, 8, 0.82) 100%),
    url("webpageImages/SpreadsHero.jpg");
  background-size: cover;
  background-position: center top;
}
.cast-hero-meta .dash-hero-sig-value {
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ---- Intro ---- */
.cast-intro {
  padding: 5rem 1.5rem 1rem;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.cast-intro-shell { max-width: 50rem; margin: 0 auto; }
.cast-intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}
.cast-intro-lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.85);
  margin: 0;
}

/* ---- Spread cards ---- */
.cast-spreads {
  padding: 3rem 1.5rem 4rem;
  max-width: 80rem;
  margin: 0 auto;
}
.cast-spreads-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.cast-card {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74,52,18,0.18);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(74,52,18,0.14);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.cast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(74,52,18,0.22);
}
.cast-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.cast-card-figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cast-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.cast-card:hover .cast-card-figure img {
  transform: scale(1.05);
}
.cast-card-eyebrow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 0.85rem;
  background: linear-gradient(180deg, rgba(20,12,8,0) 0%, rgba(20,12,8,0.72) 100%);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,226,196,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.cast-card-body {
  padding: 1.5rem 1.6rem 1.85rem;
}
.cast-card-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: #3a280f;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}
.cast-card-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(58,40,15,0.88);
  margin: 0 0 1.25rem;
}
.cast-card-positions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.4rem;
}
.cast-card-positions li {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(58,40,15,0.82);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cast-card-pos-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(192,138,58,0.2);
  border: 1px solid rgba(192,138,58,0.5);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #5a3d12;
  font-weight: 600;
}
.cast-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #5a3d12;
  border-bottom: 1px solid rgba(192,138,58,0.5);
  padding-bottom: 0.15rem;
  transition: color 220ms, border-color 220ms;
}
.cast-card:hover .cast-card-cta {
  color: #3a280f;
  border-color: #3a280f;
}

/* Card-specific accents */
.cast-card--three-guides .cast-card-pos-num { background: rgba(192,138,58,0.18); border-color: rgba(192,138,58,0.55); color: #5a3d12; }
.cast-card--harmony      .cast-card-pos-num { background: rgba(177,74,58,0.18);  border-color: rgba(177,74,58,0.5);   color: #5a1a12; }
.cast-card--path         .cast-card-pos-num { background: rgba(106,141,111,0.18); border-color: rgba(106,141,111,0.5); color: #1f3a23; }

/* ---- After the cast ---- */
.cast-after {
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(192,138,58,0.08) 60%, rgba(192,138,58,0.14) 100%);
  text-align: center;
}
.cast-after-shell {
  max-width: 48rem;
  margin: 0 auto;
}
.cast-after-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.cast-after-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.85);
  margin: 0 0 2rem;
}
.cast-after-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .cast-spreads-shell {
    grid-template-columns: 1fr 1fr;
  }
  .cast-card--path { grid-column: 1 / -1; max-width: 32rem; margin: 0 auto; }
}
@media (max-width: 640px) {
  .cast-spreads-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cast-card--path { max-width: none; }
  .cast-intro { padding-top: 3rem; }
  .cast-card-body { padding: 1.25rem 1.25rem 1.5rem; }
  .cast-card-title { font-size: 1.55rem; }
}

/* ============================================================
   SPREADS — three sibling casting pages share these styles
   (spread-three-guides.html, spread-harmony-disharmony.html,
    spread-path-of-wisdom.html)
   ============================================================ */

[data-page~="spread-v2"] {
  --grid-path-1: #c08a3a;
  --grid-path-2: #b14a3a;
  --grid-path-3: #6a8d6f;
  --grid-path-4: #6c5b8e;
  --grid-path-0: #b9a98a;
  /* inherit the default clay/terracotta body background */
}

/* ---- Hero (per-page background image, dash-hero scaffolding) ---- */
[data-page~="spread-three-guides"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.50) 0%,
      rgba(20, 12, 8, 0.18) 14%,
      rgba(20, 12, 8, 0.06) 35%,
      rgba(20, 12, 8, 0.06) 60%,
      rgba(20, 12, 8, 0.50) 80%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/TheThreeGuides.jpg");
  background-size: cover;
  background-position: center 40%;
}
[data-page~="spread-harmony-disharmony"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.50) 0%,
      rgba(20, 12, 8, 0.18) 14%,
      rgba(20, 12, 8, 0.06) 35%,
      rgba(20, 12, 8, 0.06) 60%,
      rgba(20, 12, 8, 0.50) 80%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/HarmonyDisharmony.jpg");
  background-size: cover;
  background-position: center 35%;
}
[data-page~="spread-path-of-wisdom"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.50) 0%,
      rgba(20, 12, 8, 0.18) 14%,
      rgba(20, 12, 8, 0.06) 35%,
      rgba(20, 12, 8, 0.06) 60%,
      rgba(20, 12, 8, 0.50) 80%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/ThePathofWisdom.jpg");
  background-size: cover;
  background-position: center 40%;
}

.spread-hero-back {
  color: rgba(244, 226, 196, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 226, 196, 0.4);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.spread-hero-back:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---- Casting stage ---- */
.spread-stage {
  padding: 5rem 1.5rem 2rem;
  scroll-margin-top: 1rem;
}
.spread-stage-shell {
  max-width: 70rem;
  margin: 0 auto;
}
.spread-stage-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.spread-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}
.spread-lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.85);
  margin: 0 auto;
  max-width: 42rem;
}

/* ---- Question textarea ---- */
.spread-question {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.spread-question-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74,52,18,0.6);
  margin-bottom: 0.6rem;
}
.spread-question-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3a280f;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(74,52,18,0.22);
  border-radius: 0.5rem;
  background: rgba(255,250,238,0.85);
  resize: vertical;
  min-height: 3.2rem;
  transition: border-color .15s, box-shadow .15s;
}
.spread-question-input:focus {
  outline: none;
  border-color: rgba(192,138,58,0.7);
  box-shadow: 0 0 0 3px rgba(192,138,58,0.18);
}

/* ---- Board (the three cards) ---- */
.spread-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto 3rem;
}
.spread-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.spread-pos-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: #3a280f;
  margin: 1.25rem 0 0.4rem;
  letter-spacing: -0.005em;
}
.spread-pos-hint {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(58,40,15,0.65);
  margin: 0;
  font-style: italic;
}

/* ---- Card (3D flip) ---- */
.spread-card {
  width: 100%;
  max-width: 19rem;
  aspect-ratio: 5 / 7;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1400px;
  display: block;
}
.spread-card-back,
.spread-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.spread-card-back {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192,138,58,0.32), transparent 65%),
    linear-gradient(180deg, #3a280f 0%, #28190a 100%);
  border: 1px solid rgba(192,138,58,0.35);
  box-shadow: 0 18px 36px rgba(40, 24, 12, 0.32);
  color: var(--cream);
  transform: rotateY(0deg);
}
.spread-card-back::before,
.spread-card-back::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(192,138,58,0.22);
  border-radius: 0.6rem;
  pointer-events: none;
}
.spread-card-back::after {
  inset: 1.5rem;
  border-color: rgba(192,138,58,0.12);
}
.spread-card-back-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(232, 200, 120, 0.85);
  text-shadow: 0 0 24px rgba(232, 200, 120, 0.35);
  line-height: 1;
}
.spread-card-back-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(232, 200, 120, 0.7);
  font-style: italic;
}
.spread-card-back-hint {
  position: absolute;
  bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 200, 120, 0.55);
}

.spread-card-face {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74,52,18,0.18);
  box-shadow: 0 18px 36px rgba(40, 24, 12, 0.22);
  transform: rotateY(180deg);
}
.spread-card-face-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.spread-card-face-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.is-path-1 .spread-card-face-stripe { background: var(--grid-path-1); }
.is-path-2 .spread-card-face-stripe { background: var(--grid-path-2); }
.is-path-3 .spread-card-face-stripe { background: var(--grid-path-3); }
.is-path-4 .spread-card-face-stripe { background: var(--grid-path-4); }
.is-path-0 .spread-card-face-stripe { background: var(--grid-path-0); }

.spread-card-face-path {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74,52,18,0.55);
  margin: 0 0 0.6rem;
}
.spread-card-face-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  width: 100%;
  justify-content: center;
}
.spread-card-face-rune,
.spread-card-face-glyph {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid rgba(74,52,18,0.15);
  box-shadow: 0 4px 10px rgba(74,52,18,0.14);
}
.spread-card-face-rune {
  aspect-ratio: 4 / 5;
  height: 8.5rem;
}
.spread-card-face-cross {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(192,138,58,0.7);
}
.spread-card-face-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: #3a280f;
  margin: 0.6rem 0 0.25rem;
  text-align: center;
  line-height: 1.2;
}
.spread-card-face-sym {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(58,40,15,0.78);
  margin: 0 0 0.15rem;
  letter-spacing: 0.04em;
}
.spread-card-face-sym strong {
  color: #3a280f;
  font-weight: 600;
}
.spread-card-face-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(58,40,15,0.45);
  margin: 0;
}

/* Flip mechanics */
.spread-card--unflipped .spread-card-back  { transform: rotateY(0deg); }
.spread-card--unflipped .spread-card-face  { transform: rotateY(180deg); }
.spread-card--flipped   .spread-card-back  { transform: rotateY(-180deg); }
.spread-card--flipped   .spread-card-face  { transform: rotateY(0deg); }
.spread-card--unflipped:hover .spread-card-back {
  transform: rotateY(0deg) translateY(-6px);
  box-shadow: 0 26px 48px rgba(40, 24, 12, 0.42);
}
.spread-card--flipped { cursor: default; }
.spread-card--flipped:hover .spread-card-face { transform: rotateY(0deg); }

/* ---- Actions ---- */
.spread-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1rem auto 0;
}
#spread-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.spread-stage.is-complete .spread-stage-head .spread-title {
  color: #5a3d12;
}

/* ---- Save modal ---- */
.spread-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 240ms;
}
.spread-modal.is-visible { opacity: 1; }
.spread-modal[hidden] { display: none; }
.spread-modal-shell {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74,52,18,0.18);
  border-radius: 0.85rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: 0 28px 60px rgba(40, 24, 12, 0.4);
  transform: translateY(8px) scale(0.98);
  transition: transform 240ms;
}
.spread-modal.is-visible .spread-modal-shell {
  transform: translateY(0) scale(1);
}
.spread-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #3a280f;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}
.spread-modal-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(58,40,15,0.85);
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(192,138,58,0.5);
}
.spread-modal-q.is-empty {
  font-style: italic;
  color: rgba(58,40,15,0.55);
  border-color: rgba(74,52,18,0.18);
}
.spread-modal-pairs {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.spread-modal-pair {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255,250,238,0.65);
  border: 1px solid rgba(74,52,18,0.12);
  border-left: 3px solid var(--grid-path-0);
  border-radius: 0.4rem;
  align-items: center;
}
.spread-modal-pair.is-path-1 { border-left-color: var(--grid-path-1); }
.spread-modal-pair.is-path-2 { border-left-color: var(--grid-path-2); }
.spread-modal-pair.is-path-3 { border-left-color: var(--grid-path-3); }
.spread-modal-pair.is-path-4 { border-left-color: var(--grid-path-4); }
.spread-modal-pair-pos {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(58,40,15,0.65);
}
.spread-modal-pair-name {
  font-family: var(--font-display);
  font-style: italic;
  color: #3a280f;
}
.spread-modal-pair-sym {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(58,40,15,0.8);
  text-align: right;
}
.spread-modal-notes-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74,52,18,0.6);
  margin-bottom: 0.45rem;
}
#spread-modal-notes {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(74,52,18,0.22);
  border-radius: 0.4rem;
  background: rgba(255,250,238,0.85);
  color: #3a280f;
  resize: vertical;
  margin-bottom: 1.25rem;
  min-height: 5rem;
}
#spread-modal-notes:focus {
  outline: none;
  border-color: rgba(192,138,58,0.7);
  box-shadow: 0 0 0 3px rgba(192,138,58,0.18);
}
.spread-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ---- Saved-flash toast ---- */
.spread-saved-flash {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #3a280f;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(40,24,12,0.32);
  opacity: 0;
  transition: opacity 320ms, transform 320ms var(--ease-out);
  z-index: 200;
  pointer-events: none;
}
.spread-saved-flash.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spread-error {
  text-align: center;
  font-family: var(--font-serif);
  color: #b14a3a;
  padding: 4rem 1.5rem;
  font-style: italic;
}

/* ---- Guidance section ---- */
.spread-guidance {
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(192,138,58,0.06) 50%, rgba(192,138,58,0.12) 100%);
}
.spread-guidance-shell {
  max-width: 48rem;
  margin: 0 auto;
}
.spread-guidance-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.spread-guidance-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.85);
  margin: 0 0 2.5rem;
}
.spread-guidance-pos {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(74,52,18,0.1);
}
.spread-guidance-pos:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.spread-guidance-pos h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #3a280f;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}
.spread-guidance-pos p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.88);
  margin: 0 0 0.75rem;
}
.spread-guidance-q {
  background: rgba(192,138,58,0.06);
  border-left: 2px solid rgba(192,138,58,0.4);
  padding: 0.65rem 1rem;
  border-radius: 0 0.3rem 0.3rem 0;
  color: rgba(58,40,15,0.78) !important;
}
.spread-guidance-narrative ol {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(58,40,15,0.88);
  margin: 0;
  padding-left: 1.5rem;
}
.spread-guidance-narrative li {
  margin-bottom: 0.6rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .spread-board {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 22rem;
  }
  .spread-stage { padding-top: 3.5rem; }
  .spread-card { max-width: 17rem; }
  .spread-card-face-rune { height: 9rem; }
  .spread-card-face-glyph { width: 8rem; height: 8rem; }
}
@media (max-width: 600px) {
  .spread-modal-pair {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .spread-modal-pair-sym { text-align: left; }
}

/* ============================================================
   SAVED CASTS — archive (saved-casts.html)
   ============================================================ */

[data-page="saved-casts-v2"] {
  --grid-path-1: #c08a3a;
  --grid-path-2: #b14a3a;
  --grid-path-3: #6a8d6f;
  --grid-path-4: #6c5b8e;
  --grid-path-0: #b9a98a;
  /* inherit the default clay/terracotta body background */
}

[data-page="saved-casts-v2"] .dash-hero-bg {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 8, 0.50) 0%,
      rgba(20, 12, 8, 0.16) 14%,
      rgba(20, 12, 8, 0.05) 35%,
      rgba(20, 12, 8, 0.06) 60%,
      rgba(20, 12, 8, 0.50) 80%,
      rgba(20, 12, 8, 0.78) 100%),
    url("webpageImages/SavedCastsHero.jpg");
  background-size: cover;
  background-position: center 40%;
}
.saved-hero-meta .dash-hero-sig-value {
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ---- Controls ---- */
.saved-controls {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 1.5rem;
  background: rgba(248, 241, 226, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 52, 18, 0.12);
}
.saved-controls-shell {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto auto;
  gap: 1rem 1.5rem;
  align-items: center;
}
.saved-search {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.saved-search-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
}
.saved-search-input {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(74, 52, 18, 0.25);
  border-radius: 0.4rem;
  background: rgba(255, 250, 238, 0.85);
  color: #3a280f;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.saved-search-input:focus {
  outline: none;
  border-color: rgba(192, 138, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(192, 138, 58, 0.18);
}
.saved-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.saved-filter {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 52, 18, 0.22);
  background: transparent;
  color: rgba(58, 40, 15, 0.78);
  cursor: pointer;
  transition: all 0.15s;
}
.saved-filter:hover {
  background: rgba(74, 52, 18, 0.06);
  border-color: rgba(74, 52, 18, 0.35);
}
.saved-filter.is-active {
  background: #3a280f;
  border-color: #3a280f;
  color: #f6ecd4;
}
.saved-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.saved-export {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}
.saved-count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(58, 40, 15, 0.55);
  margin: 0;
}

/* ---- Empty state ---- */
.saved-empty {
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}
.saved-empty-shell {
  max-width: 36rem;
  margin: 0 auto;
}
.saved-empty-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(192, 138, 58, 0.45);
  line-height: 1;
  margin-bottom: 1rem;
}
.saved-empty-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.saved-empty-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(58, 40, 15, 0.78);
  margin: 0 0 2rem;
}
.saved-empty-actions {
  display: flex;
  justify-content: center;
}
.saved-empty-filter {
  list-style: none;
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--font-serif);
  color: rgba(58, 40, 15, 0.7);
}
.saved-empty-filter p {
  margin: 0 0 1rem;
  font-style: italic;
}

/* ---- List ---- */
.saved-list-section {
  padding: 2.5rem 1.5rem 1rem;
  max-width: 64rem;
  margin: 0 auto;
}
.saved-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.saved-row {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74, 52, 18, 0.16);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.saved-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(74, 52, 18, 0.14);
  border-color: rgba(74, 52, 18, 0.3);
}
.saved-row.is-selected {
  border-color: #3a280f;
  box-shadow: 0 12px 28px rgba(74, 52, 18, 0.2);
  background: linear-gradient(180deg, #fdf6e6 0%, #f6ebcb 100%);
}
.saved-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.55rem;
}
.saved-row-spread {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a3d12;
  font-weight: 600;
}
.saved-row-date {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(58, 40, 15, 0.6);
}
.saved-row-delete {
  margin-left: auto;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(58, 40, 15, 0.4);
  font-size: 1.4rem;
  line-height: 1;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.saved-row-delete:hover {
  background: rgba(177, 74, 58, 0.1);
  border-color: rgba(177, 74, 58, 0.3);
  color: #b14a3a;
}
.saved-row-q {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: #3a280f;
  margin: 0 0 0.85rem;
  line-height: 1.5;
}
.saved-row-q.is-empty {
  color: rgba(58, 40, 15, 0.5);
  font-style: italic;
}
.saved-row-pairs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.saved-row-pair {
  background: rgba(255, 250, 238, 0.55);
  border: 1px solid rgba(74, 52, 18, 0.12);
  border-left: 3px solid var(--grid-path-0);
  border-radius: 0.35rem;
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.saved-row-pair.is-path-1 { border-left-color: var(--grid-path-1); }
.saved-row-pair.is-path-2 { border-left-color: var(--grid-path-2); }
.saved-row-pair.is-path-3 { border-left-color: var(--grid-path-3); }
.saved-row-pair.is-path-4 { border-left-color: var(--grid-path-4); }
.saved-row-pair-pos {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(58, 40, 15, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-row-pair-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: #3a280f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Detail ---- */
.saved-detail-section {
  padding: 1.5rem 1.5rem 5rem;
  max-width: 78rem;
  margin: 0 auto;
}
.saved-detail {
  background: linear-gradient(180deg, #fbf3df 0%, #f4e6c2 100%);
  border: 1px solid rgba(74, 52, 18, 0.18);
  border-radius: 0.85rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 36px rgba(74, 52, 18, 0.12);
}
.saved-detail-head {
  text-align: center;
  margin-bottom: 2rem;
}
.saved-detail-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.65);
  margin: 0 0 0.85rem;
}
.saved-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: #3a280f;
  font-style: italic;
  margin: 0;
  letter-spacing: -0.005em;
}
.saved-detail-title-empty {
  font-style: italic;
  color: rgba(58, 40, 15, 0.55);
}
.saved-detail-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 2rem;
}
.saved-detail-pos {
  position: relative;
  background: rgba(255, 250, 238, 0.7);
  border: 1px solid rgba(74, 52, 18, 0.14);
  border-radius: 0.5rem;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  overflow: hidden;
}
.saved-detail-pos-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grid-path-0);
}
.saved-detail-pos.is-path-1 .saved-detail-pos-stripe { background: var(--grid-path-1); }
.saved-detail-pos.is-path-2 .saved-detail-pos-stripe { background: var(--grid-path-2); }
.saved-detail-pos.is-path-3 .saved-detail-pos-stripe { background: var(--grid-path-3); }
.saved-detail-pos.is-path-4 .saved-detail-pos-stripe { background: var(--grid-path-4); }
.saved-detail-pos-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
  margin: 0 0 0.85rem;
}
.saved-detail-pos-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.saved-detail-pos-rune {
  width: 8rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid rgba(74, 52, 18, 0.18);
  box-shadow: 0 6px 14px rgba(74, 52, 18, 0.16);
}
.saved-detail-pos-glyph {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid rgba(74, 52, 18, 0.18);
  box-shadow: 0 6px 14px rgba(74, 52, 18, 0.16);
}
.saved-detail-pos-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: #3a280f;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.saved-detail-pos-sym {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(58, 40, 15, 0.78);
  margin: 0 0 0.2rem;
  letter-spacing: 0.04em;
}
.saved-detail-pos-sym strong {
  color: #3a280f;
  font-weight: 600;
}
.saved-detail-pos-path {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.5);
  margin: 0 0 0.2rem;
}
.saved-detail-pos-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(58, 40, 15, 0.45);
  margin: 0;
}
.saved-detail-notes {
  background: rgba(192, 138, 58, 0.07);
  border-left: 3px solid rgba(192, 138, 58, 0.5);
  padding: 1rem 1.25rem;
  border-radius: 0 0.4rem 0.4rem 0;
  margin: 0 0 2rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}
.saved-detail-notes-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 52, 18, 0.6);
  margin: 0 0 0.4rem;
}
.saved-detail-notes-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a280f;
  margin: 0;
  white-space: pre-wrap;
}
.saved-detail-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 52, 18, 0.1);
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .saved-controls-shell {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .saved-tools {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .saved-row-pairs {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .saved-detail-board {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .saved-detail { padding: 2rem 1.25rem; }
  .saved-detail-pos-rune { width: 9rem; height: 11rem; }
  .saved-detail-pos-glyph { width: 9rem; height: 9rem; }
}

/* ============================================================
   Ghost-button override for cream/parchment backgrounds.
   The default .btn--ghost is designed for dark hero backgrounds
   (cream text on dark imagery); on light sections it disappears.
   ============================================================ */
.cast-after-actions .btn--ghost,
.spread-actions .btn--ghost,
.spread-modal-actions .btn--ghost,
.saved-controls .btn--ghost,
.saved-detail-foot .btn--ghost {
  color: var(--ink);
  border-color: rgba(40, 24, 12, 0.4);
  background: rgba(255, 250, 238, 0.4);
}
.cast-after-actions .btn--ghost:hover,
.spread-actions .btn--ghost:hover,
.spread-modal-actions .btn--ghost:hover,
.saved-controls .btn--ghost:hover,
.saved-detail-foot .btn--ghost:hover {
  background: rgba(40, 24, 12, 0.08);
  border-color: rgba(40, 24, 12, 0.7);
  color: var(--ink);
}

/* ============================================================
   Per-page hero background-position re-tuned for narrow viewports.
   Placed at end of the file so source-order beats the per-page
   desktop rules (which set background-position inline). The desktop
   values are calibrated for 16:9 landscape framing and crop the
   focal point of each illustration awkwardly on portrait/tablet.
   ============================================================ */
@media (max-width: 880px) {
  /* Birthday — favor priestess head + outstretched hand with essence */
  [data-page="birthday-v2"] .dash-hero-bg     { background-position: center 35%; }
  /* Grid — seers at the matrix board sit in the lower half */
  [data-page="grid-v2"] .dash-hero-bg          { background-position: center 55%; }
  /* Cast hub — Norse + Maya seers and the casting board are below the sky */
  [data-page="cast-v2"] .dash-hero-bg          { background-position: center 60%; }
  /* Three Guides — table with PAST · PRESENT · FUTURE stones is in the lower band */
  [data-page~="spread-three-guides"] .dash-hero-bg       { background-position: center 65%; }
  /* Harmony & Disharmony — altar + figures sit below the split sky */
  [data-page~="spread-harmony-disharmony"] .dash-hero-bg { background-position: center 60%; }
  /* Path of Wisdom — two seers in the mid band; mountains above */
  [data-page~="spread-path-of-wisdom"] .dash-hero-bg     { background-position: center 50%; }
  /* Saved Casts — totem animals + runic disc are in the lower-middle */
  [data-page="saved-casts-v2"] .dash-hero-bg   { background-position: center 60%; }
}


/* ----- Dashboard empty states (pre-backend) ------------------------- */
.dash-context-card--empty,
.dash-recent-block--empty {
  opacity: 0.94;
}
.dash-context-card--empty .dash-context-empty-note,
.dash-recent-block--empty .dash-recent-block-body {
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.6rem 0 1rem;
}
.dash-birthday-plaque--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(232, 200, 120, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(45, 94, 74, 0.08), rgba(15, 8, 4, 0.04));
  border: 1px dashed rgba(201, 160, 74, 0.45);
  border-radius: 8px;
}
.dash-birthday-plaque-mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 120, 0.55);
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}


/* ----- Dashboard: Tip of the Day ----------------------------------- */
.dash-tip {
  padding: 5rem 1.5rem 6rem;
  max-width: 56rem;
  margin: 0 auto;
}
.dash-tip-card {
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.7), rgba(234, 210, 174, 0.5));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 8px;
  padding: 3rem 2.6rem;
  box-shadow: 0 14px 40px -22px rgba(15, 8, 4, 0.35);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 380ms;
}
.dash-tip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a04a, #e8c878);
}
.dash-tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 8, 4, 0.4);
  border-color: rgba(40, 24, 16, 0.25);
}
.dash-tip-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.dash-tip-divider { color: var(--gold); }
.dash-tip-num { font-weight: 600; }
.dash-tip-theme {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--jade);
  margin: 0 0 1.4rem;
}
.dash-tip-body {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.dash-tip-emphasis {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.dash-tip-source {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}
.dash-tip-source em { color: var(--ink); font-style: italic; }


/* ----- Saved Casts: archive (cast 4+) ------------------------------- */
.saved-list-head {
  max-width: 64rem;
  margin: 0 auto 1.4rem;
  padding: 0 1.5rem;
}
.saved-archive-section {
  padding: 4rem 1.5rem 6rem;
}
.saved-archive-shell {
  max-width: 64rem;
  margin: 0 auto;
}
.saved-archive-head {
  text-align: center;
  margin-bottom: 2rem;
}
.saved-archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.6rem 0 0.4rem;
  color: var(--ink);
}
.saved-archive-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}
.saved-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.saved-arch-row {
  display: grid;
  grid-template-columns: 11rem 12rem 1fr auto 1.6rem;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.55), rgba(234, 210, 174, 0.40));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms;
}
.saved-arch-row:hover,
.saved-arch-row:focus-visible {
  transform: translateX(2px);
  box-shadow: 0 8px 22px -14px rgba(15, 8, 4, 0.35);
  border-color: rgba(40, 24, 16, 0.25);
  outline: none;
}
.saved-arch-row-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.saved-arch-row-spread {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.saved-arch-row-q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-arch-row-q em {
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.8;
}
.saved-arch-row-pairs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.saved-arch-row-pair {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(40, 24, 16, 0.10);
  color: var(--ink);
  white-space: nowrap;
}
.saved-arch-row-pair span { margin: 0 0.3rem; opacity: 0.6; }
.saved-arch-row-pair.is-path-1 { border-left: 3px solid #c9a04a; }
.saved-arch-row-pair.is-path-2 { border-left: 3px solid #a03a25; }
.saved-arch-row-pair.is-path-3 { border-left: 3px solid #2d5e4a; }
.saved-arch-row-pair.is-path-4 { border-left: 3px solid #5a4eb2; }
.saved-arch-row-delete {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 150ms;
}
.saved-arch-row-delete:hover { color: #a03a25; }

@media (max-width: 760px) {
  .saved-arch-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date    delete"
      "spread  spread"
      "q       q"
      "pairs   pairs";
    gap: 0.4rem;
  }
  .saved-arch-row-date    { grid-area: date; }
  .saved-arch-row-spread  { grid-area: spread; }
  .saved-arch-row-q       { grid-area: q; white-space: normal; }
  .saved-arch-row-pairs   { grid-area: pairs; flex-wrap: wrap; }
  .saved-arch-row-delete  { grid-area: delete; }
}


/* ----- Background music toggle ------------------------------------- */
.audio-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 120, 0.45);
  background: rgba(15, 8, 4, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8c878;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,0.6);
  transition: transform 220ms var(--ease-out, cubic-bezier(.2,.7,.3,1)),
              box-shadow 220ms,
              border-color 220ms,
              width 280ms;
  overflow: hidden;
}
.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: scale(1.08);
  border-color: rgba(232, 200, 120, 0.85);
  box-shadow: 0 14px 36px -12px rgba(232, 200, 120, 0.45);
  outline: none;
}
.audio-toggle-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audio-toggle-icon svg { width: 100%; height: 100%; }
.audio-toggle-icon-on  { display: none; }
.audio-toggle-icon-off { display: block; }
.audio-toggle.is-playing .audio-toggle-icon-on  { display: block; }
.audio-toggle.is-playing .audio-toggle-icon-off { display: none; }
.audio-toggle.is-playing {
  border-color: rgba(232, 200, 120, 0.85);
  box-shadow:
    0 0 0 4px rgba(232, 200, 120, 0.12),
    0 14px 36px -12px rgba(232, 200, 120, 0.45);
  animation: audioPulse 3.5s ease-in-out infinite alternate;
}
@keyframes audioPulse {
  from { box-shadow: 0 0 0 4px rgba(232, 200, 120, 0.10), 0 14px 36px -12px rgba(232, 200, 120, 0.35); }
  to   { box-shadow: 0 0 0 6px rgba(232, 200, 120, 0.18), 0 14px 36px -12px rgba(232, 200, 120, 0.55); }
}
/* Track-name label — body-level sibling of the audio buttons.
   Visible whenever music is playing (toggled .is-visible from JS). */
.audio-track-label {
  position: fixed;
  bottom: 1.7rem;
  right: 11rem;
  white-space: nowrap;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(20, 12, 8, 0.85);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  background: transparent;
  border: 1px solid rgba(20, 12, 8, 0.55);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  z-index: 1000;
  transition: opacity 280ms, transform 220ms var(--ease-out, cubic-bezier(.2,.7,.3,1));
}
.audio-track-label.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Legacy class kept (was inside the button) — hidden so old cached HTML
   doesn't show a clipped/empty pill. */
.audio-toggle-track { display: none; }

@media (max-width: 600px) {
  .audio-toggle { bottom: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; }
  .audio-track-label { display: none; }
}


/* ----- Album page (members' music gift) ---------------------------- */
.nowrap { white-space: nowrap; }
.album-main {
  padding: 8rem 1.5rem 6rem;
  background: var(--clay);
  min-height: 70vh;
}

.album-hero {
  max-width: 64rem;
  margin: 0 auto 5rem;
}
.album-hero-shell {
  display: grid;
  grid-template-columns: minmax(220px, 22rem) 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 760px) {
  .album-hero-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}
.album-hero-cover {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(20,12,8,0.55), 0 6px 18px -8px rgba(20,12,8,0.45);
  border: 1px solid rgba(232,200,120,0.18);
  aspect-ratio: 1 / 1;
  background: var(--stone);
}
.album-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-hero-text { color: var(--ink); }
.album-eyebrow {
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
}
.album-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.005em;
}
.album-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 1.4rem;
  color: rgba(74,52,18,0.78);
}
.album-blurb,
.album-share-note {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
  color: rgba(40,28,14,0.92);
  max-width: 32rem;
}
@media (max-width: 760px) {
  .album-blurb, .album-share-note { margin-left: auto; margin-right: auto; }
}
.album-share-note {
  font-style: italic;
  color: rgba(74,52,18,0.78);
}

.album-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
@media (max-width: 760px) {
  .album-cta { align-items: center; }
}
.album-cta-status {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(74,52,18,0.85);
  margin: 0;
  max-width: 32rem;
}
.album-cta-status a { color: var(--gold-deep); text-decoration: underline; }
.album-cta-done {
  font-style: italic;
  color: rgba(40,80,40,0.8);
}
.album-cta-error { color: #a14334; }
.album-cta-fine {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: rgba(74,52,18,0.6);
  margin: 0;
}
.btn.album-buy,
.btn.album-download {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
}

/* Track listing */
.album-tracks {
  max-width: 56rem;
  margin: 0 auto;
}
.album-tracks-head { text-align: center; margin-bottom: 2rem; }
.album-tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}
@media (max-width: 600px) {
  .album-tracklist { grid-template-columns: 1fr; }
}
.album-track {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(74,52,18,0.18);
  font-family: var(--font-body);
}
.album-track-num {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold-deep);
  min-width: 1.6rem;
}
.album-track-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink);
}

/* Success page */
.album-success-main {
  padding: 9rem 1.5rem 8rem;
  background: var(--clay);
  min-height: 60vh;
}
.album-success { max-width: 40rem; margin: 0 auto; text-align: center; }
.album-success-shell { display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.album-success-prose {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(40,28,14,0.92);
  margin: 0;
}
.album-success-cta { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

/* Dashboard tools card linking to album */
.dash-tools-link.dash-tools-link--album .dash-tools-mark { color: var(--gold-deep); }

/* ----- 404 / 500 error pages --------------------------------------- */
.error-page {
  padding: 8rem 1.5rem 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%,
      rgba(232, 200, 120, 0.08), transparent 70%);
}
.error-page-shell {
  max-width: 38rem;
  text-align: center;
}
.error-page-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(232, 200, 120, 0.55);
  margin: 1.4rem 0;
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}
.error-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.6rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
}
.error-page-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
}
.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}


/* ----- Settings: toggle / range / select --------------------------- */
.settings-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(40, 24, 16, 0.18);
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
  min-width: 14rem;
}
.settings-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}
.settings-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.settings-toggle-track {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(40, 24, 16, 0.18);
  position: relative;
  transition: background 200ms;
  flex-shrink: 0;
}
.settings-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: calc(1.4rem - 4px);
  height: calc(1.4rem - 4px);
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 220ms var(--ease-out, cubic-bezier(.2,.7,.3,1));
}
.settings-toggle input:checked + .settings-toggle-track {
  background: var(--gold-deep);
}
.settings-toggle input:checked + .settings-toggle-track::after {
  transform: translateX(1.2rem);
}
.settings-toggle input:focus-visible + .settings-toggle-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.settings-toggle-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.settings-range {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.settings-range input[type="range"] {
  width: 12rem;
  accent-color: var(--gold-deep);
}
.settings-range-value {
  font-family: var(--font-body);
  font-variant: tabular-nums;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-width: 2.6rem;
}

.settings-actions--center {
  justify-content: center;
}
.settings-section--signout {
  text-align: center;
}


/* ----- Member-page brand: logo -> public, text -> dashboard ------- */
.brand-logo-link,
.brand-text-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 200ms;
}
.brand-logo-link:hover,
.brand-text-link:hover {
  opacity: 0.85;
}
.brand-logo-link:focus-visible,
.brand-text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ----- Settings hero: no image, compact, centered ------------------ */
.settings-hero-v2 {
  min-height: auto;
  padding: 11rem 1.5rem 1rem;
  background: transparent;
  text-align: center;
}
.settings-hero-v2 .dash-hero-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0;
}
.settings-hero-v2 .dash-hero-content {
  text-align: center;
  margin: 0 auto;
}
.settings-hero-v2 .dash-hero-eyebrow,
.settings-hero-v2 .dash-hero-title,
.settings-hero-v2 .dash-hero-date {
  color: var(--ink);
  text-shadow: none;
}
.settings-hero-v2 .dash-hero-eyebrow {
  color: var(--gold-deep);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
}
.settings-hero-v2 .dash-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: #3a280f;
  margin: 0.5rem 0 0;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-variation-settings: normal;
}
.settings-hero-v2 .dash-hero-date {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}


/* ----- Settings: archive capacity bar (hidden until >50%) ---------- */
.settings-capacity {
  margin: 0 auto 2rem;
  max-width: 38rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.55), rgba(234, 210, 174, 0.40));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 8px;
}
.settings-capacity-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}
.settings-capacity-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.settings-capacity-value {
  font-family: var(--font-body);
  font-variant: tabular-nums;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.settings-capacity-bar {
  height: 6px;
  background: rgba(40, 24, 16, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.settings-capacity-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a04a, #e8c878);
  border-radius: 999px;
  transition: width 400ms var(--ease-out, cubic-bezier(.2,.7,.3,1)), background 200ms;
}
.settings-capacity-fill.is-warning { background: linear-gradient(90deg, #c9a04a, #c97a3a); }
.settings-capacity-fill.is-full    { background: linear-gradient(90deg, #a03a25, #c95040); }
.settings-capacity-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
  line-height: 1.45;
}


/* ----- Audio skip-track button (visible only when playing) -------- */
.audio-skip {
  position: fixed;
  bottom: 1.4rem;
  right: 4.4rem; /* sits to the LEFT of the play/pause button */
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 120, 0.35);
  background: rgba(15, 8, 4, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8c878;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateX(8px);
  transition: opacity 220ms, transform 240ms var(--ease-out, cubic-bezier(.2,.7,.3,1)),
              border-color 200ms, background 200ms;
}
.audio-skip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateX(0);
}
.audio-skip:hover,
.audio-skip:focus-visible {
  border-color: rgba(232, 200, 120, 0.85);
  background: rgba(15, 8, 4, 0.82);
  outline: none;
}
.audio-skip svg {
  width: 0.95rem;
  height: 0.95rem;
}
@media (max-width: 600px) {
  .audio-skip {
    bottom: 1rem;
    right: 3.8rem;
    width: 2.1rem;
    height: 2.1rem;
  }
}


/* ----- Settings: small pill link inside data row ------------------ */
.settings-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(232, 200, 120, 0.18);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 160, 74, 0.45);
  text-decoration: none;
  transition: background 180ms, border-color 180ms, transform 180ms;
}
.settings-pill:hover,
.settings-pill:focus-visible {
  background: rgba(232, 200, 120, 0.32);
  border-color: rgba(201, 160, 74, 0.85);
  transform: translateY(-1px);
  outline: none;
}

/* ----- Audio loop button (visible only when playing) -------------- */
.audio-loop {
  position: fixed;
  bottom: 1.4rem;
  right: 7.4rem; /* left of skip and play */
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 120, 0.35);
  background: rgba(15, 8, 4, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8c878;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateX(8px);
  transition: opacity 220ms, transform 240ms var(--ease-out, cubic-bezier(.2,.7,.3,1)),
              border-color 200ms, background 200ms;
}
.audio-loop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateX(0);
}
.audio-loop:hover,
.audio-loop:focus-visible {
  border-color: rgba(232, 200, 120, 0.85);
  background: rgba(15, 8, 4, 0.82);
  outline: none;
}
.audio-loop.is-active {
  background: rgba(232, 200, 120, 0.18);
  border-color: rgba(232, 200, 120, 0.85);
  color: #fff5d8;
  box-shadow:
    0 0 0 4px rgba(232, 200, 120, 0.14),
    0 8px 22px -12px rgba(232, 200, 120, 0.45);
}
.audio-loop svg {
  width: 0.95rem;
  height: 0.95rem;
}
@media (max-width: 600px) {
  .audio-loop {
    bottom: 1rem;
    right: 6.4rem;
    width: 2.1rem;
    height: 2.1rem;
  }
}


/* ----- Birthday: order-your-plaque section ------------------------ */
.birthday-plaque-section {
  padding: 5rem 1.5rem 6rem;
}
.birthday-plaque-shell {
  max-width: 64rem;
  margin: 0 auto;
}
.birthday-plaque-head { text-align: center; margin-bottom: 2.6rem; }
.birthday-plaque-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0.4rem 0 0.8rem;
  color: var(--ink);
  font-weight: 500;
}
.birthday-plaque-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 auto;
}

.birthday-plaque-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem;
  margin: 2rem 0 2.4rem;
}
.birthday-plaque-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.55), rgba(234, 210, 174, 0.40));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: center;
  transition: transform 280ms var(--ease-out, cubic-bezier(.2,.7,.3,1)), box-shadow 280ms;
}
.birthday-plaque-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 8, 4, 0.4);
}
.birthday-plaque-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 22px -12px rgba(15, 8, 4, 0.45);
}
.birthday-plaque-card figcaption {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.birthday-plaque-card figcaption span {
  display: block;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.2rem;
}

.birthday-plaque-actions { text-align: center; }
.birthday-plaque-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.55;
}


/* ----- Auth pages (login / signup / forgot-password) -------------- */
[data-page="auth-page"] {
  background: var(--clay);
}
.auth-page {
  padding: 7rem 1.5rem 6rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 70vh;
}
.auth-shell {
  max-width: 28rem;
  width: 100%;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.85), rgba(234, 210, 174, 0.7));
  border: 1px solid rgba(40, 24, 16, 0.10);
  border-radius: 12px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 18px 50px -22px rgba(15, 8, 4, 0.45);
}
.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
  margin: 0.4rem 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
}
.auth-lede {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  line-height: 1.5;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-field-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.auth-field-hint {
  font-variant: normal;
  letter-spacing: normal;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.85;
}
.auth-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(40, 24, 16, 0.18);
  background: #fffaf0;
  border-radius: 6px;
  color: var(--ink);
}
.auth-field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.auth-submit { margin-top: 0.6rem; }
.auth-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
  min-height: 1.2em;
  color: var(--ink-soft);
}
.auth-status.is-error { color: #a03a25; }
.auth-status.is-ok    { color: #2d5e4a; }
.auth-alt {
  margin: 1.6rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.auth-alt a { color: var(--gold-deep); }

/* Hide member-page bodies until /api/auth/me has resolved, so the
   page does not flash before the redirect to login. */
html.auth-pending body { visibility: hidden; }


/* ----- Subscribe: "redirected from member" banner ------------------ */
.from-member-banner {
  background: linear-gradient(180deg, rgba(232, 200, 120, 0.22), rgba(201, 160, 74, 0.18));
  border-bottom: 1px solid rgba(201, 160, 74, 0.5);
  text-align: center;
  padding: 1rem 1.5rem;
}
.from-member-banner p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 50rem;
  margin: 0 auto;
}


/* (Removed: free-tier lock icons + "Free account" pill — free users no
    longer see the member masthead at all, so no styling is needed.) */

/* ----- Logged-in masthead: secondary "Sign out" link ---------------- */
.signin.signin--secondary {
  margin-left: 0.5rem;
  background: transparent;
  border: 1px solid rgba(232, 200, 120, 0.45);
}
.signin.signin--secondary:hover {
  background: rgba(232, 200, 120, 0.14);
}
@media (max-width: 720px) {
  .signin.signin--secondary { display: none; }
}


/* ----- Three-tier subscribe layout -------------------------------- */
.subscribe-tiers--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
@media (max-width: 1100px) { .subscribe-tiers--three { grid-template-columns: 1fr; } }
.subscribe-tier--visitor {
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.42), rgba(234, 210, 174, 0.28));
}
.subscribe-tier--visitor .subscribe-tier-name { font-size: 1.5rem; }

/* "Soon" pill on free-tier features that wait for Phase E (email) */
.tier-soon, .auth-free-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(201, 160, 74, 0.22);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 160, 74, 0.45);
  margin-left: 0.3rem;
  vertical-align: 0.05rem;
}

/* ----- Signup: "What a free account gives you" panel --------------- */
.auth-free-summary {
  margin: 2.4rem auto 0;
  max-width: 32rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.55), rgba(234, 210, 174, 0.40));
  border: 1px solid rgba(40, 24, 16, 0.10);
  text-align: left;
}
.auth-free-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin: 0 0 0.8rem;
}
.auth-free-summary ul {
  margin: 0 0 1rem;
  padding-left: 1rem;
  list-style: none;
}
.auth-free-summary li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.auth-free-summary li::before {
  content: "º6";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
}
.auth-free-summary li strong { color: var(--ink); font-weight: 600; }
.auth-free-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(40, 24, 16, 0.18);
}


/* ----- Settings tier banner (Workspace for paid · Subscribe for free) - */
.settings-tier {
  padding: 0 1.5rem 0;
}
.settings-tier-shell {
  max-width: 56rem;
  margin: -0.5rem auto 2rem;
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(232, 200, 120, 0.18), rgba(45, 94, 74, 0.10));
  border: 1px solid rgba(201, 160, 74, 0.45);
  text-align: center;
}
.settings-tier-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
}
.settings-tier-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-weight: 500;
}
.settings-tier-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  line-height: 1.55;
}


/* ----- My-Signature page (free-tier RGT lookup) ------------------- */
.mysig-hero {
  padding: 7rem 1.5rem 2rem;
  text-align: center;
}
.mysig-hero-shell { max-width: 44rem; margin: 0 auto; }
.mysig-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.8rem;
  color: var(--ink);
  font-weight: 500;
}
.mysig-hero-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.mysig-tool {
  max-width: 36rem;
  margin: 1.6rem auto 0;
  padding: 0 1.5rem;
}
.mysig-form {
  display: flex;
  gap: 0.7rem;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}
.mysig-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 14rem; }
.mysig-field-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.mysig-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(40, 24, 16, 0.18);
  background: #fffaf0;
  color: var(--ink);
  width: 100%;
}
.mysig-saved {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
}

.mysig-result-section {
  padding: 3rem 1.5rem 6rem;
}
.mysig-result {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.4rem 2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(244, 226, 196, 0.55), rgba(234, 210, 174, 0.40));
  border: 1px solid rgba(40, 24, 16, 0.10);
  text-align: center;
}
.mysig-result-date {
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.mysig-result-sig {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.mysig-result-path {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.mysig-result-symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.4rem 0;
}
.mysig-figure { margin: 0; text-align: center; }
.mysig-figure img {
  width: 9rem;
  max-width: 26vw;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 22px -12px rgba(15, 8, 4, 0.45);
  display: block;
  margin: 0 auto 0.5rem;
}
.mysig-figure figcaption {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.mysig-cross {
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 200, 120, 0.5);
}
.mysig-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 1.4rem auto 0;
  max-width: 36rem;
}
.mysig-upgrade {
  margin: 2rem auto 0;
  padding: 1.2rem 1.4rem;
  border-top: 1px dashed rgba(40, 24, 16, 0.18);
  text-align: center;
}
.mysig-upgrade-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}
.mysig-upgrade p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}


/* ----- Subscribe success page ------------------------------------- */
.success-page {
  padding: 8rem 1.5rem 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.success-shell {
  max-width: 38rem;
  text-align: center;
}
.success-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(232, 200, 120, 0.55);
  margin: 1.4rem 0;
  animation: ornamentShimmer 4s ease-in-out infinite alternate;
}
.success-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.success-prose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.success-actions {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
}
.success-note {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* =====================================================================
   Unified hero entrance — same beautiful unfolding the dash-hero (Grid,
   Dashboard, Cast, Saved, etc.) already had. Extends it to every hero
   variant on the rest of the site.
   ===================================================================== */
.journal-hero-eyebrow,
.mcal-hero-eyebrow,
.page-hero-eyebrow,
.help-hero .section-eyebrow,
.legal-hero-shell .section-eyebrow,
.subscribe-hero-shell .section-eyebrow,
.mysig-hero-shell .section-eyebrow,
.auth-shell .section-eyebrow,
.success-shell .section-eyebrow {
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-out) 300ms forwards;
}

.journal-hero-title,
.mcal-hero-title,
.page-hero-title,
.help-hero-title,
.legal-hero-title,
.subscribe-hero-title,
.mysig-hero-title,
.auth-title,
.success-title {
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-out) 500ms forwards;
}

.journal-hero-date,
.mcal-hero-date,
.page-hero-sub,
.help-hero-lede,
.legal-hero-sub,
.subscribe-hero-lede,
.mysig-hero-lede,
.auth-lede,
.success-prose {
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-out) 800ms forwards;
}

.subscribe-hero-price,
.subscribe-hero-meta,
.legal-prose > .legal-lede {
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-out) 1100ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .journal-hero-eyebrow, .journal-hero-title, .journal-hero-date,
  .mcal-hero-eyebrow, .mcal-hero-title, .mcal-hero-date,
  .page-hero-eyebrow, .page-hero-title, .page-hero-sub,
  .help-hero-title, .help-hero-lede,
  .legal-hero-title, .legal-hero-sub,
  .subscribe-hero-title, .subscribe-hero-lede, .subscribe-hero-price, .subscribe-hero-meta,
  .mysig-hero-title, .mysig-hero-lede,
  .auth-title, .auth-lede,
  .success-title, .success-prose {
    opacity: 1;
    animation: none;
  }
}
