:root {
  color-scheme: light;
  --ink: #122019;
  --paper: #f1ede2;
  --paper-deep: #e6dece;
  --night: #08130f;
  --night-soft: #10221a;
  --sage: #9eb59f;
  --sage-deep: #5e7868;
  --gold: #c5a66a;
  --gold-pale: #e7d5a7;
  --accent-color: #9eb59f;
  --accent-deep: #5e7868;
  --accent-pale: #e7d5a7;
  --line: rgba(18, 32, 25, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 32px 22px 48px;
  overflow: hidden;
  isolation: isolate;
  color: #f6f2e8;
  background:
    radial-gradient(circle at 78% 26%, color-mix(in srgb, var(--accent-color) 30%, transparent), transparent 26rem),
    radial-gradient(circle at 10% 88%, color-mix(in srgb, var(--accent-pale) 16%, transparent), transparent 24rem),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent-deep) 8%, #050807) 0%,
      color-mix(in srgb, var(--accent-deep) 24%, #07100d) 58%,
      var(--night-soft) 100%
    );
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.sky span {
  position: absolute;
  display: block;
}

.star {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-pale);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--accent-pale) 44%, transparent);
  animation: breathe 4s ease-in-out infinite alternate;
}

.star-a { top: 12%; left: 11%; }
.star-b { top: 29%; right: 13%; animation-delay: 1.2s; }
.star-c { top: 62%; left: 6%; animation-delay: 2.1s; }
.star-d { right: 9%; bottom: 14%; animation-delay: 0.5s; }

.orbit {
  width: 280px;
  height: 280px;
  border: 1px solid color-mix(in srgb, var(--accent-pale) 15%, transparent);
  border-radius: 50%;
}

.orbit-a { top: -170px; right: -100px; }
.orbit-b { bottom: -220px; left: -140px; width: 370px; height: 370px; }

.eyebrow,
.kicker,
.topic-label {
  margin: 0 0 14px;
  color: var(--gold-pale);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.dark,
.topic-label {
  color: var(--sage-deep);
}

.eyebrow.light {
  color: var(--gold-pale);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 17vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.sign-period {
  margin: 16px 0 0;
  color: rgba(246, 242, 232, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: rgba(246, 242, 232, 0.78);
  font-family: var(--serif);
  font-style: italic;
}

.date-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.zodiac-art {
  position: relative;
  display: grid;
  width: min(90vw, 430px);
  aspect-ratio: 1;
  margin: 30px auto 12px;
  place-items: center;
}

.zodiac-art svg,
.halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.halo {
  inset: 10%;
  width: 80%;
  height: 80%;
  border: 1px solid color-mix(in srgb, var(--accent-pale) 20%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--accent-color) 10%, transparent), 0 0 70px color-mix(in srgb, var(--accent-color) 8%, transparent);
}

.celestial-ring {
  fill: color-mix(in srgb, var(--accent-color) 4%, transparent);
  stroke: color-mix(in srgb, var(--accent-color) 17%, transparent);
  stroke-width: 1;
}

.constellation {
  fill: none;
  stroke: color-mix(in srgb, var(--accent-pale) 58%, transparent);
  stroke-width: 1;
}

.constellation-stars circle {
  fill: var(--accent-pale);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent-pale) 84%, transparent));
}

.zodiac-glyph {
  z-index: 1;
  color: #f2e9d2;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", var(--serif);
  font-size: 7.5rem;
  text-shadow: 0 0 36px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.element-label {
  position: absolute;
  bottom: 6%;
  color: rgba(246, 242, 232, 0.55);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-reading {
  position: relative;
  max-width: 590px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--accent-pale) 24%, transparent);
}

.hero-reading h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-reading > p:not(.kicker) {
  margin: 22px 0 0;
  color: rgba(246, 242, 232, 0.72);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  gap: 12px;
  margin-top: 28px;
  color: var(--gold-pale);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.reading,
.sky-explanation {
  padding: 76px 22px;
}

.section-heading {
  max-width: 630px;
}

.section-heading h2,
.sky-explanation h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 10vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: rgba(18, 32, 25, 0.62);
  line-height: 1.65;
}

.topic-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-tab {
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: rgba(18, 32, 25, 0.6);
  cursor: pointer;
  font: 500 0.73rem var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.topic-tab span {
  margin-right: 7px;
  color: var(--sage-deep);
  font-size: 1rem;
}

.topic-tab.active,
.topic-tab:hover {
  background: color-mix(in srgb, var(--accent-color) 14%, transparent);
  color: var(--ink);
}

.topic-tab:focus-visible,
.read-more:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 4px;
}

.topic-panel {
  display: grid;
  gap: 24px;
  min-height: 330px;
  padding: 42px 0 16px;
}

.topic-number {
  color: rgba(94, 120, 104, 0.38);
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 1;
}

.topic-panel h3 {
  max-width: 20ch;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.topic-panel p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(18, 32, 25, 0.72);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}

.guidance {
  display: grid;
  gap: 50px;
  padding: 70px 22px;
  color: #f5f0e4;
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--accent-color) 19%, transparent), transparent 26rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-pale) 9%, transparent), transparent 40%),
    var(--night-soft);
}

.guidance-main h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 10vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.guidance-main > p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(245, 240, 228, 0.7);
  line-height: 1.7;
}

blockquote {
  margin: 38px 0 0;
  padding: 22px 0 0 22px;
  border-top: 1px solid color-mix(in srgb, var(--accent-pale) 26%, transparent);
  border-left: 2px solid var(--gold);
  color: var(--gold-pale);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
}

.daily-symbols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--accent-pale) 21%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--accent-pale) 21%, transparent);
}

.daily-symbols div {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid color-mix(in srgb, var(--accent-pale) 21%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-pale) 21%, transparent);
}

.daily-symbols span,
.daily-symbols strong {
  display: block;
}

.daily-symbols span {
  margin-bottom: 13px;
  color: rgba(245, 240, 228, 0.46);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.daily-symbols strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.sky-explanation {
  display: grid;
  gap: 36px;
  background: var(--paper-deep);
}

details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 25px 38px 25px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 21px;
  right: 2px;
  content: "+";
  color: var(--sage-deep);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

.sky-details {
  padding: 4px 0 28px;
  color: rgba(18, 32, 25, 0.7);
  line-height: 1.7;
}

.sky-details ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.sky-details li {
  padding-left: 18px;
  border-left: 2px solid rgba(94, 120, 104, 0.45);
}

.method-note {
  color: rgba(18, 32, 25, 0.52);
  font-size: 0.78rem;
}

footer {
  display: grid;
  gap: 18px;
  padding: 34px 22px;
  color: rgba(245, 240, 228, 0.48);
  background: #060d0a;
  font-size: 0.67rem;
  line-height: 1.6;
}

.footer-credit {
  color: rgba(245, 240, 228, 0.58);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: rgba(245, 240, 228, 0.84);
  text-underline-offset: 3px;
}

footer p {
  margin: 0;
}

@keyframes breathe {
  to { opacity: 0.35; transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star { animation: none; }
}

@media (min-width: 760px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.2fr);
    grid-template-rows: auto 1fr;
    gap: 30px 44px;
    min-height: 820px;
    padding: 58px clamp(42px, 7vw, 110px) 64px;
  }

  .hero-copy { align-self: start; }
  .hero-copy h1 { font-size: clamp(4.5rem, 8.6vw, 8.2rem); }

  .zodiac-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: min(47vw, 620px);
    margin: 0 auto;
  }

  .hero-reading {
    align-self: end;
    margin: 0;
  }

  .reading,
  .sky-explanation {
    padding: 110px clamp(42px, 8vw, 130px);
  }

  .topic-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .topic-panel {
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: start;
    min-height: 360px;
    padding-top: 58px;
  }

  .guidance {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: end;
    gap: 80px;
    padding: 110px clamp(42px, 8vw, 130px);
  }

  .sky-explanation {
    grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 1.2fr);
    gap: 80px;
  }

  footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 34px clamp(42px, 8vw, 130px);
  }
}

@media (min-width: 1180px) {
  .hero { min-height: 100vh; }
  .reading, .guidance, .sky-explanation { padding-left: max(calc((100vw - 1180px) / 2), 7vw); padding-right: max(calc((100vw - 1180px) / 2), 7vw); }
}
