/* The Nova Astro website: page frame and inner pages. Colours, type and components come from
   tokens.css and nova-spread.css (the Nova Spread design system). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--surface); color: var(--ink); overflow-x: hidden; min-height: 100%; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1160px; margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-raised); padding: 8px 14px; border-radius: var(--radius-pill); z-index: 20; }
.skip:focus { left: 16px; }
a { color: var(--sindoor); }

/* header */
.top { padding-block: var(--space-4); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.brand i { width: 26px; height: 39px; border-radius: 5px; background: var(--plum-deep) url("card-back-lotus.svg") center / cover; display: block; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.ns-btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.ns-btn):hover, .nav a[aria-current="page"] { color: var(--sindoor); }
@media (max-width: 760px) { .nav a:not(.ns-btn) { display: none; } }

/* page opener (inner pages) */
.opener { padding-block: var(--space-6) var(--space-6); }
.opener .inner { display: grid; gap: var(--space-3); justify-items: start; }
.opener h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; text-wrap: balance; max-width: 22ch; }
.opener .lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 60ch; }
.band { padding-block: var(--space-7); }
.band.petal { background: var(--surface-petal); }
.band .inner { display: grid; gap: var(--space-6); }
h2.big { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; text-wrap: balance; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); }
.cards .ns-card { scroll-margin-top: 24px; }
.cards .ns-card:target { border-color: var(--sindoor); box-shadow: var(--shadow-lift); }
.book-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.prod .ns-card__media { aspect-ratio: 1; }
/* reading cards carry their tarot card; product tiles carry their illustration */
.has-arc { position: relative; }
.has-arc > .ns-label, .has-arc > .ns-card__title { padding-right: 66px; }
.arc { position: absolute; top: 14px; right: 14px; width: 54px; aspect-ratio: 2 / 3; border-radius: 6px; padding: 3px; rotate: 6deg;
  background: linear-gradient(160deg, var(--plum-deep), var(--sindoor-deep)); box-shadow: var(--shadow-lift); transition: rotate var(--dur-draw) var(--ease-settle), translate var(--dur-draw) var(--ease-settle); }
.arc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; border-radius: 4px; display: block; filter: saturate(.92) sepia(.1); }
.has-arc:hover .arc { rotate: 0deg; translate: 0 -5px; }
.prod .ns-card__media { padding: 10%; }
.prod:hover .il-spin { animation-duration: 12s; }

/* how it works */
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.path::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--line); }
.path li { position: relative; display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.path .ns-moon { width: 44px; height: 44px; background-color: var(--surface); border-width: 2px; --fill: 100%; border-color: var(--sindoor); }
.band.petal .path .ns-moon { background-color: var(--surface-petal); }
.path h3 { margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 28px; }
.path p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .path { grid-template-columns: 1fr; padding-left: 64px; }
  .path::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .path .ns-moon { position: absolute; left: -64px; top: 0; }
  .path h3 { margin-top: 8px; }
}

/* prose: about and policies */
.prose { max-width: 68ch; display: grid; gap: var(--space-4); }
.prose h2 { margin: var(--space-4) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; }
.prose p, .prose li { margin: 0; font-size: 17px; line-height: 28px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--marigold); }
.meta { font-size: 14px; color: var(--ink-muted); }
.toc { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.toc a { text-decoration: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.contact-grid .ns-card b { font-size: 18px; overflow-wrap: anywhere; }

/* closing call */
.closing { text-align: center; }
.closing .inner { justify-items: center; max-width: 720px; gap: var(--space-4); }
.closing .cta-row { justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* footer */
.legal { padding-block: var(--space-6); border-top: 1px solid var(--line); }
.legal .inner { display: grid; gap: var(--space-4); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); font-size: 14px; }
.foot-links a { color: var(--ink); }
.small { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* preview-only marks: details still to fill in, numbers to confirm */
mark.fill { background: var(--marigold-soft); color: var(--kesar); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.decide { border-bottom: 2px dotted var(--marigold); }
.preview-bar { background: var(--marigold-soft); color: var(--kesar); font-size: 14px; padding-block: 8px; text-align: center; }
