/* Mystic Lens — web palette, mirrored from MysticLens/Views/Theme.swift.
   Keep these in sync with the Swift tokens; they are the same design. */
:root {
  --night: #0b0b13;
  --veil: #141320;
  --haze: #211f33;
  --iris: #9482fa;
  --aqua: #73d1eb;
  --rose: #f59eb8;
  --gold: #facc82;
  --sage: #9edbc2;
  --ink: #ece9f6;
  --muted: #a09cba;
  --rim: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The celestial backdrop: soft iridescent bloom over a deep indigo field,
   the same gradient vocabulary the app uses. Fixed so it does not scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 42% at 18% 4%, rgba(148, 130, 250, 0.30), transparent 68%),
    radial-gradient(48% 38% at 88% 14%, rgba(115, 209, 235, 0.20), transparent 66%),
    radial-gradient(52% 40% at 50% 102%, rgba(245, 158, 184, 0.16), transparent 70%);
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

/* Orb — the app's hero object, reduced to its essentials in CSS. */
.orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 2rem;
  background:
    radial-gradient(38% 34% at 34% 28%, rgba(255, 255, 255, 0.92), transparent 60%),
    conic-gradient(from 210deg, var(--iris), var(--aqua), var(--sage),
      var(--gold), var(--rose), var(--iris));
  box-shadow:
    0 0 0 1px var(--rim),
    0 0 44px rgba(148, 130, 250, 0.45),
    inset 0 0 26px rgba(255, 255, 255, 0.14);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  color: #fff;
}

p, li { color: var(--muted); margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }
ul { padding-left: 1.15rem; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--aqua); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--iris); }

.lede { font-size: 1.15rem; color: #c9c5de; margin-bottom: 2rem; }
.meta { font-size: 0.9rem; color: #6f6b89; margin-bottom: 3rem; }

/* Glass card — translucent fill, hairline rim, exactly as in the app. */
.card {
  background: var(--veil);
  border: 1px solid var(--rim);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .k { color: var(--gold); font-weight: 600; }

nav.top { margin-bottom: 3.5rem; font-size: 0.95rem; }
nav.top a { margin-right: 1.5rem; color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }

footer {
  margin-top: 4.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rim);
  font-size: 0.9rem;
  color: #6f6b89;
}
footer a { margin-right: 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .orb { animation: drift 14s ease-in-out infinite; }
  @keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(8deg); }
  }
}
