/* Slow Burn Stars: Venus and Mars page. Brand: Bodoni Moda + Caveat; tomato, cobalt, emerald,
   mustard, cream. Phone first. Fonts are served from this site (CSP font-src 'self'). */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/bodoni-moda-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/bodoni-moda-latin-opsz-italic.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 400 700; font-display: swap; src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2'); }

:root {
  --tomato: #e5432f; --cobalt: #1f45d6; --emerald: #0b8a57; --mustard: #f3b415; --cream: #f7eedb;
  --ink: #141210; --ink-soft: #4a423b; --paper: #fffaf0; --line: rgba(20, 18, 16, 0.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Bodoni Moda', Didot, 'Times New Roman', serif; font-size: 1.0625rem; line-height: 1.5;
  font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.hand { font-family: 'Caveat', cursive; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Hero ---- */
.hero { background: var(--cobalt); color: var(--cream); padding: 1.25rem 1.25rem 2.25rem; text-align: center; }
.brand { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.pair-art { position: relative; width: 15rem; height: 9.5rem; margin: 1.25rem auto 0.5rem; }
.pair-art .g { position: absolute; top: 0.5rem; width: 6.5rem; height: 6.5rem; }
.pair-art .g svg { display: block; width: 100%; height: 100%; }
.g-venus { left: 0.5rem; color: var(--tomato); transform: rotate(-8deg); }
.g-mars { right: 0.5rem; color: var(--mustard); transform: rotate(8deg); }
.pair-art .tag { position: absolute; bottom: 0; font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.375rem; line-height: 1; }
.tag-venus { left: 0.75rem; }
.tag-mars { right: 1rem; }
.hero h1 { margin: 0.25rem auto 0.75rem; max-width: 20rem; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; font-weight: 700; }
.intro { margin: 0 auto; max-width: 21rem; font-size: 1.0625rem; }

/* ---- Main ---- */
main { max-width: 34rem; margin: 0 auto; padding: 0 1rem 1rem; }
.needs-js { background: var(--paper); border: 2px solid var(--ink); padding: 1rem; margin: 1.5rem 0 0; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem 1.1rem 1rem; margin: -1.25rem 0 0; position: relative; box-shadow: 5px 5px 0 var(--ink); }
.card.them { margin-top: 2rem; }
.card h2.hand { margin: 0 0 0.75rem; font-size: 1.75rem; line-height: 1; color: var(--tomato); }

.person fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.person legend, .person .time > label, .person .city > label { display: block; font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.35rem; padding: 0; }
.date-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 0.5rem; }
.date-row label { display: block; margin: 0; }
.person input[type="text"], .person input[type="time"], .person select {
  width: 100%; min-height: 48px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; padding: 0.55rem 0.7rem;
  -webkit-appearance: none; appearance: none;
}
.person select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.6rem; }
.person input::placeholder { color: #7a7067; }
.person input:disabled { opacity: 0.4; }
.person .time { margin: 0 0 1.1rem; }
.person .time input[type="time"] { max-width: 12rem; }
.person .check { display: flex; gap: 0.6rem; align-items: center; margin: 0.5rem 0 0; min-height: 44px; }
.person .check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--cobalt); }
.person .check label { margin: 0; }
.person .city { position: relative; margin: 0 0 1.25rem; }
.person .hint { font-size: 0.875rem; color: var(--ink-soft); margin: 0.45rem 0 0; }
.cities { list-style: none; margin: 0.25rem 0 0; padding: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; }
.cities li { border-top: 1px solid var(--line); }
.cities li:first-child { border-top: 0; }
.cities button { display: block; width: 100%; min-height: 52px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 0.5rem 0.75rem; cursor: pointer; }
.cities button:hover, .cities button:focus-visible { background: #fbeccb; outline: none; }
.cities .place { display: block; font-size: 1.0625rem; font-weight: 600; }
.cities .where { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.cities .none { padding: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }

button.go {
  display: block; width: 100%; min-height: 54px; font: inherit; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em;
  color: var(--cream); background: var(--cobalt); border: 2px solid var(--ink); border-radius: 3px; padding: 0.7rem 1rem; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
button.go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
button[disabled] { opacity: 0.6; cursor: default; }
.person .error { min-height: 1.4rem; margin: 0.6rem 0 0; font-weight: 700; color: #b3261e; }
.privacy-line { font-size: 0.875rem; color: var(--ink-soft); margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--line); }

/* ---- Result ---- */
.result { margin-top: 2.25rem; }
.result:focus { outline: none; }
.result > h2 { font-size: 2rem; line-height: 1; margin: 0 0 1rem; font-weight: 800; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pair.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; }
.who { font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.6rem; line-height: 1; margin: 0 0 0.4rem; color: var(--tomato); }
.signs { margin: 0; }
.signs .row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.8rem; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 0.7rem 0.8rem; margin: 0 0 0.6rem; }
.signs dt { grid-row: span 3; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; align-self: start; }
.signs .chip { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 2px solid var(--ink); }
.signs .chip .glyph { width: 1.9rem; height: 1.9rem; }
.signs dt .label { font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.05rem; line-height: 1; text-align: center; white-space: nowrap; }
.signs [data-body="venus"] .chip { background: var(--tomato); color: var(--cream); }
.signs [data-body="mars"] .chip { background: var(--cobalt); color: var(--cream); }
.signs [data-body="sun"] .chip { background: var(--mustard); color: var(--ink); }
.signs [data-body="moon"] .chip { background: var(--emerald); color: var(--cream); }
.signs [data-body="venus"], .signs [data-body="mars"] { box-shadow: 4px 4px 0 var(--ink); }
.signs dd { margin: 0; }
.signs .planet { font-size: 1.3rem; font-weight: 800; line-height: 1.15; }
.signs .sign { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.signs .sign .glyph { width: 1.25rem; height: 1.25rem; flex: none; }
.signs .gloss, .signs .change { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.4; margin-top: 0.2rem; }
.pair.two .gloss { display: none; }
.pair.two .signs .row { grid-template-columns: minmax(0, 1fr); padding: 0.6rem 0.5rem; text-align: center; row-gap: 0.3rem; }
.pair.two .signs dt { grid-row: auto; }
.pair.two .signs .chip { width: 2.6rem; height: 2.6rem; }
.pair.two .signs .chip .glyph { width: 1.5rem; height: 1.5rem; }
.pair.two .signs .planet { font-size: 1.05rem; }
.pair.two .signs .sign { justify-content: center; }
.pair.two .signs .change { font-size: 0.8125rem; text-align: left; }
.moon-note { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.5rem; }
button.link { font: inherit; font-size: 1.0625rem; font-weight: 700; color: var(--cobalt); background: none; border: 0; padding: 0.5rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.glyph { display: block; }

/* ---- Footer ---- */
footer { max-width: 34rem; margin: 2.5rem auto 0; padding: 1.5rem 1rem 2.5rem; text-align: center; border-top: 2px solid var(--ink); font-size: 0.9375rem; }
footer p { margin: 0 0 0.6rem; }
.sign-off { font-size: 1.9rem; line-height: 1; color: var(--tomato); }
.credits { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.45; margin-top: 1rem; }

/* ---- Plain pages (privacy, 404) ---- */
.plain main { padding-top: 1.5rem; padding-bottom: 1rem; }
.plain h1 { font-size: 2.1rem; line-height: 1.05; margin: 0 0 1rem; }
.plain h2 { font-size: 1.25rem; margin: 1.75rem 0 0.4rem; }
.plain p, .plain li { color: var(--ink); }
.plain .back { display: inline-block; margin: 0 0 1rem; font-weight: 700; color: var(--cobalt); }
.plain .hero { padding-bottom: 1.25rem; }

@media (min-width: 640px) {
  .hero { padding-bottom: 3rem; }
  .hero h1 { font-size: 3.4rem; max-width: 28rem; }
  .card { padding: 1.5rem 1.5rem 1.25rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.2rem; }
  .pair.two .signs .planet { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Bodoni's hairlines almost vanish on phones, so the strokes are thickened slightly, as in the posts
   (code/reel.py: -webkit-text-stroke on headlines). Body a touch heavier; headings outlined more. */
body { font-weight: 500; -webkit-text-stroke: 0.35px currentColor; }
h1, h2, .planet, button.go { -webkit-text-stroke: 0.5px currentColor; }
.hero h1 { -webkit-text-stroke: 0.7px currentColor; }
.hero h1 em, .brand { -webkit-text-stroke: 0.6px currentColor; }
.person legend, .person label, .cities .place, button.link { -webkit-text-stroke: 0.35px currentColor; }
.hand, .tag, .who, .signs dt .label, .sign-off { -webkit-text-stroke: 0; }
