/* Beyond Hate - Design System */
/* Consistent with sdoh.org design language */

:root {
  --header-blue: #155eac;  /* rgb(21, 94, 172) from sdoh.org */
  --accent-green: #11a66c;  /* hsla(163.1, 81%, 35%, 1) from sdoh.org */
  --text: #333;
  --text-light: #666;
  --bg-gray: #f5f5f5;
  --white: #fff;
  --border: #e0e0e0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* Header */
header {
  background: var(--header-blue);
  padding: 2rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .site-name {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

header .site-name:hover {
  color: var(--white);
  opacity: 0.9;
}

header nav {
  display: flex;
  gap: 2.5rem;
}

header nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Green accent stripe */
.accent-stripe {
  height: 10px;  /* matches sdoh.org border thickness */
  background: var(--accent-green);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main content area */
main {
  padding: 3rem 0;
}

main.gray-bg {
  background: var(--bg-gray);
}

/* Section with gray background */
.section-gray {
  background: var(--bg-gray);
  padding: 3rem 0;
  margin: 2rem 0;
}

.section-gray .container {
  max-width: 1100px;
}

/* Typography */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem 0;
}

p {
  margin: 0 0 1.25rem 0;
}

/* Subtitle / tagline */
.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
}

/* Content wrapper for readable width */
.content {
  max-width: 720px;
  margin: 0 auto;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Links */
a {
  color: var(--header-blue);
  text-decoration: underline;
}

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

/* Lists */
ul, ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquote */
blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--accent-green);
  color: var(--text);
}

blockquote p {
  margin-bottom: 0.75rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--header-blue);
  border-bottom: 2px solid var(--header-blue);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
  color: var(--header-blue);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contrast box / callout */
.contrast {
  background: var(--bg-gray);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--accent-green);
}

.contrast p {
  margin-bottom: 0;
}

/* Theory list */
.theory-list {
  list-style: none;
  padding-left: 0;
}

.theory-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 4px;
  border-left: 3px solid var(--accent-green);
}

.theory-list .theory-name {
  font-weight: 600;
  color: var(--header-blue);
}

.theory-list .theory-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Flow diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.flow-step {
  background: var(--header-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.flow-arrow {
  color: var(--text-light);
}

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

footer a {
  color: var(--text-light);
}

footer a:hover {
  color: var(--header-blue);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  header nav {
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
  }
}
