/* Stargazing, direction A "The night sky" (14 Oct 2026). Velvet tokens (explore/velvet/features/_kit/kit.css): deep
   navy into black, cream lettering, one gold, TF Cormorant upright for the voice, the system sans for small words.
   The sky fills the window below the site header; words sit on it only where they are needed. Phone first. */
@font-face { font-family: 'TF Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url(../explore/velvet/tf-cormorant.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --night: #04060d; --page: #141d33; --band: #0d1427; --deep: #0b1122;
  --ink: #f6ecdc; --body: #ddd2bf; --muted: #b9b0a2; --faint: #8d8ca0;
  --gold: #e8c690; --line: #ffffff1a; --line-warm: #e8c6902e;
  --serif: 'TF Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass: rgba(9, 13, 28, .72);
}
* { box-sizing: border-box; }
html { background: var(--night); }
body.sg { margin: 0; background: var(--night); color: var(--body); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: var(--gold); }
.sg-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sg-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--band); color: var(--ink); border-radius: 8px; }
.sg-skip:focus { top: 12px; }

/* ── the stage: the sky, and on a wide screen the reading beside it ── */
.sg-main { position: relative; }
.sg-stage { position: relative; height: var(--stage-h, calc(100svh - 64px)); overflow: hidden; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--night); }
.sg-sky { position: relative; grid-column: 1; grid-row: 1; overflow: hidden; overflow: clip; touch-action: pinch-zoom; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sg-sky:active { cursor: grabbing; }
.sg-sky:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.sg-canvas, .sg-horizon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sg-horizon { pointer-events: none; }
.sg-marks { position: absolute; inset: 0; pointer-events: none; }
.sg-mark { position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: auto; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; cursor: pointer; }
/* a light out of view is clipped away, not visibility:hidden, so Tab still reaches it and its focus turns it into view
   (GPT review E4); it takes no taps while it waits */
.sg-mark.is-off { clip-path: inset(50%); pointer-events: none; }
.sg-mark.is-off:focus { clip-path: none; }
.sg-mark--body { z-index: 2; clip-path: var(--body-hit-area, none); }
.sg-mark--body:focus-visible { outline-offset: -4px; }
/* star names: cream with a soft dark halo so lines and stars never cut the letters (design list B2) */
.sg-mark--figure { padding: 0 10px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(228, 208, 170, .78);
  text-shadow: 0 0 2px #080b18, 0 0 6px #080b18, 0 0 12px #080b18; opacity: 0; transition: color 320ms var(--ease), opacity 600ms var(--ease); }
.sg-mark--figure.is-in { opacity: 1; }   /* the names come in at the landing (critique A4) */
.sg-mark--figure.is-lit { color: #fbf1de; }
.sg-mark--figure:hover { color: var(--ink); }

/* ── words on the sky ── */
/* the title and date on a faint dark fade, so they never sit on bright Milky Way (design list B3) */
.sg-top { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 36px; background: linear-gradient(180deg, rgba(4, 6, 13, .72), rgba(4, 6, 13, 0));
  pointer-events: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
/* words after the sky (critique A4): the title and date at 1.2 s, the bar at 2 s, the hint at 4.5 s; the sky is first */
.sg-top, .sg-bar, .sg-hint { opacity: 0; }
.sg-stage.is-lit .sg-top, .sg-stage.is-ready .sg-bar { opacity: 1; transition: opacity 700ms var(--ease); }
.sg-hint.is-in { opacity: 1; }
.sg-top > * { pointer-events: auto; }
.sg-title { margin: 0; width: 100%; font: 500 34px/1 var(--serif); color: var(--ink); letter-spacing: .01em; pointer-events: none; }
.sg-when { flex: 0 0 100%; margin: 4px 0 0; font: 500 19px/1.25 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; pointer-events: none; }
.sg-state { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid #ffffff2e; font: 500 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); vertical-align: 3px; }
.sg-state.is-live { border-color: #e8c69066; color: var(--gold); }
.sg-now { margin-top: 6px; }

/* buttons in the Velvet family (design list B4): the site's gold hairline and gold hover, as the kit's .k-pill */
.sg-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; background: rgba(9, 13, 28, .55); border: 1px solid #e8c69059; color: var(--ink);
  font: 500 13px/1 var(--sans); letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.sg-pill:hover:not(:disabled), .sg-pill[aria-expanded="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 100px rgba(232, 198, 144, .07); }
.sg-pill:disabled { opacity: .45; cursor: default; }
.sg-pill--quiet { color: var(--ink); }   /* Details is not disabled; the disabled Share pill beside it carries that look at .45 (critique A11) */
.sg-pill--gold { color: var(--gold); border-color: #e8c69073; }

.sg-say {
  pointer-events: none;   /* words never block the sky's gestures */
  position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 132px; margin: 0; padding: 12px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-warm); color: var(--ink); font: 500 19px/1.35 var(--serif);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); animation: sg-in 320ms var(--ease);
}
.sg-say.is-anchored { left: clamp(16px, calc(var(--x) - 150px), calc(100% - 316px)); right: auto; bottom: auto; top: var(--y); translate: 0 -100%; width: min(300px, calc(100% - 32px)); }
/* When light hit areas overlap, name each choice without making the touch targets smaller. */
.sg-choice { position: absolute; z-index: 7; left: 16px; right: 16px; bottom: 132px; padding: 12px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-warm); color: var(--ink); font: 500 17px/1.35 var(--serif); }
.sg-choice p { margin: 0 0 10px; }
.sg-choice #sg-choice-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
/* the one instruction: a short serif line on soft glass, above the trees and the bar (design list B3) */
.sg-hint { position: absolute; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); bottom: var(--hint-bottom, 136px); margin: 0; padding: 7px 16px;
  border-radius: 14px; text-align: center; font: 500 17px/1.25 var(--serif); color: var(--body); background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; transition: opacity 600ms var(--ease); }
.sg-hint.is-gone { opacity: 0 !important; }
@keyframes sg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sg-error { position: absolute; z-index: 7; left: 16px; right: 16px; top: 108px; padding: 14px 18px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line-warm);
  border-left: 3px solid #e0735a99; color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sg-error p { margin: 0 0 12px; font: 500 19px/1.35 var(--serif); }

/* ── the bar ── */
.sg-bar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: linear-gradient(180deg, rgba(4, 6, 13, 0), rgba(4, 6, 13, .7) 40%); }
/* a phone on its side: the bar and the card keep clear of the notch (critique A11) */
.sg-bar, .sg-card { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.sg-bar-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sg-bar-row::-webkit-scrollbar { display: none; }
.sg-bar-row .sg-pill { flex: none; }
/* Next: the one main action, in the serif voice, with a small gold chevron */
.sg-next { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(232, 198, 144, .12); border: 1px solid #e8c69073; color: var(--ink); font: 500 17px/1.2 var(--serif); transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.sg-next::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); rotate: 45deg; }
.sg-next:hover:not(:disabled) { border-color: var(--gold); background: rgba(232, 198, 144, .18); }
.sg-next:disabled { opacity: .5; cursor: default; }
.sg-next:disabled::after { display: none; }
.sg-next-k { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ── the sign card ── */
.sg-card { position: absolute; z-index: 9; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 40px;
  background: radial-gradient(120% 60% at 50% 0%, #1a2346 0%, #0b1122 60%, #070a16 100%); color: var(--body); animation: sg-in 320ms var(--ease); }
.sg-card-body { max-width: 520px; margin: 0 auto; }
.sg-card-art { width: 132px; height: 132px; margin: 8px auto 6px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle, rgba(232, 198, 144, .14) 0%, rgba(232, 198, 144, 0) 70%); box-shadow: inset 0 0 0 1px rgba(232, 198, 144, .28); }
.sg-card-glyph { width: 74px; height: 74px; }
.sg-kick { margin: 10px 0 0; text-align: center; font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sg-card-name { margin: 6px 0 0; text-align: center; font: 500 48px/1 var(--serif); color: var(--ink); outline: none; }
.sg-card-theme { margin: 8px 0 0; text-align: center; font: 500 22px/1.3 var(--serif); color: var(--gold); }
.sg-card-note { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.sg-card-note--gold { color: var(--gold); }
.sg-card-honest { margin: 12px 0 0; text-align: center; font: 500 17px/1.4 var(--serif); color: var(--body); }   /* where the Sun really stands (critique B2) */
.sg-card-text { margin: 22px 0 0; font: 500 21px/1.45 var(--serif); color: var(--ink); }
.sg-card-sec { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.sg-card-sec h3 { margin: 0 0 8px; font: 500 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sg-card-sec p { margin: 0 0 8px; }
.sg-card-q { font: 500 20px/1.35 var(--serif); color: var(--ink); }
.sg-card-quiet { font-size: 14px; color: var(--faint); }
.sg-card-foot { margin: 22px 0 0; font-size: 13px; color: var(--faint); }
.sg-card .sg-birth-link { font-size: 19px; line-height: 1.35; min-height: 0; padding: 4px 0 3px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
/* Close stays in reach while the card or a sheet scrolls (design list A4); the negative margins cancel its own space */
.sg-close { position: sticky; top: 10px; z-index: 2; display: block; width: 44px; height: 44px; margin: -12px -12px -32px auto; border-radius: 50%; border: 1px solid #ffffff26; background: rgba(9, 13, 28, .6); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* ── sheets: from the bottom on a phone ── */
.sg-sheet { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: #0c1226f2; border-top: 1px solid var(--line-warm); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: sg-up 320ms var(--ease); }
@keyframes sg-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sg-sheet .sg-close { margin: -10px -8px -34px auto; }
.sg-sheet-h { margin: 0 52px 14px 0; font: 500 28px/1.1 var(--serif); color: var(--ink); outline: none; }
.sg-signlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sg-signbtn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff08; color: var(--ink); cursor: pointer; font: 500 18px/1 var(--serif); text-align: left; }
.sg-signbtn-glyph { width: 22px; height: 22px; flex: none; color: rgba(216, 179, 106, .9); }
.sg-signbtn.is-sun { border-color: #f6ecdc55; }
.sg-signbtn[aria-pressed="true"] { border-color: var(--gold); }
.sg-birth-form { display: grid; gap: 8px; max-width: 420px; }
.sg-birth-form label { font-size: 15px; }
.sg-birth-form input, .sg-share-url { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid #ffffff33; background: var(--deep); color: var(--ink); font: 15px var(--sans); color-scheme: dark; width: 100%; }
.sg-help { margin: 0; font-size: 14px; color: var(--muted); }
.sg-birth-out { font-size: 15px; }
.sg-birth-out.is-error { color: #f0a08c; }
/* the way on to the Birth Reading: a quiet gold serif line, not a fourth pill and not a banner */
.sg-birth-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding-bottom: 1px; border-bottom: 1px solid #e8c69059;
  font: 500 19px/1.3 var(--serif); color: var(--gold); text-decoration: none; }
.sg-birth-link::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); rotate: 45deg; }
.sg-birth-link:hover { border-bottom-color: var(--gold); }
.sg-birth-sign { margin: 8px 0 6px; font: 500 24px/1.25 var(--serif); color: var(--gold); }
.sg-table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 15px; }
.sg-table th, .sg-table td { text-align: left; padding: 8px 6px 8px 0; border-top: 1px solid var(--line); }
.sg-table thead th { font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-top: 0; }
.sg-method { font-size: 15px; max-width: 46em; }
.sg-method h3 { margin: 20px 0 6px; font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sg-method p { margin: 0 0 8px; }
.sg-sources li { margin-bottom: 6px; }
.sg-licence summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--gold); }
.sg-licence pre { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; color: var(--faint); }

.sg-noscript, .sg-legacy { max-width: 640px; margin: 24px auto; padding: 16px; color: var(--ink); }

/* ── wider screens: the reading beside the sky ── */
@media (min-width: 900px) {
  .sg-card .sg-close { margin: -20px -20px -24px auto; }
  .sg-top { padding: 22px 32px 44px; }
  .sg-title { font-size: 44px; }
  .sg-when { font-size: 22px; }
  .sg-bar { padding: 14px max(32px, env(safe-area-inset-right)) 24px max(32px, env(safe-area-inset-left)); grid-template-columns: auto 1fr; align-items: center; }
  .sg-bar-row { justify-content: flex-end; }

  .sg-say { left: 32px; right: auto; width: 380px; bottom: 100px; }
  .sg-error { left: 32px; right: auto; width: 460px; top: 130px; }
  .sg-stage.has-card { grid-template-columns: minmax(0, 1fr) 440px; }
  .sg-card { position: relative; inset: auto; grid-column: 2; grid-row: 1; border-left: 1px solid var(--line-warm); padding: 30px max(30px, env(safe-area-inset-right)) 48px 30px; }
  .sg-stage.has-card .sg-bar { right: 440px; }
  .sg-stage.has-card .sg-hint { left: calc(50% - 220px); }
  .sg-sheet { left: auto; right: 24px; bottom: 96px; width: 420px; max-height: calc(100% - 140px); border-radius: 18px; border: 1px solid var(--line-warm); }
  .sg-sheet--wide { width: 560px; }
  .sg-stage.has-card .sg-sheet { right: 464px; max-width: calc(100% - 488px); }   /* beside an open card a sheet keeps 24 px from the left edge (GPT review E1) */
}

/* phones (critique B3): more sky, words out of the way. A smaller title with the date beside the chip, the hint in the
   empty sky under the title block instead of over the star names, 14 px pill labels, a smaller card emblem */
@media (max-width: 600px) {
  .sg-title { font-size: 28px; }
  .sg-when { flex: 1 1 auto; font-size: 16px; margin-top: 2px; }
  .sg-hint { bottom: auto; top: 132px; font-size: 15px; padding: 6px 12px; max-width: 300px; }
  #sg-next-what { text-wrap: balance; }
  .sg-pill { font-size: 14px; }
  .sg-card-art { width: 96px; height: 96px; }
  .sg-card-glyph { width: 54px; height: 54px; }
}
.sg-next-day { white-space: nowrap; }   /* "Fri 23 Oct" stays together when Next wraps */

/* phones: the four actions fit one row with a margin to spare */
@media (max-width: 420px) {
  .sg-bar-row { gap: 6px; }
  .sg-bar-row .sg-pill { padding: 0 12px; }   /* 14 px labels (B3) fit one row at 360 with 12 px, not 13 */
}

/* the narrowest phones: the four actions on two rows rather than a row that scrolls sideways out of sight */
@media (max-width: 359px) {
  .sg-bar-row { flex-wrap: wrap; overflow: visible; }
  .sg-bar-row .sg-pill { flex: 1 1 calc(50% - 4px); padding: 0 10px; }
}

/* short windows (a phone on its side, a small phone, a shrunk browser): a tighter top and no hint, so the sky and the
   bar both fit (review package 1) */
@media (max-height: 640px) {
  .sg-top { top: 8px; }
  .sg-title { font-size: 24px; }
  .sg-when { font-size: 16px; margin-top: 2px; }
  .sg-now { margin-top: 2px; }
  .sg-hint { display: none; }
  .sg-bar { padding-top: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .sg-error { top: 72px; }
  .sg-say { bottom: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-say, .sg-card, .sg-sheet { animation: none !important; }
  .sg-hint, .sg-mark--figure, .sg-pill, .sg-top, .sg-bar { transition: none !important; }
  .sg-top, .sg-bar, .sg-mark--figure { opacity: 1; }
}
html[data-motion="reduced"] .sg-say, html[data-motion="reduced"] .sg-card, html[data-motion="reduced"] .sg-sheet { animation: none !important; }
html[data-motion="reduced"] .sg-top, html[data-motion="reduced"] .sg-bar, html[data-motion="reduced"] .sg-mark--figure, html[data-motion="reduced"] .sg-hint { transition: none !important; }
html[data-motion="reduced"] .sg-top, html[data-motion="reduced"] .sg-bar, html[data-motion="reduced"] .sg-mark--figure { opacity: 1; }
@media (forced-colors: active) {
  .sg-mark:focus-visible { outline: 2px solid CanvasText; }
}
