/* ================================================================
   DATA SPECTRUM — dataspectrum.org
   White. Minimal. Academic. Less polish, more authority.
   ================================================================ */

:root {
  --bg: #ffffff;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --text-dim: #555555;
  --text-faint: #999999;
  --col-width: 960px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: auto;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAV --- */
nav {
  padding: 2rem 0 0;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
}

.nav-logo:hover { color: var(--text-dim); }

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

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-dim); }
.nav-links a.active { color: var(--text); }

/* --- PAGE HEADER --- */
.page-header {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- ARTICLE LIST --- */
.article-list {
  list-style: none;
}

.article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.article-item:first-child {
  padding-top: 0;
}

.article-item a {
  text-decoration: none;
  display: block;
}

.article-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.article-item a:hover .article-title {
  text-decoration: underline;
}

.article-summary {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* --- PILLAR TAG --- */
.pillar-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* --- SECTION DIVIDER --- */
.section-break {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* --- HOME SECTION --- */
.home-section {
  margin-bottom: 2.5rem;
}

.home-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.home-section-title a {
  color: var(--text-faint);
  text-decoration: none;
}

.home-section-title a:hover {
  color: var(--text-dim);
}

/* --- EMPTY STATE --- */
.empty-state {
  padding: 2.5rem 0;
}

.empty-state p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-faint);
}

/* --- ARTICLE PAGE --- */
.article-header {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.article-header .article-meta {
  margin-top: 0;
}

.article-body {
  padding-bottom: 3rem;
}

.article-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-body h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.1rem;
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.8;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: #f5f5f5;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  color: var(--text);
}

.article-body pre {
  background: #f8f8f8;
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.article-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-style: italic;
}

/* --- ABOUT --- */
.about-body {
  padding: 1.5rem 0 3rem;
}

.about-body p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* --- FOOTER --- */
footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 300;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .page-header h1 { font-size: 1.6rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.52rem; }
}
