/* Nova's visual language on the existing pages; keep their content and routes. */
:root {
  --page-max: 1200px;
  --radius-md: 22px;
  --radius-lg: 28px;
  font-size: 16px;
}
[data-theme="stellar"] {
  --bg: #07081a;
  --header-bg: rgba(7, 8, 26, .76);
  --surface: rgba(22, 25, 58, .62);
  --surface-2: rgba(139, 140, 255, .12);
  --heading: #fff;
  --text: #e8eaff;
  --muted: #9aa2cf;
  --accent: #8b8cff;
  --accent-strong: #5ee7df;
  --border: rgba(150, 156, 255, .16);
  --focus: #5ee7df;
  --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
[data-theme="paper"] {
  --bg: #f5f1e8;
  --header-bg: rgba(245, 241, 232, .86);
  --surface: rgba(255, 252, 245, .78);
  --surface-2: #ece6d8;
  --text: #23213a;
  --heading: #121026;
  --muted: #625f7c;
  --accent: #5b4ee6;
  --accent-strong: #0e9c94;
  --border: rgba(40, 36, 80, .12);
  --focus: #0e9c94;
}
body {
  font-family: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
h1, h2, h3, .brand {
  font-family: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.025em;
}
[data-theme="stellar"] body {
  background-image: radial-gradient(ellipse at 12% 5%, rgba(139,140,255,.13), transparent 42rem),
    radial-gradient(ellipse at 90% 35%, rgba(94,231,223,.06), transparent 40rem);
  background-size: auto;
}
.site-header {
  top: 12px;
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(140%);
  z-index: 40;
}
.site-header .site-shell { width: calc(100% - 28px); }
.nav-wrap { min-height: 60px; gap: .6rem; }
.brand { font-size: 1rem; letter-spacing: -.02em; }
.site-nav a { font-size: .8rem; padding-inline: .5rem; }
.site-nav a .stellar-only { display: none; }
.theme-toggle { font-size: .75rem; padding-inline: .7rem; }
.page-hero { padding-top: clamp(4rem, 8vw, 7rem); }
.page-hero h1 { max-width: 20ch; font-weight: 800; }
.eyebrow, .content-type { color: var(--accent-strong); letter-spacing: .12em; }
.content-card, .project-card, .study-card, .idea-card, .category-card,
.article-aside, .filter-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.content-card, .project-card, .study-card, .idea-card, .category-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card-cover { overflow: hidden; }
.card-cover img { transition: transform .45s ease; }
.button, .theme-toggle, .menu-toggle { transition: background .2s, transform .2s; }
.button.primary {
  background: linear-gradient(110deg, var(--accent), var(--accent-strong));
  color: #fff;
}
[data-theme="stellar"] .button.primary { color: #07081a; }
.article-body { overflow-wrap: anywhere; }
.article-body h2 { letter-spacing: -.02em; }
.article-body blockquote {
  border-left-color: var(--accent-strong);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
}
.site-footer { background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .content-card:hover, .project-card:hover, .study-card:hover,
  .idea-card:hover, .category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
  }
  .content-card:hover .card-cover img, .project-card:hover .card-cover img { transform: scale(1.035); }
}
@media (max-width: 760px) {
  .site-header { border-radius: 22px; }
  .nav-wrap { flex-wrap: wrap; gap: .45rem; padding-block: .45rem; }
  .brand { margin-right: auto; }
  .menu-toggle { font-size: .8rem; }
  .site-nav { border-radius: 14px; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
