/* greedlessbarterer.com — austere systems-engineering aesthetic
   System UI + monospace stacks; dark/light high-contrast technical palette. */

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --fg: #e6edf3;
  --fg-muted: #9198a1;
  --accent: #3fb950;
  --border: #30363d;
  --link: #58a6ff;
  --code-bg: #0a0d12;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f6f8fa;
    --fg: #1f2328;
    --fg-muted: #59636e;
    --accent: #1a7f37;
    --border: #d0d7de;
    --link: #0969da;
    --code-bg: #f6f8fa;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

code, pre, .spec-table, .dataflow {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.nav .brand {
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a { color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); }

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 65ch;
}

.arch-summary {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.dataflow {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.35;
}

section { margin: 3rem 0; }

h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
}

.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { color: var(--fg-muted); font-size: 0.95rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th, .spec-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background: var(--bg-alt);
  white-space: nowrap;
  width: 30%;
}

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0.25rem 0; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.site-footer p { margin: 0.35rem 0; }

article h1 { font-size: 1.7rem; }
article h2 { font-size: 1.15rem; border-bottom: none; margin-top: 1.75rem; }
article p { max-width: 75ch; }
