/* The public site pages (engine/site/). Mobile first; uses the brand theme's tokens (brands/<id>/theme/theme.css) and
   falls back to a plain dark look for brands without a theme. No scripts, so everything here works without JS. */

:root {
  --site-bg: var(--bg, #0b0f1a);
  --site-surface: var(--surface, #141a2b);
  --site-text: var(--text, #eef1f7);
  --site-muted: var(--text-muted, #a9b3c7);
  --site-accent: var(--accent, #f2d6a2);
  --site-line: var(--color-glass-strong, rgba(238, 241, 247, 0.14));
  --site-font: var(--font-body, "Jost", system-ui, -apple-system, "Segoe UI", sans-serif);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--site-bg); color: var(--site-text); font: 17px/1.6 var(--site-font); }
a { color: var(--site-accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; }

.charge-bar { display: block; padding: 8px 16px; text-align: center; font-size: 14px; color: var(--site-muted); background: var(--site-surface); text-decoration: none; }
.charge-bar:hover { color: var(--site-text); }

.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; max-width: 1040px; margin: 0 auto; }
.site-header .brand { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; color: var(--site-text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 16px; order: 3; width: 100%; font-size: 15px; }
.site-header nav a { color: var(--site-muted); text-decoration: none; }
.site-header nav a:hover { color: var(--site-text); }

.button { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--site-accent); color: #10131c; font-weight: 600; text-decoration: none; }
.button.small { padding: 8px 16px; font-size: 15px; }
/* While the quizzes are closed (engine/funnel/quizzes.ts): the button's place, plainly not a button. */
.button.soon { background: transparent; color: var(--site-muted); border: 1px solid var(--site-line); font-weight: 500; }

main.site { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
main.site section { margin-top: 48px; }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; font-weight: 600; }
h2 { font-size: 24px; line-height: 1.3; margin: 32px 0 12px; font-weight: 600; }
.lead { font-size: 19px; color: var(--site-muted); }
.note, .crumb { font-size: 14px; color: var(--site-muted); }
.hero { text-align: center; padding-top: 16px; }
.hero .button { margin-top: 12px; }

.tiles, .cards, .sign-grid, .articles, .prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tiles, .cards { grid-template-columns: 1fr; }
.sign-grid { grid-template-columns: repeat(2, 1fr); }
.tiles a, .cards a, .sign-grid a, .tiles .soon, .cards .soon { display: block; height: 100%; padding: 16px; border: 1px solid var(--site-line); border-radius: 16px; background: var(--site-surface); color: var(--site-text); text-decoration: none; }
.tiles a:hover, .cards a:hover, .sign-grid a:hover { border-color: var(--site-accent); }
.tiles strong, .cards strong, .sign-grid strong { display: block; margin-bottom: 4px; }
.tiles span, .cards span, .sign-grid span { color: var(--site-muted); font-size: 15px; }
.tiles .soon em, .cards .soon em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--site-muted); }
.articles a { display: block; padding: 12px 0; border-bottom: 1px solid var(--site-line); text-decoration: none; }
.prices li { padding: 12px 16px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); }

.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }
.two { display: grid; gap: 8px 24px; }
.refund { padding: 12px 16px; border-left: 3px solid var(--site-accent); background: var(--site-surface); }

.faq details { border-bottom: 1px solid var(--site-line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--site-muted); }

.facts { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--site-line); vertical-align: top; }
.facts th { width: 40%; color: var(--site-muted); font-weight: 400; }
.cta { margin-top: 40px; padding: 20px; border-radius: 16px; background: var(--site-surface); text-align: center; }

.status { padding: 12px 16px; border-left: 3px solid var(--site-accent); background: var(--site-surface); }
.choices { display: grid; gap: 10px; margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--site-surface); }
.choices input { width: 100%; padding: 12px 14px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-bg); color: var(--site-text); font: inherit; }
.choices input:focus-visible, .choices button:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.choices button { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* The search pages (specs/engine.md §27): the Moon today, the Moon calendar, the horoscopes. Every box has its size
   before the one script runs, so nothing moves when the visitor's own clock is filled in. */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.disc { display: block; flex: none; }
.disc-dark { fill: var(--site-surface); stroke: var(--site-line); stroke-width: 2; }
.disc-lit { fill: #efe6c8; }
.moon-now { display: flex; align-items: center; gap: 20px; margin: 8px 0 16px; }
.moon-now p { margin: 4px 0; }
.moon-phase { font-size: 28px; font-weight: 600; line-height: 1.2; }
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phase-list li { padding: 12px 16px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); }
.phase-list strong, .phase-list time, .phase-list .local { display: block; }
.phase-list .local { min-height: 1.6em; font-size: 15px; color: var(--site-muted); }
.moon-grid { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 24px 0 8px; }
.moon-grid th { font-size: 13px; font-weight: 500; color: var(--site-muted); padding: 6px 0; }
.moon-grid td { text-align: center; vertical-align: top; padding: 6px 1px 8px; border-top: 1px solid var(--site-line); }
.moon-grid td .disc { margin: 4px auto; }
.moon-grid .d { display: block; font-size: 14px; }
.moon-grid .p { display: block; font-size: 12px; color: var(--site-muted); }
.moon-grid .e { display: block; font-size: 11px; font-weight: 600; color: var(--site-accent); }
.moon-grid td.event { background: var(--site-surface); }
.moon-grid td.today { outline: 2px solid var(--site-accent); outline-offset: -2px; }
.months, .sign-links, .more-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.more-links { display: grid; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 16px 0; }
.basis, .moon-line { font-size: 15px; color: var(--site-muted); }
.basis { padding: 10px 14px; border-left: 3px solid var(--site-accent); background: var(--site-surface); }
.reading h2 { margin-top: 28px; }
.reading details { margin-top: -4px; }
.reading summary { cursor: pointer; font-size: 15px; color: var(--site-muted); }
.reading details ul { font-size: 15px; color: var(--site-muted); }
.cards .dates { display: block; font-size: 13px; margin-bottom: 6px; }
.pairs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pairs li { padding: 10px 14px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); }
.pairs a, .pairs span { display: block; }
.pairs span { font-size: 14px; color: var(--site-muted); }
.facts.pair th, .facts.pair td { width: auto; }
.facts.pair thead th { color: var(--site-text); font-weight: 600; }

.site-footer { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--site-line); font-size: 14px; color: var(--site-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.site-footer a { color: var(--site-muted); }

@media (min-width: 720px) {
  .site-header nav { order: 0; width: auto; }
  .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
  .sign-grid { grid-template-columns: repeat(4, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 44px; }
}
