/* Palette matches the app's WelcomeView: a fixed dark forest-green identity,
   not a light/dark toggle — the app doesn't adapt to system appearance either. */
:root {
  --bg-1: #081c0d;
  --bg-2: #12331c;
  --bg-3: #0d2614;
  --glow: rgba(46, 133, 71, 0.22);
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.10);
  --accent: #38b262;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Radial glow, centered — same as the app's AnimatedBackground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, var(--glow), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}

header.site img.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

header.site .logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  font-family: Georgia, "Times New Roman", serif;
}

header.site .logo .dot { color: var(--accent); }

h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.15rem; margin-top: 2rem; }

p, li { color: var(--fg); }
.muted { color: var(--muted); font-size: 0.92rem; }

a { color: #8fe0ac; }

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); text-decoration: underline; }

/* ---- Hero (home page only) ---- */

.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.hero p.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 32ch;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #06180c;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(56, 178, 98, 0.35);
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-top: 1rem;
}

/* Nav-card style links (matches the app's NavCard component) */
.card-links {
  display: flex;
  gap: 12px;
  margin-top: 2.5rem;
}

.card-link {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--fg) !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---- Floating pages (home hero only) ---- */

.pages-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-page {
  position: absolute;
  bottom: -120px;
  background: rgba(255, 255, 255, var(--op, 0.12));
  border: 0.5px solid rgba(255, 255, 255, calc(var(--op, 0.12) * 0.5));
  border-radius: 3px;
  animation: float-up linear infinite;
  animation-duration: var(--dur, 16s);
  animation-delay: var(--delay, 0s);
}

.floating-page .line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

@keyframes float-up {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-160vh) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-page { animation: none; display: none; }
}
