/* ── The Larkbarrow Files — Main Stylesheet ── */

/* ── Design tokens ── */
:root {
  --bg: #f7f3ec;
  --surface: #ede8df;
  --surface-2: #e5ddd0;
  --text: #2a1a0e;
  --text-muted: #7a6555;
  --text-faint: #a89880;
  --accent: #8b2020;
  --accent-light: #b84a3a;
  --border: #ccc2b0;
  --border-light: #ddd6c8;
  --highlight: #f0e0a0;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html { font-size: 16px; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Nav ── */
.site-nav {
  background: var(--text);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: #f7f3ec;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  color: #a89880;
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  display: block;
  transition: color 0.2s;
}

.nav-links a:hover { color: #f7f3ec; }

/* ── Site header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 36px;
  text-align: center;
}

.header-eyebrow {
  font-family: 'Lora', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.header-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* ── Container ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Case stats banner ── */
.case-banner {
  background: var(--text);
  color: #f7f3ec;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 40px 0;
  border-left: 5px solid var(--accent);
}

.case-stat-label {
  font-family: 'Lora', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a89880;
  margin-bottom: 4px;
}

.case-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #f7f3ec;
  line-height: 1.3;
}

.case-stat-value.status-open { color: #e8b060; }

/* ── Sections ── */
.section { margin: 48px 0; }

.section-label {
  font-family: 'Lora', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.prose p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ── Pull quote / key detail ── */
.key-detail {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  line-height: 1.5;
}

.quote-attr {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-family: 'Lora', serif;
  font-weight: 500;
  font-style: normal;
  color: var(--text-muted);
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; }
  .case-banner { padding: 20px 24px; }
}

.col-head {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--text);
}

.fact-list {
  list-style: none;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.fact-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.fact-list li::before {
  content: '\2014';
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ── Evidence grid ── */
.browse-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.evidence-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s, background 0.2s;
}

.evidence-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.evidence-card-icon {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1;
}

.evidence-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.evidence-card-count {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.evidence-card.locked {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Recent additions ── */
.update-list { margin-top: 20px; }

.update-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.update-date {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  padding-top: 3px;
  line-height: 1.6;
}

.update-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.update-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.update-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--highlight);
  color: var(--text);
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: 'Lora', serif;
}

/* ── Contribute banner ── */
.contribute-banner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 36px 40px;
  text-align: center;
  margin: 48px 0;
}

.contribute-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.contribute-body {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #f7f3ec;
  font-family: 'Lora', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-light); }

/* ── Divider ── */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: #a89880;
  padding: 32px 24px;
  font-size: 12px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #f7f3ec;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 12px;
  color: #a89880;
}

.footer-note {
  font-size: 11px;
  color: #7a6555;
  font-style: italic;
  margin-top: 4px;
}

.footer-right {
  text-align: right;
  font-size: 11px;
  color: #7a6555;
  line-height: 1.9;
}

/* ── Update list links ── */
.update-link {
  color: inherit;
  text-decoration: none;
}
.update-link:hover { text-decoration: underline; }

/* ── Evidence item pages ── */
.ev-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.back-link:hover { text-decoration: underline; }

.ev-category-tag {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.ev-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.ev-meta {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.ev-body {
  max-width: 680px;
}

.ev-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
  margin: 28px 0 10px;
}

.ev-body blockquote {
  background: var(--surface);
  border-left: 4px solid var(--border);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* Official-document style wrapper (Claude may use this) */
.ev-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 36px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.8;
}

.ev-doc-heading {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

