/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 2.0
*/

:root {
  --bg: #2e3440;
  --bg-raised: #3b4252;
  --bg-raised-hover: #434c5e;
  --bg-code: #262b36;
  --fg: #eceff4;
  --fg-secondary: #e5e9f0;
  --muted: #a9b6cc;
  --accent: #88c0d0;
  --accent-2: #a3be8c;
  --accent-glow: rgba(136, 192, 208, 0.35);
  --border: #4c566a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: -apple-system, "Segoe UI", Roboto, sans-serif;

  /* GeneratePress's own design tokens -- overriding these fixes every
     surface (nav, sidebar, footer widgets, .inside-article cards) that
     the parent theme colors via var(--base-3) etc, instead of fighting
     its more specific selectors one by one. */
  --base: #2e3440;
  --base-2: #2e3440;
  --base-3: #3b4252;
  --contrast: #eceff4;
  --contrast-2: #a9b6cc;
  --contrast-3: #4c566a;
}

* { box-sizing: border-box; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-color: var(--border) var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.7;
  position: relative;
}

/* subtle cyberpunk scanline/grid texture, purely decorative, never blocks clicks */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(136, 192, 208, 0.025) 0px, rgba(136, 192, 208, 0.025) 1px, transparent 1px, transparent 3px);
  opacity: 0.6;
}

.site-content, .site-header, .site-footer, #content, #page {
  background: transparent;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: none;
  border: none;
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-decoration: none; transition: text-shadow 0.15s ease, color 0.15s ease; }
a:hover { text-shadow: 0 0 8px var(--accent-glow); color: var(--fg); }

/* site title styled like a shell prompt with a blinking cursor */
.site-title, .site-title a {
  font-family: var(--mono);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.site-title a::before {
  content: "~/";
  color: var(--accent-2);
  margin-right: 2px;
}
.site-title a::after {
  content: "_";
  color: var(--accent);
  animation: cursor-blink 1.1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* nav rendered like a bracketed terminal menu: [All] [Projects] [Mind] [Body] */
.main-navigation, .main-navigation .inside-navigation {
  background: transparent;
  border: none;
}
.main-navigation ul { gap: 0.5rem; }
.main-navigation a {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.85em;
}
.main-navigation a::before { content: "["; color: var(--border); }
.main-navigation a::after { content: "]"; color: var(--border); }
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* posts rendered as terminal-card blocks -- .inside-article is GeneratePress's
   real content wrapper (article itself has no background in GP's markup) */
article { margin-bottom: 1.75rem; }
.inside-article {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.inside-article:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px -6px var(--accent-glow);
}

.entry-title { font-family: var(--mono); font-size: 1.25em; }
.entry-title a { color: var(--fg); }
.entry-title a:hover { color: var(--accent); }
.entry-title a::before { content: "> "; color: var(--accent-2); }

.entry-meta, .entry-meta a {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: 0.02em;
}
header .entry-meta::before, footer.entry-meta::before { content: "// "; color: var(--border); }

.entry-content, .entry-summary,
.entry-content p, .entry-summary p {
  color: var(--fg-secondary);
}

.entry-content pre, .entry-content code {
  font-family: var(--mono);
  background: var(--bg-code);
  border-left: 3px solid var(--accent-2);
  color: var(--fg);
}
.entry-content pre { padding: 1rem; border-radius: 4px; overflow-x: auto; }
.entry-content p code {
  border-left: none;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.widget-area, .sidebar { display: none; }

.site-footer, .site-info, .inside-site-info {
  background: transparent;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.8em;
  border-top: 1px solid var(--border);
}
