/* manpages.wtf — minimal, aggressive, readable */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #1a1a2e;
  color: #e6edf3;
  line-height: 1.7;
  font-size: 18px;
}

a {
  color: #c8c8d0;
  transition: color 0.15s;
}

a:hover {
  color: #ff6b6b;
}

/* --- Site nav --- */

.site-nav {
  padding: 1rem 2rem;
}

.site-logo {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b6b;
  text-decoration: none;
}

.site-logo:hover {
  color: #ff8a8a;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

/* --- Home page --- */

header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ff6b6b;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 1.25rem;
  color: #8b949e;
  font-style: italic;
  margin-bottom: 2rem;
}

.manifesto {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.manifesto p {
  margin-bottom: 1rem;
}

.tool-list h2 {
  font-size: 1.1rem;
  color: #8b949e;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* --- Category groups --- */

.tool-group {
  margin-bottom: 2.5rem;
}

.group-header {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid;
}

.group-header.category-network { color: #58a6ff; border-color: #58a6ff; }
.group-header.category-text    { color: #7ee787; border-color: #7ee787; }
.group-header.category-system  { color: #d2a8ff; border-color: #d2a8ff; }
.group-header.category-media   { color: #f0883e; border-color: #f0883e; }

/* --- Category tags --- */

.category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.category-tag.category-network { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }
.category-tag.category-text    { background: rgba(126, 231, 135, 0.15); color: #7ee787; }
.category-tag.category-system  { background: rgba(210, 168, 255, 0.15); color: #d2a8ff; }
.category-tag.category-media   { background: rgba(240, 136, 62, 0.15); color: #f0883e; }

.tool-list ul {
  list-style: none;
}

.tool-list li {
  margin-bottom: 0.75rem;
}

.tool-list a {
  display: block;
  padding: 1rem 1.25rem;
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.tool-list a:hover {
  border-color: #ff6b6b;
}

.tool-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b6b;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

.tool-tagline {
  display: block;
  color: #8b949e;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* --- Tool pages --- */

article header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #2a2a40;
  padding-bottom: 1.5rem;
}

article h1 {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

.content h2 {
  font-size: 1.4rem;
  color: #ff6b6b;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a40;
}

.content h3 {
  font-size: 1.1rem;
  color: #e6edf3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1rem;
}

.content strong {
  color: #ff6b6b;
}

.content em {
  color: #8b949e;
}

.content code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  background: #16162a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #79c0ff;
}

.content pre {
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  color: #e6edf3;
}

.content ul, .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.4rem;
}

/* --- Tables --- */

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.content th {
  text-align: left;
  color: #ff6b6b;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid #2a2a40;
}

.content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #2a2a40;
}

.content tr:hover {
  background: #16162a;
}

.content td code {
  white-space: nowrap;
}

.content blockquote {
  border-left: 3px solid #ff6b6b;
  padding-left: 1rem;
  color: #8b949e;
  font-style: italic;
  margin-bottom: 1rem;
}

.content hr {
  border: none;
  border-top: 1px solid #2a2a40;
  margin: 2.5rem 0;
}

/* --- Navigation --- */

.back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a40;
}

.back a {
  color: #8b949e;
  text-decoration: none;
}

.back a:hover {
  color: #ff6b6b;
}

/* --- Footer --- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a40;
  text-align: center;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #ff6b6b;
}

.footer-sep {
  color: #484f58;
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

footer > a {
  color: #484f58;
  text-decoration: none;
  font-size: 0.85rem;
}

footer > a:hover {
  color: #ff6b6b;
}

/* --- 404 page --- */

.four-oh-four {
  text-align: center;
  padding: 3rem 0;
}

.four-oh-four h1 {
  font-size: 6rem;
  font-weight: 800;
  color: #ff6b6b;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

.four-oh-four-subtitle {
  font-size: 1.2rem;
  color: #e6edf3;
  margin-bottom: 1.5rem;
}

.four-oh-four p {
  color: #8b949e;
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.four-oh-four code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  background: #16162a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #79c0ff;
}

.four-oh-four-home {
  display: inline-block;
  margin-top: 1.5rem;
  color: #ff6b6b;
  font-weight: 600;
}

/* --- Standard pages --- */

.standard-page header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #2a2a40;
  padding-bottom: 1rem;
}

.standard-page h1 {
  font-size: 2rem;
  color: #ff6b6b;
}

.fine-print {
  font-size: 0.75rem;
  color: #484f58;
  font-style: italic;
  margin-top: 2rem;
}

/* --- Responsive --- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 2rem 1.25rem 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .tool-name {
    font-size: 1.2rem;
  }

  .four-oh-four h1 {
    font-size: 4rem;
  }

  .four-oh-four-subtitle {
    font-size: 1rem;
  }
}
