/* Noldor — page-specific layout only.
   identity.css owns the identity (palette, buttons, toggle, type, aurora);
   celestial.css adds the glow layer. Do NOT re-declare .btn or the palette
   here — that cascade-override is what makes the sister sites diverge. */

body { display: flex; flex-direction: column; position: relative; overflow-x: hidden; }

.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  letter-spacing: -0.3px; color: var(--text-strong); text-decoration: none;
}
.topbar .cta-link {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; color: var(--accent);
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border-hover); background: var(--accent-soft);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.topbar .cta-link:hover {
  color: var(--accent-bright); border-color: var(--accent);
  transform: translateY(-1px);
}

main {
  position: relative; z-index: 2; flex: 1;
  width: 100%; max-width: 760px; margin: 0 auto; padding: 0 28px;
}
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

/* Hero — the tengwar wordmark is the display element */
.hero { padding-top: 80px; padding-bottom: 56px; }
.hero .eyebrow { margin-bottom: 30px; }

.wordmark {
  display: block;
  width: min(520px, 82%);
  height: auto;
  margin: 0 0 30px;
  color: var(--text-strong); /* currentColor drives the glyph fill */
}
html[data-theme="dark"] .wordmark {
  filter: drop-shadow(0 0 34px rgba(139, 155, 255, 0.30))
          drop-shadow(0 0 70px rgba(185, 140, 255, 0.14));
}

.lede {
  font-size: 1.22rem; line-height: 1.55; color: var(--text);
  max-width: 620px;
}
.lede strong { color: var(--text-strong); font-weight: 600; }
.lede em { font-family: var(--serif); font-style: italic; font-size: 1.06em; color: var(--text-strong); }

h2 {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
p.body { font-size: 1.06rem; line-height: 1.72; color: var(--text); max-width: 660px; margin-bottom: 16px; }
p.body:last-child { margin-bottom: 0; }
p.body em { font-family: var(--serif); font-style: italic; font-size: 1.04em; color: var(--text-strong); }
p.body strong { color: var(--text-strong); font-weight: 600; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.links a {
  font-family: var(--mono); font-size: 0.84rem; font-weight: 500;
  text-decoration: none; color: var(--accent);
  padding: 10px 18px; border: 1px solid var(--border-hover);
  border-radius: 8px; background: var(--accent-soft); transition: all 0.2s;
}
.links a:hover { color: var(--accent-bright); border-color: var(--accent); transform: translateY(-1px); }
.links a.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.links a.primary:hover { filter: brightness(1.08); color: var(--bg); }

.who { font-size: 1rem; line-height: 1.7; color: var(--text-mute); max-width: 660px; }
.who b { color: var(--text-strong); font-weight: 600; }
.founder { margin-top: 34px; margin-bottom: 0; }
.cta p.body { margin-bottom: 22px; }

footer {
  position: relative; z-index: 2; padding: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 1px;
  color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 640px) {
  .topbar { padding: 16px 18px; }
  main { padding: 0 20px; }
  .hero { padding-top: 52px; }
  section { padding: 46px 0; }
  .lede { font-size: 1.08rem; }
}
