/* Atomargewässer: shared theme. Sub-projects include it with <link rel="stylesheet" href="/hub.css">. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --void: #020806;
  --deep: #05140f;
  --surface: rgba(14, 38, 30, 0.42);
  --surface-strong: rgba(10, 28, 22, 0.72);
  --line: rgba(200, 255, 225, 0.10);
  --line-strong: rgba(200, 255, 225, 0.22);

  --toxic: #c3ff3a;       /* the stuff in the water */
  --cherenkov: #46f2ff;   /* reactor glow */
  --hazard: #ffd23f;      /* locked / warnings */
  --danger: #ff5c7a;

  --text: #effff6;
  --muted: #94b8a9;

  --font-display: "Unbounded", "Geist", system-ui, sans-serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* aliases so older sub-project pages keep working */
  --bg: var(--void);
  --bg-2: var(--deep);
  --card: var(--surface);
  --card-hover: var(--surface-strong);
  --border: var(--line);
  --accent: var(--toxic);
  --good: var(--toxic);
  --warn: var(--hazard);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(70, 242, 255, 0.07), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(195, 255, 58, 0.06), transparent 60%),
    var(--void);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain for depth; sits above everything, ignores clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--cherenkov); text-underline-offset: 3px; }
::selection { background: var(--toxic); color: var(--void); }
:focus-visible { outline: 2px solid var(--cherenkov); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* --- Floating glass nav --- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  width: min(1180px, calc(100% - 28px));
}
.site-header .container,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px 8px 8px 18px;
  max-width: none;
  border-radius: var(--r-pill);
  background: rgba(6, 20, 15, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--toxic);
  color: var(--void);
  font-size: 1rem;
  box-shadow: 0 0 18px rgba(195, 255, 58, 0.5);
}
.brand-mark svg { width: 20px; height: 20px; }

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--toxic);
  color: #0a1a05;
  box-shadow: 0 0 0 1px rgba(195, 255, 58, 0.4), 0 10px 40px -10px rgba(195, 255, 58, 0.65);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(195, 255, 58, 0.6), 0 14px 50px -8px rgba(195, 255, 58, 0.85); }
.btn-glass,
.btn-ghost,
.btn-cherenkov {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover, .btn-ghost:hover, .btn-cherenkov:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(200, 255, 225, 0.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Glass panels --- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 210, 63, 0.09);
  border: 1px solid rgba(255, 210, 63, 0.35);
  color: #ffe58f;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
