/* BeeCrow, LLC design system.
   Deliberately unhashed and in public/: the static legal pages (privacy.html,
   terms.html, 404.html) need a URL that does not change every build, and Vite
   content-hashes anything imported from src/. This is the only place the
   palette is defined. */

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

:root {
  color-scheme: dark;

  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-yellow: #ffd800;
  --accent-blue: #0057b7;
  --border-color: rgba(255, 255, 255, 0.1);

  /* #a0a0b0 is the dimmest colour any text may use — it clears WCAG AA on
     every background in this palette. Lower opacities are for hairlines and
     dots only, and must never be the sole carrier of information. */
  --danger: #ff6b6b;
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-yellow);
  color: var(--bg-primary);
}

/* Layout for the static legal and error pages. */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  line-height: 1.65;
}

.legal h1,
.legal h2 {
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal > p:first-child {
  margin-bottom: 2rem;
}

.legal .updated {
  color: var(--text-secondary);
}

.centered {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
  padding: 24px;
}
