/* ============================================================
   NULL7STUDIOS — style.css
   One stylesheet shared by every page on the site.

   Design direction: network operations console meets
   tactical data terminal. Dark ink background, phosphor-amber
   primary, electric-cyan secondary, monospace UI chrome.
   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --ink:         #090d14;  /* page bg: deep blue-black */
  --panel:       #0f1520;  /* elevated panel */
  --panel-raised:#141d2b;  /* double-elevated */
  --panel-glass: rgba(15,21,32,0.85); /* frosted for overlays */

  /* Borders */
  --line:        #1a2436;  /* default border */
  --line-bright: #263044;  /* highlighted border */

  /* Text */
  --text:        #c4cad5;  /* body text */
  --dim:         #5e6f85;  /* secondary / placeholder */
  --dim-mid:     #7a8da3;  /* medium dim */

  /* Amber — primary accent, phosphor glow */
  --amber:       #ffb454;
  --amber-bright:#ffc97a;
  --amber-glow:  rgba(255,180,84,0.10);
  --amber-glow-strong: rgba(255,180,84,0.20);
  --amber-shadow: 0 0 12px rgba(255,180,84,0.35), 0 0 24px rgba(255,180,84,0.15);

  /* Cyan — secondary accent, electric */
  --cyan:        #00e5ff;
  --cyan-dim:    #00aabb;
  --cyan-glow:   rgba(0,229,255,0.07);
  --cyan-shadow: 0 0 10px rgba(0,229,255,0.30);

  /* Status */
  --green:  #2dd353;
  --red:    #ff4d4d;

  /* Fonts */
  --font-display: "Chakra Petch", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}


/* ------------------------------------------------------------
   2. RESET + BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle noise texture via SVG data URL */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

.section {
  padding: var(--space-lg) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}


/* ------------------------------------------------------------
   4. STATUS BAR
   ------------------------------------------------------------ */
.status-bar {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  background: var(--panel);
}

.status-bar .ok     { color: var(--amber); }
.status-bar .active { color: var(--cyan); }
.status-bar .warn   { color: var(--red); }

/* Blinking block cursor */
.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* ------------------------------------------------------------
   5. HEADER + NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.logo:hover { text-decoration: none; }
.logo span  { color: var(--amber); }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--dim-mid);
  margin-left: 1.5rem;
  transition: color 0.15s;
}
.site-nav a:hover              { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--amber); }


/* ------------------------------------------------------------
   6. TYPE STYLES
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  text-transform: lowercase;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.9rem;
  color: var(--text);
}

h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--dim-mid);
  max-width: 44rem;
}

.text-amber { color: var(--amber); }
.text-cyan  { color: var(--cyan); }
.text-dim   { color: var(--dim); }

/* Glowing display text */
.glow-text {
  color: var(--amber);
  text-shadow: var(--amber-shadow);
}


/* ------------------------------------------------------------
   7. COMPONENTS — panels, buttons, tags, spec lists
   ------------------------------------------------------------ */

/* Panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.panel.amber-border {
  border-color: rgba(255,180,84,0.35);
  box-shadow: 0 0 0 1px rgba(255,180,84,0.08) inset;
}

.panel.cyan-border {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.05) inset;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--amber);
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  margin-top: 0.5rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.button:hover,
.button:focus-visible {
  text-decoration: none;
  background: var(--amber-bright);
  box-shadow: var(--amber-shadow);
}

.button.outline {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}
.button.outline:hover {
  background: var(--amber-glow);
  box-shadow: var(--amber-shadow);
}

/* Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
}

.tag.amber {
  color: var(--amber);
  background: var(--amber-glow);
  border-color: rgba(255,180,84,0.25);
}

/* Spec list: key/value pairs */
.spec {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}
.spec dd { margin: 0; }

/* Highlighted mono text */
.mono-highlight {
  font-family: var(--font-mono);
  background: var(--amber-glow);
  border: 1px solid rgba(255,180,84,0.25);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  color: var(--amber);
}

/* Horizontal rule / circuit divider */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--line-bright) 20%,
    var(--line-bright) 80%,
    transparent);
  margin: 2.5rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: var(--amber-shadow);
}

/* Devlog list */
.post-list { list-style: none; }
.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  transition: padding-left 0.15s;
}
.post-list li:hover { padding-left: 0.5rem; }
.post-list .post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  display: block;
  margin-bottom: 0.25rem;
}
.post-list a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.post-list a:hover {
  color: var(--amber);
  text-decoration: none;
}

/* Article (single devlog post) */
article .post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 0.5rem;
  display: block;
}

article h1 { margin-top: 0.5rem; }

article p,
article li { max-width: 48rem; }

article ul,
article ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

article li { margin-bottom: 0.4rem; }


/* ------------------------------------------------------------
   8. HERO — home page hero section
   ------------------------------------------------------------ */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

/* Dot grid background on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--line-bright) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
  pointer-events: none;
}

/* Vignette over the dot grid so edges fade out */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, var(--ink) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 520px; }

.hero-content h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.0;
  margin-bottom: 1.25rem;
}

.hero-content .lede {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Network diagram art (home page) */
.hero-art {
  flex-shrink: 0;
}

.network-art {
  width: 340px;
  height: 280px;
  opacity: 0.9;
}

/* Solo developer banner */
.solo-banner {
  background: var(--amber-glow);
  border: 1px solid rgba(255,180,84,0.3);
  border-left: 3px solid var(--amber);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0;
}

.solo-banner .solo-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.solo-banner p {
  font-size: 0.95rem;
  color: var(--dim-mid);
  margin: 0;
  line-height: 1.6;
}

.solo-banner p strong { color: var(--text); }


/* ------------------------------------------------------------
   9. SILICON GAME PAGE
   ------------------------------------------------------------ */

/* Full-width game hero banner */
.game-hero {
  padding: var(--space-lg) 0 0;
  text-align: center;
  position: relative;
}

.game-hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--amber);
  text-shadow: var(--amber-shadow);
}

.game-hero .tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--dim-mid);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Silicon chip SVG art */
.chip-art-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.silicon-chip {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature grid — 3-column cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.feature-card {
  background: var(--panel);
  padding: 1.5rem;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--panel-raised);
}

.feature-card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--dim-mid);
  line-height: 1.65;
  margin: 0;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 400;
  color: var(--line-bright);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

/* Development status */
.dev-status {
  margin: 2rem 0;
}

.progress-item {
  margin-bottom: 1.25rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.progress-label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim-mid);
}

.progress-label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}

.progress-track {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,180,84,0.5);
  position: relative;
}

/* Animated blip at the leading edge of progress bar */
.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 3px;
  height: 9px;
  background: var(--amber-bright);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--amber);
  animation: progress-blip 2s ease-in-out infinite;
}

@keyframes progress-blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Game world panel */
.world-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.world-panel-header {
  background: var(--panel-raised);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.world-panel-header::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--amber);
}

.world-panel-body {
  padding: 1.5rem 1.25rem;
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.stat {
  background: var(--panel);
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}


/* ------------------------------------------------------------
   10. ANIMATIONS + KEYFRAMES
   ------------------------------------------------------------ */
@keyframes pulse-amber {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1;   }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255,180,84,0.2); }
  50%       { box-shadow: 0 0 18px rgba(255,180,84,0.4); }
}

/* Occasional flicker — apply to elements that should feel "live" */
@keyframes flicker {
  0%, 94%, 96%, 98%, 100% { opacity: 1; }
  95%  { opacity: 0.85; }
  97%  { opacity: 0.6; }
  99%  { opacity: 0.9; }
}


/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--dim);
  background: var(--panel);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--amber); }


/* ------------------------------------------------------------
   12. SMALL SCREENS  (≤ 640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art { display: none; } /* hide network art on phones */

  .site-nav a { margin-left: 0.9rem; }

  .spec { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  main { padding-bottom: 3rem; }
}
