/* AiMANAC static site — Terminal theme */
:root {
  --bg: #0a0a0a;
  --fg: #e0e0e0;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --muted: #666;
  --code-bg: #1a1a1a;
  --border: #333;
  --font: "JetBrains Mono", monospace;
  --max-width: 720px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
  color: var(--accent-dim);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

.site-nav a {
  color: var(--muted);
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

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

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer a {
  color: var(--muted);
}

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

body {
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--fg);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1rem;
  color: var(--fg);
}

.tagline {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

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

code,
pre {
  font-family: var(--font);
  font-size: 0.8125rem;
}

code {
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
  white-space: pre;
  word-break: normal;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 0 0 1.5rem;
}

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

th {
  color: var(--accent);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.cta-row a.store-badge {
  display: inline-block;
  line-height: 0;
}

.cta-row a.store-badge:hover {
  opacity: 0.9;
  text-decoration: none;
}

.cta-link {
  font-size: 0.9375rem;
  font-weight: 600;
}

.section-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2rem 0 0.5rem;
}

.eula-list {
  list-style: lower-alpha;
}

.eula-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  pre {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
