/* Soleilx light site — museum cream / ink */
:root {
  --cream: #F7F3EB;
  --espresso: #2C221E;
  --cream-legacy: #f3efe6;
  --cream-deep: #e8e2d4;
  --ink: #2C221E;
  --ink-soft: #4a453f;
  --ink-mute: #655d54;
  --line: #d4cdc0;
  --gold: #755b3f;
  --gold-soft: #a89070;
  --paper: #faf7f0;
  --ad-bg: #ebe6db;
  --max: 42rem;
  --wide: 56rem;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso, var(--ink));
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}
body {
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.logo span { color: var(--ink-mute); font-weight: 400; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }

.hero { text-align: left; padding-top: 1.5rem; }
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 36rem;
}
.pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1rem;
}
.pillars li {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.pillars strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.pillars span { color: var(--ink-soft); font-size: 1rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1rem;
}
button.btn { font: inherit; cursor: pointer; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.cta-note { color: var(--ink-mute); font-size: 0.95rem; margin: 0.35rem 0 0; }

.trust {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-mute);
}

h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}
h3 { font-size: 1.15rem; font-weight: 500; margin: 1.5rem 0 0.5rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.artwork-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 1.5rem 0;
}
.artwork-frame .placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ddd6c8, #c9c0ae 60%, #b7ad9a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 0.75rem;
}
.caption { margin: 1rem 0 0; color: var(--ink-soft); }

.quiz-q {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
}
.quiz-q fieldset { border: 0; padding: 0; margin: 0; }
.quiz-q legend {
  font-weight: 500;
  margin-bottom: 0.85rem;
  padding: 0;
}
.quiz-q label {
  display: block;
  padding: 0.45rem 0;
  cursor: pointer;
  color: var(--ink-soft);
}
.quiz-q input { margin-right: 0.55rem; accent-color: var(--gold); }

.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0;
}
.result-card .tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.35rem 0 1rem;
}
.share-box {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--cream-deep);
  border-left: 2px solid var(--gold);
  font-size: 1rem;
}

.ad-slot {
  margin-block: 2rem;
  margin: 2rem 0;
  padding: 0.75rem;
  background: var(--ad-bg);
  border: 1px dashed var(--line);
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.ad-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ad-placeholder {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1.5rem 1.25rem 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-align: center;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin: 1rem 0 2rem;
}
.steps li {
  counter-increment: step;
  padding: 0.65rem 0 0.65rem 2.2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--gold);
  width: 1.5rem;
}

@media (max-width: 540px) {
  .hero h1 { font-size: 1.7rem; }
  .cta-row { flex-direction: column; }
  button.btn { font: inherit; cursor: pointer; }
.btn { text-align: center; }
}

/* Pre-AdSense: hide placeholder furniture on public preview (remove class after approval) */
body.pre-adsense .ad-slot { display: none; }
.sample-banner {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 0.55rem 0.85rem;
  margin: 0 0 1rem;
}

.artwork-frame img, .result-art img, .hero-art img {
  display: block;
  width: 100%;
  height: auto;
  background: #ddd6c8;
}
.ephemeris {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.ephemeris .kicker { margin-bottom: 0.35rem; }
/* AdSense safe gap: keep interactive quiz choices ≥150px from ad slots */
.quiz-q { margin-bottom: 1.25rem; }
#quiz-form + *, .cta-row { margin-top: 1.5rem; }
aside.wrap[aria-label="Advertisement"],
.ad-slot { margin-top: 150px; }
body.pre-adsense .ad-slot { display: none; margin-top: 0; }
.spectrum-bar {
  display: grid;
  grid-template-columns: 5.5rem 1fr 5.5rem;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin: 0.35rem 0;
}
.spectrum-bar .track {
  height: 0.45rem;
  background: var(--cream-deep);
  border-radius: 999px;
  position: relative;
}
.spectrum-bar .fill {
  position: absolute;
  top: 0; bottom: 0;
  width: 0.55rem;
  margin-left: -0.275rem;
  background: var(--gold);
  border-radius: 999px;
}


/* === KIMI 3.1 PRO SCROLL-UNLOCK & AESTHETIC POLISH (2026-10-26) === */
/* Membership model: k3.1-pro @ https://api.kimi.com/coding/v1 — local Code Pro quota */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
html, body {
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}
body.is-modal-open,
body.drawer-open,
body.no-scroll {
  /* Modal may lock background briefly; never permanently kill vertical scroll after close */
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
}
main, .container, .wrap, .site-main, section {
  overflow-y: visible !important;
  max-height: none !important;
}
/* Dense astronomical / curatorial matrices — horizontal scroll only */
.s2b-scroll-x,
.table-scroll,
#s2bGrid9x9,
#s2bHousesBox,
#s2bMatrix4x3,
#s2bTransitBox,
.aspect-grid-wrap,
.houses-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .nav a,
.site-header nav a,
header.site-header a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-header .nav a:focus-visible,
.site-header nav a:focus-visible {
  outline: 2px solid #B8860B;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .site-header-inner,
  .masthead {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }
  .site-header .nav,
  .masthead .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 2px;
  }
  .site-header .nav a,
  .masthead .nav a {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.68rem;
  }
}
.ad-slot,
[data-ad-slot] {
  margin-top: 150px !important;
  margin-bottom: 150px !important;
}
@media print {
  .site-header { position: static; }
  .ad-slot, [data-ad-slot] { display: none !important; }
}


/* KIMI31_TYPO — membership model k3.1-pro (retry after k3.1-pro-highspeed 429) */
body { color: #1A1815; line-height: 1.65; }
h1, h2, h3 { line-height: 1.2; color: #1A1815; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
p, .prose, .body-copy { max-width: 70ch; color: #3A342B; }
.label, .meta, .microcopy, .eyebrow, small, figcaption, .caption {
  font-size: 0.8125rem; color: #4A453F; line-height: 1.45;
}
svg text.radar-label, svg[class*="radar"] text, #radarBox text {
  font-size: 11px; fill: #1A1815;
}
:focus-visible { outline: 2px solid #B8860B; outline-offset: 2px; }
a:not(.btn) { color: #3A342B; text-decoration-color: #B8860B; }
.chip, .muted { color: #4A453F; }

