/* soundmanipulations.com while the new site is built: the app's state page
   (src/shell/state-page.tsx, docs/147 §9) as a page of its own.

   The colours are src/styles/tokens.css's, under the same names, copied
   because this site doesn't build from the app. services/site/site.test.ts
   fails when one drifts from the token. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-5.3.0-latin-opsz.woff2) format("woff2-variations");
}

:root {
  --color-ground: #0f0f13;
  --color-line-strong: rgb(255 255 255 / 0.13);
  --color-control: #2e2e39;
  --color-ink: #ececf1;
  --color-ink-2: #a3a3b0;
  --color-ink-3: #8a8a98;
  --color-accent: #a78bfa;
  --radius-control: 8px;

  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100dvh;
  background: var(--color-ground);
  color: var(--color-ink-2);
  font:
    13px/20px "Inter Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-feature-settings:
    "liga" 1,
    "calt" 1;
}

/* The room's one faint violet glow, behind the message: stage at 13%. */
main {
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: radial-gradient(
    520px 340px at 50% 50%,
    rgb(139 92 246 / 0.13),
    transparent 70%
  );
}

.message {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 384px;
  text-align: center;
}

/* The mark: at least 20px tall, clear space half its height (docs/147 §13).
   Larger here, where it is the brand and not a footnote. */
.mark {
  display: block;
  height: 28px;
  width: auto;
}

h1 {
  margin-top: 28px;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-top: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* The kit's outline button (src/ui/button.ts). */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms,
    border-color 150ms;
}

.button:hover {
  border-color: rgb(255 255 255 / 0.2);
  background: var(--color-control);
}

.button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

.button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

@media (pointer: coarse) {
  .button {
    height: 36px;
    padding: 0 14px;
  }
}

footer {
  padding: 16px;
  color: var(--color-ink-3);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

footer a {
  color: var(--color-ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

footer a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
