/* Lunar Signs — celestial theme */
:root {
  --bg: #0a0a1f;
  --bg-2: #0e1230;
  --surface: #161a3a;
  --surface-2: #1f2350;
  --ink: #f4ecdc;
  --ink-dim: #b8b1c9;
  --muted: #807a92;
  --gold: #e8c275;
  --gold-2: #c89a3f;
  --jade: #6fc8a6;
  --jade-2: #3d9f7a;
  --crimson: #c9434b;
  --line: rgba(232, 194, 117, 0.16);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 80% 5%, rgba(232,194,117,0.08), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(111,200,166,0.06), transparent 50%),
    radial-gradient(circle at 50% -30%, #1d1846 0%, var(--bg) 55%) fixed,
    var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; text-decoration: underline; }
.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4, h5 {
  font-family: "Cinzel", "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2.4rem; }
h3 { font-size: 1.3rem; margin-top: 1.5rem; font-family: "Cormorant Garamond", serif; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.muted { color: var(--ink-dim); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,10,31,0.96) 0%, rgba(10,10,31,0.78) 100%);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.4rem; color: #fff; text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.brand.small { font-size: 1.05rem; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-2));
  color: var(--bg); font-size: 1.2rem;
  box-shadow: 0 0 24px rgba(232,194,117,0.45);
}
.celestial-mark {
  width: 72px; height: 72px;
  background:
    radial-gradient(circle at 30% 30%, #fff5d8, var(--gold) 50%, var(--gold-2) 100%);
  font-family: "Noto Serif TC", serif;
  font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(232,194,117,0.35), inset 0 -8px 16px rgba(0,0,0,0.25);
}
.brand-text { letter-spacing: 0.08em; }
.primary-nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem; letter-spacing: 0.06em;
}
.primary-nav a { color: var(--ink-dim); text-transform: uppercase; font-size: 0.8rem; font-weight: 500; }
.primary-nav a:hover { color: var(--gold); text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  margin: 32px 0 48px;
  padding: 56px 48px;
  background:
    radial-gradient(circle at 80% 20%, rgba(232,194,117,0.10), transparent 50%),
    linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1)),
    var(--bg-2);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lede { font-size: 1.25rem; max-width: 56ch; color: var(--ink); }
.hero .cta-row { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero with zodiac wheel */
.hero-celestial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  padding: 64px 56px 64px 56px;
}
.hero-celestial .hero-text { max-width: 52ch; }

.zodiac-wheel {
  position: relative;
  width: 380px; height: 380px;
  margin: 0 auto;
  display: grid; place-items: center;
}
.wheel-ring, .wheel-inner-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}
.wheel-ring {
  background:
    conic-gradient(from -90deg,
      rgba(232,194,117,0.18), rgba(111,200,166,0.10), rgba(232,194,117,0.18),
      rgba(111,200,166,0.10), rgba(232,194,117,0.18), rgba(111,200,166,0.10), rgba(232,194,117,0.18));
  box-shadow: inset 0 0 60px rgba(0,0,0,0.55), 0 0 80px rgba(232,194,117,0.12);
}
.wheel-inner-ring {
  inset: 60px;
  border: 1px dashed rgba(232,194,117,0.25);
  background: radial-gradient(circle, rgba(10,10,31,0.85), rgba(10,10,31,0.4));
}
.wheel-center {
  position: relative; z-index: 2;
  width: 90px; height: 90px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-2));
  color: var(--bg);
  font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(232,194,117,0.5), inset 0 -10px 20px rgba(0,0,0,0.3);
}
.wheel-slot {
  position: absolute;
  top: 50%; left: 50%;
  margin: -28px 0 0 -28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold);
  text-decoration: none;
  font-family: "Noto Serif TC", serif;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  z-index: 3;
}
.wheel-slot:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  text-decoration: none;
  z-index: 4;
}
.wheel-slot .wheel-glyph { font-size: 1.4rem; line-height: 1; }
.wheel-slot .wheel-name {
  position: absolute; bottom: -22px; font-size: 0.7rem;
  font-family: "Inter", sans-serif; letter-spacing: 0.06em;
  color: var(--ink-dim); white-space: nowrap; opacity: 0;
  transition: opacity .15s ease;
}
.wheel-slot:hover .wheel-name { opacity: 1; color: var(--gold); }

@media (max-width: 900px) {
  .hero-celestial { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .zodiac-wheel { width: 300px; height: 300px; }
  .wheel-slot { transform-origin: center; }
}

.btn {
  display: inline-block; padding: 12px 24px;
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(232,194,117,0.25);
}
.btn-primary:hover { transform: translateY(-1px); color: var(--bg); text-decoration: none; }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }

/* Sign grid */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.sign-card {
  display: block;
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.sign-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 24px rgba(232,194,117,0.18);
}
.sign-card .glyph {
  font-size: 2.6rem; color: var(--gold);
  font-family: "Noto Serif TC", "Cinzel", serif;
  line-height: 1;
}
.sign-card .name {
  margin-top: 10px;
  font-family: "Cinzel", serif;
  font-size: 1.1rem; color: #fff;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.sign-card .meta {
  margin-top: 6px; color: var(--ink-dim);
  font-size: 0.82rem; letter-spacing: 0.06em;
  font-family: "Inter", sans-serif;
}

/* Section */
.section { margin: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { margin: 0; }
.section-head a { font-family: "Inter", sans-serif; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  display: block;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.tile:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 18px rgba(232,194,117,0.12); }
.tile h3 { margin: 0 0 8px; color: #fff; }
.tile p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }

.pillar-tile.is-fixed { border-color: rgba(111,200,166,0.5); }
.pillar-tile.is-fixed h3::after {
  content: " ◆"; color: var(--jade); font-size: 0.7em;
}

.outlook-tile { position: relative; }
.outlook-tile.tier-auspicious { border-color: rgba(111,200,166,0.4); }
.outlook-tile.tier-demanding { border-color: rgba(201,67,75,0.4); }

/* Cycle cards */
.cycle-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.cycle-card {
  display: block;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s ease, transform .15s ease;
}
.cycle-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.cycle-num {
  font-family: "Inter", sans-serif; font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--gold); font-weight: 600;
}
.cycle-glyph {
  font-family: "Noto Serif TC", serif;
  font-size: 1.6rem; color: var(--gold); margin: 6px 0;
}
.cycle-name { font-family: "Cinzel", serif; font-size: 1rem; color: #fff; letter-spacing: 0.04em; }
.cycle-meta { font-family: "Inter", sans-serif; font-size: 0.78rem; color: var(--ink-dim); margin-top: 6px; }

/* Pill list */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--gold); border: 1px solid var(--line);
  font-family: "Inter", sans-serif; font-size: 0.88rem;
}
.pill-list li a:hover { background: var(--gold); color: var(--bg); text-decoration: none; }

.prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; }

/* Article body */
.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 2rem; font-family: "Cinzel", serif; font-size: 1.4rem; letter-spacing: 0.04em; }
.article-body h3 { margin-top: 1.6rem; }
.article-body p { color: var(--ink); }
.article-body strong { color: var(--gold); font-weight: 600; }

/* Stat grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px; margin: 24px 0 28px;
}
.stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat .label { font-family: "Inter", sans-serif; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.stat .value { font-family: "Cinzel", "Cormorant Garamond", serif; font-size: 1.1rem; color: #fff; margin-top: 6px; letter-spacing: 0.02em; }

/* Score badge */
.score-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif; font-weight: 600;
  background: var(--surface-2); padding: 6px 14px; border-radius: 999px;
  color: #fff; border: 1px solid var(--line);
}
.score-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.score-badge.tier-best .dot { background: var(--jade); }
.score-badge.tier-worst .dot { background: var(--crimson); }

/* Fortune categories */
.fortune-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 24px;
  font-family: "Inter", sans-serif; font-size: 0.88rem;
}
.fortune-tabs a {
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink-dim);
  border: 1px solid var(--line); letter-spacing: 0.05em;
}
.fortune-tabs a:hover { color: #fff; text-decoration: none; }
.fortune-tabs a.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* Layout helpers */
.grid-2 {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
}
.grid-2 .sidebar > * { margin-bottom: 18px; }
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 24px; }
}

/* Breadcrumbs */
.crumbs { font-family: "Inter", sans-serif; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.04em; }
.crumbs a { color: var(--ink-dim); }
.crumbs a:hover { color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer {
  margin-top: 80px; padding: 50px 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45));
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-family: "Inter", sans-serif; font-size: 0.9rem;
  margin-top: 40px;
}
.footer-grid h4 { font-family: "Inter", sans-serif; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 12px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink-dim); }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Inter", sans-serif; font-size: 0.78rem;
  color: var(--muted); text-align: center; letter-spacing: 0.04em;
}

/* Related reading */
.related-reading {
  background: linear-gradient(180deg, var(--surface), rgba(22,26,58,0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 30px;
}
.related-reading h4 {
  font-family: "Cinzel", serif; font-size: 0.95rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 6px;
}
.related-reading > p { font-size: 0.9rem; margin: 0 0 14px; }
.related-reading ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.related-reading li a {
  display: block; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink);
}
.related-reading li a:hover { border-color: var(--gold); text-decoration: none; }
.related-reading .rr-title { display: block; color: var(--gold); font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.92rem; }
.related-reading .rr-note { display: block; color: var(--ink-dim); font-size: 0.85rem; margin-top: 4px; }

/* Compatibility table */
.compat-table {
  width: 100%; border-collapse: collapse; font-family: "Inter", sans-serif; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.compat-table th, .compat-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compat-table th { background: var(--surface-2); color: var(--gold); font-weight: 600; letter-spacing: 0.06em; font-size: 0.78rem; text-transform: uppercase; }
.compat-table tr:last-child td { border-bottom: 0; }

/* Form */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.form-row select, .form-row input[type=number] {
  padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.form-row button {
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: var(--bg); font-weight: 600; font-family: "Inter", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}

/* Listing list */
.list-bare { list-style: none; padding: 0; margin: 0; }
.list-bare li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-bare li:last-child { border-bottom: 0; }
.list-bare li a { color: #fff; }
.list-bare li .meta { color: var(--ink-dim); font-size: 0.85rem; font-family: "Inter", sans-serif; }
