/* ============================================================================
   STAR HEARTSONG — DESIGN SYSTEM
   A self-hosted, Wix-free cosmic design system.
   Mystic-technologist · poet-philosopher · "word becomes world."
   Palette sampled from the real Wix site (#d4af37 gold, near-black ground).
   No build step, no framework, no external CSS. One file, one truth.
   ----------------------------------------------------------------------------
   Fonts (loaded via <link> in each page):
     Cormorant Garamond  — editorial serif, headings + verse
     Inter               — clean sans, body + UI
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------------------- */
:root {
  /* — Cosmic ground (deep near-black with a breath of indigo) — */
  --bg-void:        #07060d;   /* the deepest field, page base            */
  --bg-deep:        #0c0b18;   /* primary background                      */
  --bg-panel:       #13111f;   /* raised section / card surface           */
  --bg-panel-soft:  #1a1828;   /* hover / nested surface                  */
  --bg-elevated:    #211e30;   /* highest surface (modals, active cards)  */

  /* — Gold / amber luminance (the sampled signature accent) — */
  --gold:           #d4af37;   /* primary gold (sampled, 8× on real site) */
  --gold-bright:    #f0cf73;   /* highlight / hover gold                  */
  --gold-deep:      #d49341;   /* deeper amber (sampled)                  */
  --amber-soft:     #fabd71;   /* warm amber tint (sampled)               */
  --amber-glow:     rgba(212, 175, 55, 0.16); /* aura wash               */

  /* — Ink (soft ivory, never pure white — it glares on void) — */
  --ink:            #f4efe3;   /* primary text, warm ivory                */
  --ink-soft:       #cdc6b8;   /* secondary text                          */
  --ink-mute:       #968f81;   /* tertiary / captions                     */
  --ink-faint:      #5f5a52;   /* hairlines, disabled                     */

  /* — Lines & borders — */
  --line:           rgba(212, 175, 55, 0.16);  /* gold hairline           */
  --line-soft:      rgba(244, 239, 227, 0.08); /* ivory hairline          */
  --line-strong:    rgba(212, 175, 55, 0.42);  /* emphasized gold edge    */

  /* — Cosmic gradient (brand wash) — */
  --grad-cosmos:   radial-gradient(circle at 50% -10%,
                     #1b1733 0%, #0c0b18 45%, #07060d 100%);
  --grad-gold:     linear-gradient(120deg, #f0cf73 0%, #d4af37 45%, #d49341 100%);

  /* — Type — */
  --font-serif: "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  /* — Rhythm — */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --measure: 64ch;            /* ideal reading width            */
  --maxw:    1120px;          /* page container                 */
  --maxw-narrow: 760px;       /* prose / verse container        */

  --shadow-soft: 0 18px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 0 1px var(--line), 0 24px 70px -34px rgba(212, 175, 55, 0.30);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-soft);
  background-color: var(--bg-void);
  background-image: var(--grad-cosmos);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* The starfield — pure CSS, layered behind everything, no external asset. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%,  rgba(255,255,255,0.85), transparent),
    radial-gradient(1.1px 1.1px at 72% 16%,  rgba(255,255,255,0.65), transparent),
    radial-gradient(1.6px 1.6px at 44% 62%,  rgba(240,207,115,0.75), transparent),
    radial-gradient(1px   1px   at 88% 48%,  rgba(255,255,255,0.55), transparent),
    radial-gradient(1.3px 1.3px at 28% 82%,  rgba(255,255,255,0.6),  transparent),
    radial-gradient(1px   1px   at 62% 90%,  rgba(212,175,55,0.55),  transparent),
    radial-gradient(1.5px 1.5px at 8%  56%,  rgba(255,255,255,0.5),  transparent),
    radial-gradient(1px   1px   at 94% 78%,  rgba(255,255,255,0.5),  transparent),
    radial-gradient(1.2px 1.2px at 52% 8%,   rgba(255,255,255,0.55), transparent);
  background-repeat: repeat;
  background-size: 760px 760px;
  opacity: 0.9;
  animation: drift 200s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 760px 1520px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-bright); }

::selection { background: var(--amber-glow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----------------------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.display {            /* hero-scale display heading */
  font-size: clamp(2.8rem, 7vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

p { max-width: var(--measure); }
p + p { margin-top: 1.1rem; }

/* The luminous gold wordmark / emphasis gradient text */
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow — small spaced label above a heading */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

/* A reverent pull-quote / sacred line */
.invocation {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 22ch;
}

.lede {        /* larger introductory paragraph */
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* A thin gold sacred divider (the small mandala dot rule) */
.rule {
  border: 0;
  height: 1px;
  width: 100%;
  max-width: 240px;
  margin: var(--space-md) auto;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  position: relative;
}
.rule::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-deep);
  color: var(--gold);
  font-size: 0.85rem;
  padding: 0 0.6rem;
}

/* ----------------------------------------------------------------------------
   4. LAYOUT — container, section
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section {
  padding-block: clamp(3.5rem, 9vw, var(--space-2xl));
  position: relative;
}
.section--tight { padding-block: clamp(2.5rem, 6vw, var(--space-xl)); }

/* A raised panel band — sits a step above the void */
.section--panel {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 100%);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head p { margin-inline: auto; }

/* ----------------------------------------------------------------------------
   5. SITE NAV
   ---------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 6, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand__mark .core { fill: var(--gold); }
.brand__mark .ring { stroke: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.35rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 6, 13, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.is-open { max-height: 80vh; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a {
    display: block;
    padding: 0.95rem clamp(1.25rem, 5vw, 3rem);
  }
  .nav-links a::after { display: none; }
}

/* ----------------------------------------------------------------------------
   6. HERO
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 8rem);
}
.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero__content { max-width: 38rem; }
.hero__content .eyebrow { margin-bottom: 1.2rem; }
.hero__content .display { margin-bottom: 1.4rem; }
.hero__content .lede { margin-bottom: 2rem; }

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

/* The signature figure, haloed in gold light */
.hero__figure {
  position: relative;
  justify-self: center;
}
.hero__figure img {
  position: relative;
  z-index: 1;
  width: min(420px, 80vw);
  border-radius: 50%;
  /* a soft vignette so the captured image melts into the void */
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 58%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 46%, #000 58%, transparent 78%);
}
.hero__figure::before {        /* the aura */
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 62%);
  animation: breathe 9s ease-in-out infinite;
}
.hero__figure::after {         /* the sacred-geometry halo ring */
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__figure::before { animation: none; }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: none; margin-inline: auto; }
  .hero__content .invocation, .hero__content p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__figure { order: -1; }
}

/* ----------------------------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-gold);
  color: #1a1405;
  box-shadow: 0 0 0 1px rgba(240, 207, 115, 0.35), 0 14px 40px -18px rgba(212, 175, 55, 0.6);
}
.btn--primary:hover {
  color: #1a1405;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(240, 207, 115, 0.55), 0 20px 52px -16px rgba(212, 175, 55, 0.75);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--amber-glow);
}
.btn--block { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------------------
   8. POEM TYPOGRAPHY  (for verse / sacred text)
   ---------------------------------------------------------------------------- */
.poem {
  font-family: var(--font-serif);
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.poem__title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 0.4rem;
}
.poem__meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: var(--space-md);
}
.poem__body {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-wrap;          /* honor the poet's line breaks */
  text-align: center;
}
/* A single verse line, when marked up line-by-line instead of pre-wrap */
.poem__line { display: block; }
.poem__line--blank { height: 1.1em; }
/* A note / caption inside a poem (the prose stanzas, credits) */
.poem__note {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}

/* ----------------------------------------------------------------------------
   9. CARD GRID + CARD  (poems / books / team / press)
   ---------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}
.card-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card-grid--people {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::before {     /* a faint gold seam at the top edge, lit on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-gold);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.card:hover::before { opacity: 0.9; }

.card--link { cursor: pointer; }

.card__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.card__meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 0.8rem;
}
.card__body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  flex: 1;
}
.card__footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}

/* People card variant — avatar initials + role + horoscope */
.card--person { text-align: center; align-items: center; padding-top: 2rem; }
.card__avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: radial-gradient(circle at 50% 30%, var(--bg-elevated), var(--bg-panel-soft));
  border: 1px solid var(--line-strong);
  margin-bottom: 1rem;
}
.card__role {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card__horoscope {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.7rem;
  white-space: pre-line;
}

/* ----------------------------------------------------------------------------
   10. VALUE / FREQUENCY LIST  (the "frequencies I live by")
   ---------------------------------------------------------------------------- */
.value-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem 2.25rem;
}
.value-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.value-list li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 0.15em;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------------------
   11. SACRED-GEOMETRY DECOR  (optional ambient flourish for section corners)
   ---------------------------------------------------------------------------- */
.geo-bg {
  position: absolute;
  z-index: 0;
  width: clamp(280px, 40vw, 560px);
  aspect-ratio: 1;
  opacity: 0.05;
  pointer-events: none;
  stroke: var(--gold);
  fill: none;
}
.geo-bg--tr { top: -6%; right: -8%; }
.geo-bg--bl { bottom: -8%; left: -10%; }
.section > .container { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  margin-top: var(--space-lg);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 1.2rem; }
.footer-social {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.footer-social a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--amber-glow);
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__legal {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

/* ----------------------------------------------------------------------------
   13. UTILITIES
   ---------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.stack > * + * { margin-top: 1.1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll (progressive enhancement; visible by default if no JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* the sacred-geometry ornaments bleed off the edge; never let them widen the page (phones swiped sideways) */
html, body { overflow-x: clip; }
