/* LunarGen — base styles shared across pages */

@font-face {
  font-family: "InterVar";
  src: local("Inter");
}

:root {
  --bg: #0a0b0d;
  --bg-raised: #101216;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #eef0f3;
  --ink-dim: #9a9fa8;
  --ink-faint: #5b606a;
  --accent: #dfe4ea;
  --radius: 2px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "InterVar", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #eef0f3;
  color: #0a0b0d;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* faint grain / vignette texture on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,255,255,0.035), transparent 55%);
}

/* ---------- Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px) saturate(140%);
  background: rgba(10, 11, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

nav.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand img {
  height: 20px;
  width: auto;
  display: block;
}

.brand span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

nav.bar .links {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav.bar .links a {
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

nav.bar .links a:hover {
  color: var(--ink);
}

nav.bar .cta {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  font-size: 13px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

nav.bar .cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 720px) {
  nav.bar .links { display: none; }
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}

footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

footer.site .brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer.site .brand-mini img {
  height: 16px;
}

footer.site .brand-mini span {
  font-size: 13px;
  color: var(--ink-dim);
}

footer.site .legal-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-dim);
}

footer.site .legal-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

footer.site .legal-links a:hover {
  color: var(--ink);
}

footer.site .copyright {
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Cookie banner ---------- */

#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-banner.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

#cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  flex: 1 1 260px;
}

#cookie-banner p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

#cookie-banner button {
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
}

#cookie-banner button.accept {
  background: var(--ink);
  color: #0a0b0d;
  border: 1px solid var(--ink);
}

#cookie-banner button.decline {
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
}

/* ---------- Legal pages ---------- */

.legal {
  position: relative;
  z-index: 1;
  padding: 72px 0 100px;
}

.legal h1 {
  font-size: 34px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.legal .updated {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 18px;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.legal p, .legal li {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 720px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--ink);
}
