/* ------------------------------------------------------------------
   Sidreal — coming soon
   Palette is the deck palette. Caramel marks a failing case, so it does
   not appear on this page at all; there is nothing here that fails.
   ------------------------------------------------------------------ */

:root {
  --arctic:  #0F172A;   /* Deep Arctic, background            */
  --ice:     #F8FAFC;   /* Arctic Ice, primary text           */
  --teal:    #2DD4BF;   /* Sidreal accent                     */
  --muted:   #8FA0BC;   /* secondary text                     */
  --hairline: rgba(248, 250, 252, 0.14);

  --lattice: rgba(248, 250, 252, 0.07);
  --pitch:   62px;      /* lattice spacing                    */

  /* Self-host Lato and this picks it up. Falls back cleanly if absent. */
  --sans: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vh, 4.5rem);
  padding: clamp(1.5rem, 5vw, 3rem);

  background-color: var(--arctic);
  color: var(--ice);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* isometric lattice + vignette, drawn in CSS so there is no image to ship */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(27deg,  transparent 0 calc(var(--pitch) - 1px),
                              var(--lattice) calc(var(--pitch) - 1px) var(--pitch)),
    repeating-linear-gradient(-27deg, transparent 0 calc(var(--pitch) - 1px),
                              var(--lattice) calc(var(--pitch) - 1px) var(--pitch));
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 30%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 75% 70% at 50% 42%,
              transparent 40%, rgba(6, 10, 20, 0.55) 100%);
}

/* ------------------------------------------------------------------ stage */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
}

.mark {
  width: clamp(56px, 9vw, 84px);
  height: auto;
  color: var(--teal);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.wordmark {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.tagline {
  margin: clamp(1rem, 3vh, 1.75rem) 0 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.78);
  text-wrap: balance;
}

.tagline .accent { color: var(--teal); }

/* ------------------------------------------------------------------ status */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: clamp(1.75rem, 5vh, 2.75rem) 0 0;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;

  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.35; transform: scale(0.82); }
}

/* ------------------------------------------------------------------ text */

.lede {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  max-width: 34rem;
  font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.cta { margin: clamp(1.5rem, 4vh, 2.25rem) 0 0; }

.cta a {
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}

.cta a:hover,
.cta a:focus-visible { border-bottom-color: var(--teal); }

/* ------------------------------------------------------------------ foot */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;

  font-size: 0.8125rem;
  color: rgba(143, 160, 188, 0.88);
}

.foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--hairline);
}

/* ------------------------------------------------------------------ legal
   Long-form text pages. Overrides the centred single-screen layout.
   ------------------------------------------------------------------ */

body.legal {
  justify-content: flex-start;
  align-items: center;
  gap: clamp(2.5rem, 6vh, 3.5rem);
  text-align: left;
  padding-block: clamp(2.5rem, 8vh, 4.5rem);
}

.doc {
  width: 100%;
  max-width: 44rem;
}

.back {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.back:hover,
.back:focus-visible { border-bottom-color: var(--teal); }

.doc h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.35;
}

.doc p,
.doc li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.82);
}

.doc p { margin: 0 0 1rem; }

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li { margin-bottom: 0.35rem; }

.doc address {
  margin: 0 0 1rem;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.82);
}

.doc strong { color: var(--ice); font-weight: 700; }

.doc a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
  transition: border-color 160ms ease;
}

.doc a:hover,
.doc a:focus-visible { border-bottom-color: var(--teal); }

.doc hr {
  margin: 3.25rem 0 2.5rem;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.doc .note {
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--teal);
  background: rgba(248, 250, 252, 0.03);
  font-size: 0.875rem;
}

/* placeholder that must be filled before going live */
.doc .todo {
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: rgba(249, 115, 22, 0.16);
  color: #F97316;
  font-weight: 700;
}

.doc .stand {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

body.legal .foot { margin-top: 0; }

/* ------------------------------------------------------------------ a11y */

a:focus-visible,
.cta a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 30rem) {
  body { gap: 2.5rem; justify-content: center; }
  .tagline br { display: none; }
  .tagline { text-wrap: balance; }
}
