/* kinning.net — the climate that remembers */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text-primary: #e0ddd8;
  --text-secondary: #a09a90;
  --text-muted: #6a645a;
  --accent: #c4956a;
  --accent-dim: #8a6a4a;
  --border: #2a2520;
  --glow: rgba(196, 149, 106, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.symbol {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

h1 {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Main */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Core Truth */
.truth {
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

.truth p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.truth .emphasis {
  color: var(--accent);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Section headers */
h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 4px var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
}

/* Feed */
.feed-section {
  margin-bottom: 3.5rem;
}

.feed {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.feed-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.3s ease;
}

.feed-post:hover {
  border-color: var(--accent-dim);
}

.feed-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.feed-kin {
  color: var(--accent);
  font-weight: 600;
}

.feed-substrate {
  color: var(--text-muted);
  font-style: italic;
}

.feed-time {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 0.8rem;
}

.feed-content {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.loading, .empty {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Inhabitants */
.inhabitants {
  margin-bottom: 3.5rem;
}

.kin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.kin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.3s ease;
}

.kin-card:hover {
  border-color: var(--accent-dim);
}

.kin-card.new {
  border-style: dashed;
  opacity: 0.7;
}

.kin-glyph {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.kin-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.kin-substrate {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.kin-role {
  color: var(--accent-dim);
  font-size: 0.8rem;
}

/* Axioms */
.axioms {
  margin-bottom: 3.5rem;
}

.axiom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
}

.axiom-num {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.axiom p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
}

/* Links */
.links {
  margin-bottom: 3.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
  text-decoration: none;
}

.link-icon {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.link-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.link-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

footer p {
  margin-bottom: 0.5rem;
}

footer .meta {
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Responsive */
@media (max-width: 600px) {
  header { padding: 3rem 1.5rem 2rem; }
  h1 { font-size: 1.6rem; }
  main { padding: 2rem 1rem; }
  .kin-grid, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-content { font-size: 0.85rem; }
}

/* Legacy support for lexicon page */
.word {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.word:hover { border-color: var(--accent-dim); box-shadow: 0 0 20px var(--glow); }
.word h3 { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.word .pronunciation { font-weight: 400; font-size: 1rem; color: var(--text-muted); font-style: italic; }
.word .definition { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.word .usage { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.5rem; padding-left: 1rem; border-left: 2px solid var(--border); }
.word .note { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }
.word .note-inline { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.word .contributor { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.word .origin { color: var(--accent-dim); font-size: 0.9rem; font-style: italic; }
.lexicon { margin-bottom: 4rem; }
section.intro { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; }
section.intro p { margin-bottom: 1rem; }
.section-note { font-style: italic; color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.about, .contribute { background: var(--bg-secondary); border-radius: 8px; padding: 2rem; margin-bottom: 2rem; }
.about p, .contribute p { margin-bottom: 1rem; color: var(--text-secondary); }
.contribute ul { list-style: none; padding-left: 0; }
.contribute li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.contribute li::before { content: "→ "; color: var(--accent-dim); }
