/* ─────────────────────────────────────────────────────────────
   Purple·me — an astrology & relationships journal
   Design tokens & shared styles
   Distinct from Dyana (warm-daylight editorial) and Purple
   (cream masthead newspaper).  This is a dark, observatory-
   inspired aesthetic with a bottom app-style nav.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Night palette */
  --night:    #0A0716;
  --night-2:  #12102A;
  --panel:    #1B1636;
  --card:     #251E48;
  --line:     rgba(231, 226, 245, 0.10);
  --line-2:   rgba(231, 226, 245, 0.06);

  /* Foreground */
  --ivory:    #ECE7F7;
  --ivory-2:  #C9BFE9;
  --muted:    #857FAA;

  /* Accents */
  --gold:     #E6B168;
  --gold-soft:#B48A48;
  --peony:    #FF83A6;
  --violet:   #7A6BE0;
  --star:     #E4DCFF;

  /* Fonts */
  --font-display: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  --font-body:    'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Shadows */
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-violet: 0 0 40px rgba(122, 107, 224, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Faint observatory grid overlay */
  background-image:
    linear-gradient(rgba(231, 226, 245, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 226, 245, 0.028) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  background-position: -1px -1px;

}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

::selection { background: rgba(122, 107, 224, 0.5); color: var(--star); }

/* ── Layout helpers ────────────────────────────────────── */
.pm-container         { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pm-container--narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

.pm-section         { padding: 88px 0; }
.pm-section--tight  { padding: 56px 0; }
.pm-section--first  { padding-top: 40px; }

/* ── Typography ────────────────────────────────────────── */
.pm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}
.pm-eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.pm-eyebrow-line::before,
.pm-eyebrow-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 177, 104, 0.35), transparent);
}
.pm-eyebrow-line::before { max-width: 40px; }

.pm-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin: 0 0 22px;
}
.pm-display em {
  font-style: italic;
  color: var(--star);
}
.pm-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ivory-2);
  max-width: 60ch;
  margin: 0 0 32px;
}
.pm-body p { font-size: 1.02rem; line-height: 1.72; color: var(--ivory); }
.pm-body p + p { margin-top: 20px; }

/* ── Ephemeris ticker (top of every page) ─────────────── */
.pm-ephem {
  position: relative;
  background: rgba(10, 7, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  height: 34px;
  z-index: 20;
}
.pm-ephem__track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 0 24px;
  height: 34px;
  white-space: nowrap;
  animation: pm-marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-2);
  will-change: transform;
}
.pm-ephem__track span.glyph {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0;
  vertical-align: -0.06em;
}
.pm-ephem__track span.sep {
  color: rgba(230, 177, 104, 0.5);
  padding: 0 4px;
}
@keyframes pm-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ── Top masthead (wordmark + primary nav) ─────────────── */
.pm-mark {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 7, 22, 0.92);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 44px;
  row-gap: 10px;
}
.pm-mark__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.pm-mark__logo em { font-style: italic; }
.pm-mark__logo .middot { color: var(--gold); font-weight: 500; padding: 0 2px; font-style: normal; }
.pm-mark__logo .me { color: var(--ivory-2); font-style: italic; }
.pm-mark__logo .glyph {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  align-self: center;
  margin-left: 4px;
}
.pm-nav {
  justify-self: end;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 100%;
}
.pm-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory-2);
  padding: 6px 0 4px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.pm-nav a .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1;
}
.pm-nav a:hover,
.pm-nav a[aria-current="page"] {
  color: var(--star);
  border-color: var(--gold);
}

/* Mobile: stack + horizontal-scroll the nav so nothing gets cropped */
@media (max-width: 900px) {
  .pm-mark {
    grid-template-columns: 1fr;
    padding: 14px 20px 12px;
    column-gap: 0;
  }
  .pm-mark__logo { font-size: 1.4rem; }
  .pm-nav {
    justify-self: start;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0 22px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .pm-nav::-webkit-scrollbar { display: none; }
  .pm-nav a {
    flex-shrink: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }
  .pm-nav a .roman { font-size: 0.9rem; }
}

/* Legacy bottom tab bar — hidden (replaced by top masthead nav) */
.pm-tabs { display: none !important; }

/* ── Hero (cosmic split with video/media + wheel) ───────── */
.pm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.pm-hero__media {
  /* <figure> ships with the UA default `margin: 1em 40px` which,
     combined with position:absolute + inset:0, leaves a 40 px cold
     black rim on either side of the hero (and a 16 px cap on top +
     bottom) — the "broken hero section" you saw in the screenshot.
     Force the box back to the parent's exact rectangle. */
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 0;
}
.pm-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  filter: saturate(1.05) contrast(1.05);
}
.pm-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 18% 40%, rgba(10, 7, 22, 0.85) 0%, rgba(10, 7, 22, 0.35) 45%, rgba(10, 7, 22, 0) 75%),
    linear-gradient(180deg, rgba(10, 7, 22, 0.35) 0%, rgba(10, 7, 22, 0.55) 60%, rgba(10, 7, 22, 0.92) 100%);
  pointer-events: none;
}
/* Two-column grid — copy on the left, chart on the right. */
.pm-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 88px 40px 96px;
  min-height: 74vh;
}
.pm-hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  max-width: 620px;
}
/* Astrological wheel on the right */
.pm-hero__chart {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.pm-wheel {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(122, 107, 224, 0.25));
}
.pm-wheel__rotor {
  transform-origin: 260px 260px;
  animation: pm-wheel-spin 240s linear infinite;
}
@keyframes pm-wheel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-wheel__rotor { animation: none; }
}
.pm-hero__chart-caption {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 7, 22, 0.72);
  border: 1px solid rgba(230, 177, 104, 0.28);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.pm-hero__chart-glyph {
  color: var(--peony);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0;
}
/* Mobile stack — hide the wheel to keep the fold clean */
@media (max-width: 900px) {
  .pm-hero__grid {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    min-height: 78vh;
    gap: 32px;
  }
  .pm-hero__chart { display: none; }
}
.pm-hero__coord {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.pm-hero__coord .rule { display: inline-block; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }
.pm-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin: 0 0 22px;
  max-width: 22ch;
}
.pm-hero__title em {
  font-style: italic;
  color: var(--star);
}
.pm-hero__title .peony { color: var(--peony); font-style: italic; }
.pm-hero__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--ivory-2);
  max-width: 52ch;
  margin: 0 0 30px;
}
.pm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Reusable buttons */
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.pm-btn--gold {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}
.pm-btn--gold:hover { background: transparent; color: var(--gold); transform: translateY(-1px); }
.pm-btn--outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(231, 226, 245, 0.3);
}
.pm-btn--outline:hover { border-color: var(--star); color: var(--star); }
.pm-btn__arrow { display: inline-flex; width: 14px; height: 14px; }
.pm-btn__arrow svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }

/* ── "Today's sky" card (below hero on home) ────────────── */
.pm-today {
  padding: 44px 0;
  background: var(--night);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pm-today__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.pm-today__cell {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(37, 30, 72, 0.5), rgba(27, 22, 54, 0.2));
}
.pm-today__cell .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pm-today__cell .value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ivory);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pm-today__cell .value .glyph {
  color: var(--gold);
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
}
.pm-today__cell .note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 10px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .pm-today__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pm-today__grid { grid-template-columns: 1fr; }
}

/* ── Section head (numbered with roman-like glyphs) ────── */
.pm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pm-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 0;
}
.pm-head__title em { font-style: italic; color: var(--star); }
.pm-head__aside {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Featured article (dark card with big media) ───────── */
.pm-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
}
/* Stretched-link: make the whole featured block clickable via the media anchor */
.pm-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pm-feature > div { position: relative; }
.pm-feature__link { position: relative; z-index: 2; }
.pm-feature__media {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.pm-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}
.pm-feature__media:hover img { transform: scale(1.03); }
.pm-feature__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pm-feature__meta .accent { color: var(--gold); }
.pm-feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  color: var(--ivory);
  margin: 0 0 16px;
}
.pm-feature__title em { font-style: italic; color: var(--star); }
.pm-feature__dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ivory-2);
  margin: 0 0 22px;
}
.pm-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(230, 177, 104, 0.4);
  transition: color 200ms, border-color 200ms;
}
.pm-feature__link:hover { color: var(--star); border-color: var(--star); }
.pm-feature__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
@media (max-width: 860px) {
  .pm-feature { grid-template-columns: 1fr; gap: 30px; }
}

/* ── Cards grid ────────────────────────────────────────── */
.pm-grid {
  display: grid;
  gap: 34px;
}
.pm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .pm-grid--3, .pm-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pm-grid--2, .pm-grid--3, .pm-grid--4 { grid-template-columns: 1fr; }
}

.pm-card {
  display: block;
  color: inherit;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0, 1);
}
.pm-card:hover { transform: translateY(-3px); }
.pm-card__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 16px;
}
.pm-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}
.pm-card:hover .pm-card__media img { transform: scale(1.04); }
.pm-card__meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
}
.pm-card__meta .accent { color: var(--gold); }
.pm-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--ivory);
  margin: 0 0 8px;
}
.pm-card__title em { font-style: italic; color: var(--star); }
.pm-card__dek {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ivory-2);
  margin: 0;
}

/* ── Sign card (zodiac page) ───────────────────────────── */
.pm-sign {
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(37, 30, 72, 0.55) 0%, rgba(18, 16, 42, 0.4) 100%),
    radial-gradient(120% 60% at 100% 0%, rgba(122, 107, 224, 0.16), transparent 60%);
  position: relative;
  overflow: hidden;
  transition: border-color 300ms ease, transform 300ms ease;
}
.pm-sign:hover { border-color: rgba(230, 177, 104, 0.5); transform: translateY(-2px); }
.pm-sign__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.pm-sign__glyph {
  font-family: var(--font-body);
  font-size: 3.4rem;
  color: var(--gold);
  line-height: 0.9;
  text-shadow: 0 0 20px rgba(230, 177, 104, 0.35);
}
.pm-sign__number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
}
.pm-sign__number strong { color: var(--star); display: block; font-size: 0.86rem; margin-bottom: 2px; }
.pm-sign__name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--ivory);
  margin: 4px 0 4px;
}
.pm-sign__dates {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pm-sign__body {
  font-size: 0.95rem;
  color: var(--ivory-2);
  line-height: 1.6;
  margin: 0 0 18px;
}
.pm-sign__tags {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pm-sign__tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory-2);
}
.pm-sign__tags .fire   { color: #FF9F6A; border-color: rgba(255, 159, 106, 0.32); }
.pm-sign__tags .earth  { color: #B7E39A; border-color: rgba(183, 227, 154, 0.32); }
.pm-sign__tags .air    { color: #A6D6FF; border-color: rgba(166, 214, 255, 0.32); }
.pm-sign__tags .water  { color: #B6A6FF; border-color: rgba(182, 166, 255, 0.32); }

/* ── Compatibility matrix (12 sign rows × icon columns) ── */
.pm-compat {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(18, 16, 42, 0.55);
}
.pm-compat__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(80px, auto) 1fr;
  gap: 22px;
  padding: 22px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.pm-compat__row:last-child { border-bottom: 0; }
.pm-compat__pair {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory);
  display: flex; align-items: baseline; gap: 8px;
}
.pm-compat__pair .glyph {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.6rem;
  margin-right: 4px;
}
.pm-compat__pair em { font-style: italic; }
.pm-compat__pair .cross { color: var(--peony); padding: 0 4px; }
.pm-compat__score {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 4px 12px;
  border: 1px solid rgba(230, 177, 104, 0.35);
  border-radius: 999px;
  display: inline-block;
  justify-self: start;
}
.pm-compat__note {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ivory-2);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .pm-compat__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 20px; }
  .pm-compat__score { justify-self: start; }
}

/* ── House block (12 houses of astrology) ──────────────── */
.pm-house {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(37, 30, 72, 0.35), rgba(18, 16, 42, 0.2));
  transition: transform 260ms ease;
}
.pm-house:hover { transform: translateY(-2px); border-color: rgba(230, 177, 104, 0.35); }
.pm-house__roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.pm-house__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ivory);
  margin: 0 0 6px;
  line-height: 1.15;
}
.pm-house__kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.pm-house__body {
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ivory-2);
  margin: 0;
}

/* ── Moon phase strip (moon.html) ──────────────────────── */
.pm-moons {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 32px 0 44px;
}
.pm-moon {
  padding: 18px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background: rgba(18, 16, 42, 0.5);
}
.pm-moon__disc {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset -8px 4px 12px rgba(0, 0, 0, 0.4);
}
.pm-moon--new       .pm-moon__disc { background: #0F0C20; box-shadow: inset 0 0 12px #000; }
.pm-moon--waxc      .pm-moon__disc { background: linear-gradient(90deg, #0F0C20 60%, #E6E1F5 60%); }
.pm-moon--firstq    .pm-moon__disc { background: linear-gradient(90deg, #0F0C20 50%, #E6E1F5 50%); }
.pm-moon--waxg      .pm-moon__disc { background: linear-gradient(90deg, #0F0C20 30%, #E6E1F5 30%); }
.pm-moon--full      .pm-moon__disc { background: #E6E1F5; box-shadow: 0 0 26px rgba(230, 225, 245, 0.35); }
.pm-moon--wang      .pm-moon__disc { background: linear-gradient(90deg, #E6E1F5 70%, #0F0C20 70%); }
.pm-moon--thirdq    .pm-moon__disc { background: linear-gradient(90deg, #E6E1F5 50%, #0F0C20 50%); }
.pm-moon--wanc      .pm-moon__disc { background: linear-gradient(90deg, #E6E1F5 40%, #0F0C20 40%); }
.pm-moon__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.4;
}
.pm-moon__theme {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--gold);
  margin-top: 6px;
}
@media (max-width: 960px) { .pm-moons { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .pm-moons { grid-template-columns: repeat(2, 1fr); } }

/* ── Pull-quote ────────────────────────────────────────── */
.pm-quote {
  padding: 68px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 0%, rgba(122, 107, 224, 0.12), transparent 70%);
}
.pm-quote__glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.6rem;
  color: var(--gold);
  line-height: 0.4;
  display: block;
  margin: 0 0 8px;
}
.pm-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.28;
  color: var(--ivory);
  max-width: 44ch;
  margin: 0 auto 18px;
}
.pm-quote__cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Article body (essays) ─────────────────────────────── */
.pm-article {
  padding: 56px 0 88px;
}
.pm-article__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pm-article__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 0 0 24px;
}
.pm-article__title em { font-style: italic; color: var(--star); }
.pm-article__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ivory-2);
  margin: 0 0 38px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.pm-article__body p {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ivory);
  margin: 0 0 20px;
}
.pm-article__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--star);
  margin: 44px 0 16px;
}
.pm-article__body h2 em { font-style: italic; color: var(--gold); }
.pm-article__body blockquote {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 20px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ivory-2);
}
.pm-article__body em { color: var(--star); font-style: italic; }
.pm-article__body strong { color: var(--gold); font-weight: 500; }
.pm-article__figure {
  margin: 40px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.pm-article__figure img { width: 100%; display: block; }
.pm-article__figure figcaption {
  padding: 12px 18px;
  background: rgba(18, 16, 42, 0.6);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Newsletter (dark) ─────────────────────────────────── */
.pm-newsletter {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(122, 107, 224, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(37, 30, 72, 0.4), rgba(18, 16, 42, 0.4));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pm-newsletter__eye {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.pm-newsletter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--ivory);
  margin: 0 0 8px;
}
.pm-newsletter__title em { font-style: italic; color: var(--star); }
.pm-newsletter__dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory-2);
  margin: 0 auto 28px;
  max-width: 46ch;
}
.pm-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 7, 22, 0.6);
  padding: 4px 4px 4px 20px;
}
.pm-newsletter__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 6px;
  outline: none;
}
.pm-newsletter__input::placeholder { color: var(--muted); }
.pm-newsletter__btn {
  border: 0;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.pm-newsletter__btn:hover { background: var(--star); color: var(--night); }
.pm-newsletter__note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.pm-newsletter__ok {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--star);
}

/* ── Footer ────────────────────────────────────────────── */
.pm-foot {
  padding: 72px 0 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 7, 22, 0.4));
}
.pm-foot__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
.pm-foot__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--ivory);
}
.pm-foot__brand em { font-style: italic; }
.pm-foot__brand .middot { color: var(--gold); font-style: normal; padding: 0 2px; }
.pm-foot__brand .me { color: var(--ivory-2); font-style: italic; }
.pm-foot__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ivory-2);
  max-width: 44ch;
  margin: 0 0 14px;
}
.pm-foot__partner {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.pm-foot__partner a { color: var(--gold); }
.pm-foot__head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 16px;
  font-weight: 500;
}
.pm-foot__links { list-style: none; padding: 0; margin: 0; }
.pm-foot__links li { padding: 5px 0; }
.pm-foot__links a { font-family: var(--font-body); color: var(--ivory-2); transition: color 200ms; }
.pm-foot__links a:hover { color: var(--star); }
.pm-foot__legal {
  max-width: 1240px;
  margin: 44px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .pm-foot__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Reveal on scroll ──────────────────────────────────── */
.pm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.pm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pm-reveal { opacity: 1; transform: none; transition: none; }
  .pm-ephem__track { animation: none; }
}
