:root {
  --void: #03020a;
  --star-white: #e8e4f0;
  --star-dim: #7a7090;
  --accent-amber: #f0a830;
  /* --page-color and --page-glow-soft are set per-page */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--star-white);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Shared font families */
.nav-home,
.page-eyebrow,
footer {
  font-family: 'Space Mono', monospace;
}

.page-title,
.content-block-title,
.stacked-title,
.grid-title {
  font-family: 'Syne', sans-serif;
}

/* Shared colouring */
footer,
.page-tagline,
.content-block p,
.content-callout,
.content-list li,
.stacked-body,
.grid-body {
  color: var(--star-dim);
}

/* Content Block Max Width */
.content-block p {
  max-width: 680px;
}

#star-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.layer { position: relative; z-index: 1; }


/* Scrollbar Rendering */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--page-color, white) 40%, transparent); border-radius: 2px; }

::selection { background: color-mix(in srgb, var(--page-color, white) 30%, transparent); color: white; }

/* Navbar Rendering */ 
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 52px;
  display: flex; align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(3,2,10,0.75);
  border-bottom: 1px solid rgba(120,100,180,0.12);
}

.nav-home {
  font-size: 12px;
  color: var(--accent-amber);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-home:hover { opacity: 0.75; }

/* Title Renderer */
.page-header {
  min-height: 38vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 100px 0 56px; position: relative;
}
.page-header-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; }

.page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--page-color);
  opacity: 0.8;
  margin-bottom: 10px;
}

.page-title {
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--star-white) 0%, var(--page-color) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--page-color), transparent);
  opacity: 0.25;
}

/* Generic Page Content */
.page-content { max-width: 860px; margin: 0 auto; padding: 72px 40px 120px; }
.page-content.wide { max-width: 900px; }

/* Content Animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Footer Generation */
footer {
  text-align: center;
  padding: 40px;
  font-size: 10px;
  opacity: 0.3;
  letter-spacing: 0.12em;
}

/* Available Content Blocks */

/* Generic Block */
.content-block { margin-bottom: 56px; }

.content-block-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-color);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.content-block p {
  font-size: 17px;
  line-height: 1.85;
}

/* Blockquote callout */
.content-callout {
  margin-top: 22px;
  padding: 22px 26px;
  border-left: 2px solid var(--page-color);
  background: color-mix(in srgb, var(--page-color) 5%, transparent);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.8;
}
.content-callout b { color: var(--star-white); }

/* Bullet list */
.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-list li {
  font-size: 16px;
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}

.content-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--page-color);
  font-size: 24px;
  line-height: 1.35;
}

.content-list b { color: var(--star-white); }

/* Stacked Layout */
.stacked-list { display: flex; flex-direction: column; gap: 40px; }

.stacked-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stacked-card:last-child { border-bottom: none; padding-bottom: 0; }

.stacked-poster {
  width: 80px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  filter: saturate(0.6) brightness(0.8);
  transition: filter 0.35s;
}
.stacked-card:hover .stacked-poster { filter: saturate(1) brightness(1); }

.stacked-info { flex: 1; }

.stacked-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--star-white);
  margin-bottom: 8px;
}

.stacked-body {
  font-size: 17px;
  line-height: 1.75;
}

/* Grid Layout */
.grid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

.grid-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 28px 24px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.grid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--page-color), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.grid-card:hover {
  background: color-mix(in srgb, var(--page-color) 7%, transparent);
  border-color: color-mix(in srgb, var(--page-color) 22%, transparent);
}

.grid-card:hover::before { opacity: 1; }

.grid-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.grid-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  filter: brightness(0.9);
}

.grid-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--star-white);
  letter-spacing: 0.01em;
}

.grid-body {
  font-size: 15px;
  line-height: 1.7;
}