/*
 * Space God Corporation — Central Industrial Theme
 * Loaded by the terminal theme via static/style.css
 *
 * Aesthetic reference:
 *   - Tsutomu Nihei's Blame! (oppressive mega-structure, machine silence)
 *   - Warhammer 40K Adeptus Mechanicus (machine cult, binary liturgy, rust and crimson)
 *   - Phosphor CRT terminals, aged technical schematics
 *
 * Color palette:
 *   --background  #0a0908   near-black coal / iron plate
 *   --foreground  #cfc4a6   aged parchment / bone schematic paper
 *   --accent      #b82416   oxidised iron red / Mechanicus crimson
 *
 * All values override the terminal theme's :root variables.
 */

/* ═══════════════════════════════════════════════════════════
   ROOT — colour & geometry overrides
   ═══════════════════════════════════════════════════════════ */
:root {
  --background:   #0a0908;
  --foreground:   #cfc4a6;
  --accent:       #b82416;
  --font-size:    1rem;
  --line-height:  1.62em;
  --radius:       0;
}

/* ═══════════════════════════════════════════════════════════
   SCANLINES — subtle CRT texture over the entire viewport
   Pointer-events: none so it never blocks interaction.
   ═══════════════════════════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY — machine-cult headings
   Uppercase + tracked lettering evokes command strings
   and cult sigil labels stamped on schematic printouts.
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--foreground);
}

h1 { letter-spacing: 0.18em; }

/* Accent underline on H2/H3 — mimics schematic section dividers */
h2, h3 {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding-bottom: 0.2em;
}

/* ═══════════════════════════════════════════════════════════
   LOGO / SITE HEADER
   ═══════════════════════════════════════════════════════════ */
.logo__mark {
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Navigation links — printed-label style */
.menu a {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════
   HORIZONTAL RULE — double-stroke schematic separator
   ═══════════════════════════════════════════════════════════ */
hr {
  height: 3px;
  background: var(--accent);
  border: none;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   BLOCKQUOTE — data-packet / transmission style
   Left glyph becomes ">" (already set by theme);
   we add a faint background to frame the block.
   ═══════════════════════════════════════════════════════════ */
blockquote {
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  border-top-color: var(--accent);
  border-bottom-color: var(--accent);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   IMAGES — red-frame schematic printout border
   ═══════════════════════════════════════════════════════════ */
img {
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   POST META — section / tag chips
   ═══════════════════════════════════════════════════════════ */
.post-meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 55%, transparent);
}

.post-author {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   SECTION LIST — left machine-rail on post list items
   ═══════════════════════════════════════════════════════════ */
.post.on-list {
  border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.15s ease;
}

.post.on-list:hover {
  border-left-color: var(--accent);
}

.post-title a {
  text-decoration: none;
  letter-spacing: 0.05em;
}

.post-title a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   INDEX CONTENT — landing page intro block
   ═══════════════════════════════════════════════════════════ */
.index-content {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════════
   BYLINE — fanzine signature block
   Right-aligned, small-caps name, accent em-dash.
   Mirrors the LaTeX \begin{flushright} + \textsc{} intent.
   ═══════════════════════════════════════════════════════════ */
.byline-separator {
  margin: 2.5rem 0 0.6rem;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: none;
}

.byline {
  text-align: right;
  margin: 0;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.byline-dash {
  color: color-mix(in srgb, var(--foreground) 50%, transparent);
}

.byline-name {
  color: var(--accent);
  font-variant: small-caps;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — minimal branding strip
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   READ-MORE BUTTON — styled as terminal command
   ═══════════════════════════════════════════════════════════ */
.read-more.button {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER RIGHT-EDGE — dark machine-seam
   ═══════════════════════════════════════════════════════════ */
.container {
  border-right-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
