/* Lunawander holding page (slice HP1). Dusk Hour at night: D1's tokens (web/src/styles/looks.css)
   and the landing's ring (web/src/styles/landing.css, .skynow), on one plum sky. */
@font-face {
  font-family: "Imbue";
  src: url("/fonts/imbue-sub.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-sub.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sky-top: #150f2a;
  --sky-mid: #1f1739;
  --hz-foot: #3e1f3f;
  --ink: #f3e9e2;
  --ink-2: #c4b6c3;
  --pearl-2: #d6c9c6;
  --link: #d9c3ea;
  --focus: #e9a98c;
  --gold: #f2d490;
  --rule: rgba(243, 233, 226, 0.2);
  --ring-halo: #241a3d;
  --k-romance: #fb9b99; --k-adventure: #f0b56a; --k-friends: #d7a2ee;
  --k-rest: #9dd5b4; --k-stay: #adc0db; --k-birthday: #f2d490;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Imbue", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html { min-height: 100%; background: var(--sky-top); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 max(24px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(24px, env(safe-area-inset-left));
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--hz-foot) 100%);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* The horizon: rose rising to apricot at the foot of the sky */
body::before {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 56vh;
  background:
    radial-gradient(64% 34% at 50% 100%, rgba(246, 182, 140, 0.7), transparent 82%),
    radial-gradient(62% 80% at 50% 100%, rgba(186, 92, 104, 0.9), rgba(126, 67, 112, 0.4) 58%, transparent);
  pointer-events: none;
  animation: dusk-rise 4.8s var(--ease) both;
}

/* The dial: the sample year turning on the zodiac, in the sky above the wordmark (dial.js) */
.dial { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; }

.pause {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none;
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pause svg { width: 32px; height: 32px; padding: 7px; border: 1px solid var(--rule); border-radius: 50%; overflow: visible; }
.pause:hover { color: var(--ink); }
.pause:focus-visible { outline: none; }
.pause:focus-visible svg { outline: 2px solid var(--focus); outline-offset: 2px; }
.pause__bars { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pause__play { fill: currentColor; display: none; }
.pause[aria-pressed="true"] .pause__bars { display: none; }
.pause[aria-pressed="true"] .pause__play { display: inline; }
.pause[hidden] { display: none; }

main {
  position: relative;
  z-index: 1;
  padding-top: clamp(250px, 46vh, 520px);
  padding-bottom: max(160px, 12vh);
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

h1 {
  font-family: var(--serif);
  font-weight: 340;
  font-optical-sizing: auto;
  font-size: clamp(3.4rem, 16vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 5.4vw, 1.8rem);
  line-height: 1.2;
  color: var(--pearl-2);
}

a {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  padding: 12px 4px;
}
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* --- The ring (landing.css, .skynow, at night; looks.css, Dusk) -------------------------------- */
.skynow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.skynow__bow { fill: none; stroke: color-mix(in srgb, var(--ink) 42%, transparent); stroke-width: 1.2; }
.skynow__bow--far { stroke-dasharray: 2 4; opacity: 0.7; }
.skynow__month { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; fill: var(--ink-2); paint-order: stroke; stroke: var(--ring-halo); stroke-width: 6px; stroke-linejoin: round; }
.skynow__eclipse { fill: none; stroke: var(--gold); stroke-width: 2; }
.skynow__sign { fill: color-mix(in srgb, var(--ink) 74%, transparent); stroke: var(--ring-halo); }
.skynow__glow { opacity: 0.42; }
.skynow__sun { fill: var(--gold); }
.skynow__planet { fill: var(--ink); }
.skynow__glyph { fill: var(--ink-2); display: none; }
.skynow__body.is-live .skynow__glyph { display: inline; fill: var(--k); stroke: var(--ring-halo); }
.skynow__moon-dark { fill: rgba(243, 233, 226, 0.12); stroke: none; }
.skynow__moon { fill: var(--ink); }
.skynow__arcs path { fill: none; stroke: var(--k); stroke-width: 3.5; stroke-linecap: round; }
.skynow__link line { stroke: var(--k); stroke-width: 1.4; }
.skynow__aspect { fill: var(--k); stroke: var(--ring-halo); }
.skynow__natal circle { fill: var(--ring-halo); stroke: var(--gold); stroke-width: 2; }
.skynow__natal text, .skynow__natal g { fill: var(--gold); }
.skynow__natal text { font-family: var(--sans); font-weight: 600; }
.skynow__rx { display: none; fill: var(--k-stay); stroke: var(--ring-halo); }
.skynow__body.is-rx .skynow__rx { display: inline; }
.skynow__body.is-live .skynow__planet { fill: var(--k); }

.k-romance { --k: var(--k-romance); }
.k-adventure { --k: var(--k-adventure); }
.k-friends { --k: var(--k-friends); }
.k-rest { --k: var(--k-rest); }
.k-stay_local, .k-stay { --k: var(--k-stay); }
.k-birthday { --k: var(--k-birthday); }

@keyframes dusk-rise {
  0% { opacity: 0.2; transform: translateY(14%); }
  60% { opacity: 1; }
  100% { opacity: 0.88; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; opacity: 0.88; }
}
