/* Variables for easy global updates */
:root {
  --bg-color: #fdfaf6; /* Off-white/parchment tone */
  --text-color: #2c2a27; /* Deep, soft charcoal */
  --accent-color: #8b5e3c; /* Earthy, soil-toned accent */
  --font-stack: "Georgia", serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-stack);
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

header {
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 2em;
}

h1,
h2,
h3 {
  color: var(--accent-color);
  font-weight: normal;
}

/* Styles for your <details> and <summary> interrogation logs */
details {
  background: #f4f0ec;
  padding: 15px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 20px;
}

summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--accent-color);
}

/* A subtle touch for your articles */
article {
  margin-bottom: 40px;
}
.transcript {
  background-color: #f0ede9; /* A slightly darker "parchment" */
  border: 1px solid #dcd7ce;
  padding: 1.5em;
  margin: 2em 0;
}

.transcript pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  overflow-x: auto; 
  color: #4a453e;
  /* Add the two lines below: */
  white-space: pre-wrap;       /* Forces the browser to wrap preformatted text */
  word-wrap: break-word;       /* Ensures long single words don't overflow */
}

a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

figure {
  transition: transform 0.2s ease;
}

figure:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.character-nav {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.character-nav li {
  margin-bottom: 10px;
}

.character-nav a {
  display: block;
  padding: 15px;
  background-color: #f4f0ec;
  border-left: 4px solid var(--accent-color);
  color: var(--text-color);
  transition: background-color 0.3s ease;
}

.character-nav a:hover {
  background-color: #e8e2dc;
}

.char-name {
  display: block;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--accent-color);
}

.char-meta {
  font-size: 0.9em;
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto; /* 'auto' centers the block image horizontally */
  border: 1px solid #dcd7ce; /* Matches your transcript border style */
}
/* Two-column questionnaire layout */
ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 40px;
  padding-left: 2em;
}

ol li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

ol li::marker {
  color: var(--accent-color);
  font-weight: bold;
}