/* Orvia — one screen, no scroll.
   Type is Archivo, the same face the app ships, self-hosted.
   The orb in the middle is Thinking Orbs (MIT) — see orb.js. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #edf0f6;
  --ink: #0b1220;
  --slate: #5a6379;
  /* The app's primary — the colour of the send button in the composer. */
  --brand: #3983f7;
  /* Ninetynine Systems' rust, as the app sets its own mark. */
  --rust: #b84e28;
  --rust-lift: #d2603a;
  --orb-ink: 11, 18, 32;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1017;
    --ink: #e9eef6;
    --slate: #8792a6;
    --rust: #e0764c;
    --rust-lift: #f08f66;
    --orb-ink: 233, 238, 246;
  }
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 44px);
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

#orb {
  display: block;
  width: clamp(44px, 9.5vmin, 85px);
  height: clamp(44px, 9.5vmin, 85px);
  margin-bottom: clamp(22px, 5vh, 52px);
}

h1 {
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(44px, 8vmin, 86px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--brand);
}

.tagline {
  margin: 0;
  max-width: 30ch;
  font-weight: 420;
  font-stretch: 96%;
  font-size: clamp(16px, 2.5vmin, 22px);
  line-height: 1.4;
  letter-spacing: 0.002em;
  color: var(--slate);
  text-wrap: balance;
}

.soon {
  margin: clamp(22px, 4.2vh, 46px) 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(26px, env(safe-area-inset-bottom));
}

/* The Ninetynine Systems mark, set the way the app sets it in Settings:
   a serif name, and the suffix in the house rust. */
.ninetynine {
  display: inline-block;
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-weight: 600;
  font-size: clamp(17px, 2vmin, 21px);
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
}
.ninetynine span { color: var(--rust); }
.ninetynine:hover span { color: var(--rust-lift); }
.ninetynine:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Short landscape windows: keep everything on one screen. */
@media (max-height: 560px) {
  #orb {
    width: clamp(34px, 6.5vmin, 46px);
    height: clamp(34px, 6.5vmin, 46px);
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(30px, 6.5vmin, 52px);
    margin-bottom: 10px;
  }
  .tagline { font-size: clamp(14px, 2.2vmin, 17px); }
  .soon { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  footer a { transition: none; }
}
