/* Birth Spirit — the website chat (architecture 2.12). Colours, type and logo rules from the Birth Spirit brand
   kit v1.0.0 (products/veilwood-birth-spirit/brand/, dark theme; Veilwood palette v2.1.0): Deep Veil canvas,
   Mineral text, cyan kept sparse, no glow, no gold. Cinzel for short headings, Space Grotesk for text, Space Mono
   for labels; Noto carries Hebrew, Greek and the other alphabets. Phone first. Text pairs keep 4.5:1 or more. */

:root {
  --bs-canvas: #071819;   /* Deep Veil */
  --bs-panel: #10252b;    /* Veil Shadow */
  --bs-ink: #e2edee;      /* Mineral / Veil Light: 15.2:1 on canvas */
  --bs-muted: #99bdbd;    /* Veil Muted: 9.0:1 on canvas */
  --bs-accent: #06e4ea;   /* cyan — sparse: buttons, focus, the wheel's dots */
  --bs-blue: #2878a6;     /* the small blue leaf — graphics only */
  --bs-line: #284749;     /* decorative dividers */
  --bs-hover: #173137;    /* Veil Hover */
  --bs-active: #204349;   /* Veil Active */
  --radius: 0.75rem;
  --font-brand: "Cinzel", "Noto Sans", serif;
  --font-text: "Space Grotesk", "Noto Sans", "Noto Sans Hebrew", "Noto Naskh Arabic", "Noto Sans Armenian",
    "Noto Sans Georgian", "Noto Sans Coptic", "Noto Sans Glagolitic", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-label: "Space Mono", "Noto Sans", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--bs-ink);
  background: var(--bs-canvas);
  font-family: var(--font-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--bs-ink); text-decoration-color: var(--bs-accent); text-underline-offset: 0.2em; }

:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem; padding: 0.5rem 0.8rem;
  background: var(--bs-panel); color: var(--bs-ink); border-radius: 0.4rem; z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- frame */

.site { max-width: 46rem; margin: 0 auto; padding: 1rem 1rem 6rem; }

/* The lockup's canvas already carries the kit's clear space around the emblem. */
.brand { margin: 0.25rem 0 0.5rem; }
.brand img { display: block; width: min(100%, 22rem); height: auto; }

.pricing { color: var(--bs-muted); font-size: 0.9rem; margin: 0 0 1rem; }

/* ---- the notice before anything is typed */

.notice-card {
  background: var(--bs-panel); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.notice-card h2 { font-family: var(--font-brand); font-weight: 600; color: var(--bs-ink); margin: 0 0 0.6rem; font-size: 1.3rem; }
.notice-card p { margin: 0 0 0.75rem; }

/* ---- chat */

#messages { display: flex; flex-direction: column; gap: 0.25rem; }
.msg p { margin: 0.35rem 0; }
.msg.spirit p { max-width: 40rem; }
.msg.person { align-self: flex-end; max-width: 85%; }
.msg.person p { background: var(--bs-active); padding: 0.55rem 0.85rem; border-radius: var(--radius) var(--radius) 0.2rem var(--radius); }
.msg.notice p { color: var(--bs-muted); font-style: italic; font-size: 0.95rem; }
.msg h2 {
  font-family: var(--font-brand); font-weight: 600; color: var(--bs-ink); letter-spacing: 0.04em;
  font-size: 1.25rem; margin: 1.4rem 0 0.2rem; border-bottom: 1px solid var(--bs-line); padding-bottom: 0.2rem;
}

.writing { color: var(--bs-muted); margin: 0.75rem 0; }

.reminder { color: var(--bs-ink); border-left: 3px solid var(--bs-muted); padding: 0.3rem 0.7rem; margin: 0.75rem 0; }

/* ---- forms */

.boxes, .composer { background: var(--bs-panel); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 0.9rem; }
.boxes { margin: 1rem 0; }
.boxes .lead { color: var(--bs-muted); margin: 0 0 0.6rem; font-size: 0.95rem; }
.field { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 0.7rem; }
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 5rem; }
label, legend { color: var(--bs-muted); font-size: 0.9rem; }
/* Field edges use Veil Muted so the boundary of a control stays visible (the kit: Veil Line is decorative). */
input, select {
  font: inherit; color: var(--bs-ink); background: var(--bs-canvas); border: 1px solid var(--bs-muted);
  border-radius: 0.5rem; padding: 0.55rem 0.65rem; min-height: 2.75rem; width: 100%;
}
input:disabled { opacity: 0.6; }

.places { list-style: none; padding: 0; margin: 0 0 0.6rem; border: 1px solid var(--bs-line); border-radius: 0.5rem; }
.places li + li { border-top: 1px solid var(--bs-line); }
.places button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--bs-ink); font: inherit;
  padding: 0.6rem 0.7rem; min-height: 2.75rem; cursor: pointer;
}
.places button:hover { background: var(--bs-hover); }
.chosen { color: var(--bs-ink); margin: 0 0 0.6rem; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 2.75rem; padding: 0.55rem 1.1rem;
  border-radius: 999px; border: 1px solid var(--bs-accent); color: var(--bs-canvas); background: var(--bs-accent);
}
.btn:disabled { opacity: 0.55; cursor: default; }

.composer { position: sticky; bottom: 0.75rem; display: flex; gap: 0.5rem; margin-top: 1rem; }
.composer input { flex: 1; }

/* ---- download */

.download { margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.download .note { color: var(--bs-muted); font-size: 0.9rem; margin: 0; flex: 1 1 14rem; }

/* ---- chart wheel */

.wheel { margin: 1.25rem 0; }
.wheel svg { display: block; width: 100%; max-width: 32rem; height: auto; margin: 0 auto; }
.wheel figcaption { color: var(--bs-muted); font-size: 0.9rem; text-align: center; }
.wheel details { margin-top: 0.5rem; color: var(--bs-muted); font-size: 0.95rem; }

/* wheel drawing colours (the downloaded page sets its own light-theme colours) */
.w-ring { fill: none; stroke: var(--bs-muted); stroke-width: 1.2; }
.w-sign-line { stroke: var(--bs-muted); stroke-width: 0.8; }
.w-sign { fill: var(--bs-ink); font-family: var(--font-brand); font-size: 11px; }
.w-house-line { stroke: var(--bs-muted); stroke-width: 0.8; stroke-dasharray: 3 3; }
.w-house { fill: var(--bs-muted); font-family: var(--font-label); font-size: 9px; }
.w-angle { stroke: var(--bs-ink); stroke-width: 1.6; }
.w-angle-label { fill: var(--bs-ink); font-family: var(--font-label); font-size: 10px; }
.w-planet { fill: var(--bs-ink); font-family: var(--font-label); font-size: 10.5px; }
.w-dot { fill: var(--bs-accent); }
.w-aspect { stroke-width: 1.3; }
.w-aspect.harmonious { stroke: var(--bs-accent); }
.w-aspect.tense { stroke: var(--bs-ink); stroke-dasharray: 5 3; }
.w-aspect.conjunction { stroke: var(--bs-muted); }

@media (min-width: 48rem) {
  .site { padding-top: 2rem; }
}

/* ---- chart settings */

.settings h2 { font-family: var(--font-brand); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.4rem; }
.settings-intro { margin: 0 0 1rem; }
.initial-options { min-width: 0; border: 0; border-top: 1px solid var(--bs-line); padding: 1rem 0 0; margin: 1rem 0; }
.initial-options legend { color: var(--bs-ink); font-family: var(--font-brand); font-size: 1.15rem; font-weight: 600; padding: 0 0.4rem 0 0; }
.settings .field-row .field { flex-basis: 17rem; min-width: 0; }
.setting-hint { color: var(--bs-muted); margin: 0.2rem 0; font-size: 1rem; }
.setting-help { font-size: 1rem; margin-top: 0.2rem; }
.setting-help summary { color: var(--bs-ink); cursor: pointer; min-height: 2.75rem; padding: 0.55rem 0; }
.setting-help[open] summary { border-bottom: 1px solid var(--bs-line); }
.setting-help-body { padding: 0.3rem 0 0.6rem; overflow-wrap: anywhere; }
.setting-help-body p { margin: 0.55rem 0; }
.setting-help-body dl { margin: 0.55rem 0; }
.setting-help-body dt { font-weight: 600; margin-top: 0.8rem; }
.setting-help-body dd { margin: 0.2rem 0 0; color: var(--bs-muted); }

/* Where the meanings come from: a note under the reading, apart from it, small and quiet (Veil Muted keeps 9:1
   contrast on the canvas). */
.tradition-note { margin: 1.5rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--bs-muted);
                  color: var(--bs-muted); font-size: 0.85rem; }
.tradition-note p { margin: 0; }
.tradition-note p + p { margin-top: 0.5rem; }

/* ---- footer and the privacy statement page */

.site-footer { margin-top: 2rem; padding-top: 0.75rem; border-top: 1px solid var(--bs-line); font-size: 0.9rem; }

.statement h1, .statement h2 { font-family: var(--font-brand); font-weight: 600; color: var(--bs-ink); }
.statement h1 { font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }
.statement h2 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; border-bottom: 1px solid var(--bs-line); padding-bottom: 0.2rem; }
.statement p, .statement li { max-width: 40rem; }
.statement ul { padding-left: 1.2rem; }
.statement li { margin: 0.3rem 0; }
.statement code { font-family: var(--font-label); font-size: 0.88em; background: var(--bs-panel); padding: 0.05rem 0.3rem; border-radius: 0.3rem; overflow-wrap: anywhere; }
