/* Plain pages outside the app (privacy.html, 404.html) and the readable content the
   static build puts inside each app page before the app starts. Same night palette,
   type and spectrum accent as the app; no motion. Paths are root-absolute because
   404.html is served at any depth. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --night: #050f16;
  --night-line: rgba(196, 220, 232, .16);
  --night-text: #f6f1e7;
  --night-muted: #a9bcc5;
  --sky: #94cef0;
  --paper: #f6f1e7;
  --ink: #071923;
  --spectrum: linear-gradient(90deg, #ff3d6e, #ff7a1f, #ffd326, #3fdc7f, #22c7ee, #3a7dff, #b455ff, #ff46ad);
}

/* Scoped so this sheet never changes the app around it. */
.site-page,
.site-page *,
.site-fallback,
.site-fallback * { box-sizing: border-box; }

body.site-page { color-scheme: dark; }

/* With scripts running, the app replaces the fallback; never flash it first. */
.js .site-fallback { display: none; }

html { background: var(--night); }

body.site-page,
.site-fallback {
  margin: 0;
  color: var(--night-text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

.site-page a,
.site-fallback a { color: inherit; }

.site-page a:focus-visible,
.site-fallback a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

.sp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--night-line);
}

.sp-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  text-transform: uppercase;
}

.sp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  font-weight: 600;
}

.sp-nav a,
.sp-links a {
  position: relative;
  padding: 6px 0;
  color: rgba(246, 241, 231, .72);
  text-decoration: none;
  transition: color 200ms ease;
}

.sp-nav a::after,
.sp-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.sp-nav a:hover,
.sp-links a:hover { color: #fff; }

.sp-nav a:hover::after,
.sp-links a:hover::after { transform: scaleX(1); }

.sp-main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 112px) 0 80px;
}

.sp-eyebrow {
  margin: 0 0 14px;
  color: var(--night-muted);
  font-size: 14px;
  font-weight: 600;
}

.sp-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.sp-rule {
  display: block;
  width: 120px;
  height: 2px;
  margin: 28px 0 8px;
  background: var(--spectrum);
}

.sp-main h2 {
  margin: 44px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sp-main p {
  margin: 0 0 14px;
  color: rgba(246, 241, 231, .84);
}

.sp-main p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-updated {
  margin-top: 8px;
  color: var(--night-muted) !important;
  font-size: 14px;
}

.sp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 36px;
  font-size: 16px;
  font-weight: 700;
}

.sp-links a { color: var(--night-text); }

.sp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px clamp(20px, 5vw, 64px) 32px;
  color: var(--night-muted);
  font-size: 13px;
  border-top: 1px solid var(--night-line);
}

.sp-footer a { text-decoration: none; }
.sp-footer a:hover { color: #fff; }

/* Readable content inside each app page, shown until the app starts (and to anything
   that reads the page without running it). */
.site-fallback .sp-main { padding-top: 48px; }

.sf-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-line);
}

.sf-list li { border-bottom: 1px solid var(--night-line); }

.sf-list a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
}

.sf-list strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.sf-list span {
  color: var(--night-muted);
  font-size: 14px;
}

.sf-figure {
  margin: 28px 0;
}

.sf-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sf-figure figcaption {
  margin-top: 8px;
  color: var(--night-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .sp-nav a::after,
  .sp-links a::after { transition: none; }
}
