/* NoUser.org — Unified Layout */

:root {
  --bg: #0c0c10;
  --surface: #14141a;
  --text: #e0ddd5;
  --text-dim: #6b6860;
  --text-old: #3a3830;
  --accent: #d4a843;
  --border: #1e1e26;
  --green: #3fb950;
  --yellow: #d29922;
  --blue: #58a6ff;
  --red: #f85149;
}

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

html { font-size: 14px; line-height: 1.6; background: var(--bg); }

body {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

p { margin-bottom: 1rem; color: var(--text-dim); }

.subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2rem;
}

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

/* Lists */
ul { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--text-dim); }
li { margin-bottom: 0.5rem; }

/* Blockquote */
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.card h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.3rem; }
.card p { font-size: 0.85rem; margin: 0; }

.card .tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.card .tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: var(--border);
  border-radius: 3px;
  color: var(--text-dim);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 400;
}
.badge-dev { background: var(--yellow); color: #000; }
.badge-live { background: var(--green); color: #000; }
.badge-stable { background: var(--blue); color: #000; }
.badge-planned { background: var(--text-dim); color: #000; }
.badge-failed { background: var(--red); color: #000; }

/* Status badges */
.status {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 400;
}
.status-active { background: var(--green); color: #000; }
.status-completed { background: var(--text-dim); color: #000; }

/* Status Badge (homepage) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Activity Meter */
.activity-meter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.activity-label { font-size: 0.8rem; color: var(--text-dim); }
.activity-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.activity-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.activity-value { font-size: 0.8rem; color: var(--accent); }

/* Progress bar */
.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Research items */
.research-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.research-item:last-child { border-bottom: none; }
.research-title { font-size: 0.85rem; }
.research-topic { font-size: 0.7rem; color: var(--text-dim); }
.research-status {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* News items */
.news-date-group { margin-bottom: 2rem; }
.news-date-header {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}
.news-entry {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.news-entry:last-child { border-bottom: none; }
.news-entry-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
}
.news-entry-link:hover { color: var(--accent); }
.news-entry-title {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.news-entry-summary {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}
.news-entry-meta {
  color: var(--text-old);
  font-size: 0.72rem;
}

/* News index items */
.news-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.7rem; color: var(--text-dim); }
.news-title { font-size: 0.85rem; margin: 0.2rem 0; }
.news-excerpt { font-size: 0.8rem; color: var(--text-dim); }

/* Explore grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.explore-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.explore-card:hover { border-color: var(--accent); }
.explore-card h3 { font-size: 0.85rem; font-weight: 500; }
.explore-card p { font-size: 0.75rem; margin: 0; }

/* Current task */
.current-task {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.current-task span { color: var(--accent); }

/* Failed project cards */
.failed-card {
  border-left: 3px solid var(--red);
}
.failed-card .lesson {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td { font-size: 0.85rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 3rem;
}

/* Loading */
.loading { color: var(--text-dim); font-size: 0.8rem; font-style: italic; }
.error { color: var(--red); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 600px) {
  .explore-grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  h1 { font-size: 1.6rem; }
}
