/*
Theme Name: intim-socn
Theme URI: https://sociolog.in.ua/
Author: Studio
Author URI: https://sociolog.in.ua/
Description: Terminal / data-vis journal for sociolog.in.ua. Dark violet-tinted terminal aesthetic with JetBrains Mono headings and Fira Sans body prose. Distinct namespace: .socn-*.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: intim-socn
*/

:root {
  --socn-ink: #10101a;
  --socn-brand: #38334f;
  --socn-accent: #4bd1c8;
  --socn-paper: #d6d0c2;
  --socn-muted: rgba(214, 208, 194, 0.62);
  --socn-line: rgba(75, 209, 200, 0.22);
  --socn-grid-gap: 22px;
  --socn-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --socn-sans: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body.socn-body {
  margin: 0;
  background: var(--socn-ink);
  color: var(--socn-paper);
  font-family: var(--socn-sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
}

a { color: var(--socn-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.socn-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Terminal chrome bar */
.socn-chrome {
  border-bottom: 1px solid var(--socn-line);
  background: linear-gradient(180deg, #0b0b13 0%, var(--socn-ink) 100%);
  font-family: var(--socn-mono);
  font-size: 12px;
  color: var(--socn-muted);
}
.socn-chrome-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 28px;
  letter-spacing: 0.06em;
}
.socn-chrome-bar span::before { content: "$ "; color: var(--socn-accent); }

/* Header */
.socn-header {
  padding: 26px 0 14px;
  border-bottom: 1px dashed var(--socn-line);
}
.socn-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.socn-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.socn-brand-lockup svg { width: 48px; height: 48px; }
.socn-site-title {
  margin: 0;
  font-family: var(--socn-mono);
  font-size: 18px;
  color: var(--socn-paper);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.socn-site-tag {
  margin: 2px 0 0;
  font-family: var(--socn-mono);
  font-size: 11px;
  color: var(--socn-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Nav (no h-tags allowed) */
.socn-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--socn-mono);
  font-size: 13px;
}
.socn-nav a {
  color: var(--socn-paper);
  padding: 6px 10px;
  border: 1px solid transparent;
}
.socn-nav a:hover {
  border-color: var(--socn-line);
  color: var(--socn-accent);
  text-decoration: none;
}

/* Hero (homepage) — the ONLY h1 on home is the tagline */
.socn-hero {
  padding: 60px 0 42px;
  border-bottom: 1px dashed var(--socn-line);
}
.socn-hero-line {
  font-family: var(--socn-mono);
  color: var(--socn-accent);
  font-size: 13px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.socn-hero-line::before { content: "> "; }
.socn-tagline {
  font-family: var(--socn-mono);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.15;
  color: var(--socn-paper);
  margin: 0 0 18px;
  max-width: 22ch;
}
.socn-hero-lead {
  font-family: var(--socn-sans);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--socn-paper);
  margin: 0 0 18px;
  max-width: 62ch;
}
.socn-hero-meta {
  font-family: var(--socn-mono);
  font-size: 12px;
  color: var(--socn-muted);
  letter-spacing: 0.1em;
}

/* Category sections */
.socn-section { padding: 48px 0; border-bottom: 1px dashed var(--socn-line); }

.socn-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 24px;
}
.socn-section-head h2,
.socn-h2 {
  font-family: var(--socn-mono);
  font-size: 22px;
  color: var(--socn-paper);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.socn-section-head h2::before,
.socn-h2::before { content: "# "; color: var(--socn-accent); }

.socn-count-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--socn-mono);
  font-size: 11px;
  color: var(--socn-muted);
  letter-spacing: 0.08em;
}
.socn-bar-track {
  width: 120px;
  height: 6px;
  background: rgba(214, 208, 194, 0.12);
  border: 1px solid var(--socn-line);
  position: relative;
}
.socn-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--socn-accent);
  opacity: 0.85;
}

/* Grid: 3-col dense */
.socn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--socn-grid-gap);
  grid-auto-flow: dense;
}
@media (max-width: 960px) { .socn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .socn-grid { grid-template-columns: 1fr; } }

.socn-card {
  border: 1px solid var(--socn-line);
  background: rgba(56, 51, 79, 0.35);
  padding: 18px;
  position: relative;
  transition: border-color 0.18s ease;
}
.socn-card:hover { border-color: var(--socn-accent); }
.socn-card-index {
  font-family: var(--socn-mono);
  font-size: 11px;
  color: var(--socn-accent);
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}
.socn-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: -18px -18px 14px;
  border-bottom: 1px solid var(--socn-line);
}
.socn-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.socn-card-title {
  font-family: var(--socn-mono);
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 500;
}
.socn-card-title a { color: var(--socn-paper); }
.socn-card-title a:hover { color: var(--socn-accent); text-decoration: none; }
.socn-card-meta {
  font-family: var(--socn-mono);
  font-size: 11px;
  color: var(--socn-muted);
  letter-spacing: 0.05em;
}
.socn-card-excerpt {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(214, 208, 194, 0.82);
  line-height: 1.55;
}

/* Article layout */
.socn-article {
  padding: 40px 0 60px;
  max-width: 780px;
  margin: 0 auto;
}
.socn-crumbs {
  font-family: var(--socn-mono);
  font-size: 11px;
  color: var(--socn-muted);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.socn-crumbs a { color: var(--socn-muted); }
.socn-crumbs a:hover { color: var(--socn-accent); }

.socn-entry-title {
  font-family: var(--socn-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--socn-paper);
  margin: 0 0 14px;
  font-weight: 600;
}
.socn-byline {
  font-family: var(--socn-mono);
  font-size: 12px;
  color: var(--socn-muted);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--socn-line);
}
.socn-byline span + span::before { content: " · "; color: var(--socn-accent); }

.socn-featured {
  margin: 0 0 28px;
  border: 1px solid var(--socn-line);
}

.socn-content { font-size: 16.5px; line-height: 1.72; color: var(--socn-paper); }
.socn-content h2 {
  font-family: var(--socn-mono);
  font-size: 22px;
  margin: 40px 0 14px;
  color: var(--socn-paper);
  font-weight: 600;
}
.socn-content h2::before { content: "# "; color: var(--socn-accent); }
.socn-content h3 {
  font-family: var(--socn-mono);
  font-size: 17px;
  margin: 30px 0 10px;
  color: var(--socn-accent);
  font-weight: 500;
}
.socn-content h3::before { content: "## "; opacity: 0.7; }
.socn-content p { margin: 0 0 18px; }
.socn-content blockquote {
  margin: 26px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--socn-accent);
  background: rgba(75, 209, 200, 0.06);
  font-style: italic;
  color: var(--socn-paper);
}
.socn-content code {
  font-family: var(--socn-mono);
  background: rgba(75, 209, 200, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 14px;
}
.socn-content ul, .socn-content ol { padding-left: 22px; margin: 0 0 20px; }
.socn-content li { margin-bottom: 8px; }

/* Related */
.socn-related { padding: 40px 0; border-top: 1px dashed var(--socn-line); }
.widget-title,
p.widget-title {
  font-family: var(--socn-mono);
  font-size: 14px;
  color: var(--socn-paper);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.widget-title::before { content: "# "; color: var(--socn-accent); }

/* Archive */
.socn-archive-head {
  padding: 48px 0 26px;
  border-bottom: 1px dashed var(--socn-line);
}
.archive-title {
  font-family: var(--socn-mono);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--socn-paper);
  margin: 0;
  font-weight: 600;
}
.archive-title::before { content: "# "; color: var(--socn-accent); }
.socn-archive-desc {
  font-family: var(--socn-mono);
  font-size: 13px;
  color: var(--socn-muted);
  margin-top: 12px;
  max-width: 60ch;
}

/* Footer */
.socn-footer {
  background: #0b0b13;
  border-top: 1px solid var(--socn-line);
  padding: 40px 0 30px;
  margin-top: 60px;
  font-family: var(--socn-mono);
  font-size: 12px;
  color: var(--socn-muted);
}
.socn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 26px;
}
@media (max-width: 720px) { .socn-footer-grid { grid-template-columns: 1fr; } }
.socn-foot-brand p { color: var(--socn-muted); margin: 8px 0 0; line-height: 1.6; }
.socn-cat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.socn-cat-list a { color: var(--socn-paper); }
.socn-cat-list a:hover { color: var(--socn-accent); }
.socn-copy { border-top: 1px dashed var(--socn-line); padding-top: 16px; letter-spacing: 0.06em; }
.socn-copy::before { content: "// "; color: var(--socn-accent); }

/* Skip-link a11y */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
