/*
 * Global stylesheet for the new LeftWingStudies.org site. This file defines
 * colour tokens and common UI components used across the home page and
 * technique pages. The aesthetic takes inspiration from mid‑century
 * propaganda—dark backgrounds, bold accent colours and serif headings—
 * evoking a sense of vigilance against manipulation.
 */

:root {
  /* Palette: dark backgrounds, paper cards, bright accents */
  --bg: #0b0b0b;
  --paper: #1a1a1e;
  --text: #eaeaea;
  --muted: #a0a0a0;
  --accent: #c53030;
  --highlight: #2b88d8;
  --border: #333;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
}

/* Header and navigation */
header {
  background: var(--paper);
  border-bottom: 2px solid var(--accent);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Generic container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero section */
.hero {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--highlight);
  font-size: 20px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.card .button {
  margin-top: 12px;
  background: var(--accent);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
  display: inline-block;
}

.card .button:hover {
  background: var(--highlight);
}

/* Section headings */
.section-heading {
  font-size: 28px;
  color: var(--highlight);
  margin-bottom: 12px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

/* Evidence table */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

th {
  text-align: left;
  background: var(--paper);
  color: var(--highlight);
  font-weight: normal;
  cursor: pointer;
}

tr:nth-child(even) td {
  background: var(--paper);
}

tr:nth-child(odd) td {
  background: var(--bg);
}

/* Timeline container */
.timeline-container {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Submission form */
form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--highlight);
}

form input[type="text"], form input[type="url"], form select, form textarea {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 12px;
}

form button {
  background: var(--accent);
  color: var(--text);
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: var(--highlight);
}

/* Footer */
.footer {
  background: var(--paper);
  border-top: 2px solid var(--accent);
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Content grid for templates */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.sidebar ul {
  padding-left: 18px;
  margin-top: 0;
  margin-bottom: 0;
}

.sidebar ul li {
  margin-bottom: 6px;
}

.sidebar a {
  color: var(--highlight);
  text-decoration: none;
  font-size: 14px;
}

.sidebar a:hover {
  text-decoration: underline;
}
