/* =====================================================================
   site.css : shared base styles for every page on this site.
   Loaded first by index.html and 404.html. Page-specific rules live in
   home.css and error.css.

   NOTE: url() paths in a stylesheet are resolved relative to THIS file
   (/css/site.css), so "../fonts/" always points at /fonts/ no matter
   which page, or how deep a URL, loads it.
   ===================================================================== */

/* ---------- Fonts (hosted on this site, nothing from Google) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
}

/* ---------- Design tokens: change a color or font here, it changes everywhere ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0d13;
  --surface: #11161f;
  --field: #0b0f16;
  --text: #eef1f6;
  --muted: #8b95a7;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #0a8bff;
  --blue-deep: #0560d8;
  --error: #ff7b7b;
  --ok: #4cd08a;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset and page frame ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background:
    radial-gradient(60% 45% at 50% 36%, rgba(10, 139, 255, 0.17), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, rgba(5, 96, 216, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
}

/* ---------- Hero block and entrance animation ---------- */
.hero { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.logo {
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.rule {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  opacity: 0.9;
}

/* ---------- Buttons (works on both <button> and <a>) ---------- */
button { font: inherit; cursor: pointer; }

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  border-color: rgba(10, 139, 255, 0.7);
  background: rgba(10, 139, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(10, 139, 255, 0.08);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
footer {
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .btn { transition: none; }
}
