/* Journal pages. Same tokens, nav and footer as the home page (index.html keeps its own inline copy). */
:root {
  --bg:        #060B18;
  --surface:   #0F1C38;
  --accent:    #6BADFA;
  --text:      #DBE8FF;
  --subtext:   #8898BD;
  --line:      rgba(107, 173, 250, .12);
  --gold:      #FFCF0E;
  --page:      1180px;
  --pad:       clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { position: relative; max-width: var(--page); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 11, 24, .72);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--page); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; color: var(--subtext); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta {
  background: var(--text); color: #0A1225 !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
}

/* ---------- Journal index ---------- */
.journal-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.journal-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.028em; font-weight: 700; margin-bottom: 12px; }
.journal-head p { color: var(--subtext); font-size: 18px; max-width: 52ch; }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.post-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: 20px;
  background: rgba(15, 28, 56, .55); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: rgba(107, 173, 250, .35); transform: translateY(-2px); }
.post-card h2, .post-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.012em; font-weight: 660; }
.post-card p { color: var(--subtext); font-size: 15px; }
.post-card .meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Post ---------- */
.post { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) 0; }
.crumbs { font-size: 14px; color: var(--subtext); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.post h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.026em; font-weight: 700; margin-bottom: 16px; }
/* Post meta: category links, date, reading time */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  color: var(--subtext); font-size: 14px; margin-bottom: clamp(28px, 4vw, 44px);
}
.post-meta .cats { display: flex; flex-wrap: wrap; gap: 6px; }
.post-meta .cats a, .cat-nav a {
  padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: rgba(107, 173, 250, .10); border: 1px solid rgba(107, 173, 250, .18);
}
.post-meta .cats a:hover, .cat-nav a:hover { background: rgba(107, 173, 250, .18); }

/* Category row on the journal and category pages */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat-nav a span { color: var(--subtext); font-weight: 500; margin-left: 2px; }
.cat-nav a[aria-current] { color: #0A1225; background: var(--accent); border-color: var(--accent); }
.cat-nav a[aria-current] span { color: #0A1225; }
.journal-head .crumbs { margin-bottom: 10px; }

.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.018em; font-weight: 680; margin-top: 2.1em; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 650; margin-top: 1.6em; }
.prose p, .prose li { color: #C3D0EA; }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { color: var(--subtext); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(107,173,250,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { color: var(--subtext); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* Moon lines, drawn as notifications */
.prose blockquote {
  position: relative; max-width: 440px;
  padding: 13px 16px 13px 62px; border-radius: 20px;
  background: rgba(52, 62, 92, .50) url(/img/icon.webp) no-repeat 13px 50% / 36px 36px;
  border: 1px solid rgba(255,255,255,.06);
}
.prose blockquote p { color: var(--text); font-size: 15px; line-height: 1.4; margin: 0; }
.prose blockquote::before { content: "LunarLog"; display: block; font-size: 13px; font-weight: 640; color: var(--text); margin-bottom: 1px; }

.moon-now { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 28, 56, .55); font-size: 16px; }
.moon-now a { font-weight: 600; }

/* End-of-post CTA */
.post-cta {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin: clamp(40px, 6vw, 64px) 0 0; padding: 24px; border-radius: 22px;
  background: linear-gradient(155deg, rgba(15,28,56,.95), rgba(6,11,24,.9));
  border: 1px solid rgba(107,173,250,.18);
}
.post-cta img.icon { width: 64px; height: 64px; border-radius: 16px; }
.post-cta div { flex: 1; min-width: 220px; }
.post-cta strong { display: block; font-size: 18px; margin-bottom: 3px; }
.post-cta p { color: var(--subtext); font-size: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #000; border-radius: 12px;
  padding: 9px 18px 9px 15px;
}
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: block; line-height: 1.1; }
.badge .small { font-size: 10.5px; }
.badge .big { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }

.more { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--pad) clamp(56px, 8vw, 96px); }
.more h2 { font-size: 22px; font-weight: 660; margin-bottom: 18px; }
.more .post-list { padding-bottom: 0; }

/* ---------- Moon card dock (same as home) ---------- */
.moon-dock {
  position: fixed; z-index: 55; width: 310px;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.55));
  animation: dock-in .5s ease .8s both;
}
.moon-dock[hidden] { display: none; }
@keyframes dock-in { from { opacity: 0; transform: translateY(18px); } }
.dock-close {
  position: absolute; top: -9px; left: -9px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(219,232,255,.16);
  background: rgba(6, 11, 24, .92); color: var(--subtext);
}
.dock-close:hover { color: var(--text); }
.dock-close svg { width: 10px; height: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) 0 110px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot-in h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtext); margin-bottom: 14px; font-weight: 600; }
.foot-in ul { list-style: none; display: grid; gap: 9px; }
.foot-in a { color: var(--text); opacity: .82; }
.foot-in a:hover { opacity: 1; color: var(--accent); }
.copy-line { margin-top: 42px; color: var(--subtext); font-size: 13.5px; }

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .moon-dock { width: 236px; right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .prose { font-size: 17px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Link from each sign section to its birth-Moon page on whatsmyrising.com */
.prose p.natal { font-size: 15px; }
.prose p.natal a { color: var(--subtext); text-decoration: none; }
.prose p.natal a:hover { color: var(--accent); }

/* Real quotations (the notification look above is only for the Moon's lines) */
.prose blockquote.cite {
  max-width: none; padding: 4px 0 4px 20px; border-radius: 0;
  background: none; border: 0; border-left: 3px solid var(--accent);
}
.prose blockquote.cite::before { content: none; }
.prose blockquote.cite p { font-size: 18px; line-height: 1.6; font-style: italic; color: var(--text); }
