/* Zodiac Routine — main stylesheet (light theme) */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7fa;
  --bg-tint: #f4f2fc;
  --surface: #ffffff;
  --text: #1c1b29;
  --muted: #5f6070;
  --border: #e7e6ee;
  --brand: #4b3bb5;
  --brand-strong: #362a8c;
  --accent: #a87414;
  --fire: #d24f30;
  --earth: #3f7d3b;
  --air: #2f78ad;
  --water: #4f54c0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 4px 18px rgba(20, 20, 40, 0.05);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.container.narrow, .narrow { max-width: 780px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7em 1.4em;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-strong); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--brand-strong); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.brand:hover { color: var(--text); }
.wordmark { letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--brand); background: var(--bg-tint); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; background: #fff; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(20, 20, 40, 0.06);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
}

/* Hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 36em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600;
  color: var(--accent); margin: 0 0 12px;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } }

.finder { margin-top: 28px; }
.finder-label { display: block; font-weight: 600; margin-bottom: 8px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 8px; }
.finder select {
  font: inherit; font-size: 0.95rem; padding: 0.6em 0.8em; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text); min-width: 0;
}

.sky-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
}
.sky-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--muted); margin: 0 0 12px; }
.sky-moon { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.moon-emoji { font-size: 2.6rem; line-height: 1; }
.sky-moon strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.sky-moon span { color: var(--muted); font-size: 0.9rem; }
.sky-tip { margin: 0 0 12px; }
.sky-season { color: var(--muted); margin: 0 0 18px; }

/* Page hero */
.page-hero { padding: 40px 0 36px; border-bottom: 1px solid var(--border); background: var(--bg); }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; margin: 0; }
.page-hero p { color: var(--muted); }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.byline { font-size: 0.92rem; margin: 14px 0 0; }

.sign-hero-inner { display: flex; align-items: center; gap: 20px; }
.sign-hero-symbol {
  flex: none; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.6rem;
  background: var(--bg-alt); border: 2px solid var(--el, var(--brand)); color: var(--el, var(--brand));
}
.sign-hero h1 { margin-bottom: 6px; }
.sign-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 0; }
.sign-facts div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sign-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.sign-facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 700px) {
  .sign-facts { grid-template-columns: repeat(2, 1fr); }
  .sign-hero-symbol { width: 64px; height: 64px; font-size: 2rem; }
}

.el-fire { --el: var(--fire); }
.el-earth { --el: var(--earth); }
.el-air { --el: var(--air); }
.el-water { --el: var(--water); }
.el-text-fire { color: var(--fire); }
.el-text-earth { color: var(--earth); }
.el-text-air { color: var(--air); }
.el-text-water { color: var(--water); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; gap: 16px; }
.more-link { font-weight: 600; text-decoration: none; }
.intro-text { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

/* Sign grid */
.sign-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1000px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .sign-grid { grid-template-columns: repeat(2, 1fr); } }
.sign-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 10px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); border-top: 3px solid var(--el);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sign-card:hover { transform: translateY(-3px); color: var(--text); box-shadow: 0 8px 24px rgba(20, 20, 40, 0.08); }
.sign-symbol { font-size: 2rem; line-height: 1.1; color: var(--el, var(--brand)); }
.sign-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.sign-dates { font-size: 0.8rem; color: var(--muted); }

.element-group { margin-bottom: 40px; }
.element-desc { color: var(--muted); max-width: 720px; }
.sign-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .sign-list { grid-template-columns: 1fr; } }
.sign-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--el);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.sign-row:hover { color: var(--text); border-color: var(--el); }
.sign-row-body { display: flex; flex-direction: column; gap: 2px; }
.sign-row-body strong { font-family: var(--font-head); font-size: 1.2rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Featured */
.featured { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 22px; padding: 40px; }
.featured h2 a { color: var(--text); text-decoration: none; }
.featured h2 a:hover { color: var(--brand); }
.featured p { color: var(--muted); max-width: 640px; }
@media (max-width: 600px) { .featured { padding: 26px; } }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.post-card h2, .post-card h3 { font-size: 1.2rem; }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.post-card .post-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.post-card .post-meta a { text-decoration: none; font-weight: 600; }
.post-card time { margin-top: auto; font-size: 0.85rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text); background: var(--surface); font-size: 0.9rem;
}
.chips a[aria-current='page'] { background: var(--brand); color: #fff; border-color: var(--brand); }


/* Content layout */
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 960px) { .layout-with-sidebar { grid-template-columns: 1fr; } }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 961px) { .sidebar .toc { position: sticky; top: 88px; } }
.side-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-box h2 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.side-box ol, .side-links { margin: 0; padding-left: 1.1em; font-size: 0.95rem; }
.side-links { list-style: none; padding: 0; }
.side-box li { margin: 6px 0; }
.side-box a { text-decoration: none; }

/* Prose (vertical margins only, so .container centering still applies) */
.prose { margin-top: 32px; margin-bottom: 32px; overflow-wrap: break-word; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: 0.5em 1.2em; border-left: 4px solid var(--brand);
  background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--muted);
}
.prose code { background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose li.task { list-style: none; margin-left: -1.4em; }
.prose li.task label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.prose .task-check { flex: none; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--brand); cursor: pointer; }
.prose li.task.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.prose li:has(> .task-check) { list-style: none; margin-left: -1.4em; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--border); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.note { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }

/* Today box & routine */
.today-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--brand);
}
.today-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.today-head h2 { margin: 0; font-size: 1.4rem; }
.today-head time { color: var(--muted); font-size: 0.9rem; }
.today-list { list-style: none; padding: 0; margin: 16px 0; }
.today-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.today-list li:last-child { border-bottom: 0; }
.today-tag {
  flex: none; width: 92px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand);
}
@media (max-width: 520px) { .today-list li { flex-direction: column; gap: 2px; } }
.affirmation { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; color: var(--brand-strong); margin: 8px 0 16px; }
.affirmation.small { font-size: 1rem; margin: 8px 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.trait-box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.trait-box h2 { font-size: 1.1rem; }
.trait-box ul { margin: 0; padding-left: 1.2em; }

.routine-library { margin: 40px 0; }
.library-group { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.library-group summary { cursor: pointer; padding: 14px 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.library-group summary span { color: var(--muted); font-size: 0.9rem; }
.library-group ul { margin: 0; padding: 0 18px 16px 38px; }
.library-group li { margin: 6px 0; }
.affirmation-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.affirmation-list li { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; font-style: italic; margin: 0; }
@media (max-width: 640px) { .affirmation-list { grid-template-columns: 1fr; } }

.faq { margin: 40px 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.prev-next { display: flex; justify-content: space-between; gap: 12px; margin: 32px 0; flex-wrap: wrap; }
.prev-next a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; background: var(--surface); }

/* Daily */
.daily-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .daily-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .daily-grid { grid-template-columns: 1fr; } }
.daily-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--el);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.daily-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.daily-card h2 { margin: 0; font-size: 1.3rem; }
.daily-card h2 a { color: var(--text); text-decoration: none; }
.daily-card p { font-size: 0.95rem; margin: 0 0 8px; }
.daily-card .more-link { margin-top: auto; font-size: 0.9rem; }

.timeline { list-style: none; padding: 0; margin: 40px 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li::before {
  content: ''; position: absolute; left: 4px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
}
.timeline h2 { font-size: 1.3rem; margin-bottom: 4px; }
.timeline h2 span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.timeline p { margin: 0; font-size: 1.05rem; }

.callout { background: var(--bg-alt); border-radius: 16px; padding: 22px 24px; margin: 18px 0; }
.callout h2 { font-size: 1.15rem; }
.callout p { margin: 0; }

.sign-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.sign-switcher a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text); background: var(--surface); font-size: 0.88rem;
}
.sign-switcher a[aria-current='page'] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Blog post */
.toc-inline { background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; margin-top: 32px; }
.toc-inline summary { cursor: pointer; font-weight: 600; }
.toc-inline ol { margin: 10px 0 0; }
.tags { margin: 24px 0; }
.tag { display: inline-block; font-size: 0.85rem; background: var(--bg-alt); color: var(--muted); padding: 3px 10px; border-radius: 999px; margin: 0 4px 6px 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.author-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.author-box h2 { font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--muted); }

/* Ads */
.ad-unit { margin: 32px auto; max-width: 1140px; padding: 0 16px; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Forms */
.contact-form { margin: 36px 0; display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.7em 0.9em; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.optional { font-weight: 400; color: var(--muted); }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 18px; margin-top: 28px; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-success { background: #e8f5e7; color: #1f5a1d; }
.alert-error { background: #fbe9e6; color: #8a2414; }

/* Footer */
.site-footer { background: var(--bg-alt); color: var(--muted); border-top: 1px solid var(--border); padding: 48px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-signs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.footer-title { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; padding-bottom: 18px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Zodiac glyphs: prefer symbol fonts that have text-style (non-emoji) glyphs */
.sign-symbol, .sign-hero-symbol, .sign-switcher span, .footer-signs a, .side-links a, .prev-next a, .sky-season span {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', 'DejaVu Sans', var(--font-body);
}
