/* Luna Post blog — loaded on top of dashboard.css, which already provides the
   paper background, the fonts, the fixed nav/footer, and the :root tokens
   (--ink, --ink-soft, --stamp-red, --serif, --display, --script). Nothing here
   redefines those; this file is only the reading surface. */

/* ---- Lede + breadcrumbs -------------------------------------------------- */
.blog-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.8rem 0 0;
}

.blog-crumbs {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.blog-crumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(44, 38, 32, 0.25); }
.blog-crumbs a:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Pillar filter ------------------------------------------------------- */
/* The nine marketing pillars, doubling as the blog's topic clusters. */
.blog-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 1.8rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(44, 38, 32, 0.18);
}
.blog-pillars a {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(44, 38, 32, 0.25);
  border-radius: 99px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.blog-pillars a:hover { color: var(--ink); border-color: var(--ink); }
.blog-pillars a.is-current {
  color: #f6efe0;
  background: #4a3b30;
  border-color: var(--ink);
}

/* ---- Index list ---------------------------------------------------------- */
.blog-list { margin-top: 0.6rem; }

.blog-item { padding: 1.9rem 0 2rem; }
.blog-item + .blog-item { border-top: 1px solid rgba(44, 38, 32, 0.18); }
.blog-list .blog-item:first-child { border-top: 1px solid rgba(44, 38, 32, 0.18); margin-top: 1.6rem; }

.blog-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}
.blog-item-pillar { color: var(--stamp-red); text-decoration: none; }
.blog-item-pillar:hover { text-decoration: underline; }

.blog-item-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.blog-item-title a { color: var(--ink); text-decoration: none; }
.blog-item-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.blog-item-summary {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 40rem;
}

.blog-empty { color: var(--ink-soft); font-style: italic; }

/* A staff-only marker on drafts and future-dated posts. */
.blog-draft {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--stamp-red);
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
}

/* ---- Article ------------------------------------------------------------- */
.blog-article { max-width: 38rem; }
/* Article headlines are long sentences, not two-word page titles, so they run
   smaller than .dash-title's display size — at 3.8rem a real headline eats
   four lines before the reader has learned anything. */
.blog-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 0.7rem;
}
.blog-article .blog-lede {
  font-style: italic;
  margin: 0 0 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(44, 38, 32, 0.18);
}

.blog-body { font-size: 1.08rem; line-height: 1.68; }
.blog-body p { margin: 0 0 1.15rem; }
.blog-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  margin: 2.2rem 0 0.7rem;
}
.blog-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 1.7rem 0 0.5rem;
}
.blog-body ul, .blog-body ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(44, 38, 32, 0.4); }
.blog-body a:hover { text-decoration-color: var(--ink); }
.blog-body strong { font-weight: 700; }
.blog-body blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--stamp-red);
  font-style: italic;
  color: var(--ink-soft);
}
.blog-body hr { border: 0; border-top: 1px solid rgba(44, 38, 32, 0.18); margin: 2rem 0; }

/* ---- Closing CTA + related ---------------------------------------------- */
.blog-cta {
  margin-top: 2.6rem;
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid rgba(44, 38, 32, 0.18);
  border-bottom: 1px solid rgba(44, 38, 32, 0.18);
  max-width: 38rem;
}
.blog-cta p { font-size: 1rem; margin: 0.5rem 0; }

.blog-related { margin-top: 2.2rem; max-width: 38rem; }
.blog-related ul { list-style: none; margin: 0.8rem 0 1.2rem; padding: 0; }
.blog-related li { margin-bottom: 0.9rem; font-size: 0.98rem; color: var(--ink-soft); }
.blog-related li a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(44, 38, 32, 0.3); }
.blog-related li a:hover { border-color: var(--ink); }

/* ---- Tarot reference ----------------------------------------------------- */
.blog-note {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 0;
  max-width: 38rem;
}
.blog-note a { color: var(--ink); }

.tarot-group { margin-top: 2.8rem; }
.tarot-group-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(44, 38, 32, 0.18);
}
.tarot-group-blurb { margin: 0.6rem 0 1.4rem; color: var(--ink-soft); font-size: 1rem; }

/* Auto-fitting grid: 6 across on a wide screen, 2 on a phone, no breakpoints
   to maintain. The cards are a fixed 5:8.55 portrait, so the row heights line
   up on their own. */
.tarot-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 1.6rem 1.1rem;
}
.tarot-cell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}
.tarot-cell img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(44, 38, 32, 0.16);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tarot-cell a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 38, 32, 0.24);
}
.tarot-cell-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}
.tarot-cell-keywords {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}

.tarot-credit {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ---- One card ------------------------------------------------------------ */
.tarot-article { max-width: 38rem; }
.tarot-head {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(44, 38, 32, 0.18);
}
.tarot-hero {
  width: 11rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 3px 14px rgba(44, 38, 32, 0.2);
}
.tarot-head-copy { min-width: 0; }
.tarot-eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.tarot-eyebrow a { color: inherit; text-decoration: none; }
.tarot-eyebrow a:hover { color: var(--ink); }
.tarot-head-copy .blog-title { margin-bottom: 0.5rem; }
.tarot-keywords {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.tarot-prompt {
  font-size: 1.15rem;
  font-style: italic;
  border-left: 2px solid var(--stamp-red);
  padding-left: 1rem;
}

.tarot-walk {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 0.85rem;
}
.tarot-walk a { color: var(--ink-soft); text-decoration: none; }
.tarot-walk a:hover { color: var(--ink); }
.tarot-walk .tarot-walk-next { margin-left: auto; text-align: right; }

@media (max-width: 600px) {
  .blog-body { font-size: 1.02rem; }
  .blog-item-meta { font-size: 0.65rem; }

  /* Logged-out header on a phone. dashboard.css keeps the wordmark on the
     left and the stamp absolutely centred, which leaves the visitor nav
     ("Log in · Sign up · Blog") nowhere to go but on top of the stamp at
     375px. Same fix landing.css already makes for the home page: drop the
     wordmark — the stamp reads "Luna Post" anyway — and float the stamp left
     so the links have the whole right side. Scoped to body.blog so the
     dashboard's own pages are untouched. */
  body.blog > header > a:first-child { display: none; }
  body.blog > header .nav-logo {
    position: static;
    transform: none;
    margin-right: auto;
  }
  body.blog > header .nav-logo img { height: 34px; }

  /* The card and its copy stack rather than sitting side by side; the artwork
     stays big enough to actually look at. */
  .tarot-head { flex-direction: column; gap: 1.1rem; }
  .tarot-hero { width: 9rem; }
  .tarot-grid { gap: 1.2rem 0.9rem; }
}

/* ---- Numerology reference ------------------------------------------------ */
/* Shares the tarot section's furniture (.tarot-group-title, .tarot-eyebrow,
   .tarot-keywords, .tarot-prompt); only the number-specific pieces live here. */
.num-method { margin-top: 2.8rem; }
.num-methods { margin: 1.2rem 0 0; max-width: 38rem; }
.num-methods dt {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-top: 1.1rem;
}
.num-methods dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.num-worked-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.8rem 0 0.4rem;
}
.num-method p { max-width: 38rem; }

.num-group { margin-top: 2.8rem; }
.num-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1rem;
}
.num-cell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 0.8rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(44, 38, 32, 0.22);
  border-radius: 3px;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.num-cell a:hover { border-color: var(--ink); background: rgba(44, 38, 32, 0.04); }
.num-numeral {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}
.num-cell-theme {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
}

.num-article { max-width: 38rem; }
.num-head {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(44, 38, 32, 0.18);
}
.num-hero {
  font-family: var(--display);
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 0.9;
  color: var(--ink);
  flex-shrink: 0;
}
.num-head-copy { min-width: 0; }
.num-head-copy .blog-title { margin-bottom: 0.5rem; }

.num-theme {
  font-style: italic;
  color: var(--ink-soft);
}
.num-master-note {
  border-left: 2px solid var(--stamp-red);
  padding-left: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .num-head { gap: 1.1rem; }
  .num-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
}
