:root {
  --background: #f7f5ef;
  --surface: #ffffff;
  --text: #26352f;
  --muted: #66756e;
  --accent: #526f61;
  --accent-dark: #3d574b;
  --border: #d9ddd7;
  --error: #8a3535;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.page {
  width: min(900px, calc(100% - 32px));
  margin: 48px auto;
}

.header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28pt;
  font-weight: 500;
}

.intro {
  max-width: 720px;
  color: var(--muted);
}

.panel {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.5;
  resize: vertical;
}

button {
  margin-top: 14px;
  padding: 10px 22px;
  border: 0;
  background: var(--accent);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 11pt;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  color: var(--muted);
}

.error {
  color: var(--error);
  font-family: Arial, sans-serif;
}

.result h2 {
  margin-top: 0;
  font-size: 17pt;
  font-weight: 500;
}

.result h2:not(:first-child) {
  margin-top: 28px;
}

.answer {
  white-space: pre-wrap;
  font-size: 12pt;
}

.evidence-item {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
}

.evidence-item:first-child {
  border-top: 0;
}

@media (max-width: 600px) {
  .page {
    margin: 24px auto;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 23pt;
  }
}
