/*
 * gaiaos.app : accueil et pages légales. Statique, sans script ni requête externe.
 * Couleurs et logo : kit de marque GaiaOS (violet #6a00f4, badge en verre « gaia » + pastille « OS »).
 */

@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-800.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/fredoka-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --violet: #6a00f4;
  --bg: #faf7ff;
  --ink: #1e1033;
  --muted: #4a3a6b;
  --link: #6a00f4;
  --rule: #d9cbf5;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: "Nunito", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12081f;
    --ink: #f3edff;
    --muted: #cdbcf0;
    --link: #c4a3ff;
    --rule: #3a2860;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.defs {
  position: absolute;
  width: 0;
  height: 0;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 0.4rem;
}

/* ---------------------------------------------------------------- accueil */

html.home {
  color: #fff;
  background:
    radial-gradient(55% 45% at 90% 95%, #c4a3ff88 0%, transparent 70%),
    radial-gradient(50% 40% at 10% 5%, #1e103399 0%, transparent 70%),
    radial-gradient(40% 40% at 20% 80%, #8b3dff 0%, transparent 70%),
    var(--violet);
  background-attachment: fixed;
}
.home body {
  min-height: 100vh;
  min-height: 100dvh;
  background: none;
  color: #fff;
}
.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: max(2rem, env(safe-area-inset-top)) 1.25rem 2rem;
  text-align: center;
}
.home h1 {
  margin: 0;
}

/* Logo : badge de verre, « gaia » en Nunito 800, « OS » en Fredoka 700 dans une pastille liquide. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.13em;
  padding: 0.217em 0.26em 0.217em 0.565em;
  border-radius: 0.52em;
  background: #ffffff26;
  border: 1px solid #ffffff73;
  box-shadow:
    inset 0 1px 0 #ffffffa0,
    0 12px 30px #1e103340;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font: 800 clamp(2.8rem, 13vw, 4.3rem) / 1 var(--brand);
  letter-spacing: 0.01em;
  color: #fff;
}
.lockup svg {
  width: 2.174em;
  height: 1.217em;
  overflow: visible;
}
.lockup text {
  font: 700 30px "Fredoka", var(--font);
  fill: #4a0fc0;
}

.tagline {
  max-width: 30rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 14px #1e103366;
}

.about {
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: left;
  text-shadow: 0 1px 14px #1e103366;
}
.about ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.about li {
  margin: 0.25rem 0;
}
.about p {
  margin: 0;
}
.about a {
  color: inherit;
  text-underline-offset: 0.2em;
}

footer {
  padding: 0.5rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.9375rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
footer p {
  margin: 0 0 0.25rem;
  color: var(--muted);
}
.home footer {
  background: linear-gradient(transparent, #1e103359 55%);
  color: #fff;
}
.home footer p {
  color: #ffffffd9;
}

/* ---------------------------------------------------------------- pages légales */

.doc header {
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 0;
}
.doc header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 800 1.25rem/1 var(--brand);
  color: var(--link);
  text-decoration: none;
}
.doc main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
.doc h1 {
  margin: 1rem 0 0.25rem;
  font: 800 clamp(2rem, 7vw, 2.75rem) / 1.1 var(--brand);
  letter-spacing: 0.005em;
}
.doc h2 {
  margin: 2.25rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font: 800 1.375rem/1.25 var(--brand);
}
.doc h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
}
.doc p,
.doc ul {
  margin: 0.75rem 0;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li {
  margin: 0.35rem 0;
}
.doc .updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc .lead {
  font-size: 1.125rem;
}
.doc main a {
  color: var(--link);
  text-underline-offset: 0.2em;
}
.doc footer {
  border-top: 1px solid var(--rule);
}
