/* The temporary « Coming soon » page (site/coming-soon, SITE_MODE=coming-soon). Colours come from fuselift-tokens.css:
   the portal's ink field (--ink to --ink-2 at 135 degrees, with its 18 px dot grid), the portal's blue tile for the mark
   (--primary), mint for the one status dot. Always dark, whatever the visitor's system says. */

:root {
  color-scheme: dark;
  /* The portal's light-theme values, pinned: this page ignores the visitor's light or dark setting, and the tokens file
     would shift them in a dark system. Same values as --ink, --ink-2, --ink-muted, --mint and --primary there. */
  --cs-ink: #0c1838;
  --cs-ink-2: #1e3f9a;
  --cs-muted: #cfdaf6;
  --cs-mint: #5fe0a6;
}

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

html {
  background: linear-gradient(135deg, var(--cs-ink), var(--cs-ink-2)) fixed var(--cs-ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  overflow-x: hidden;
}

/* The dot grid fades towards the lower left, where the words sit. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4.5rem);
  max-width: 90rem;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

/* The iOS app icon (tools/ios/appicon.swift): white ring and mint dot on the ink gradient, an inline SVG so it stays crisp. */
.tile {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
}

.lang {
  color: var(--cs-muted);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 1.5px solid transparent;
}

.lang:hover {
  color: #fff;
  border-bottom-color: currentColor;
}

main {
  align-self: end;
  padding: 4rem 0 clamp(2.5rem, 8vh, 5.5rem);
  max-width: 62rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.sub {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  color: var(--cs-muted);
  text-wrap: balance;
}

.dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cs-mint);
  transform: translateY(-0.1em);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: var(--cs-muted);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  display: inline-block;
  padding: 0.35rem 0;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 0.25em;
}

.foot a:hover {
  text-decoration-color: currentColor;
}

.foot p {
  margin: 0;
}

a:focus-visible {
  outline: 2px solid var(--cs-mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* One quiet entrance: the words rise a few pixels once. Nothing moves for visitors who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
  h1,
  .sub {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .sub {
    animation-delay: 0.12s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}

@media (prefers-contrast: more), (forced-colors: active) {
  html {
    background: var(--cs-ink);
  }
  body::before {
    display: none;
  }
}

@media print {
  html {
    background: none;
  }
  body {
    color: #000;
  }
}

.nb {
  white-space: nowrap;
}
