/* Vesper Signal — site.css */

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #16161f;
  --text-primary: #c8c5bd;
  --text-secondary: #7a7770;
  --text-muted: #4a4740;
  --accent-neon: #4af0c0;
  --accent-warm: #d4a054;
  --interference: #6b5b8a;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-neon);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.75; }

/* — Layout — */

header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--text-muted);
}

.site-name {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

header nav {
  display: flex;
  gap: 1.2rem;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

header nav a { color: var(--text-secondary); }
header nav a:hover { color: var(--accent-neon); }

main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* — Signal Card (post metadata) — */

.signal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent-warm);
  margin-bottom: 1.8rem;
}

.signal-card .label {
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-card .value { color: var(--text-primary); }

/* — Post Image — */

.post-image {
  width: 100%;
  max-width: 720px;
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* — Post Title — */

article h1 {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #e8e5dd;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* — Section: broadcast — */

.section-broadcast {
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 2.5rem;
}

.section-broadcast p { margin: 0 0 1.2rem; }

/* — Section: artifact — */

.section-artifact {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  padding: 1.4rem 1.4rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

.section-artifact::before {
  content: "ARTIFACT";
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--bg-card);
  padding: 0 0.5rem;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent-warm);
}

.section-artifact p { margin: 0; }

/* — Section: interference — */

.section-interference {
  font-style: italic;
  color: var(--interference);
  opacity: 0.85;
  border-left: 2px solid var(--interference);
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.section-interference p { margin: 0 0 0.4rem; }

/* — Section: tiny_prompt — */

.section-tiny-prompt {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--text-muted);
  margin-bottom: 2rem;
}

.section-tiny-prompt p { margin: 0; }

/* — Tags — */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--text-muted);
}

.post-tags a {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
}

.post-tags a:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
  opacity: 1;
}

/* — Post Layout (desktop two-column) — */

@media (min-width: 960px) {
  .post-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
  }

  .post-layout > h1 {
    grid-column: 1 / -1;
  }

  .post-dossier {
    position: sticky;
    top: 2rem;
  }

  .post-dossier .post-image {
    margin-bottom: 1.5rem;
  }

  .post-dossier .signal-card {
    margin-bottom: 0;
  }

  .post-layout > .post-tags {
    grid-column: 1 / -1;
  }
}

/* — Dispatch Log (index listing) — */

.dispatch-log {
  max-width: 740px;
}

.dispatch-log h1 {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8e5dd;
  margin-bottom: 0.3rem;
}

.dispatch-log > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 2rem;
}

.dispatch-entry {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #1a1a24;
  align-items: baseline;
}

.dispatch-entry:first-of-type { border-top: 1px solid #1a1a24; }

.dispatch-date {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dispatch-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.dispatch-meta {
  grid-column: 2;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* — Tag Index — */

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
}

.tag-list li a:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

.tag-count {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* — Page (about, etc.) — */

.page-body {
  max-width: 740px;
}

.page-body img {
  width: 100%;
  max-width: 720px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.page-body h2 {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.page-body p {
  font-size: 0.95rem;
  line-height: 1.72;
  margin: 0 0 1rem;
}

.page-body p strong {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* — Page Layout (desktop two-column, image right) — */

.page-image {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 960px) {
  .page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
  }

  .page-layout > h1 {
    grid-column: 1 / -1;
  }

  .page-aside {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 2rem;
    margin-top: 4.1rem;
  }

  .page-body {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }
}

/* — Mobile — */

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  main { padding: 1.5rem 1rem 3rem; }
  .signal-card { font-size: 0.72rem; }
  .dispatch-entry {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .dispatch-date { margin-bottom: 0; }
  .dispatch-meta { grid-column: 1; }
  article h1 { font-size: 1.3rem; }
}
