:root {
  --bg: #1c1c1c;
  --bg-alt: #262626;
  --fg: #e8e8e8;
  --muted: #a8a8a8;
  --accent: #7CFC00;
  --accent2: #b57edc;
  --border: #3a3a3a;
  --max: 820px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h2, nav.site-nav a {
  font-family: 'Orbitron', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

h1 {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
}

header.site-header {
  position: relative;
  background: var(--bg-alt);
  overflow: visible;
}

header.site-header .header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 1.25rem;
}

header.site-header .logo-link {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  z-index: 5;
  display: block;
}

header.site-header .logo-mark {
  width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)) drop-shadow(0 0 10px rgba(124,252,0,0.2));
}

header.site-header .header-brand {
  text-align: left;
  min-width: 0;
  margin-left: 260px;
}

header.site-header h1 {
  margin: 0;
  line-height: 0;
  text-align: left;
}

header.site-header h1 img.title-wordmark {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0;
  transform: translateX(-8.51%);
}

header.site-header p.site-subtitle {
  margin: -1.3rem 0 0;
  text-align: left;
  font-family: 'Orbitron', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

header.site-header p.tagline {
  margin: 0.1rem 0 0;
  text-align: left;
  color: var(--muted);
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  font-weight: 600;
  transform: rotate(-4deg);
  transform-origin: left center;
}

header.site-header p.tagline em {
  font-style: normal;
  color: var(--accent);
}

nav.site-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
}

nav.site-nav .nav-inner {
  display: flex;
  justify-content: flex-start;
  gap: 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1rem 0.65rem 300px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

nav.site-nav a { color: var(--fg); }
nav.site-nav a:hover { color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

h2 { color: var(--accent); letter-spacing: 0.02em; }

.post-list li { margin-bottom: 1.25rem; list-style: none; display: flex; gap: 0.9rem; align-items: flex-start; }
.post-list { padding: 0; margin: 0; }
.post-list .thumb { width: 84px; height: 63px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.post-list .post-date { color: var(--muted); font-size: 0.85rem; }
.post-list .post-excerpt { color: var(--muted); }

.tags { color: var(--muted); font-size: 0.85rem; margin-top: 1.5rem; }

.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.specs { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.specs dt { color: var(--accent); font-weight: bold; }
.specs dd { margin: 0 0 0.5rem 0; }

section.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Home hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(20,20,20,0.85));
}
.hero-inner {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
}
.hero-inner img.wordmark { max-width: 90%; height: auto; margin: 0.35rem 0; }
.hero-inner .alien-icon { width: 56px; height: auto; margin: 0.5rem 0; }
.hero-inner p.hero-line { margin: 0.35rem 0; color: var(--fg); }
.hero-inner p.hero-line.bold { font-weight: bold; color: var(--accent); }
.hero-inner p.hero-line.italic { font-style: italic; color: var(--muted); }

.bootlogo-strip {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.bootlogo-strip img { width: 90px; height: auto; border-radius: 4px; border: 1px solid var(--border); }

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.gallery.single { grid-template-columns: 1fr; }
.gallery.single img { height: auto; max-height: 480px; }

.post-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.25rem 0;
}

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

.back-link { display: inline-block; margin-top: 2rem; }

/* Home page grid */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 680px) {
  .home-grid { grid-template-columns: 1fr; }
}

.spotlight { border-color: var(--accent2); }
.spotlight h2 { color: var(--accent2); }
.spotlight .thumb-wide {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 0.75rem;
}
.spotlight .view-count { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
