/* Angelica Sparke — shared design system.
   Canonical tokens/components for hub pages (homepage and insights hub,
   disclaimer, recommendations, privacy policy). Individual long-form articles keep
   their own inline styles today; pull shared rules from here as pages are touched. */

:root {
  --cream: #f6f0e8;
  --paper: #fbf7f1;
  --paper-soft: rgba(251, 247, 241, 0.94);
  --paper-glass: rgba(253, 250, 246, 0.92);
  --ink: #4c3a33;
  --ink-strong: #402f29;
  --muted: #7c675e;
  --line: rgba(94, 66, 53, 0.2);
  --rose: #d59aaa;
  --blush: #edd5d7;
  --moss: #5d6c58;
  --gold: #b88c57;
  --plum: #6e5268;
  --midnight: #443040;
  --ember: #cf6a35;
  --shadow: 0 20px 46px rgba(64, 45, 38, 0.14);
  --shadow-lift: 0 22px 40px rgba(64, 45, 38, 0.2);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Zodiac glyphs (♈-♓) and ✦/✧ marks are typographic accents, not emoji —
     force text presentation so they inherit color instead of rendering as colour pictographs. */
  font-variant-emoji: text;
  background:
    radial-gradient(rgba(110, 82, 104, 0.05) 1px, transparent 1.6px) 0 0/28px 28px,
    linear-gradient(180deg, #f5efe6 0%, #eee2d3 42%, #e9dbc8 100%);
  min-height: 100vh;
  line-height: 1.7;
}

h1, h2, h3, .brand, .kicker, .mini-kicker, .section-kicker, .card-title, .article-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 241, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
}
.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0d5da, #efe1cf);
  color: var(--plum);
  border: 1px solid rgba(94, 66, 53, 0.12);
}
.nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: 160ms ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(213, 154, 170, 0.14);
  color: var(--ink);
}

/* Kickers — an editorial eyebrow, not a SaaS badge */
.kicker,
.mini-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--rose), #efdfc8);
  color: #43302b;
  border-color: rgba(94, 66, 53, 0.08);
  box-shadow: 0 14px 32px rgba(213, 154, 170, 0.28);
}
.button-secondary {
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  border-color: var(--line);
}

/* Hero pattern (shared by homepage + hub pages) */
.hero {
  padding: 2.75rem 0 1.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}
.hero-image {
  min-height: 460px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  color: var(--ink-strong);
}
.dek { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.hero-pills span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 0.85rem;
  }
  .hero-image { min-height: 220px; }
}

/* Surfaces — hero/intro surfaces get the full glass-and-shadow treatment;
   repeated grid items stay flatter so they read as a list, not a wall of identical cards. */
.hero-card,
.hero-image,
.intro-card,
.footer-note {
  background: var(--paper-glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section-card,
.note-card,
.product-card,
.status-card,
.step-card,
.feature-card,
.article-card,
.premium-card,
.member-card,
.library-card,
.insight-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: none;
}
.hero-card,
.intro-card,
.footer-note {
  border-radius: var(--radius-lg);
}
.section-card,
.step-card,
.feature-card,
.status-card {
  border-radius: var(--radius-md);
}
.hero-card { padding: 1.7rem; }
.section-card { padding: 1.5rem; }
.footer-note { padding: 1.1rem 1.3rem; margin: 0 0 2.75rem; color: var(--muted); }
.footer-note a { color: var(--plum); font-weight: 600; }

/* Section headers */
.section { padding: 0.6rem 0 1.1rem; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--ink-strong);
}
.section-header p { margin: 0; max-width: 60ch; color: var(--muted); }
.section-header-centered { justify-content: center; text-align: center; }
.section-header-centered > div {
  width: min(100%, 62rem);
  margin: 0 auto;
}

/* Editorial article components shared by long-form pages */
.pull-quote {
  margin: 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid rgba(184, 140, 87, 0.6);
  background: rgba(255,255,255,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ink-strong);
}
.key-point,
.note-card {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
}
.note-card { border-left: 3px solid rgba(184, 140, 87, 0.65); }
.ritual-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.ritual-list li {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.45);
  color: var(--muted);
  border: 1px solid var(--line);
}
.testimonial {
  padding: 1rem;
  border-left: 3px solid rgba(184, 140, 87, 0.65);
  background: rgba(255,255,255,0.4);
  color: var(--muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Ad placement */
.ad-section { padding: 0.35rem 0 1.3rem; }
.ad-card {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--paper-glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ad-label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Engagement / recirculation surfaces */
.preference-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.preference-panel h2,
.engagement-next-steps h2 {
  margin: 0.45rem 0 0.7rem;
  color: var(--ink-strong);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}
.preference-panel p,
.engagement-next-steps p {
  margin: 0;
  color: var(--muted);
}
.preference-controls {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--line);
}
.preference-controls label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}
.preference-controls select {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--ink-strong);
  font: inherit;
}
.preference-helper {
  font-size: 0.94rem;
}
.preference-status {
  font-size: 0.98rem;
  color: var(--ink) !important;
}
.quick-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.quick-path-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.quick-path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 154, 170, 0.34);
  box-shadow: var(--shadow);
}
.quick-path-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}
.quick-path-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.35rem;
}
.quick-path-card p {
  margin: 0;
  color: var(--muted);
}
.quick-path-link {
  color: var(--plum);
  font-weight: 700;
}
.engagement-next-steps {
  margin: 1.5rem 0 1rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--paper-glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.engagement-intro {
  margin-bottom: 1rem !important;
}
.preferred-sign-card {
  border-color: rgba(184, 140, 87, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(184, 140, 87, 0.15), 0 16px 28px rgba(184, 140, 87, 0.12);
}
.preferred-sign-card .sign-kicker::after {
  content: ' · your sign';
  color: var(--gold);
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-timestamp {
  margin-top: 0.7rem;
  color: rgba(132, 108, 97, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: start; }
  .hero-card, .section-card, .intro-card, .step-card, .feature-card, .status-card { padding: 1.1rem; }
}

@media (max-width: 900px) {
  .preference-panel,
  .quick-path-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll-reveal: sections settle into place instead of appearing all at once. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* "Live" indicator beside the current date — a quiet signal that this page updates daily. */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(207, 106, 53, 0.55);
  animation: live-pulse 2.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 106, 53, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(207, 106, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 106, 53, 0); }
}

/* Today's birthday sign gets a slow ember glow so it reads as "the one that's alive right now". */
.sign-card.featured-card {
  animation: ember-pulse 5s ease-in-out infinite;
}
@keyframes ember-pulse {
  0%, 100% { box-shadow: none; border-color: rgba(184, 140, 87, 0.28); }
  50% { box-shadow: 0 0 0 1px rgba(207, 106, 53, 0.18), 0 18px 34px rgba(207, 106, 53, 0.16); border-color: rgba(207, 106, 53, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .live-dot,
  .sign-card.featured-card {
    animation: none;
  }
}
