/* solanaintel.com — one file, zero build step.
   Palette: dark slate, warm text, single amber accent (log-warning amber, not acid green).
   Type: monospace for structure (headers, labels, nav, code), serif for reading. */

:root {
  --bg: #14181d;
  --surface: #1b2129;
  --border: #2a323d;
  --text: #d9dee5;
  --muted: #8b95a3;
  --accent: #e0a83c;
  --accent-bright: #f0be5e;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* ---- header / nav ---- */

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.brand {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand .cursor { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .brand .cursor { animation: blink 1.2s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

nav.site a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}

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

/* ---- log-tag metadata (the signature element) ---- */

.tags {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.tags .t::before { content: "["; color: var(--accent); }
.tags .t::after  { content: "]"; color: var(--accent); }
.tags .t { margin-right: 0.5rem; }

/* ---- headings ---- */

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.55rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.1rem;  margin: 2.25rem 0 0.6rem; }
h3 { font-size: 0.95rem; margin: 1.75rem 0 0.5rem; }

h2::before { content: "## "; color: var(--accent); font-weight: 400; }

/* ---- text ---- */

p { margin: 0 0 1.1rem; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: #eef1f5; }

.lede { color: var(--muted); font-size: 1.02rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---- code ---- */

code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---- article index ---- */

ul.index { list-style: none; padding: 0; margin: 0; }

ul.index li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

ul.index .title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin: 0.3rem 0 0.35rem;
}

ul.index .summary {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- footer ---- */

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- small screens ---- */

@media (max-width: 480px) {
  html { font-size: 16px; }
  header.site { flex-direction: column; gap: 0.5rem; }
  nav.site a { margin-left: 0; margin-right: 1.25rem; }
}

/* ---- accessibility ---- */

a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
