/* Self-hosted fonts (latin) — OFL licenses via Google Fonts */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/cormorant-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* Surfaces — warm night sky (no purple/cyan cast) */
  --bg-deep: #0a0e1a;
  --bg-mid: #12182a;
  --glass: rgba(18, 24, 42, 0.72);
  --surface: rgba(18, 24, 42, 0.55);
  --surface-strong: rgba(10, 14, 26, 0.85);
  /* Text on dark */
  --ink: #eef2f7;
  --heading: #f8fafc;
  --muted: #a8b4c8;
  --line: rgba(168, 178, 200, 0.22);
  /* Brand — gold family only (headings, CTAs, accents share one hue) */
  --gold: #c9a227;
  --gold-bright: #e8c27a;
  --gold-soft: #f5e6c8;
  --gold-muted: rgba(201, 162, 39, 0.12);
  --brand: var(--gold);
  --brand-bright: var(--gold-bright);
  --accent: var(--gold-bright);
  /* Parchment edition (ink on cream paper) */
  --parchment: #f3ece0;
  --parchment-ink: #2c2013;
  --parchment-muted: #5f5136;
  --parchment-heading: #2c2013;
  --edition-paper: #f3ece0;
  --edition-paper-top: #f5eed9;
  --edition-ink: #2c2013;
  --edition-muted: #5f5136;
  --edition-heading: #2c2013;
  --edition-accent: #8f3f28;
  --edition-line: rgba(58, 44, 28, 0.16);
  --edition-card: #f7f0e4;
  /* Interactive */
  --text-on-gold: #0a0e1a;
  --link: var(--gold-bright);
  --link-hover: var(--heading);
  --focus-ring: rgba(232, 194, 122, 0.55);
  /* Status — muted sage/red (distinct from brand gold) */
  --ok: #86c8ae;
  --ok-bg: rgba(134, 200, 174, 0.12);
  --error-text: #fca5a5;
  --error-bg: rgba(248, 113, 113, 0.12);
  --header-h: 72px;
  /* Motion — Emil Kowalski (animations.dev): strong curves, sub-300ms UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-press: 140ms;
  --duration-hover: 160ms;
  --duration-popover: 180ms;
  --duration-ui: 200ms;
}

* {
  box-sizing: border-box;
}

/* Author display rules (e.g. .form { display: grid }) must not un-hide [hidden]. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(120, 80, 60, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(80, 100, 140, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0f1a 0%, var(--bg-deep) 45%, #04060f 100%);
  pointer-events: none;
}

#galaxy-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

a {
  color: var(--link);
  text-decoration-color: rgba(232, 194, 122, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--link-hover);
  }
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 0;
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.94), rgba(10, 14, 26, 0.6));
  border-bottom: 1px solid var(--line);
}

.shell.nav {
  position: sticky;
}

@media (max-width: 860px) {
  .nav {
    position: sticky;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--duration-press) var(--ease-out),
    border-color var(--duration-hover) ease,
    background-color var(--duration-hover) ease;
}

.nav-toggle:active {
  transform: scale(0.97);
}

[data-nav-scrim] {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 18;
  background: rgba(4, 6, 15, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-popover) var(--ease-out);
}

[data-nav-scrim].is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 36px;
}

.hero--story {
  grid-template-columns: 1fr;
  max-width: 720px;
  padding-top: 56px;
  /* No entrance animation: critical.css paints the hero first; deferred styles.css
     with animation-fill-mode: both would snap opacity to 0 and flash the headline. */
}

/* Storefront — product-first hero (Suit Supply rhythm) */
.storefront {
  padding-bottom: 72px;
}

.hero--storefront {
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vh, 32px);
  max-width: none;
  padding: clamp(16px, 3vh, 32px) 0 clamp(16px, 3vh, 28px);
  min-height: 0;
}

.hero-product {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.hero-product-card {
  margin: 0;
  border: 0;
  border-radius: 28px;
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--edition-ink, #2c2013) 4%, transparent),
    0 28px 72px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--duration-hover) var(--ease-out),
    box-shadow var(--duration-hover) var(--ease-out);
}

.hero-product-body {
  max-height: 7.5rem;
  overflow: hidden;
}

.hero-product-body .sample-section {
  margin-bottom: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-product-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 2px 0 color-mix(in srgb, var(--edition-ink, #2c2013) 4%, transparent),
      0 36px 80px rgba(0, 0, 0, 0.26);
  }
}

.hero-product-body .sample-section:last-child {
  margin-bottom: 0;
}

.hero-product-body .hero-letter-line {
  margin: 0;
  color: var(--edition-muted, var(--parchment-muted));
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-product-body .sample-section h4 {
  margin-bottom: 6px;
}

.hero-product-tease {
  opacity: 0.72;
}

.hero-copy {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy h1 {
  margin-inline: auto;
}

.hero-copy .lede {
  margin-inline: auto;
}

.actions--single {
  justify-content: center;
}

.hero-secondary {
  margin-top: 12px;
  font-size: 0.92rem;
}

.section--trust {
  padding-top: clamp(32px, 6vh, 56px);
  padding-bottom: clamp(20px, 4vh, 36px);
  max-width: 560px;
  margin-inline: auto;
  border-top: 0;
}

.storefront-section--hero + .section--trust {
  margin-top: clamp(-56px, -10vh, -32px);
}

.section--trust h2 {
  text-align: center;
}

.steps-inline--storefront {
  margin-top: 28px;
  gap: 18px;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.trust-row li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0;
  border: 0;
  background: none;
}

.trust-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-weight: 600;
}

.nav--sparse .nav-links {
  gap: 22px;
}

.nav--sparse .nav-cta {
  color: var(--gold-bright);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .nav--sparse .nav-cta:hover {
    color: var(--heading);
  }
}

/* Storefront chrome v2 — burger left, brand centered in band, drawer secondary nav */
.nav--storefront {
  justify-content: flex-start;
  gap: 0;
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg-deep) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
}

.nav-brand-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
}

.nav--storefront .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.nav--storefront .nav-burger {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.nav-burger__bar {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--muted);
  transition: background-color var(--duration-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav--storefront .nav-burger:hover .nav-burger__bar {
    background: var(--ink);
  }
}

.nav--storefront .nav-links {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 20px 18px;
  background: color-mix(in srgb, var(--bg-deep) 94%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97) translateY(-8px);
  transform-origin: top right;
  transition:
    opacity var(--duration-popover) var(--ease-out),
    transform var(--duration-popover) var(--ease-out),
    visibility var(--duration-popover);
}

.nav--storefront .nav-links.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.nav--storefront .nav-links a {
  width: 100%;
  max-width: none;
  text-align: left;
  padding: 11px 4px;
  font-size: 0.94rem;
}

.nav--storefront .nav-links .nav-cta {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 4px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 24%, transparent);
  margin-bottom: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .nav--storefront .nav-links .nav-cta:hover {
    color: var(--heading);
  }
}

.nav--storefront .nav-links .nav-link--utility {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 4px;
}

@media (hover: hover) and (pointer: fine) {
  .nav--storefront .nav-links .nav-link--utility:hover {
    color: var(--ink);
  }
}

/* Storefront soft UI — hairlines/elevation, no wire boxes */
@media (max-width: 860px) {
  .nav--storefront .logo {
    flex: none;
  }
}

.hero-product-card,
.form--picker,
.paywall-panel,
.sample-edition.hero-product-card {
  border-radius: 32px;
}

.hero-product-card,
.sample-edition {
  box-shadow: 0 28px 72px color-mix(in srgb, #000 16%, transparent);
}

.hero-product-card {
  box-shadow: 0 32px 80px color-mix(in srgb, #000 18%, transparent);
}

.sample-edition--parchment .sample-header,
article.sample-edition.sample-edition--parchment .sample-header {
  border-bottom: 1px solid color-mix(in srgb, var(--edition-line, rgba(58, 44, 28, 0.16)) 45%, transparent);
}

.form--picker {
  box-shadow: 0 28px 72px color-mix(in srgb, #000 14%, transparent);
}

.form--picker input,
.form--picker select {
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 38%, transparent);
  transition:
    box-shadow var(--duration-hover) var(--ease-out),
    background-color var(--duration-hover) var(--ease-out);
}

.form--picker input:focus,
.form--picker select:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-bright) 50%, transparent);
}

.form--picker .button.secondary {
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 35%, transparent);
}

.paywall-panel {
  border-radius: 32px;
  box-shadow: 0 28px 68px color-mix(in srgb, #000 12%, transparent);
}

.preview-pdp-details,
.preview-pdp-daily {
  border-top: 1px solid color-mix(in srgb, var(--edition-line, rgba(58, 44, 28, 0.16)) 42%, transparent);
}

article.sample-edition.sample-edition--parchment .sample-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--edition-ink, #2c2013) 6%, transparent);
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
}

/* Scroll-first storytelling — product → detail → trust */
.storefront-scroll,
.subscribe-scroll {
  scroll-snap-type: y proximity;
}

.storefront-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@keyframes storefront-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .storefront-section {
    animation: storefront-rise linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 32%;
  }
}

@supports not (animation-timeline: view()) {
  .storefront-section {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 480ms var(--ease-out),
      transform 480ms var(--ease-out);
  }

  .storefront-section.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

.problems {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .problems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .problems {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.problem-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  /* forwards only — avoid fill-mode both snapping to opacity 0 before play */
  animation: fade-up 280ms var(--ease-out) forwards;
}

.problem-card:nth-child(1) {
  animation-delay: 40ms;
}

.problem-card:nth-child(2) {
  animation-delay: 80ms;
}

.problem-card:nth-child(3) {
  animation-delay: 120ms;
}

.problem-card:nth-child(4) {
  animation-delay: 160ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.problem-strike {
  margin: 0 0 8px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.45);
  font-size: 0.9rem;
}

.problem-card p:last-child {
  margin: 0;
  font-size: 0.95rem;
}

.steps-inline {
  margin: 20px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.section--compact {
  padding-top: 32px;
}

.checkout-panel {
  max-width: 420px;
}

.footer-note {
  font-size: 0.9rem;
}

.eyebrow {
  color: var(--gold-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 10px 0 18px;
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--heading);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  color: var(--heading);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--brand-bright);
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--text-on-gold);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.22);
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease,
    color var(--duration-hover) ease,
    border-color var(--duration-hover) ease;
}

.button:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--gold-bright);
    box-shadow: 0 12px 36px rgba(201, 162, 39, 0.28);
  }
}

.button--gold {
  background: var(--gold);
  color: var(--text-on-gold);
}

.button.secondary {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .button.secondary:hover {
    border-color: var(--gold-bright);
    background: var(--gold-muted);
    color: var(--ink);
  }
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 26px;
  backdrop-filter: blur(12px);
}

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.muted {
  color: var(--muted);
}

.section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 52px 0 20px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pillar {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pillar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--gold);
  color: var(--bg-deep);
}

.sample-edition--parchment {
  background: var(--edition-paper, var(--parchment));
  color: var(--edition-ink, var(--parchment-ink));
  border-color: var(--edition-line, rgba(58, 44, 28, 0.18));
}

.sample-edition--parchment .sample-header {
  background: color-mix(in srgb, var(--edition-paper-top, var(--edition-paper)) 88%, var(--edition-accent) 12%);
  border-bottom-color: var(--edition-line, rgba(58, 44, 28, 0.14));
}

.sample-edition--parchment .sample-header h3,
.sample-edition--parchment h4 {
  color: var(--edition-heading, var(--parchment-heading));
}

.sample-edition--parchment .sample-meta,
.sample-edition--parchment .sample-card p,
.sample-edition--parchment .sample-disclaimer,
.sample-edition--parchment .preview-lock-note {
  color: var(--edition-muted, var(--parchment-muted));
}

.sample-edition--parchment .sample-card strong,
.sample-edition--parchment .sample-aspect {
  color: var(--edition-ink, var(--parchment-ink));
}

.sample-edition--parchment .sample-kicker {
  color: var(--edition-accent, var(--accent));
}

.sample-edition--parchment .sample-section h4 {
  color: var(--edition-accent, var(--accent));
  text-wrap: pretty;
}

.sample-edition--parchment .sample-card {
  background: color-mix(in srgb, var(--edition-card, var(--edition-paper-top)) 72%, #fff 28%);
  border: 0;
  border-radius: 16px;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edition-ink, #2c2013) 4%, transparent),
    0 10px 28px color-mix(in srgb, var(--edition-ink, #2c2013) 7%, transparent);
  transition: transform var(--duration-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sample-edition--parchment .sample-card:hover {
    transform: translateY(-2px);
  }
}

.sample-kicker {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sample-edition--parchment .sample-card p {
  text-wrap: pretty;
}

.sample-aspect {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.date-row,
.time-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .date-row {
    grid-template-columns: 1fr 1.4fr 1fr;
  }

  .time-row {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }
}

.date-display {
  font-size: 0.85rem;
  color: var(--muted);
}

.astronomy-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.1);
  color: var(--ink);
  font-size: 0.9rem;
}

.sample-edition {
  margin-top: 20px;
  border-radius: 28px;
  border: 0;
  overflow: hidden;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edition-ink, #2c2013) 4%, transparent),
    0 20px 56px color-mix(in srgb, var(--edition-ink, #2c2013) 10%, transparent);
}

.sample-edition:not(.sample-edition--parchment) {
  background: var(--surface-strong);
}

.sample-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--gold-muted);
}

.sample-header h3 {
  margin: 0;
}

.sample-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

.sample-body {
  padding: 8px 22px 22px;
}

.sample-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--edition-line, rgba(58, 44, 28, 0.12));
}

.sample-edition--parchment .sample-section {
  border-bottom-color: var(--edition-line, rgba(58, 44, 28, 0.12));
}

.sample-section:last-child {
  border-bottom: 0;
}

.sample-section h4 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  color: var(--edition-accent, var(--accent));
  text-wrap: pretty;
}

.sample-card {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--brand);
}

.sample-card strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sample-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-bright);
}

.form {
  display: grid;
  gap: 16px;
}

/* Size-picker form — calm subscribe onboarding */
.form--picker {
  max-width: 520px;
  margin-inline: auto;
  gap: 22px;
  padding: clamp(24px, 4vh, 36px) clamp(20px, 4vw, 28px);
  border: 0;
  border-radius: 28px;
  background: color-mix(in srgb, var(--glass) 88%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent),
    0 24px 64px rgba(0, 0, 0, 0.18);
}

/* Google sign-in — inline inside single picker card */
.picker-google {
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
}

.picker-google__label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.picker-google__hint {
  margin: 0.4rem 0 0.9rem;
}

#google-signin-button {
  display: flex;
  justify-content: center;
  width: 100%;
}

.picker-google .lookup-result {
  text-align: center;
}

.picker-section {
  display: grid;
  gap: 16px;
}

.picker-section-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.picker-section--facts {
  gap: 18px;
}

.picker-section--account {
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
}

.subscribe-main {
  padding-bottom: 72px;
}

.subscribe-intro {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(20px, 4vh, 32px) 0 clamp(12px, 2vh, 20px);
  min-height: 0;
}

.subscribe-intro h1 {
  margin-inline: auto;
}

.subscribe-lede {
  margin-inline: auto;
}

.picker-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picker-place {
    grid-column: 1 / -1;
  }
}

.picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.picker-options .checkbox {
  margin: 0;
}

.field--compact legend {
  padding-bottom: 6px;
}

.picker-advanced {
  border: 0;
  border-radius: 16px;
  padding: 12px 4px;
  background: transparent;
}

.picker-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  list-style: none;
}

.picker-advanced summary::after {
  content: " ▸";
  font-size: 0.85em;
  opacity: 0.7;
}

.picker-advanced[open] summary::after {
  content: " ▾";
}

.picker-advanced[open] summary {
  margin-bottom: 16px;
  color: var(--ink);
}

.picker-advanced .field h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.button--compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.button--full {
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: 600;
  padding: 0 0 8px;
  font-size: 0.92rem;
}

input,
select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: var(--surface-strong);
  transition:
    border-color var(--duration-hover) ease,
    background-color var(--duration-hover) ease;
}

input:focus,
select:focus,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--gold-bright);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkbox input {
  min-height: auto;
  margin-top: 5px;
}

.lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.lookup-row input {
  flex: 1 1 220px;
}

.lookup-result {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gold-muted);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: var(--muted);
  font-size: 0.9rem;
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.lookup-result:not([hidden]) {
  @starting-style {
    opacity: 0;
    transform: translateY(6px);
  }
}

.lookup-result.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: rgba(134, 200, 174, 0.35);
}

.lookup-result.error {
  color: var(--error-text);
  background: var(--error-bg);
  border-color: rgba(248, 113, 113, 0.35);
}

.quiz-panel h2 {
  font-size: 1.65rem;
}

.quiz-lead {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

.sun-intro-card .sun-sign-label {
  color: var(--gold);
  font-style: italic;
}

.sun-intro-card .sun-primer {
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  background: var(--gold-muted);
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--duration-press) var(--ease-out),
    border-color var(--duration-hover) ease,
    background-color var(--duration-hover) ease;
}

.quiz-option:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .quiz-option:hover {
    border-color: var(--gold-bright);
    background: var(--gold-muted);
  }
}

.quiz-option input {
  margin-top: 4px;
  min-height: auto;
}

.quiz-actions {
  margin-top: 8px;
}

.prob-bars {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.prob-row {
  display: grid;
  grid-template-columns: auto 88px 1fr 48px;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--surface);
}

.prob-time {
  grid-column: 2 / -1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .prob-row:hover {
    border-color: var(--accent);
  }
}

.prob-sign {
  font-weight: 700;
  color: var(--gold);
}

.prob-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.prob-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.prob-pct {
  text-align: right;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .prob-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }

  .prob-track {
    grid-column: 1 / -1;
  }

  .prob-pct {
    grid-column: 2;
    grid-row: 1;
  }

  .prob-time {
    grid-column: 1 / -1;
  }
}

.coming-soon {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--gold-muted);
  color: var(--muted);
}

.notice.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.legal {
  max-width: 760px;
  padding: 40px 0 72px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .hero,
  .pillars,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.97) translateY(-8px);
    transform-origin: top right;
    transition:
      opacity var(--duration-popover) var(--ease-out),
      transform var(--duration-popover) var(--ease-out),
      visibility var(--duration-popover);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-links a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 0;
  }

  .logo {
    flex: 1;
  }
}

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

  #galaxy-canvas {
    display: none;
  }

  .hero--story,
  .problem-card,
  .storefront-section {
    animation: none;
    opacity: 1;
    transform: none;
  }

  @supports not (animation-timeline: view()) {
    .storefront-section {
      transition: none;
    }
  }

  .storefront-scroll,
  .subscribe-scroll {
    scroll-snap-type: none;
  }

  .hero-product-card,
  .sample-edition--parchment .sample-card {
    transition: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .hero-product-card:hover,
    .sample-edition--parchment .sample-card:hover {
      transform: none;
    }
  }

  .button:active,
  .nav-toggle:active,
  .quiz-option:active,
  .theme-chip:active {
    transform: none;
  }

  .nav-links,
  .nav-links.is-open {
    transform: none;
    transition: opacity var(--duration-ui) ease, visibility var(--duration-ui);
  }

  .lookup-result:not([hidden]) {
    @starting-style {
      opacity: 0;
      transform: none;
    }
  }
}

/* Parchment edition — authoritative ink-on-cream (subscribe preview + homepage sample) */
article.sample-edition.sample-edition--parchment {
  background-color: var(--edition-paper, var(--parchment, #f3ece0));
  color: var(--edition-ink, #2c2013);
  border-color: var(--edition-line, rgba(58, 44, 28, 0.18));
}

article.sample-edition.sample-edition--parchment .sample-header {
  background: color-mix(
    in srgb,
    var(--edition-paper-top, var(--edition-paper, #f5eed9)) 90%,
    var(--edition-accent, #8f3f28) 10%
  );
  border-bottom-color: var(--edition-line, rgba(58, 44, 28, 0.14));
}

article.sample-edition.sample-edition--parchment .sample-header h3 {
  color: var(--edition-heading, #2c2013);
}

article.sample-edition.sample-edition--parchment .sample-kicker {
  color: var(--edition-accent, #8f3f28);
}

article.sample-edition.sample-edition--parchment .sample-meta,
article.sample-edition.sample-edition--parchment .sample-disclaimer,
article.sample-edition.sample-edition--parchment .preview-lock-note {
  color: var(--edition-muted, #5f5136);
}

article.sample-edition.sample-edition--parchment .sample-section h4,
article.sample-edition.sample-edition--parchment .preview-natal-section h4 {
  color: var(--edition-accent, #8f3f28);
}

article.sample-edition.sample-edition--parchment .sample-card {
  background: color-mix(in srgb, var(--edition-card, #f7f0e4) 70%, #fff 30%);
  border: 1px solid var(--edition-line, rgba(58, 44, 28, 0.12));
  border-left: 3px solid var(--edition-accent, #8f3f28);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edition-ink, #2c2013) 4%, transparent),
    0 10px 28px color-mix(in srgb, var(--edition-ink, #2c2013) 7%, transparent);
}

article.sample-edition.sample-edition--parchment .sample-card strong,
article.sample-edition.sample-edition--parchment .sample-aspect {
  color: var(--edition-ink, #2c2013);
}

article.sample-edition.sample-edition--parchment .sample-card p {
  color: var(--edition-muted, #5f5136);
}

article.sample-edition.sample-edition--parchment .preview-natal-label {
  color: var(--edition-muted, #5f5136);
}

article.sample-edition.sample-edition--parchment .preview-natal-list,
article.sample-edition.sample-edition--parchment .preview-natal-list strong {
  color: var(--edition-ink, #2c2013);
}

.preview-panel,
.paywall-panel,
.preview-stage {
  margin-top: clamp(32px, 6vh, 48px);
}

.paywall-panel {
  max-width: 480px;
  margin-inline: auto;
  border: 0;
  border-radius: 28px;
  background: color-mix(in srgb, var(--glass) 90%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent),
    0 24px 56px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.paywall-panel .paywall-lede {
  margin-inline: auto;
}

.preview-mount {
  margin-top: 8px;
}

.preview-edition {
  margin-top: 0;
}

.preview-edition .sample-card strong.sample-aspect {
  display: block;
  margin-bottom: 8px;
}

.preview-natal-grid {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

@media (min-width: 720px) {
  .preview-natal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.preview-natal-col--wide {
  grid-column: 1 / -1;
}

.preview-natal-group {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.preview-natal-group + .preview-natal-group {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--edition-line, rgba(58, 44, 28, 0.14)) 55%, transparent);
}

.preview-natal-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--edition-muted, var(--muted));
  font-weight: 500;
}

.preview-natal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--edition-ink, var(--ink));
  font-size: 0.95rem;
}

.preview-natal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.preview-natal-row--aspect {
  display: block;
}

.preview-natal-row--note .preview-natal-row__value {
  font-size: 0.88rem;
}

.preview-natal-row__label {
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--edition-heading, var(--heading));
}

.preview-natal-row__value {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  text-align: right;
  color: var(--edition-muted, var(--muted));
  font-size: 0.92rem;
}

.preview-natal-glyph {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  color: var(--edition-accent, var(--accent));
}

.preview-natal-sign {
  color: var(--edition-ink, var(--ink));
}

.preview-natal-degree {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--edition-muted, var(--muted));
}

.preview-natal-list strong {
  font-weight: 600;
  color: var(--edition-heading, var(--heading));
}

.preview-list--aspects .preview-aspect-line {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  color: var(--edition-ink, var(--ink));
  text-wrap: pretty;
}

.preview-natal-section h4 {
  margin-bottom: 12px;
}

/* Wheel-first PDP — subscribe after compute */
.preview-pdp {
  display: grid;
  gap: 28px;
}

.preview-pdp-hero {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.preview-pdp-wheel {
  max-width: min(420px, 100%);
  margin-inline: auto;
}

.preview-pdp-details {
  border-top: 1px solid var(--edition-line, rgba(58, 44, 28, 0.14));
  padding-top: 24px;
}

.preview-pdp-daily {
  margin-top: 8px;
  border-top: 1px solid var(--edition-line, rgba(58, 44, 28, 0.14));
  padding-top: 8px;
}

.preview-edition--pdp .preview-pdp-header {
  text-align: center;
  padding-bottom: 20px;
}

.preview-natal-wheel-mount {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.preview-natal-wheel-mount:empty {
  display: none;
}

.natal-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.natal-wheel__svg {
  width: 100%;
  height: auto;
  display: block;
}

.natal-wheel__ring {
  stroke-width: 1;
}

.natal-wheel__spoke,
.natal-wheel__house {
  stroke-width: 1;
}

.natal-wheel__sign {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-anchor: middle;
  dominant-baseline: middle;
  font-variant-emoji: text;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-text-fill-color: currentColor;
}

.natal-wheel__sign-bg {
  stroke-width: 1;
}

.natal-wheel__sign-mark {
  color: var(--edition-gilt, var(--edition-accent, #8f3f28));
}

.natal-wheel__house-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.natal-wheel__aspect {
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.natal-wheel__aspect--harmony {
  stroke-width: 1.6;
  stroke-dasharray: none;
}

.natal-wheel__planet-dot {
  stroke-width: 1.2;
}

.natal-wheel__planet-glyph,
.natal-wheel__hub-glyph,
.natal-wheel__asc {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-anchor: middle;
  dominant-baseline: middle;
}

.natal-wheel__planet-glyph {
  font-size: 13px;
}

.natal-wheel__asc {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
}

.natal-wheel__hub {
  stroke-width: 1;
}

.natal-wheel__hub-glyph {
  font-size: 18px;
}

.natal-wheel__caption {
  margin: 10px 0 0;
  font-size: 0.86rem;
  text-align: center;
}

/* Natal wheel inside parchment edition (natal-wheel.js) — edition tokens, not navy */
article.sample-edition--parchment .natal-wheel {
  color: var(--edition-ink, #2c2013);
}

article.sample-edition--parchment .natal-wheel__ring {
  fill: var(--edition-card, #f7f0e4);
  stroke: color-mix(in srgb, var(--edition-line, rgba(58, 44, 28, 0.18)) 80%, transparent);
  stroke-width: 0.8;
}

article.sample-edition--parchment .natal-wheel__ring--outer {
  fill: color-mix(in srgb, var(--edition-card, #f7f0e4) 88%, var(--edition-paper-top, #f5eed9) 12%);
}

article.sample-edition--parchment .natal-wheel__ring--mid {
  fill: var(--edition-paper-top, #f5eed9);
}

article.sample-edition--parchment .natal-wheel__ring--inner {
  fill: color-mix(in srgb, var(--edition-paper, #f3ece0) 88%, var(--edition-accent, #8f3f28) 12%);
}

article.sample-edition--parchment .natal-wheel__spoke,
article.sample-edition--parchment .natal-wheel__house {
  stroke: var(--edition-line, rgba(58, 44, 28, 0.2));
  stroke-width: 0.6;
  opacity: 0.7;
}

article.sample-edition--parchment .natal-wheel__house {
  stroke: color-mix(in srgb, var(--edition-accent, #8f3f28) 28%, transparent);
  opacity: 0.85;
}

article.sample-edition--parchment .natal-wheel__sign-band {
  fill: var(--edition-card, #f7f0e4);
  stroke: color-mix(in srgb, var(--edition-line, rgba(58, 44, 28, 0.14)) 70%, transparent);
  stroke-width: 0.45;
}

article.sample-edition--parchment .natal-wheel__sign-bg {
  fill: color-mix(in srgb, var(--edition-paper-top, #f5eed9) 82%, var(--edition-card, #f7f0e4) 18%);
  stroke: var(--edition-line, rgba(58, 44, 28, 0.16));
}

article.sample-edition--parchment .natal-wheel__sign-mark {
  color: var(--edition-gilt, var(--edition-accent, #8f3f28));
}

article.sample-edition--parchment .natal-wheel__sign {
  fill: currentColor;
  color: var(--edition-gilt, var(--edition-accent, #8f3f28));
  -webkit-text-fill-color: var(--edition-gilt, var(--edition-accent, #8f3f28));
}

article.sample-edition--parchment .natal-wheel__house-label {
  fill: var(--edition-muted, #5f5136);
}

article.sample-edition--parchment .natal-wheel__aspect {
  stroke: var(--edition-muted, #5f5136);
  opacity: 0.55;
  stroke-width: 1.1;
}

article.sample-edition--parchment .natal-wheel__aspect--harmony {
  stroke: var(--edition-gilt, var(--edition-accent, #8f3f28));
  opacity: 0.75;
  stroke-width: 1.4;
}

article.sample-edition--parchment .natal-wheel__planet-dot {
  fill: color-mix(in srgb, var(--edition-card, #f7f0e4) 82%, #fff 18%);
  stroke: color-mix(in srgb, var(--edition-accent, #8f3f28) 55%, var(--edition-line, rgba(58, 44, 28, 0.2)) 45%);
  stroke-width: 1;
}

article.sample-edition--parchment .natal-wheel__planet-glyph,
article.sample-edition--parchment .natal-wheel__hub-glyph {
  fill: var(--edition-ink, #2c2013);
}

article.sample-edition--parchment .natal-wheel__asc {
  fill: var(--edition-accent, #8f3f28);
}

article.sample-edition--parchment .natal-wheel__hub {
  fill: var(--edition-accent, #8f3f28);
  stroke: color-mix(in srgb, var(--edition-accent, #8f3f28) 45%, transparent);
}

article.sample-edition--parchment .natal-wheel__hub-glyph {
  fill: var(--edition-paper-top, #f5eed9);
}

article.sample-edition--parchment .natal-wheel__caption {
  color: var(--edition-muted, #5f5136);
}

.preview-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.preview-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.preview-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.preview-daily-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.preview-kicker {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-daily-body {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.preview-cite {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.preview-lock-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.preview-intro {
  margin: 0 0 12px;
  max-width: 42rem;
}

.preview-chart-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-card--wide {
  grid-column: 1 / -1;
}

.preview-list--aspects .preview-aspect-line {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
}

.preview-edition {
  margin-top: 8px;
}

.preview-edition .sample-card strong.sample-aspect {
  display: block;
  margin-bottom: 8px;
}

.paywall-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  max-width: 400px;
}

.paywall-primary {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.paywall-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.paywall-more {
  margin-top: 4px;
  text-align: center;
}

.paywall-more summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  list-style: none;
  font-weight: 500;
}

.paywall-more summary::after {
  content: " ▸";
  font-size: 0.85em;
  opacity: 0.7;
}

.paywall-more[open] summary::after {
  content: " ▾";
}

.paywall-more[open] summary {
  margin-bottom: 10px;
}

.paywall-more .paywall-note {
  margin-top: 10px;
  font-size: 0.86rem;
}

.paywall-link {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(168, 178, 200, 0.35);
  cursor: pointer;
  transition: color var(--duration-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .paywall-link:hover {
    color: var(--ink);
  }
}

.paywall-sep {
  color: var(--line);
  font-size: 0.85rem;
}

.paywall-lede {
  max-width: 480px;
}

.paywall-tertiary {
  font-size: 0.95rem;
}

.paywall-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

/* Chart-native temperament — after chart compute (body.chart-preview-ready), not on onboarding form */
html.chart-themed {
  color-scheme: light;
}

body.chart-preview-ready {
  background: var(--bg-deep);
  color: var(--ink);
  transition: var(--theme-transition, none);
}

body.chart-preview-ready::before {
  background:
    radial-gradient(ellipse 85% 55% at 12% -8%, color-mix(in srgb, var(--temperament-accent) 14%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 45% at 92% 18%, color-mix(in srgb, var(--temperament-gilt) 12%, transparent), transparent 52%),
    linear-gradient(180deg, var(--temperament-parchment-top) 0%, var(--temperament-parchment-bottom) 100%);
}

html.chart-themed #galaxy-canvas,
body.chart-preview-ready #galaxy-canvas {
  opacity: 0 !important;
  visibility: hidden;
}

html.chart-themed .nav,
body.chart-preview-ready .nav {
  background: color-mix(in srgb, var(--temperament-parchment-top) 92%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

html.chart-themed .logo,
body.chart-preview-ready .logo {
  color: var(--gold);
}

html.chart-themed .nav-links a,
body.chart-preview-ready .nav-links a {
  color: var(--muted);
}

html.chart-themed .nav-burger__bar,
body.chart-preview-ready .nav-burger__bar {
  background: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  html.chart-themed .nav-links a:hover,
  body.chart-preview-ready .nav-links a:hover {
    color: var(--ink);
  }
}

html.chart-themed .panel,
body.chart-preview-ready .panel {
  background: var(--glass);
  border-color: var(--line);
  box-shadow: 0 10px 36px rgba(44, 32, 20, 0.08);
  color: var(--ink);
}

html.chart-themed .eyebrow,
body.chart-preview-ready .eyebrow {
  color: var(--accent);
}

html.chart-themed h3,
body.chart-preview-ready h3 {
  color: var(--brand-bright);
}

html.chart-themed .legal h1,
body.chart-preview-ready .legal h1,
html.chart-themed .paywall-panel h2,
body.chart-preview-ready .paywall-panel h2 {
  color: var(--heading);
}

html.chart-themed .button--gold,
body.chart-preview-ready .button--gold {
  background: var(--accent);
  color: var(--text-on-gold);
  border-color: color-mix(in srgb, var(--accent) 80%, #000 20%);
}

@media (hover: hover) and (pointer: fine) {
  html.chart-themed .button--gold:hover,
  body.chart-preview-ready .button--gold:hover {
    background: var(--brand-bright);
  }
}

html.chart-themed .button.secondary,
body.chart-preview-ready .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--callout, rgba(255, 255, 255, 0.32));
}

html.chart-themed .preview-panel {
  margin-top: 24px;
}

html.chart-themed .theme-panel,
body.chart-preview-ready .theme-panel {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

html.chart-themed .theme-panel h2,
body.chart-preview-ready .theme-panel h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 8px;
}

html.chart-themed .preview-card,
body.chart-preview-ready .preview-card {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

html.chart-themed .preview-list,
body.chart-preview-ready .preview-list {
  color: var(--ink);
}

html.chart-themed .preview-daily-card,
body.chart-preview-ready .preview-daily-card {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--ink);
}

html.chart-themed .preview-kicker,
body.chart-preview-ready .preview-kicker {
  color: var(--accent);
}

html.chart-themed .footer,
body.chart-preview-ready .footer {
  border-top-color: var(--line);
  color: var(--muted);
}

html.chart-themed .footer a,
body.chart-preview-ready .footer a {
  color: var(--link);
}

.theme-panel {
  margin-top: 1.25rem;
}

.theme-panel--quiet .theme-panel__title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.theme-picker-lede {
  margin: 0 0 10px;
  font-size: 0.86rem;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--duration-press) var(--ease-out),
    border-color var(--duration-hover) ease,
    background-color var(--duration-hover) ease,
    color var(--duration-hover) ease;
}

.theme-chip:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .theme-chip:hover {
    border-color: var(--gold);
    color: var(--heading);
  }
}

.theme-chip.is-selected {
  border-color: var(--gold);
  background: var(--gold-muted);
  color: var(--heading);
}

.theme-chip--auto {
  margin-bottom: 10px;
  border-radius: 999px;
  width: auto;
  max-width: none;
  min-height: 36px;
}

.theme-groups {
  display: grid;
  gap: 12px;
}

.theme-group-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
