/* base.css — gemeinsame Grundlage aller Seiten:
   Font, Design-Tokens, Reset, Hintergrund, Deko-Overlays, Header. */

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

:root {
  --bg: #03050d;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f7fd;
  --muted: rgba(245, 247, 253, 0.74);
  --muted-soft: rgba(245, 247, 253, 0.55);
  --max-width: 1120px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(115, 135, 255, 0.12), transparent 0 24%),
    radial-gradient(circle at 86% 14%, rgba(111, 82, 255, 0.1), transparent 0 18%),
    linear-gradient(180deg, #060914 0%, #03050d 56%, #020309 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.bg-orb,
.grid-overlay,
.noise-overlay {
  position: absolute;
  pointer-events: none;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.8;
}

.bg-orb-one {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -120px;
  background: rgba(91, 120, 255, 0.14);
}

.bg-orb-two {
  width: 360px;
  height: 360px;
  right: -90px;
  top: 160px;
  background: rgba(103, 70, 255, 0.12);
}

.grid-overlay {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 94%);
}

.noise-overlay {
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.45px, transparent 0.7px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 95%);
}

.site-header,
.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 0;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.back-link {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.section {
  padding: 2rem 0;
}

@media (max-width: 640px) {
  .site-header,
  .section {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header {
    padding-top: 1rem;
  }
}
