/* Dawnlark web. Observatory tokens, copied from app/src/theme/tokens.ts.
   Kept as plain CSS so the site stays a static deploy with no build step. */

:root {
  --night: #04050b;
  --ink: #1a1408;
  --horizon: #c9a15a;
  --horizon-hi: #e0c07e;
  --cream: #edeff6;
  --cream-90: rgba(237, 239, 246, 0.92);
  --cream-72: rgba(237, 239, 246, 0.76);
  --cream-60: rgba(237, 239, 246, 0.66);
  --cream-45: rgba(237, 239, 246, 0.54);
  --card: rgba(200, 210, 255, 0.045);
  --card-line: rgba(200, 210, 255, 0.14);
  --rule: rgba(200, 210, 255, 0.12);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'IBM Plex Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 700px at 50% 108%, rgba(14, 20, 40, 0.9), transparent 70%),
    linear-gradient(
      180deg,
      #020306 0%,
      #030409 28%,
      #04060d 46%,
      #060812 62%,
      #0a0e1e 82%,
      #0e1428 100%
    );
  background-color: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

/* The atlas field: a few faint stars, placed, never animated. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(237, 239, 246, 0.55), transparent 100%),
    radial-gradient(1px 1px at 76% 14%, rgba(237, 239, 246, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 66%, rgba(237, 239, 246, 0.45), transparent 100%),
    radial-gradient(1px 1px at 32% 78%, rgba(237, 239, 246, 0.35), transparent 100%),
    radial-gradient(1px 1px at 62% 42%, rgba(237, 239, 246, 0.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(237, 239, 246, 0.3), transparent 100%);
  opacity: 0.9;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* The strip: mono labels over a hairline, the same instrument marking the app uses. */
.strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-60);
}

.strip .mark {
  color: var(--cream-72);
  text-decoration: none;
}

.strip .mark:hover {
  color: var(--cream);
}

.main {
  margin-top: auto;
  margin-bottom: auto;
  padding: 48px 0;
  animation: rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main {
    animation: none;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--horizon);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--cream);
  text-wrap: balance;
}

p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-72);
  margin: 0 0 16px;
  max-width: 46ch;
}

p.strong {
  color: var(--cream-90);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--horizon);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(201, 161, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 160ms ease, transform 160ms ease;
}

.cta:hover {
  background: var(--horizon-hi);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible {
  outline: 2px solid var(--horizon-hi);
  outline-offset: 3px;
}

.note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--cream-45);
  max-width: 44ch;
}

.card {
  margin-top: 32px;
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
}

.card .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-60);
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-72);
}

footer {
  margin-top: auto;
  padding-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--cream-45);
  border-top: 1px solid var(--rule);
}

footer a {
  color: var(--cream-60);
  text-decoration: none;
}

footer a:hover {
  color: var(--cream);
}

/* Invite page. One job: hand a friend's code to the app. */
.invite-code {
  margin: 26px 0 8px;
  padding: 26px 22px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
}

.invite-code .k {
  margin: 0;
  max-width: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.invite-code .v {
  margin: 10px 0 0;
  max-width: none;
  font-family: var(--mono);
  font-size: clamp(21px, 6vw, 29px);
  letter-spacing: 0.06em;
  color: var(--cream);
  word-break: break-all;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

button.cta {
  border: 0;
  cursor: pointer;
}

.cta.secondary {
  background: transparent;
  border: 1px solid var(--card-line);
  color: var(--cream-90);
  box-shadow: none;
}

.cta.secondary:hover {
  background: rgba(200, 210, 255, 0.06);
}

/* Long-form pages: privacy and support. Same tokens, readable measure. */
.doc {
  margin-top: 8px;
}

.doc .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-45);
  margin: 0 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 36px 0 12px;
}

.doc h2:first-of-type {
  margin-top: 8px;
}

.doc p,
.doc li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--cream-72);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 9px;
}

.doc strong {
  color: var(--cream-90);
  font-weight: 600;
}

.doc a {
  color: var(--horizon-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 192, 126, 0.32);
}

.doc a:hover {
  border-bottom-color: var(--horizon-hi);
}

.doc .summary {
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 0 0 26px;
}

.doc .summary ul {
  margin: 0;
}

/* Two states on the confirmation page: script sets data-state on <html>.
   Default is the cautious one, both read truthfully with no JS. */
[data-state='confirmed'] .when-pending,
[data-state='pending'] .when-confirmed {
  display: none;
}

/* Same idea on the link page (DAWNL-17), with three states. The script runs in
   the head, before anything paints, so a live link never flashes the "used"
   message. Without script the cautious block stays up, which is the truth: this
   page cannot build the hand-off on its own. */
[data-state='ready'] .when-stale,
[data-state='stale'] .when-ready,
[data-state='pending'] .when-ready {
  display: none;
}
