/* Crafted Legends landing page. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--asphalt-deep);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 28px; font-size: 18px; }
.btn--amber { background: var(--amber); color: var(--on-amber); }
.btn--amber:hover { background: var(--amber-hover); color: var(--on-amber); }
.btn[aria-disabled="true"] { background: transparent; color: var(--chalk-muted); border-color: var(--line); border-style: dashed; cursor: default; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100vh; background: var(--asphalt); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 25, 32, 0.55) 0%, rgba(17, 25, 32, 0.78) 55%, var(--asphalt) 100%),
    url("../site/img/hero.webp") center 30% / cover no-repeat;
}
.hero__inner {
  position: relative; min-height: 100vh; padding: var(--space-8) var(--space-4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  text-align: center;
}

/* ---------- Versions ---------- */
.download-card__version { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--chalk-muted); }
.download-card__version:empty { display: none; }

/* Game server: a status dot beside the live API version */
.server-line { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.server-status { display: grid; place-items: center; width: 16px; height: 16px; }
.server-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--chalk-muted); }
.server-status[data-server-status="online"]::before { background: var(--signal-green); box-shadow: 0 0 8px var(--signal-green); animation: server-pulse 2.4s ease-in-out infinite; }
.server-status[data-server-status="offline"]::before { background: var(--kerb-red); }
@keyframes server-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .server-status::before { animation: none !important; } }

/* privacy.html: a plain reading page */
.page { max-width: 720px; margin: 0 auto; padding: 48px var(--space-4, 16px); color: var(--chalk); line-height: 1.6; }
.page h1, .page h2 { line-height: 1.25; }
.page__note { color: var(--chalk-muted); }
.site-footer { position: absolute; bottom: var(--space-3); left: 0; right: 0; text-align: center; font-size: 13px; }
