/* Text pages (privacy, contact). The landing page keeps its styles inline for a faster first paint. */
:root {
  color-scheme: dark;
  --bg: #050812;
  --surface: rgba(11, 18, 38, 0.72);
  --fg: #e6f1ff;
  --muted: #93a7c7;
  --faint: #7084a6;
  --line: rgba(0, 240, 255, 0.14);
  --line-strong: rgba(0, 240, 255, 0.32);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --holo: linear-gradient(100deg, #00f0ff 0%, #4fc3ff 35%, #7aa2ff 70%, #b9a7ff 100%);
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(0, 240, 255, 0.07), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Footer stays at the bottom on short pages */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.brand img {
  width: 5rem;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.22));
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--holo);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.prose {
  flex: 1 0 auto;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem clamp(3rem, 8vw, 5rem);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.prose h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--fg);
}

.prose h2 {
  margin: 2.25rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--fg);
}

.prose p, .prose ul { margin: 0.9rem 0 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code { font-size: 0.9em; color: var(--fg); }

.prose a { color: var(--cyan); text-underline-offset: 0.2em; }
.prose a:hover { text-shadow: 0 0 12px var(--cyan-glow); }

.prose .meta { font-size: 0.875rem; color: var(--faint); }

.card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 40px -14px var(--cyan-glow);
}

.card p:first-child { margin-top: 0; }

/* One row, dot-separated; wraps rather than overflowing on narrow screens */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--faint);
}

@media (max-width: 480px) {
  footer { padding-inline: 0.75rem; gap: 0.25rem 0.4rem; font-size: 0.75rem; }
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cyan); }
footer a[aria-current="page"] { color: var(--fg); }
