/* Space Station Manager devlog
   Typography borrowed from the internal Design Atlas (its own identity --
   the game hasn't had a UI visual-identity pass yet). Accent/background
   colors pulled from the real in-game theme, themes/ui_theme.tres, so the
   palette still reads as "this game's" to anyone who's played it. */

:root {
  --bg: #0f141f;
  --bg-deep: #070a11;
  --surface: rgba(18, 24, 36, 0.72);
  --surface-solid: #121826;
  --border: rgba(89, 178, 255, 0.18);
  --text: #ebf2ff;
  --text-muted: #8b93a8;
  --accent: #59b2ff;
  --accent-dim: rgba(89, 178, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  position: relative;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  text-wrap: balance;
  margin: 0 0 0.4em;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* -------- background: a generated deep-space field for now --------
   Swap for a real in-engine screenshot later by replacing the
   background-image below (or pointing it at a file placed in
   src/assets/img/, e.g. url("/assets/img/station-bg.jpg")). Keep the
   dark radial-gradient as a fallback under any photo so text stays
   readable if the image is lighter at the edges. */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-deep);
  background-image: radial-gradient(
      1200px 800px at 15% -10%,
      rgba(89, 178, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(900px 700px at 90% 10%, rgba(140, 100, 255, 0.08), transparent 55%),
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 75% 15%, #fff, transparent),
    radial-gradient(1px 1px at 50% 60%, #fff, transparent),
    radial-gradient(1px 1px at 85% 75%, #fff, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1px 1px at 60% 40%, #fff, transparent),
    radial-gradient(1px 1px at 35% 90%, #fff, transparent);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.9;
}

/* -------- layout chrome -------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Chakra Petch";
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  flex: none;
}

.brand-sub {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  font-family: "IBM Plex Mono";
  font-size: 12.5px;
  text-decoration: none;
  color: var(--text-muted);
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono";
}

/* -------- panels (content floating over the starfield) -------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 28px 30px;
}

/* -------- hero / homepage -------- */
.hero {
  text-align: left;
}

.eyebrow {
  font-family: "IBM Plex Mono";
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.hero-sub {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 15.5px;
  margin: 10px 0 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.post-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

.post-card h2 {
  font-size: 19px;
  margin: 8px 0 6px;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
}

/* -------- post meta / tags -------- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono";
  font-size: 11.5px;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}

.tag-community {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.tag-draft {
  color: #f0b349;
  border-color: rgba(240, 179, 73, 0.35);
}

/* -------- single post -------- */
.post h1 {
  font-size: clamp(26px, 4.5vw, 34px);
  margin-top: 12px;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 15.5px;
}

.post-body {
  font-size: 15.5px;
}

.post-body p {
  margin: 0 0 1.1em;
}

.post-body img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 1.2em 0;
  display: block;
}

.post-body h2,
.post-body h3 {
  margin-top: 1.6em;
}

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

.post-body code {
  font-family: "IBM Plex Mono";
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .panel {
    padding: 22px 20px;
  }
}
