/*
 * The night sky, asked for by the author on 2 December 2026: deep indigo
 * with stars and soft nebulae, plates of smoked glass, warm light words and
 * a gold accent. The logo, the lettering and the type are those of the
 * previous site: Grato Grotesk at one weight, tightened as it grows. Colour
 * comes with the author's art and says two things only: the element of a
 * sign and which body it is; on the dark it is a lighter tone of the same.
 */

@font-face {
  font-family: "Grato Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/grato-grotesk-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --paper: #0d0b1f;
  --plate: rgb(255 255 255 / 4.5%);
  --edge: rgb(255 255 255 / 9%);
  --ink: #f1e9dc;
  --muted: #a49db9;
  --hair: rgb(255 255 255 / 9%);
  --gold: #e8cf9a;
  --on-gold: #1a1430;
  /* The elements and the bodies, in the colours of the author's icons. */
  --fire: #e25822;
  --earth: #2e7d5b;
  --air: #9b5fc0;
  --water: #2f6cb5;
  --sun: #f57f1f;
  --moon: #868686;
  --mercury: #907512;
  --venus: #ea5da9;
  --mars: #a71714;
  --jupiter: #d48051;
  --saturn: #8555ab;
  --uranus: #29b1c2;
  --neptune: #049ee2;
  --pluto: #742500;
  --earth-planet: #72a118;
  /* The five elements of the Chinese year (the author, 4 December 2026:
     «тоже должны по стихиям цвета быть»): wood green and earth ochre, as
     the previous site gave them; metal white, its colour in the tradition
     (its grey there read as no colour on the night); fire and water as the
     signs' own. */
  --phase-wood: #44691f;
  --phase-fire: var(--fire);
  --phase-earth: #7d623b;
  --phase-metal: #c9d0dc;
  --phase-water: var(--water);
  --tone: var(--muted);
  --tone-ink: var(--muted);
  /* A tooltip: a lighter night under warm white words. */
  --tip: #2a2350;
  --on-tip: #f6efe4;

  --font-sans: "Grato Grotesk", Arial, sans-serif;

  --radius: 16px;
  --gap: 12px;
  /* The site stretches with the window up to 1440 wide, then stands; it
     goes no narrower than a phone of 360. */
  --column: 1440px;
  --gutter: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
.sky-top {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 1180px;
  overflow: hidden;
  pointer-events: none;
  background:
    url("/art/sky/stars.svg") 0 0 / 720px 720px,
    url("/art/sky/stars-far.svg") 0 0 / 460px 460px,
    radial-gradient(
      760px 460px at 14% 160px,
      rgb(122 86 255 / 34%),
      transparent 70%
    ),
    radial-gradient(
      640px 420px at 88% 80px,
      rgb(46 140 220 / 22%),
      transparent 70%
    ),
    radial-gradient(
      900px 460px at 50% 640px,
      rgb(205 92 160 / 14%),
      transparent 70%
    ),
    linear-gradient(180deg, #1d1648 0%, #16113a 40%, var(--paper) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
/* The astrolabe over the top of the page, turning slowly. */
.sky-top::before {
  content: "";
  position: absolute;
  top: -640px;
  left: 50%;
  width: 1440px;
  height: 1440px;
  margin-left: -720px;
  background: url("/art/sky/astrolabe-rings.svg") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .sky-top::before {
    animation: sky-turn 720s linear infinite;
  }
}
@keyframes sky-turn {
  to {
    rotate: 1turn;
  }
}
/* The page is one tone of the night; the sky with its astrolabe, nebulae
   and stars stands at the top and fades into it. */
body {
  position: relative;
  min-width: 360px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
[data-el="fire"] {
  --tone: var(--fire);
}
[data-el="earth"] {
  --tone: var(--earth);
}
[data-el="air"] {
  --tone: var(--air);
}
[data-el="water"] {
  --tone: var(--water);
}
[data-body="sun"] {
  --tone: var(--sun);
}
[data-body="moon"] {
  --tone: var(--moon);
}
[data-body="mercury"] {
  --tone: var(--mercury);
}
[data-body="venus"] {
  --tone: var(--venus);
}
[data-body="mars"] {
  --tone: var(--mars);
}
[data-body="jupiter"] {
  --tone: var(--jupiter);
}
[data-body="saturn"] {
  --tone: var(--saturn);
}
[data-body="uranus"] {
  --tone: var(--uranus);
}
[data-body="neptune"] {
  --tone: var(--neptune);
}
[data-body="pluto"] {
  --tone: var(--pluto);
}
[data-body="earth"] {
  --tone: var(--earth-planet);
}
[data-phase="wood"] {
  --tone: var(--phase-wood);
}
[data-phase="fire"] {
  --tone: var(--phase-fire);
}
[data-phase="earth"] {
  --tone: var(--phase-earth);
}
[data-phase="metal"] {
  --tone: var(--phase-metal);
}
[data-phase="water"] {
  --tone: var(--phase-water);
}
/* The same colour lightened, for words and icons on the night. */
[data-el],
[data-body],
[data-phase] {
  --tone-ink: color-mix(in oklab, var(--tone) 58%, #fff);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The author's line icons: a body or a sign, a mask painted in a light tone
   of its own colour, as the previous site painted them. */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.28em;
  background-color: var(--tone-ink);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.icon[data-icon="sun"] {
  -webkit-mask-image: url("/art/glyphs/sun.svg");
  mask-image: url("/art/glyphs/sun.svg");
}
.icon[data-icon="moon"] {
  -webkit-mask-image: url("/art/glyphs/moon.svg");
  mask-image: url("/art/glyphs/moon.svg");
}
.icon[data-icon="mercury"] {
  -webkit-mask-image: url("/art/glyphs/mercury.svg");
  mask-image: url("/art/glyphs/mercury.svg");
}
.icon[data-icon="venus"] {
  -webkit-mask-image: url("/art/glyphs/venus.svg");
  mask-image: url("/art/glyphs/venus.svg");
}
.icon[data-icon="earth"] {
  -webkit-mask-image: url("/art/glyphs/earth.svg");
  mask-image: url("/art/glyphs/earth.svg");
}
.icon[data-icon="mars"] {
  -webkit-mask-image: url("/art/glyphs/mars.svg");
  mask-image: url("/art/glyphs/mars.svg");
}
.icon[data-icon="jupiter"] {
  -webkit-mask-image: url("/art/glyphs/jupiter.svg");
  mask-image: url("/art/glyphs/jupiter.svg");
}
.icon[data-icon="saturn"] {
  -webkit-mask-image: url("/art/glyphs/saturn.svg");
  mask-image: url("/art/glyphs/saturn.svg");
}
.icon[data-icon="uranus"] {
  -webkit-mask-image: url("/art/glyphs/uranus.svg");
  mask-image: url("/art/glyphs/uranus.svg");
}
.icon[data-icon="neptune"] {
  -webkit-mask-image: url("/art/glyphs/neptune.svg");
  mask-image: url("/art/glyphs/neptune.svg");
}
.icon[data-icon="pluto"] {
  -webkit-mask-image: url("/art/glyphs/pluto.svg");
  mask-image: url("/art/glyphs/pluto.svg");
}
.icon[data-icon="aries"] {
  -webkit-mask-image: url("/art/zodiac/aries.svg");
  mask-image: url("/art/zodiac/aries.svg");
}
.icon[data-icon="taurus"] {
  -webkit-mask-image: url("/art/zodiac/taurus.svg");
  mask-image: url("/art/zodiac/taurus.svg");
}
.icon[data-icon="gemini"] {
  -webkit-mask-image: url("/art/zodiac/gemini.svg");
  mask-image: url("/art/zodiac/gemini.svg");
}
.icon[data-icon="cancer"] {
  -webkit-mask-image: url("/art/zodiac/cancer.svg");
  mask-image: url("/art/zodiac/cancer.svg");
}
.icon[data-icon="leo"] {
  -webkit-mask-image: url("/art/zodiac/leo.svg");
  mask-image: url("/art/zodiac/leo.svg");
}
.icon[data-icon="virgo"] {
  -webkit-mask-image: url("/art/zodiac/virgo.svg");
  mask-image: url("/art/zodiac/virgo.svg");
}
.icon[data-icon="libra"] {
  -webkit-mask-image: url("/art/zodiac/libra.svg");
  mask-image: url("/art/zodiac/libra.svg");
}
.icon[data-icon="scorpio"] {
  -webkit-mask-image: url("/art/zodiac/scorpio.svg");
  mask-image: url("/art/zodiac/scorpio.svg");
}
.icon[data-icon="sagittarius"] {
  -webkit-mask-image: url("/art/zodiac/sagittarius.svg");
  mask-image: url("/art/zodiac/sagittarius.svg");
}
.icon[data-icon="capricorn"] {
  -webkit-mask-image: url("/art/zodiac/capricorn.svg");
  mask-image: url("/art/zodiac/capricorn.svg");
}
.icon[data-icon="aquarius"] {
  -webkit-mask-image: url("/art/zodiac/aquarius.svg");
  mask-image: url("/art/zodiac/aquarius.svg");
}
.icon[data-icon="pisces"] {
  -webkit-mask-image: url("/art/zodiac/pisces.svg");
  mask-image: url("/art/zodiac/pisces.svg");
}
/* The animals and the elements of the Chinese year: the icons of the
   previous site. */
.icon[data-icon="rat"] {
  -webkit-mask-image: url("/art/eastern/rat.svg");
  mask-image: url("/art/eastern/rat.svg");
}
.icon[data-icon="ox"] {
  -webkit-mask-image: url("/art/eastern/ox.svg");
  mask-image: url("/art/eastern/ox.svg");
}
.icon[data-icon="tiger"] {
  -webkit-mask-image: url("/art/eastern/tiger.svg");
  mask-image: url("/art/eastern/tiger.svg");
}
.icon[data-icon="rabbit"] {
  -webkit-mask-image: url("/art/eastern/rabbit.svg");
  mask-image: url("/art/eastern/rabbit.svg");
}
.icon[data-icon="dragon"] {
  -webkit-mask-image: url("/art/eastern/dragon.svg");
  mask-image: url("/art/eastern/dragon.svg");
}
.icon[data-icon="snake"] {
  -webkit-mask-image: url("/art/eastern/snake.svg");
  mask-image: url("/art/eastern/snake.svg");
}
.icon[data-icon="horse"] {
  -webkit-mask-image: url("/art/eastern/horse.svg");
  mask-image: url("/art/eastern/horse.svg");
}
.icon[data-icon="goat"] {
  -webkit-mask-image: url("/art/eastern/goat.svg");
  mask-image: url("/art/eastern/goat.svg");
}
.icon[data-icon="monkey"] {
  -webkit-mask-image: url("/art/eastern/monkey.svg");
  mask-image: url("/art/eastern/monkey.svg");
}
.icon[data-icon="rooster"] {
  -webkit-mask-image: url("/art/eastern/rooster.svg");
  mask-image: url("/art/eastern/rooster.svg");
}
.icon[data-icon="dog"] {
  -webkit-mask-image: url("/art/eastern/dog.svg");
  mask-image: url("/art/eastern/dog.svg");
}
.icon[data-icon="pig"] {
  -webkit-mask-image: url("/art/eastern/pig.svg");
  mask-image: url("/art/eastern/pig.svg");
}
.icon[data-icon="phase-wood"] {
  -webkit-mask-image: url("/art/eastern/wood.svg");
  mask-image: url("/art/eastern/wood.svg");
}
.icon[data-icon="phase-fire"] {
  -webkit-mask-image: url("/art/eastern/fire.svg");
  mask-image: url("/art/eastern/fire.svg");
}
.icon[data-icon="phase-earth"] {
  -webkit-mask-image: url("/art/eastern/earth.svg");
  mask-image: url("/art/eastern/earth.svg");
}
.icon[data-icon="phase-metal"] {
  -webkit-mask-image: url("/art/eastern/metal.svg");
  mask-image: url("/art/eastern/metal.svg");
}
.icon[data-icon="phase-water"] {
  -webkit-mask-image: url("/art/eastern/water.svg");
  mask-image: url("/art/eastern/water.svg");
}
.icon[data-icon="cardinal"] {
  -webkit-mask-image: url("/art/modes/cardinal.svg");
  mask-image: url("/art/modes/cardinal.svg");
}
.icon[data-icon="fixed"] {
  -webkit-mask-image: url("/art/modes/fixed.svg");
  mask-image: url("/art/modes/fixed.svg");
}
.icon[data-icon="mutable"] {
  -webkit-mask-image: url("/art/modes/mutable.svg");
  mask-image: url("/art/modes/mutable.svg");
}
.icon[data-icon="conjunction"] {
  -webkit-mask-image: url("/art/aspects/conjunction.svg");
  mask-image: url("/art/aspects/conjunction.svg");
}
.icon[data-icon="sextile"] {
  -webkit-mask-image: url("/art/aspects/sextile.svg");
  mask-image: url("/art/aspects/sextile.svg");
}
.icon[data-icon="square"] {
  -webkit-mask-image: url("/art/aspects/square.svg");
  mask-image: url("/art/aspects/square.svg");
}
.icon[data-icon="trine"] {
  -webkit-mask-image: url("/art/aspects/trine.svg");
  mask-image: url("/art/aspects/trine.svg");
}
.icon[data-icon="opposition"] {
  -webkit-mask-image: url("/art/aspects/opposition.svg");
  mask-image: url("/art/aspects/opposition.svg");
}
.icon[data-icon="retrograde"] {
  -webkit-mask-image: url("/art/marks/retrograde.svg");
  mask-image: url("/art/marks/retrograde.svg");
}
.icon[data-icon="ascendant"] {
  -webkit-mask-image: url("/art/marks/ascendant.svg");
  mask-image: url("/art/marks/ascendant.svg");
}
.icon[data-icon="calendar"] {
  -webkit-mask-image: url("/art/marks/calendar.svg");
  mask-image: url("/art/marks/calendar.svg");
}
/* The marks of the menu: the sky of this moment, the zodiac. */
.icon[data-icon="sky"] {
  -webkit-mask-image: url("/art/marks/sky.svg");
  mask-image: url("/art/marks/sky.svg");
}
.icon[data-icon="signs"] {
  -webkit-mask-image: url("/art/marks/zodiac.svg");
  mask-image: url("/art/marks/zodiac.svg");
}
/* The names of bodies and signs in their own colours, everywhere but in
   headings. */
.named,
.body-name,
.sign-name {
  color: var(--tone-ink);
}
:is(h1, h2, h3) :is(.named, .body-name, .sign-name) {
  color: inherit;
}
.body-name {
  white-space: nowrap;
}
.body-name .icon,
.sign-name .icon {
  margin-inline-end: 6px;
}
/* A sign's name in a line of text: its icon first, a little smaller than a
   body's, and never apart from the name. */
.named {
  white-space: nowrap;
}
.named .icon {
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 0.2em;
  vertical-align: -0.2em;
}

/* The frame: the name, the sections, the column. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  max-width: var(--column);
  margin: 0 auto;
  padding: 30px var(--gutter) 0;
}
/* The lettering of the previous site in the middle, in its light colour,
   and a small menu on either side of it (the author, 3 December 2026): the
   sky of this moment on the left, the signs on the right, each by its
   mark. */
.menu {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
}
.menu__side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 15px;
}
.menu__side[data-side="right"] {
  justify-content: flex-end;
}
.menu__side a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  white-space: nowrap;
}
/* Small links that are easy to hit with a finger: an invisible margin
   round them takes the tap, the layout stays as it is. */
.menu__side a::after,
.glance__more::after,
.legend summary::after {
  content: "";
  position: absolute;
  inset: -12px -8px;
}
/* The mark in the colour of its words, gold where the page belongs. */
.menu__side .icon {
  width: 18px;
  height: 18px;
  background-color: currentColor;
}
.menu__side a:hover {
  color: var(--ink);
}
/* The part of the site the page belongs to, in gold. */
.menu__side a[aria-current] {
  color: var(--gold);
}
.brand {
  display: block;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  display: block;
  height: auto;
  filter: drop-shadow(0 0 10px rgb(232 207 154 / 22%));
}
.brand__lettering {
  width: 230px;
}
/* On a phone the sides would not fit beside the lettering: the lettering
   on top, the menu under it from edge to edge. */
@media (max-width: 560px) {
  .menu {
    grid-template-columns: auto auto;
    grid-template-areas: "brand brand" "left right";
    justify-content: space-between;
    row-gap: 14px;
  }
  .brand {
    grid-area: brand;
    justify-self: center;
  }
  .menu__side[data-side="left"] {
    grid-area: left;
  }
  .menu__side[data-side="right"] {
    grid-area: right;
  }
  .menu__side {
    gap: 4px 16px;
    font-size: 14px;
  }
}
main {
  max-width: var(--column);
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
}

/* The head of a page. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.crumbs li + li::before {
  content: "·";
  margin: 0 0.5em;
}
h1 {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.crumbs + h1,
.crumbs + .title-row {
  margin-top: 8px;
}
h1:first-child,
.title-row:first-child {
  margin-top: 0;
}
.sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.lead {
  max-width: 44em;
  margin-top: 12px;
  color: color-mix(in srgb, var(--ink) 85%, var(--muted));
  font-size: 17px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.title-row h1 {
  margin-top: 0;
}
h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.03em;
}
.section-title {
  margin: 56px 0 16px;
  font-size: 24px;
  line-height: 32px;
}
.note {
  max-width: 64ch;
  margin: 20px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Medallions: a sign on its element's tint, a body on its own. */
.medal,
.dot {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--tone-ink);
  line-height: 1;
}
.medal {
  width: 56px;
  height: 56px;
  font-size: 24px;
}
.medal .icon {
  width: 36px;
  height: 36px;
}
.medal[data-size="l"] {
  width: 88px;
  height: 88px;
}
.medal[data-size="l"] .icon {
  width: 48px;
  height: 48px;
}
.dot {
  width: 36px;
  height: 36px;
}
.dot .icon {
  width: 24px;
  height: 24px;
}
.moon-disc {
  display: block;
  width: 56px;
  height: 56px;
  overflow: visible;
}
.moon-disc__dark {
  fill: #231c45;
  stroke: rgb(255 255 255 / 16%);
  stroke-width: 0.03;
}
.moon-disc__lit {
  fill: #f3e8d2;
  filter: drop-shadow(0 0 0.12px rgb(243 232 210 / 60%));
}

/*
 * The wheel: the signs on the rim, the houses of a chart under them, the
 * bodies in the sectors of their signs, the Earth in the middle. Sizes of
 * its text are in units of the drawing, 500 across.
 */
/* The wheel over the cards in a row; on a wide screen, beside them. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.hero__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-content: center;
  gap: var(--gap);
}
.wheel {
  /* Over what follows on the page, for a tooltip that reaches past the rim. */
  position: relative;
  z-index: 1;
  /* As large as the eye takes in at once, and no larger. */
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.wheel mask {
  mask-type: alpha;
}
.wheel__stars circle {
  fill: #fff;
  opacity: 0.25;
}
.wheel__halo {
  fill: var(--tone-ink);
  opacity: 0.12;
  filter: blur(4px);
}
.spot__area {
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}
@keyframes wheel-twinkle {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.65;
  }
}
@keyframes birth-turn {
  to {
    rotate: 1turn;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .wheel__stars circle {
    animation: wheel-twinkle 5s ease-in-out infinite;
  }
  .wheel__stars circle:nth-child(2n) {
    animation-duration: 7s;
    animation-delay: -2.5s;
  }
  .wheel__stars circle:nth-child(3n) {
    animation-duration: 6s;
    animation-delay: -4s;
  }
  .wheel__stars circle:nth-child(5n) {
    animation-delay: -1.2s;
  }
  .birth__art img {
    animation: birth-turn 240s linear infinite;
  }
}
.wheel__ink {
  fill: var(--tone-ink);
}
/* The planets: brighter than the icons, with a little glow of their own. */
.wheel__art .wheel__ink {
  fill: color-mix(in oklab, var(--tone) 42%, #fff);
}
.wheel__art {
  filter: drop-shadow(
    0 0 3px color-mix(in srgb, var(--tone-ink) 55%, transparent)
  );
}
.wheel svg {
  display: block;
  width: 100%;
  height: auto;
  /* A tooltip may reach past the rim. */
  overflow: visible;
}
.wheel text {
  font-family: var(--font-sans);
  text-anchor: middle;
}
.wheel__disc {
  stroke: color-mix(in srgb, var(--gold) 40%, transparent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
/* Under a body: the night of the disc, which hides the lanes. */
.wheel__back {
  fill: url(#wheel-night);
}
/* The ring of signs: each sector an even tint of its element's colour,
   under an engraving of gold — rims and a tick for every degree. */
.wheel__sector {
  fill: var(--tone);
  fill-opacity: 0.1;
}
.wheel__ticks {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.3;
  stroke-width: 0.6px;
  vector-effect: non-scaling-stroke;
}
.wheel__rim {
  stroke: color-mix(in srgb, var(--gold) 45%, transparent);
}
.wheel__rim--faint {
  stroke: color-mix(in srgb, var(--gold) 14%, transparent);
}
.wheel__house {
  fill: rgb(255 255 255 / 3%);
}
.wheel__numeral {
  fill: color-mix(in srgb, var(--gold) 70%, var(--muted));
  font-size: 11px;
}
.wheel__lines {
  fill: none;
  stroke: color-mix(in srgb, var(--gold) 20%, transparent);
}
/* The signs' icons shine a little in their element's colour. */
.wheel g[data-el] > .wheel__ink {
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--tone) 45%, transparent));
}
.wheel__lines *,
.wheel__ascendant {
  vector-effect: non-scaling-stroke;
}
.wheel__lane {
  stroke: rgb(255 255 255 / 4%);
}
.wheel__ascendant {
  stroke: var(--gold);
  stroke-width: 2px;
  stroke-linecap: round;
}
.wheel__label {
  fill: var(--tone-ink);
  font-size: 12px;
}
.wheel__retro circle,
.wheel__asc circle {
  fill: var(--gold);
}
.wheel__retro .wheel__ink,
.wheel__asc .wheel__ink {
  fill: var(--on-gold);
}
.wheel__asc {
  filter: drop-shadow(0 0 6px rgb(232 207 154 / 45%));
  pointer-events: none;
}

/*
 * Tooltips of the wheel. A spot is an unseen area over a part of the
 * drawing; its tooltip lies inside it and shows while the pointer is over
 * the spot, or after a tap. The look is the tooltip of the previous site.
 */
/* The signs of the wheel are links, but their tooltips are not text to
   underline. */
.wheel a,
.wheel a:hover {
  text-decoration: none;
}
.spot__area {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}
.spot--line .spot__area {
  stroke-width: 12px;
}
a.spot:hover .spot__area {
  fill: color-mix(in srgb, var(--tone) 22%, transparent);
}
.spot--house:hover .spot__area {
  fill: rgb(255 255 255 / 6%);
}
.spot--body:hover .spot__area {
  stroke: var(--tone-ink);
  stroke-width: 1.5px;
}
.wheel__tip {
  display: none;
  overflow: visible;
  pointer-events: none;
}
.spot:hover .wheel__tip {
  display: block;
}
.tip-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}
.tip-box[data-side="above"] {
  align-items: flex-end;
}
.tip-box[data-align="start"] {
  justify-content: flex-start;
}
.tip-box[data-align="end"] {
  justify-content: flex-end;
}
.tip {
  max-width: 220px;
  padding: 6px 10px 8px;
  border-radius: 8px;
  color: var(--on-tip);
  background: var(--tip);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 12%),
    0 10px 28px rgb(0 0 0 / 45%);
  font-size: 12px;
  line-height: 16px;
}
.tip > span {
  display: block;
}
.tip__title {
  color: color-mix(in srgb, var(--tone-ink) 70%, var(--on-tip));
  font-size: 14px;
  line-height: 20px;
}
.tip__fact {
  color: color-mix(in srgb, var(--on-tip) 68%, var(--tip));
}
.tip__text + .tip__fact,
.tip__fact + .tip__text {
  margin-top: 4px;
}
/* A touch screen shows a tooltip on tap when the spot reads as pressable. */
@media (hover: none) {
  .spot {
    cursor: pointer;
  }
}

/*
 * The sky of the moment: on a wide screen what matters now across the top,
 * under it the Sun and the Moon one under the other on the left and the
 * wheel large on the right (the author, 3 December 2026). Narrower, and on
 * a phone, the wheel first, so it is seen at once (the author, the same
 * day), then what matters now, then the Sun and the Moon. The ascendant
 * and the rest below.
 */
.now__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "wheel" "lines" "sun" "moon";
  gap: 10px;
}
.now__stage > .moment {
  grid-area: lines;
}
.now__stage > .wheel {
  grid-area: wheel;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 10px;
}
.sky-card[data-body="sun"] {
  grid-area: sun;
}
.sky-card[data-body="moon"] {
  grid-area: moon;
}
.sky-card[data-point="ascendant"] {
  --tone: var(--gold);
  --tone-ink: var(--gold);
}
.now > .sky-card[data-point="ascendant"] {
  margin-top: 12px;
}
/* A card of the sky: the picture over the words at every width, so the
   corner beside the picture can hold the Sun's next sign. */
.sky-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tone) 8%, rgb(255 255 255 / 3%));
  box-shadow: inset 0 0 0 1px var(--edge);
}
.sky-card > p {
  grid-column: 1 / -1;
}
.sky-card__art {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}
.sky-card__art .moon-disc {
  width: 52px;
  height: 52px;
}
.sky-card__art .asc-mark {
  width: 52px;
  height: 52px;
}
.sky-card__title {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.sky-card__degree {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
/* What the body speaks of in its sign: the main text of a card, the same
   size as on the planet and aspect tiles (the author, 3 December 2026). */
.sky-card__sense {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.sky-card__note {
  margin-top: 8px;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 14px;
  line-height: 1.45;
}
/* The Sun's next sign in the top right corner, in two lines (the author,
   3 December 2026); the Moon's and each planet's the same. */
.sky-card > .sky-card__corner,
.planet > .planet__corner {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}
.sky-card__corner > span,
.planet__corner > span {
  display: block;
  white-space: nowrap;
}
/* A body's drawing from the wheel, in a light tone of its colour. */
.planet-art {
  display: block;
  width: 100%;
  height: 100%;
  background-color: color-mix(in oklab, var(--tone) 42%, #fff);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  filter: drop-shadow(
    0 0 6px color-mix(in srgb, var(--tone-ink) 55%, transparent)
  );
}
.planet-art[data-art="sun"] {
  -webkit-mask-image: url("/art/planets/sun.svg");
  mask-image: url("/art/planets/sun.svg");
}
.planet-art[data-art="mercury"] {
  --art-width: 1.124;
  --art-height: 1.051;
  -webkit-mask-image: url("/art/planets/mercury.svg");
  mask-image: url("/art/planets/mercury.svg");
}
.planet-art[data-art="venus"] {
  -webkit-mask-image: url("/art/planets/venus.svg");
  mask-image: url("/art/planets/venus.svg");
}
.planet-art[data-art="mars"] {
  -webkit-mask-image: url("/art/planets/mars.svg");
  mask-image: url("/art/planets/mars.svg");
}
.planet-art[data-art="jupiter"] {
  -webkit-mask-image: url("/art/planets/jupiter.svg");
  mask-image: url("/art/planets/jupiter.svg");
}
.planet-art[data-art="saturn"] {
  --art-width: 1.269;
  --art-height: 1.27;
  -webkit-mask-image: url("/art/planets/saturn.svg");
  mask-image: url("/art/planets/saturn.svg");
}
.planet-art[data-art="uranus"] {
  --art-width: 1.266;
  --art-height: 1.273;
  -webkit-mask-image: url("/art/planets/uranus.svg");
  mask-image: url("/art/planets/uranus.svg");
}
.planet-art[data-art="neptune"] {
  -webkit-mask-image: url("/art/planets/neptune.svg");
  mask-image: url("/art/planets/neptune.svg");
}
.planet-art[data-art="pluto"] {
  -webkit-mask-image: url("/art/planets/pluto.svg");
  mask-image: url("/art/planets/pluto.svg");
}
@media (min-width: 761px) {
  .now__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "wheel wheel" "lines lines" "sun moon";
    gap: 12px;
  }
  .now__stage > .wheel {
    margin-bottom: 16px;
  }
  /* The ascendant across the block: its mark beside the words. */
  .now > .sky-card[data-point="ascendant"] {
    column-gap: 20px;
  }
  .now > .sky-card[data-point="ascendant"] > .sky-card__art {
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
  .now > .sky-card[data-point="ascendant"] > p {
    grid-column: 2;
  }
}
/* Wide: the two cards share the wheel's height, each as tall as half of
   it; the wheel as large as its column lets it, with air above and below
   it (the author, 3 December 2026). */
@media (min-width: 1100px) {
  .now__stage {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas: "lines lines" "sun wheel" "moon wheel";
    column-gap: 40px;
    row-gap: 12px;
  }
  .now__stage > .moment {
    margin-bottom: 12px;
  }
  .now__stage > .wheel {
    align-self: center;
    max-width: 800px;
    margin: 56px auto;
  }
  .now > .sky-card[data-point="ascendant"] {
    margin-top: 24px;
  }
}
@media (min-width: 1240px) {
  .sky-card {
    padding: 22px 24px;
  }
  .sky-card__art {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
  }
  .sky-card__art .moon-disc,
  .sky-card__art .asc-mark {
    width: 64px;
    height: 64px;
  }
  .sky-card__title {
    font-size: 21px;
  }
}

/* The planets of the moment: short tiles, Mercury to Pluto in the order of
   their orbits; the Sun and the Moon are in their cards by the wheel. */
.planet-groups {
  display: grid;
  gap: 20px;
  padding-top: 12px;
}
.planets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* A planet's tile, like the cards of the Sun and the Moon (the author,
   3 December 2026): its drawing over the words, the corner beside it. */
.planet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 7%, rgb(255 255 255 / 3%));
  box-shadow: inset 0 0 0 1px var(--edge);
}
.planet > p,
.planet > .advice {
  grid-column: 1 / -1;
}
.planet__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}
/* Every globe the same size; Saturn's and Uranus's rings and Mercury's
   spark reach beyond it, as on the wheel. */
.planet__art > .planet-art {
  --globe: 46px;
  width: calc(var(--globe) * var(--art-width, 1.01));
  height: calc(var(--globe) * var(--art-height, 1.01));
}
/* A retrograde body: ℞ on a gold disc at the top right of its drawing, as
   on the wheel. */
.retro-badge {
  --tone-ink: var(--on-gold);
  position: absolute;
  top: -2px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgb(232 207 154 / 45%);
}
.retro-badge .icon {
  width: 12px;
  height: 12px;
}
.planet__title {
  font-size: 17px;
  line-height: 1.3;
}
/* What the planet speaks of; a retrograde one says so in the same words,
   not in a line of its own. The main text of the tile, the same size and
   brightness as on the cards by the wheel and on the aspects (the author,
   3 December 2026). */
.planet__note {
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

/* What matters now (the author, 3 December 2026: «особенности
   дня/момента»): the Moon, the closest aspect, the planets going backward,
   each by its mark — one plate, the lines parted by a hairline; side by
   side where there is room, so they read in a glance and keep the wheel
   high. Until when, under each line. */
.moment {
  display: grid;
  border-radius: 16px;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.moment__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 20px;
}
.moment__item + .moment__item {
  box-shadow: inset 0 1px 0 var(--edge);
}
.moment__item[data-retrograde] {
  --tone-ink: var(--gold);
}
.moment__mark .icon {
  width: 26px;
  height: 26px;
}
.moment__when {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 1000px) {
  .now__stage > .moment {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
  .now__stage > .moment > .moment__item + .moment__item {
    box-shadow: inset 1px 0 0 var(--edge);
  }
}

/*
 * The home: three blocks seen at once (the author, 3 December 2026) — the
 * birth, the sky of now in short, the signs. A block's head: its title, a
 * note beside it, the way to the whole of it on the right.
 */
.glance__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.glance__head h2 {
  font-size: 22px;
  line-height: 30px;
}
.glance__note {
  color: var(--muted);
  font-size: 14px;
}
.glance__more {
  position: relative;
  margin-left: auto;
  color: var(--gold);
  font-size: 15px;
  white-space: nowrap;
}
/* The wheel and what matters now beside it. */
.glance__sky {
  display: grid;
  gap: 16px;
}
.glance__sky > .wheel {
  max-width: 420px;
}
@media (min-width: 900px) {
  .glance__sky {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 32px;
  }
  .glance__sky > .wheel {
    max-width: none;
    margin: 0;
  }
}
/* From 1200 px (the author, 3 December 2026: «в центре карту большую»):
   the wheel large in the middle, the four lines in its corners, each on a
   plate of its own — the Sun and the Moon above, the aspect and the
   retrogrades below. The list stays one list: it spans the block and lends
   its rows and columns to the lines. */
@media (min-width: 1200px) {
  .glance__sky {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 640px) minmax(
        260px,
        1fr
      );
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 24px 32px;
  }
  .glance__sky > .wheel {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    max-width: 640px;
  }
  .glance .moment {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    background: none;
    box-shadow: none;
  }
  .glance .moment__item {
    border-radius: 16px;
    background: var(--plate);
    box-shadow: inset 0 0 0 1px var(--edge);
  }
  .glance .moment__item:nth-child(1) {
    grid-area: 1 / 1;
    align-self: start;
  }
  .glance .moment__item:nth-child(2) {
    grid-area: 1 / 3;
    align-self: start;
  }
  .glance .moment__item:nth-child(3) {
    grid-area: 2 / 1;
    align-self: end;
  }
  .glance .moment__item:nth-child(4) {
    grid-area: 2 / 3;
    align-self: end;
  }
}
/* The twelve signs on the home: three in a row on a phone, four (one
   element to a column) on a narrower screen, six (a sign over its
   opposite) on a wide one. A small pair, the name, the dates. */
.sign-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sign-matrix > li {
  display: grid;
}
.sign-matrix .sign-card .scene {
  padding-top: 18px;
}
.sign-matrix .sign-card .scene__ring {
  top: 6px;
}
.sign-matrix .sign-card__body {
  gap: 2px;
  padding: 10px 14px 14px;
}
.sign-matrix .sign-card__name {
  gap: 8px;
  font-size: 19px;
}
.sign-matrix .sign-card__name .icon {
  width: 20px;
  height: 20px;
}
.sign-matrix .sign-card__dates {
  font-size: 13px;
}
@media (min-width: 761px) {
  .sign-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .sign-matrix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .sign-matrix {
    gap: 6px;
  }
  .sign-matrix .sign-card__body {
    padding: 8px 8px 10px;
  }
  .sign-matrix .sign-card__name {
    gap: 5px;
    font-size: 14px;
    letter-spacing: -0.02em;
  }
  .sign-matrix .sign-card__name .icon {
    width: 15px;
    height: 15px;
  }
  .sign-matrix .sign-card__dates {
    font-size: 12px;
  }
}
/* What is good to do now and what to watch, each after its word: the
   water's blue for the one, the fire's red for the other. */
.advice {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
}
.advice dt,
.advice dd {
  display: inline;
}
.advice dt {
  color: color-mix(in oklab, var(--water) 55%, #fff);
}
.advice dt::after {
  content: ": ";
}
.advice [data-advice="careful"] dt {
  color: color-mix(in oklab, var(--fire) 60%, #fff);
}
.advice dd {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}
.sky-card > .advice,
.aspect__moment {
  grid-column: 1 / -1;
}

/* An aspect in plain words, under its names: the main thing on the tile
   (the author, 3 December 2026), so as large as the names and bright. */
.aspect__influence {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
/* The rest of the aspects behind a wide button under them, its arrow
   turning over when they open; the button stays under the list. */
.more-aspects {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.more-aspects__rest {
  display: none;
}
.more-aspects__box:checked ~ .more-aspects__rest {
  display: block;
}
.more-aspects__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 14px;
  color: var(--gold);
  background: rgb(255 255 255 / 4%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}
.more-aspects__button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  rotate: 45deg;
  translate: 0 -2px;
  transition:
    rotate 0.3s ease,
    translate 0.3s ease;
}
.more-aspects__button:hover {
  background: rgb(232 207 154 / 8%);
}
.more-aspects__box:focus-visible ~ .more-aspects__button {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.more-aspects__box:checked ~ .more-aspects__button::after {
  rotate: 225deg;
  translate: 0 2px;
}
.more-aspects__less,
.more-aspects__box:checked ~ .more-aspects__button .more-aspects__more {
  display: none;
}
.more-aspects__box:checked ~ .more-aspects__button .more-aspects__less {
  display: inline;
}

/* A link that looks like the button it leads to. */
.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  color: var(--on-gold);
  background: var(--gold);
  box-shadow: 0 0 24px rgb(232 207 154 / 22%);
}
.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* The block of a birth: first on the home. The date, the time and the
   place side by side, each over its hint; the labels, the fields and the
   hints keep to three rows across the block. */
.birth-form__row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(150px, 0.55fr) minmax(0, 1.45fr)
    auto;
  grid-template-rows: auto auto auto;
  gap: 6px 12px;
  margin-top: 24px;
}
.birth-form .field {
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  gap: inherit;
}
.field--date {
  grid-column: 1;
}
.field--time {
  grid-column: 2;
}
.field--where {
  grid-column: 3;
}
.birth-form__go {
  grid-column: 4;
  grid-row: 2;
}
.birth-form input:not([type="radio"]) {
  width: 100%;
  height: 58px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
/* Room for the calendar at the end of the date field. */
.birth-form #date {
  padding-inline-end: 54px;
}
.birth-form__go {
  height: 58px;
  padding: 0 30px;
}
.birth-form .field-note {
  margin-top: 2px;
}

/* The calendar in the date field, and the steps under it in a panel of
   their own that opens over what follows. */
.picker {
  position: relative;
  z-index: 6;
  grid-column: 1;
  grid-row: 2;
  pointer-events: none;
}
.picker__toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 6px 6px 6px auto;
  border-radius: 8px;
  color: var(--gold);
  list-style: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.15s ease;
}
.picker__toggle::-webkit-details-marker {
  display: none;
}
.picker__toggle:hover,
.picker[open] .picker__toggle {
  background: rgb(232 207 154 / 14%);
}
.picker__toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.picker__toggle .icon {
  --tone-ink: var(--gold);
  width: 24px;
  height: 24px;
}
.picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 360px);
  max-width: calc(100vw - 32px);
  padding: 18px;
  border-radius: 14px;
  background: #1f1844;
  box-shadow:
    inset 0 0 0 1px rgb(232 207 154 / 30%),
    0 22px 50px rgb(0 0 0 / 50%);
  pointer-events: auto;
  animation: picker-in 0.15s ease-out;
}
@keyframes picker-in {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}
.picker__title {
  margin: 0 0 12px;
  font-size: 16px;
}
.picker__body[aria-busy="true"] {
  opacity: 0.6;
  transition: opacity 0.15s ease 0.1s;
}
/* Narrower: the three fields in a row, «Показать небо» under them. */
@media (max-width: 1099px) {
  .birth-form__row {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.6fr) minmax(0, 1.3fr);
  }
  .birth-form__go {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    margin-top: 12px;
  }
}
.combo {
  position: relative;
}
.suggest {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  background: #1f1844;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 12%),
    0 18px 40px rgb(0 0 0 / 45%);
}
.suggest li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.suggest li:hover,
.suggest li[aria-selected="true"] {
  background: rgb(232 207 154 / 14%);
}
.suggest small {
  color: var(--muted);
  font-size: 13px;
  text-align: end;
}
.choices {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.choices legend {
  margin-bottom: 8px;
  font-size: 18px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  box-shadow: inset 0 0 0 1px var(--edge);
  cursor: pointer;
}
.choice input {
  accent-color: var(--gold);
}

/* The block of a birth: first on the home, a step at a time. */
/* The block of a birth is the one that matters: violet light, a gold
   edge, an astrolabe turning in its corner. Two classes, to stand over the
   plain panel's look. */
.panel.birth {
  position: relative;
  /* Over the blocks that follow, for the panel of the steps. */
  z-index: 2;
  isolation: isolate;
  margin-top: 0;
  padding: 36px;
  background:
    radial-gradient(110% 130% at 0% 0%, rgb(124 92 255 / 30%), transparent 55%),
    radial-gradient(
      80% 110% at 100% 100%,
      rgb(232 207 154 / 12%),
      transparent 60%
    ),
    rgb(26 20 58 / 80%);
  box-shadow:
    inset 0 0 0 1px rgb(232 207 154 / 50%),
    0 0 0 6px rgb(232 207 154 / 5%),
    0 30px 90px rgb(0 0 0 / 40%),
    0 0 140px rgb(124 92 255 / 26%);
}
.birth__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.birth__art img {
  position: absolute;
  top: -250px;
  right: -230px;
  width: 620px;
  height: 620px;
  opacity: 0.8;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.birth h1 {
  margin: 0;
  font-size: 34px;
}
.birth__lead {
  max-width: 40em;
  margin-top: 6px;
  color: var(--muted);
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 16px;
}
.wizard-steps li > button,
.wizard-steps li > span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.wizard-steps small {
  color: var(--muted);
  font-size: 12px;
}
.wizard-steps button:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.wizard-steps [data-state="done"] span {
  color: var(--gold);
}
.wizard-steps [data-state="current"] > span {
  background: rgb(232 207 154 / 8%);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.wizard-steps li:not([data-state]) {
  opacity: 0.5;
}
.wizard__ask {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
}
.chips + .wizard__ask {
  margin-top: 14px;
}
.chips--months {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* The steps are buttons of the form, so what is typed stays. */
.chip,
.wizard-steps li > button,
.calendar__grid button {
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--ink);
  background: rgb(255 255 255 / 5%);
  box-shadow: inset 0 0 0 1px var(--edge);
  text-align: center;
}
.wizard-steps li > button {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 8px 12px;
  text-align: start;
}
.chip:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.chip[aria-pressed="true"] {
  color: var(--on-gold);
  background: var(--gold);
}
.calendar__title {
  margin-bottom: 8px;
  font-size: 16px;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar__head {
  padding: 2px 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.calendar__grid button {
  height: 40px;
  padding: 0;
}
.calendar__grid button:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.calendar__grid [data-weekend] button,
.calendar__head[data-weekend] {
  color: color-mix(in srgb, var(--gold) 75%, var(--ink));
}
.field-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
[aria-invalid="true"] {
  border-color: color-mix(in oklab, var(--fire) 70%, #fff);
}
.saved {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.saved__title {
  display: block;
  font-size: 20px;
}
.saved__note {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.saved__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button--quiet,
button.button--quiet {
  color: var(--ink);
  background: rgb(255 255 255 / 6%);
  box-shadow: inset 0 0 0 1px var(--edge);
}

/* The head of a result: the title on the left, two actions in the right
   corner of the same line — under it on a narrow screen. */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 8px;
}
.page-head__text {
  min-width: 0;
}
.page-head h1 {
  margin-top: 0;
}
.actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* On the right even when a long line under the title puts them on a
     line of their own: the share panel opens leftward from there. */
  margin-left: auto;
  padding-top: 2px;
}
.actions__save {
  position: relative;
}
.actions button,
.share summary {
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  white-space: nowrap;
}
/* What saving means, on hover beside the button. */
.actions__hint {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--on-tip);
  background: var(--tip);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 12%),
    0 10px 28px rgb(0 0 0 / 45%);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    visibility 0.15s;
}
.actions__save:hover .actions__hint,
.actions__save:focus-within .actions__hint {
  opacity: 1;
  visibility: visible;
}
/* «Share» in a ring of gold: it opens the address under it. */
.share summary {
  display: flex;
  align-items: center;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent);
  list-style: none;
  cursor: pointer;
}
.share summary::-webkit-details-marker {
  display: none;
}
.share summary:hover,
.share[open] summary {
  background: rgb(232 207 154 / 10%);
}
.share__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 8px;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  padding: 14px;
  border-radius: 14px;
  background: var(--tip);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 12%),
    0 16px 40px rgb(0 0 0 / 50%);
}
.share__panel label {
  color: var(--muted);
  font-size: 13px;
}
.share__row {
  display: flex;
  gap: 8px;
}
.share__row input {
  flex: 1;
  height: 40px;
  font-size: 14px;
}
.share__row button {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.share__done {
  color: var(--gold);
  font-size: 13px;
}

.panel .sign-grid {
  margin-top: 0;
}
.panel__sub {
  margin: 32px 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 18px;
  font-weight: 400;
}

/* Plates. */
.card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__title {
  display: block;
  font-size: 17px;
}
.card__note,
.card__extra {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.card__extra {
  color: color-mix(in srgb, var(--gold) 85%, var(--muted));
}
/* Under every block, a plate of the night: half seen-through, the sky
   blurred behind it. */
.panel,
.plate {
  border-radius: 22px;
  background: rgb(19 15 44 / 62%);
  box-shadow:
    inset 0 0 0 1px var(--edge),
    0 24px 60px rgb(0 0 0 / 28%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}
.panel {
  margin-top: 20px;
  padding: 28px;
}
.plate {
  margin-top: 20px;
  padding: 8px 28px 14px;
}
.sub + .plate,
.lead + .plate {
  margin-top: 40px;
}
.plate > h2 {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--hair);
}

.sign-name {
  display: inline-block;
  white-space: nowrap;
}

/* A house by its Roman numeral in a ring of gold; the nature of an aspect
   in a ring of its colour. */
.ghost {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

/* The ascendant's mark on its card: the gold tab of the wheel, round. */
.asc-mark {
  --tone-ink: var(--on-gold);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgb(232 207 154 / 35%);
}
.asc-mark .icon {
  width: 60%;
  height: 60%;
}

/*
 * The bodies of a birth: cards in the three groups of the home, two to a
 * row. The body's icon, then its name in its sign and the degree, the
 * house in the corner; the reading runs under them, plain.
 */
.readings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.reading-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  gap: 10px 14px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 7%, rgb(255 255 255 / 3%));
  box-shadow: inset 0 0 0 1px var(--edge);
}
.reading-card__icon .icon {
  width: 32px;
  height: 32px;
}
.reading-card__head {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.reading-card__title {
  font-size: 17px;
  line-height: 1.3;
}
.reading-card__meta,
.house-card__degree {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.reading-card__retro {
  --tone-ink: color-mix(in oklab, var(--fire) 60%, #fff);
  color: var(--tone-ink);
  white-space: nowrap;
}
.reading-card__retro .icon {
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 0.15em;
  vertical-align: -0.2em;
}
.reading-card__text {
  display: grid;
  grid-column: 2 / -1;
  gap: 22px;
}
/* A birth reading laid out (the author, 3 December 2026: «сверстанные
   лучше»): the words for its main traits, the character, the strong and the
   weak sides side by side, where it shows best. */
.reading-card__case,
.aspect__reading {
  display: grid;
  gap: 12px;
}
.reading-card__sign {
  font-size: 15px;
}
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.keyword {
  padding: 2px 10px 3px;
  border-radius: 999px;
  color: var(--tone-ink);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--tone-ink) 45%, transparent);
  font-size: 13px;
  line-height: 1.4;
}
.reading__text {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sides__title {
  margin-bottom: 6px;
  color: color-mix(in oklab, var(--water) 55%, #fff);
  font-size: 14px;
}
.sides__side[data-side="weak"] .sides__title {
  color: color-mix(in oklab, var(--fire) 60%, #fff);
}
.sides ul {
  display: grid;
  gap: 4px;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
  font-size: 15px;
  line-height: 1.45;
}
.sides li::before {
  content: "· ";
  color: var(--muted);
}
.reading__where {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.reading__where-name {
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
}

/*
 * The houses of a chart: twelve cards, two to a row as the bodies of a
 * birth, one on a phone. The house in its ring and its sign; what the house
 * covers, small; its reading in its sign, as a planet's; the bodies in it.
 */
.house-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0 4px;
}
.house-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 7%, rgb(255 255 255 / 3%));
  box-shadow: inset 0 0 0 1px var(--edge);
  font-size: 15px;
  line-height: 1.5;
}
.house-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 2px;
  font-size: 17px;
}
.house-card__meaning {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.house-card__text {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.house-card__bodies {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
  font-size: 14px;
}
.house-card__label {
  color: var(--muted);
}
/* The Chinese year: its name, its days under it, then the animal and the
   element as two readings. */
.eastern-year {
  font-size: 17px;
}
.eastern-year__span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.plate > .eastern-year + .readings {
  padding: 8px 0 4px;
}
.plate > .house-cards + .note,
.plate > .readings + .note {
  max-width: none;
  margin-inline: 0;
  padding: 12px 0 8px;
}
/*
 * Aspects: tiles, two to a row, three on a wide screen. A tile is tinted in
 * the colour of its aspect's nature — gold for a conjunction, the water's
 * blue for the easy ones, the fire's red for the tense — and draws its
 * formula: the two bodies and the aspect's sign between them.
 */
[data-nature="conjunction"] {
  --tone: var(--gold);
}
[data-nature="flowing"] {
  --tone: var(--water);
}
[data-nature="tense"] {
  --tone: var(--fire);
}
[data-nature] {
  --tone-ink: color-mix(in oklab, var(--tone) 62%, #fff);
}
[data-nature="conjunction"] {
  --tone-ink: var(--gold);
}
.aspects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 8px;
}
.aspect {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: start;
  gap: 12px 16px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 9%, rgb(255 255 255 / 3%));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
}
/* The nature in a word, in the corner of a tile of the home. */
.aspect__nature {
  align-self: start;
  color: var(--tone-ink);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--tone-ink) 45%, transparent);
}
/* The reading of a birth across the tile, laid out as a planet's. */
.aspect__reading {
  grid-column: 1 / -1;
}
/* The aspects of a birth in three groups: the easy, the tense, the joined,
   each named in its colour. */
.aspect-group {
  padding-top: 22px;
}
.aspect-group + .aspect-group {
  margin-top: 10px;
  border-top: 1px solid var(--hair);
}
.aspect-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tone-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.aspect-group__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tone-ink);
  box-shadow: 0 0 10px var(--tone);
}
.aspect-group__count {
  color: var(--muted);
  font-size: 15px;
}
.aspect-group__note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
/* The aspect's sign in a lit circle, in the colour of its nature; the
   bodies' icons stand by their names. */
.aspect__sign {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 26%, #15112e);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tone-ink) 75%, transparent),
    0 0 16px color-mix(in srgb, var(--tone) 40%, transparent);
}
.aspect__sign .icon {
  width: 20px;
  height: 20px;
  background-color: var(--tone-ink);
}
.aspect__title {
  display: block;
  font-size: 16px;
}
.aspect__meta {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.aspect__kind {
  color: var(--tone-ink);
}
.aspect .orb {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The legend of the signs of aspects, folded above the tiles. */
.legend {
  margin-top: 12px;
}
.legend summary {
  position: relative;
  width: fit-content;
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
}
.legend ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend__sign .icon {
  width: 20px;
  height: 20px;
  background-color: var(--tone-ink);
}
.legend__name {
  color: var(--tone-ink);
}
.plate > p {
  padding: 16px 0 8px;
}

/* Facts of a sign. */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.facts dt,
.facts dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.facts dt {
  color: var(--muted);
}
.facts dt:last-of-type,
.facts dd:last-of-type {
  border-bottom: 0;
}
.facts__signs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* The author's readings: a heading over paragraphs of a readable width. */
.prose > p,
.luminary p {
  max-width: 68ch;
}
.prose > p {
  padding: 16px 0 0;
}
.prose > p + p {
  padding-top: 12px;
}
.prose > p:last-child {
  padding-bottom: 10px;
}
.prose > p + .facts {
  margin-top: 16px;
}
.prose > .facts + p {
  padding-top: 14px;
}
.prose > p + .facts,
.prose > .facts + p {
  border-top: 1px solid var(--hair);
}
.prose > .facts + p {
  color: var(--muted);
  font-size: 14px;
}
.luminary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 0 8px;
}
.luminary + .luminary {
  padding-top: 8px;
}
.luminary p {
  padding-top: 6px;
}

/* Cells: years, months, days. */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.cells--wide {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.cells > li > a,
.cells > li > span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
  text-align: center;
}
.cells > li > a:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.cells small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.plate > .cells {
  padding: 14px 0 10px;
}

/*
 * The pair of a sign: two characters standing on a line of the element's
 * colour, the ring of the element fading behind them.
 */
.scene {
  position: relative;
  display: block;
  overflow: hidden;
  padding-top: 12px;
  border-bottom: 2px solid var(--tone);
}
.scene__ring {
  position: absolute;
  top: 0;
  left: 50%;
  height: 135%;
  aspect-ratio: 1;
  translate: -50% 0;
  opacity: 0.7;
  mask-image: linear-gradient(#000 30%, transparent 100%);
}
.scene__ring img {
  display: block;
  width: 100%;
  height: 100%;
}
.scene__pair {
  position: relative;
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}
/* Room over the picture: the ring and the pair keep off the card's top
   edge. */
.sign-card .scene {
  padding-top: 36px;
}
.sign-card .scene__ring {
  top: 16px;
}
/* The ring of an element turns slowly all the time; under the pointer a
   second turn joins it, faster, and stops where it is when the pointer
   leaves — no jump back. */
@keyframes ring-turn {
  to {
    rotate: 1turn;
  }
}
@keyframes ring-spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sign-head .scene__ring img {
    animation: ring-turn 120s linear infinite;
  }
  .sign-card .scene__ring img {
    animation:
      ring-turn 200s linear infinite,
      ring-spin 24s linear infinite paused;
  }
  .sign-card:hover .scene__ring img {
    animation-play-state: running;
  }
}

/* The twelve signs. */
/* Four columns: the signs go by in rows, so each column is one element. */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 32px;
}
.section-title + .sign-grid {
  margin-top: 0;
}
.sign-grid > li {
  display: grid;
}
.sign-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sign-card:hover {
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tone-ink) 60%, transparent),
    0 0 28px color-mix(in srgb, var(--tone) 24%, transparent);
}
.sign-card__body {
  display: grid;
  gap: 4px;
  padding: 16px 20px 20px;
}
.sign-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tone-ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.sign-card__name .icon {
  width: 26px;
  height: 26px;
}
.sign-card__dates > span {
  white-space: nowrap;
}
.sign-card__tag {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.4;
}
.sign-card__dates {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

/* The head of a sign's page: the name beside the pair. */
/* The pair stands on the lower edge of the block, with no plate of its
   own: the block's bottom padding is the text's alone. */
.sign-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: end;
  gap: 40px;
  margin-top: 8px;
  padding-bottom: 0;
  overflow: hidden;
}
.sign-head__text {
  align-self: center;
  padding-bottom: 28px;
}
.sign-head .scene {
  padding-top: 0;
  border-bottom: 0;
}
.sign-head .scene__pair {
  width: 100%;
}
.sign-head .tags {
  margin-top: 16px;
}

/* A sign's icon inside the turning ring of its element. */
.emblem {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 112px;
  height: 112px;
  color: var(--tone-ink);
}
.emblem__ring {
  position: absolute;
  inset: 0;
}
.emblem__ring img {
  display: block;
  width: 100%;
  height: 100%;
}
.emblem .icon {
  position: relative;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tone) 60%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .emblem__ring img {
    animation: ring-turn 120s linear infinite;
  }
}

/* Tags: the element with the author's ring of it, the mode with its sign. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  color: var(--tone-ink);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 34%, transparent);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.tag__art {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.tag .icon {
  width: 16px;
  height: 16px;
  margin: 0 2px 0 4px;
}
/* In a card the tags are smaller, to stand in one line beside the medal. */
.card__note .tags {
  gap: 4px;
  margin-top: 6px;
}
.card__note .tag {
  min-height: 26px;
  gap: 5px;
  padding: 2px 10px 2px 3px;
  font-size: 12px;
}
.card__note .tag__art {
  width: 20px;
  height: 20px;
}
.card__note .tag .icon {
  width: 14px;
  height: 14px;
  margin-left: 3px;
}
.sign-head__tag {
  margin-top: 16px;
  font-size: 20px;
}
.sign-head + .sign-body {
  margin-top: 40px;
}

/* A sign's page: the blocks in two columns on a wide screen, each heading
   in the sign's colour; the text fills the width of its block. */
.sign-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.sign-body__column > .plate:first-child {
  margin-top: 0;
}
.sign-body .plate > h2 {
  color: var(--tone-ink);
}
.sign-body .prose > p,
.sign-body .luminary p {
  max-width: none;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label {
  color: var(--muted);
  font-size: 14px;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--ink);
  background: rgb(255 255 255 / 6%);
  font: inherit;
}
select {
  appearance: none;
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a49db9' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold);
}
input,
select,
button {
  letter-spacing: inherit;
}
input:focus-visible,
select:focus-visible {
  border-color: var(--gold);
  outline: none;
}
/* Nothing chosen yet: the example reads as a placeholder. */
select:invalid {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
select option {
  color: var(--ink);
  background: #1a1533;
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: var(--on-gold);
  background: var(--gold);
  box-shadow: 0 0 24px rgb(232 207 154 / 22%);
  font: inherit;
  cursor: pointer;
}

.field label {
  white-space: nowrap;
}
.alert {
  margin-top: var(--gap);
  padding: 16px 24px;
  border-radius: var(--radius);
  color: color-mix(in oklab, var(--fire) 60%, #fff);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fire) 40%, transparent);
}

/* Steps between neighbouring pages. */
.steps {
  margin-top: 28px;
}
.steps ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: var(--gap);
}
.steps a {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.steps form {
  display: grid;
  height: 100%;
}
/* A step that does something instead of leading somewhere. */
.steps button {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--edge);
  text-align: start;
}
.steps a:hover,
.steps button:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.steps small {
  color: var(--muted);
  font-size: 14px;
}

/* The signs: four to a row on a wide screen, each column one element;
   three, each column one mode; then two. */
@media (max-width: 1199px) {
  .sign-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 899px) {
  .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A wide screen: the eight planets of the moment four to a row; the
   aspects three. */
@media (min-width: 1200px) {
  .planets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .aspects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* A birth's aspects carry whole readings: two to a row, as the planets. */
  .aspects[data-readings] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The wheel beside the main points: on a result, the cards one under
   another; on the home, the facts and the planets two to a row. */
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 48px;
  }
  .hero__cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .card {
    gap: 20px;
    padding: 22px 24px;
  }
  .hero .card__title {
    font-size: 19px;
  }
  .hero .card__note {
    margin-top: 2px;
    font-size: 15px;
  }
}

/* The blocks of a sign one under another, the left column first. */
@media (max-width: 999px) {
  .sign-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A narrow window: the pair of a sign goes under its name. */
@media (max-width: 1000px) {
  .sign-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .sign-head__text {
    padding-bottom: 20px;
  }
  .sign-head .scene {
    justify-self: center;
    width: 100%;
    max-width: 460px;
  }
}

@media (max-width: 760px) {
  .sky-top {
    height: 900px;
  }
  .sky-top::before {
    top: -420px;
    width: 900px;
    height: 900px;
    margin-left: -450px;
  }
  .panel {
    padding: 18px;
    border-radius: 18px;
  }
  .plate {
    border-radius: 18px;
  }
  .birth {
    padding: 20px 18px;
  }
  .birth h1 {
    font-size: 26px;
  }
  /* The fields one under another, each with its hint. */
  .birth-form__row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(9, auto) auto;
    margin-top: 18px;
  }
  .birth-form :is(.field--date, .field--time, .field--where) {
    grid-column: 1;
  }
  .birth-form .field--time {
    grid-row: 4 / span 3;
  }
  .birth-form .field--where {
    grid-row: 7 / span 3;
  }
  .field--time label,
  .field--where label {
    margin-top: 12px;
  }
  .birth-form__go {
    grid-column: 1;
    grid-row: 10;
    width: 100%;
    margin-top: 12px;
  }
  .picker__panel {
    width: 100%;
    padding: 14px;
  }
  /* The two actions of a result in a row of their own under its title. */
  .actions {
    width: 100%;
  }
  .actions__save {
    flex: 1 1 auto;
  }
  .actions button,
  .share summary {
    width: 100%;
    padding: 0 14px;
    font-size: 14px;
  }
  .share summary {
    justify-content: center;
  }
  .share__row button {
    width: auto;
  }
  :root {
    --gutter: 16px;
    --gap: 8px;
  }
  .site-header {
    padding-top: 20px;
  }
  main {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  h1 {
    font-size: 30px;
  }
  .sub,
  .lead {
    font-size: 16px;
  }
  .hero__cards,
  .planets {
    grid-template-columns: minmax(0, 1fr);
  }
  .sky-card {
    padding: 16px 18px;
  }
  .panel.birth {
    padding: 24px 18px;
  }
  .birth__art img {
    top: -220px;
    right: -240px;
    width: 460px;
    height: 460px;
  }
  .brand__lettering {
    width: 180px;
  }
  .hero {
    gap: 20px;
  }
  /* The glow stays inside the wheel: past it is the edge of the screen. */
  .wheel::before {
    inset: 0;
  }
  /* A name would be too small to read: the cards below carry the names. */
  .wheel__label {
    display: none;
  }
  /* The ascendant's tab grows to stay readable on the small drawing. */
  .wheel__asc {
    transform-box: fill-box;
    transform-origin: center;
    scale: 1.4;
  }
  .wheel__numeral {
    font-size: 14px;
  }
  /* The drawing is smaller here, so a tooltip's type is set larger in its
     units to stay readable. */
  .tip {
    max-width: 100%;
    padding: 8px 12px 10px;
    border-radius: 11px;
    font-size: 17px;
    line-height: 23px;
  }
  .tip__title {
    font-size: 19px;
    line-height: 26px;
  }
  /* Two columns of signs: the pair, the name and the dates. */
  .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }
  .sign-card__body {
    gap: 2px;
    padding: 12px 14px 14px;
  }
  .sign-card__tag {
    display: none;
  }
  /* «Близнецы» and «Скорпион» fit a card a phone's half wide. */
  .sign-card__name {
    gap: 6px;
    font-size: clamp(17px, 5vw, 20px);
  }
  .sign-card__name .icon {
    width: 22px;
    height: 22px;
  }
  .sign-card__dates {
    font-size: 14px;
  }
  .emblem {
    width: 84px;
    height: 84px;
  }
  .emblem .icon {
    width: 34px;
    height: 34px;
  }
  .sign-head__tag {
    margin-top: 12px;
    font-size: 18px;
  }
  .sign-head + .sign-body {
    margin-top: 28px;
  }
  .plate {
    padding: 4px 16px 8px;
  }
  .dot {
    width: 28px;
    height: 28px;
  }
  .dot .icon {
    width: 18px;
    height: 18px;
  }
  .sub + .plate,
  .lead + .plate {
    margin-top: 28px;
  }
  /* One card to a row; a reading takes the whole width of its card. */
  .readings,
  .aspects,
  .house-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading-card {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 14px;
  }
  .reading-card__icon .icon {
    width: 28px;
    height: 28px;
  }
  .reading-card__text {
    grid-column: 1 / -1;
  }
  /* The strong and the weak sides one under the other. */
  .sides {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .moment__item {
    gap: 12px;
    padding: 14px;
  }
  .house-card,
  .aspect {
    padding: 14px;
  }
  /* The nature in a word goes under the names, not beside them. */
  .aspect {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }
  .aspect__nature {
    grid-column: 2;
    justify-self: start;
    margin-top: -6px;
  }
  /* The main points of a result, smaller beside their marks. */
  .card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }
  .card .moon-disc,
  .card .asc-mark,
  .card .medal {
    width: 48px;
    height: 48px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .facts dd {
    padding-top: 2px;
  }
  .cells {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
  .cells--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-title {
    margin-top: 36px;
  }
  .title-row {
    gap: 14px;
  }
  .medal[data-size="l"] {
    width: 64px;
    height: 64px;
  }
  .medal[data-size="l"] .icon {
    width: 36px;
    height: 36px;
  }
}

/* Small phones. */
@media (max-width: 380px) {
  /* A tag may break its words rather than leave its card. */
  .tag {
    white-space: normal;
  }
  .plate {
    padding-inline: 12px;
  }
  .dot {
    width: 26px;
    height: 26px;
  }
  .dot .icon {
    width: 16px;
    height: 16px;
  }
  .sign-name .icon {
    margin-inline-end: 4px;
  }
}

/*
 * Light motion, only where the system allows it. As the page opens the sky
 * of the moment rises in, the planets come onto the wheel one by one and the
 * horizon draws itself out to the ascendant's mark. The Sun's drawing turns,
 * the Moon and the ascendant glow softly. Tiles lift a little under the
 * pointer and come up into view as the page scrolls.
 */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes wheel-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes body-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes draw-in {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes asc-glow {
  50% {
    filter: drop-shadow(0 0 12px rgb(232 207 154 / 75%));
  }
}
@keyframes mark-glow {
  50% {
    box-shadow: 0 0 30px rgb(232 207 154 / 55%);
  }
}
@keyframes moon-glow {
  50% {
    filter: drop-shadow(0 0 14px rgb(243 232 210 / 35%));
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .now__stage > .sky-card,
  .now > .sky-card {
    animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .now__stage > [data-body="moon"] {
    animation-delay: 0.1s;
  }
  .now > [data-point="ascendant"] {
    animation-delay: 0.2s;
  }
  .now__stage > .wheel,
  .glance__sky > .wheel {
    animation: wheel-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .wheel__body {
    transform-box: fill-box;
    transform-origin: center;
    animation: body-in 0.6s cubic-bezier(0.3, 1.3, 0.5, 1) 0.3s both;
  }
  .wheel__body[data-body="moon"] {
    animation-delay: 0.36s;
  }
  .wheel__body[data-body="mercury"] {
    animation-delay: 0.42s;
  }
  .wheel__body[data-body="venus"] {
    animation-delay: 0.48s;
  }
  .wheel__body[data-body="mars"] {
    animation-delay: 0.54s;
  }
  .wheel__body[data-body="jupiter"] {
    animation-delay: 0.6s;
  }
  .wheel__body[data-body="saturn"] {
    animation-delay: 0.66s;
  }
  .wheel__body[data-body="uranus"] {
    animation-delay: 0.72s;
  }
  .wheel__body[data-body="neptune"] {
    animation-delay: 0.78s;
  }
  .wheel__body[data-body="pluto"] {
    animation-delay: 0.84s;
  }
  .wheel__ascendant {
    stroke-dasharray: 1;
    animation: draw-in 0.9s ease-out 0.5s both;
  }
  .wheel__asc {
    animation:
      fade-in 0.4s ease-out 1.2s both,
      asc-glow 4s ease-in-out 1.6s infinite;
  }
  .sky-card .planet-art {
    animation: ring-turn 90s linear infinite;
  }
  .sky-card .moon-disc {
    animation: moon-glow 6s ease-in-out infinite;
  }
  .sky-card .asc-mark {
    animation: mark-glow 4s ease-in-out infinite;
  }
  .sky-card,
  .planet,
  .aspect,
  .reading-card,
  .house-card {
    transition:
      translate 0.15s ease,
      box-shadow 0.3s ease;
  }
  :is(.sky-card, .planet, .aspect, .reading-card, .house-card):hover {
    translate: 0 -2px;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--tone-ink) 45%, transparent),
      0 10px 28px rgb(0 0 0 / 25%);
  }
  .more-aspects__box:checked ~ .more-aspects__rest {
    animation: rise-in 0.4s ease-out both;
  }
  @supports (animation-timeline: view()) {
    .planet,
    .aspect,
    .reading-card,
    .house-card,
    .sign-grid > li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
