/* Astrologie.world: pre-launch pages. Brand tokens from Astrologie_World_v4_1/brand. */

@font-face {
  font-family: "AW Roman";
  src: url("/assets/fonts/lmroman12-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AW Roman";
  src: url("/assets/fonts/lmroman12-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "AW Sans";
  src: url("/assets/fonts/lmsans10-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AW Sans";
  src: url("/assets/fonts/lmsans10-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #15120f;
  --ivory: #eee4d2;
  --gold: #b99a5b;
  --focus: #dcc584;
  --plum: #251a27;
  --muted: #bbb0a3;
  --line: rgba(185, 154, 91, 0.4);
  --serif: "AW Roman", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "AW Sans", "Segoe UI", Candara, Calibri, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --wide: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--focus);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ivory);
  color: var(--night);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  padding-block: 28px 0;
}
.brand {
  display: inline-block;
  padding-block: 6px;
}
.brand img {
  width: clamp(180px, 22vw, 240px);
  height: auto;
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 104px);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.hero-text {
  position: relative;
  max-width: 36rem;
}
.status {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.lead {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  font-size: 1.3125rem;
  line-height: 1.55;
  max-width: 34rem;
}

/* The orbit: the emblem's ring, drawn once behind the headline. */
.orbit {
  position: absolute;
  z-index: 0;
  left: -12%;
  top: -26%;
  width: 132%;
  height: auto;
  color: var(--gold);
  pointer-events: none;
}
.orbit .ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.55;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}
.orbit .planet {
  fill: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .orbit .ring {
    stroke-dashoffset: 1;
    animation: draw 1.8s cubic-bezier(0.33, 0, 0.2, 1) 0.2s forwards;
  }
  .orbit .planet {
    opacity: 0;
    animation: appear 0.5s ease-out 1.9s forwards;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes appear {
  to {
    opacity: 1;
  }
}

/* Waitlist */
.waitlist {
  position: relative;
  z-index: 1;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 36px);
}
.waitlist h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.15;
}
.waitlist > p {
  margin: 12px 0 0;
}
.form-slot {
  margin-top: 20px;
}
.form-slot iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  background: var(--night);
  color-scheme: normal;
}
@media (max-width: 480px) {
  .form-slot iframe {
    height: 480px;
  }
}
.form-pending {
  margin: 0;
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--plum);
  color: var(--ivory);
}
.fine {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* What to expect */
.expect {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--plum);
}
.expect h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}
.points {
  display: grid;
  gap: 36px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.points h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}
.points p {
  margin: 10px 0 0;
  max-width: 30rem;
}

/* Closing statement */
.closing {
  padding-block: clamp(56px, 8vw, 96px);
}
.closing h2 {
  font-style: italic;
  max-width: 22ch;
}
.closing p {
  margin: 18px 0 0;
  max-width: 34rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.foot-grid {
  display: grid;
  gap: 28px;
}
.foot-grid p {
  margin: 0;
}
.foot-grid p + p {
  margin-top: 8px;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-block;
  padding-block: 10px;
}
.foot-label {
  color: var(--ivory);
}

/* Text pages */
.page {
  padding-block: clamp(48px, 8vw, 88px) clamp(56px, 8vw, 96px);
}
.page h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
}
.page .updated {
  margin: 14px 0 0;
  color: var(--muted);
}
.page h2 {
  margin: 44px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
}
.page p {
  margin: 12px 0 0;
  max-width: 38rem;
}
.page .intro {
  margin-top: 28px;
  font-size: 1.25rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
  .waitlist {
    margin-top: 56px;
  }
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .orbit {
    left: -16%;
    top: -12%;
    width: 136%;
  }
}

/* Consent banner */
.consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-width: 44rem;
  margin: 0 auto;
  background: var(--plum);
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.consent p { margin: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.consent button {
  font: inherit;
  font-size: 0.9375rem;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.consent button.primary { background: var(--gold); color: var(--night); }
