/* New surface colours come exclusively from design/tokens.css. */
body { --font-display: var(--sky-font-display); --font-text: var(--sky-font-text); color: var(--sky-text); background: var(--sky-bg); font-family: var(--sky-font-text); }
body.surface-deck { --font-display: var(--deck-font-display); --font-text: var(--deck-font-ui); color: var(--deck-cream); background: var(--deck-bg); font-family: var(--deck-font-ui); }
h1, h2, h3, .wordmark { font-family: var(--sky-font-display); font-weight: 300; letter-spacing: -.035em; }
.surface-deck h1, .surface-deck h2, .surface-deck h3, .surface-deck .wordmark { font-family: var(--deck-font-display); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(1.7rem, 3.25vw, 3.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.7rem); line-height: 1.35; }
.shell { width: min(1280px, calc(100% - 64px)); }
.site-header { border-color: var(--sky-line); background: var(--sky-bg); }
.surface-deck .site-header { background: var(--deck-bg); border-color: var(--deck-raised); }
.site-nav a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark { color: var(--sky-text); font-size: 1.3rem; text-transform: uppercase; }
.surface-deck .wordmark { color: var(--deck-cream); }
.landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; padding: 44px 0 64px; }
.landing-main { min-width: 0; }
.landing h1 { margin: 0 0 20px; max-width: 18ch; }
.landing-lead { color: var(--sky-text-2); max-width: 48ch; margin: 0 0 24px; }
.surface-deck .landing-lead { color: var(--deck-muted-night); }
.landing-form { max-width: 520px; }
.landing-form .data-form { margin: 0; gap: 14px; }
.landing .data-form input:not([type=checkbox]):not([type=hidden]), .landing .data-form textarea { background: var(--sky-raised); color: var(--sky-text); border: 1px solid var(--sky-line); border-radius: 4px; min-height: 48px; }
.surface-deck .landing .data-form input:not([type=checkbox]):not([type=hidden]) { color: var(--deck-cream); background: var(--deck-raised); border-color: var(--deck-muted); }
.landing input::placeholder { color: var(--sky-muted); opacity: 1; }
.surface-deck .landing input::placeholder { color: var(--deck-muted-night); }
.landing label, .landing .check, .landing .consent-note, .landing #city-help { color: inherit; }
.landing .consent-note { font-size: .76rem; line-height: 1.5; opacity: 1; }
.landing .form-action { margin-top: 0; }
.landing .check { min-height: 44px; }
.landing input[type=checkbox] { accent-color: var(--sky-gold); width: 20px; height: 20px; }
.button { color: var(--sky-bg); background: var(--sky-gold); border-color: var(--sky-gold); font: 600 1rem var(--sky-font-text); min-height: 48px; border-radius: 4px; }
.button:hover { background: var(--sky-text); color: var(--sky-bg); }
.surface-deck .button { background: var(--deck-gold-text); border-color: var(--deck-gold-text); color: var(--deck-bg); font-family: var(--deck-font-ui); }
.button--quiet { background: transparent; color: inherit; }
.surface-deck .button--quiet { background: transparent; color: var(--deck-cream); }
:focus-visible { outline: 3px solid var(--sky-gold); outline-offset: 4px; }
.surface-deck :focus-visible { outline-color: var(--deck-gold-text); }
.offer-note { font-size: .85rem; line-height: 1.7; color: var(--sky-muted); margin: 18px 0 0; }
.surface-deck .offer-note { color: var(--deck-muted-night); }
.landing-art { margin: 0; min-width: 0; }
.landing-art > img { width: 100%; height: auto; display: block; }
.landing-art figcaption { color: var(--sky-muted); font-size: .8rem; text-align: center; max-width: 40ch; margin: 20px auto 0; }
.surface-deck .landing-art figcaption { color: var(--deck-muted-night); }
.product-choice { display: flex; gap: 8px; margin-bottom: 20px; }
.product-choice a { padding: 10px 12px; min-height: 44px; border-bottom: 1px solid var(--sky-line); font-size: .85rem; }
.product-choice a[aria-current] { border-color: var(--sky-gold); color: var(--sky-gold); }
.sample-deck { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 40px 15px; }
.sample-card { background: var(--deck-card); color: var(--deck-ink); border: 1px solid var(--deck-frame); width: 38%; flex-shrink: 0; padding: 18px 10px; text-align: center; border-radius: 8px; }
.sample-card:first-child { transform: rotate(-14deg) translateX(20%); }
.sample-card:last-child { transform: rotate(14deg) translateX(-20%); }
.sample-card:nth-child(2) { z-index: 1; transform: translateY(-25px); }
.sample-card img { width: 100%; height: auto; display: block; }
.sample-card span { font: 1.8rem var(--deck-font-display); }
.sample-card b { font: .9rem var(--deck-font-display); }
.book-contents { padding: 50px 0 80px; border-top: 1px solid var(--sky-line); }
.book-contents > p { max-width: 65ch; }
.book-contents ul { padding-left: 20px; max-width: 60ch; line-height: 2; }
.choice-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin: 30px 0 60px; }
.choice-columns p { color: var(--sky-text-2); max-width: 48ch; }
.site-footer { background: var(--sky-bg); color: var(--sky-muted); border-color: var(--sky-line); }
.surface-deck .site-footer { background: var(--deck-bg); color: var(--deck-muted-night); border-color: var(--deck-raised); }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.teaser-target { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; }
.teaser-target:empty { display: none; }
.landing .suggestions { color: var(--sky-text); }
.landing .suggestions label { background: var(--sky-raised); padding: 12px; min-height: 44px; }
.landing .form-error { color: var(--sky-text); background: var(--sky-raised); border-color: var(--sky-gold); }
.birth-moon:not([hidden]) { display: flex; align-items: center; gap: 12px; color: var(--sky-text); }
.surface-deck .birth-moon { color: var(--deck-cream); }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .site-header { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .site-nav { gap: 14px; font-size: .76rem; }
  .wordmark { font-size: 1.1rem; }
  .landing { display: flex; flex-direction: column; gap: 30px; padding: 20px 0 40px; align-items: stretch; }
  .landing h1 { font-size: 1.65rem; margin-bottom: 12px; max-width: 22ch; }
  .landing-lead { font-size: .88rem; line-height: 1.5; margin-bottom: 18px; }
  .landing .data-form { gap: 10px; }
  .landing .data-form label > span { font-size: .82rem; }
  .landing .consent-note { font-size: .7rem; margin: 0; }
  .landing .offer-note { margin-top: 12px; font-size: .78rem; }
  .landing .product-choice { margin-bottom: 14px; }
  .landing .form-action .button { width: 100%; }
  .sample-deck { min-height: 340px; }
  .choice-columns { grid-template-columns: 1fr; gap: 28px; }
  .book-contents { padding: 30px 0 50px; }
}

/* Keep the optional Moon inside the date field without moving the submit button. */
.field-date { position: relative; }
.birth-moon:not([hidden]) { position: absolute; margin: 0; inset: auto 7px 6px auto; width: 38px; height: 38px; pointer-events: none; }
.birth-moon-art, .birth-moon-art svg { display: block; width: 38px; height: 38px; }
.birth-moon figcaption { display: none; }
.field-date input { padding-right: 48px; }
.landing .data-form--natal { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

/* The owner's B2 / G screens: the reference sets scale as well as colour. */
body.surface-sky { background-image: url('/static/imagery/sky/starfield.svg'); background-size: 1440px 900px; background-repeat: repeat; }
.shell { width: min(1320px, calc(100% - 120px)); }
.site-header, .surface-deck .site-header { position: relative; min-height: 84px; width: min(1320px, calc(100% - 120px)); padding: 18px 0; gap: 24px; border: 0; background: transparent; backdrop-filter: none; }
.wordmark, .surface-deck .wordmark { font-size: 18px; font-weight: 300; letter-spacing: .14em; }
.surface-deck .wordmark { font-weight: 400; text-transform: none; font-size: 23px; letter-spacing: .04em; }
.wordmark::before { content: none; }
.site-nav { gap: 30px; }
.site-nav a { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.site-nav a::after { content: none; }
.result-header-share { display: none; }
.landing { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 32px; padding: 12px 0 20px; min-height: 620px; }
.landing h1 { font-size: clamp(44px,4.58vw,66px); font-weight: 200; line-height: 1.04; letter-spacing: -.02em; max-width: none; margin: 0 0 30px; }
.surface-deck .landing h1 { font-weight: 400; line-height: 1.1; }
.landing-lead { font-size: 20px; line-height: 1.45; max-width: 28em; margin: 0 0 28px; }
.landing-form { max-width: none; }
.landing .data-form, .landing .data-form--natal { display: block; color-scheme: dark; }
.birth-fields { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--sky-line); border-radius: 36px; background: var(--sky-raised); }
.birth-fields > label:not(.check) { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; padding: 8px 18px; }
.birth-fields > .field-time { flex: 0 1 110px; border-left: 1px solid var(--sky-line); }
.birth-fields > .field-city { flex: 2 1 210px; border-left: 1px solid var(--sky-line); }
.landing .data-form label:not(.check) > span { color: var(--sky-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; margin: 0 0 2px; }
.landing .data-form .birth-fields input:not([type=checkbox]):not([type=hidden]) { padding: 2px 0; min-height: 32px; border: 0; border-radius: 0; background: transparent; color: var(--sky-text); font: 17px var(--sky-font-text); box-shadow: none; }
.landing .data-form .birth-fields input:focus-visible { outline: 2px solid var(--sky-gold); outline-offset: 4px; }
.landing .birth-fields .form-action { margin: 0; flex: 0 0 auto; }
.button { border-radius: 30px; min-height: 56px; padding: 12px 28px; font-family: var(--sky-font-display); font-weight: 400; font-size: 15px; letter-spacing: -.02em; }
.birth-fields .button { min-height: 60px; border-radius: 30px; white-space: nowrap; }
.landing .check { align-items: center; margin: 2px 12px 0; font-size: 12px; color: var(--sky-muted); }
.landing .check input { margin: 0; }
.landing .consent-note { font-size: 11px; line-height: 1.4; color: var(--sky-muted); margin: 0 12px; }
.landing .offer-note { margin: 14px 12px 0; font-size: 14px; line-height: 1.5; }
.birth-moon:not([hidden]) { right: 12px; bottom: 10px; }
.landing .data-form .field-date input { padding-right: 38px; }
.landing-art { width: 100%; max-width: 640px; justify-self: end; }
.landing-art > img { aspect-ratio: 1; }
.landing-facts { padding: 8px 0 70px; }
.landing-facts > p { margin: 0 0 14px; color: var(--sky-muted); font-size: 13px; }
.landing-fact-list { display: flex; flex-wrap: wrap; gap: 20px 56px; border-top: 1px solid var(--sky-line); padding-top: 18px; }
.landing-fact-list > div { display: flex; align-items: baseline; gap: 14px; }
.landing-fact-list b { font: 200 40px/1.15 var(--sky-font-display); letter-spacing: -.04em; }
.landing-fact-list span { font-size: 14px; line-height: 1.4; color: var(--sky-text-2); }
.surface-deck .birth-fields { background: var(--deck-raised); border-color: var(--deck-frame); }
.surface-deck .landing .data-form label:not(.check) > span, .surface-deck .landing .check, .surface-deck .landing .consent-note { color: var(--deck-muted-night); }
.surface-deck .landing .data-form .birth-fields input:not([type=checkbox]):not([type=hidden]) { color: var(--deck-cream); }
.surface-deck .birth-fields > .field-date { flex: 1; }
.site-footer, .surface-deck .site-footer { background: transparent; }
.landing .suggestions:empty { display: none; }
.landing .suggestions { margin: 8px 0; }
.landing .suggestions label { color: var(--sky-text); }
@media (min-width:701px) and (max-width:1100px) {
  .shell, .site-header, .surface-deck .site-header { width: calc(100% - 64px); }
  .landing { min-height: 570px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
  .landing h1 { font-size: 44px; }
  .landing-lead { font-size: 17px; }
  .birth-fields > .field-city { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--sky-line); }
  .birth-fields .form-action, .birth-fields .button { width: 100%; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 13px; }
}
@media (max-width:700px) {
  .shell, .site-header, .surface-deck .site-header { width: calc(100% - 32px); }
  .site-header, .surface-deck .site-header { min-height: 64px; flex-direction: row; align-items: center; padding: 10px 0; gap: 12px; flex-wrap: nowrap; }
  .wordmark { font-size: 16px; }
  .site-nav > a { display: none; }
  .site-more { display: block; font-size: 13px; }
  .site-more a { font-size: 14px; }
  .result-view .site-nav { display: none; }
  .result-view .result-header-share { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; }
  .landing { min-height: 0; padding: 24px 0 36px; gap: 28px; }
  .landing h1 { font-size: clamp(32px,8.7vw,48px); line-height: 1.08; max-width: 18ch; margin-bottom: 22px; }
  .landing-lead { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .birth-fields { border-radius: 24px; }
  .birth-fields > label:not(.check) { padding: 8px 12px; }
  .birth-fields > .field-time { flex: 0 1 110px; }
  .birth-fields > .field-city { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--sky-line); }
  .birth-fields .form-action, .birth-fields .button { width: 100%; }
  .birth-fields .button { min-height: 52px; border-radius: 24px; }
  .landing .consent-note { font-size: 10px; }
  .landing .offer-note { font-size: 12px; margin-top: 12px; }
  .landing-art { max-width: 520px; margin: auto; }
  .landing-facts { padding-bottom: 40px; }
  .landing-fact-list { gap: 24px; flex-direction: column; }
  .landing-fact-list b { font-size: 32px; min-width: 140px; }
  .landing-fact-list span { font-size: 13px; }
  .surface-deck .birth-fields > .field-date { flex-basis: 100%; }
}
.hero-wheel { position: relative; width: 100%; aspect-ratio: 1; }
.hero-wheel img { display: block; width: 100%; height: auto; }
.hero-wheel > span { position: absolute; font-size: 13px; line-height: 1.3; white-space: nowrap; text-shadow: 0 0 8px var(--sky-bg); }
.hero-wheel-sun { left: 37%; top: 13.5%; }
.hero-wheel-moon { left: 33%; top: 79%; }
.hero-wheel-asc { left: 4%; top: 43.5%; color: var(--sky-gold); }
.button::after { content: none; }
.birth-fields > label.field-date { flex: 1 1 49%; }
.birth-fields > label.field-time { flex: 1 1 45%; }
.birth-fields > label.field-city { flex: 1 1 200px; }
@media(max-width:1100px) {
  .birth-fields > label.field-date { flex: 1 1 49%; }
  .birth-fields > label.field-time { flex: 1 1 40%; }
  .birth-fields > label.field-city { flex-basis: 100%; }
}
@media(max-width:700px) {
  .hero-wheel > span { font-size: 9px; }
  .surface-deck .birth-fields > label.field-date { flex-basis: 100%; }
}
.landing .data-form .birth-fields .field-date input:not([type=checkbox]):not([type=hidden]) { padding-right: 38px; }

/* The public wordmark preserves the two capitals of MagikBook. */
.wordmark, .surface-deck .wordmark {text-transform:none;letter-spacing:.02em;}
