:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e8f4f8;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #888888;
  --link-color: #0066cc;
  --border-color: #eeeeee;
  --code-bg: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d4d5d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --link-color: #6db3f2;
    --border-color: #444444;
    --code-bg: #2d2d2d;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--text-muted);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

th {
  background: var(--bg-secondary);
  font-weight: bold;
}

.status-code {
  font-size: 6rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
}

.message {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.justification {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-left: 4px solid #4a90d9;
  border-radius: 4px;
}

.verse-box {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.verse-box .justification {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.verse {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.reference {
  font-weight: bold;
  color: var(--text-primary);
}

.verse-link {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.verse-link a {
  color: var(--link-color);
  text-decoration: none;
}

.verse-link a:hover {
  text-decoration: underline;
}

.status-list {
  list-style: none;
  padding: 0;
}

.status-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.status-list a:hover {
  background: var(--code-bg);
}

.code {
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 3rem;
}

.message-list {
  color: var(--text-secondary);
  flex-grow: 1;
  margin: 0 1rem;
}

.verse-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.contribute {
  font-size: 0.85rem;
}

.back-link {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

nav {
  margin-top: 2rem;
}

nav a {
  margin-right: 1rem;
  color: var(--link-color);
}

.contribute-box {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff3cd;
  border-radius: 8px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .contribute-box {
    background: #4d4d00;
  }
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}