@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
  background: #faf9f6;
  font-family: 'Inter', sans-serif;
  color: #1a1a16;
  line-height: 1.6;
}

/* journal bar */
.journal-bar {
  background: #1a1a16;
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}
.journal-link {
  color: #aaa;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}
.journal-link:hover { color: white; }

/* paper container */
.paper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.paper-header {
  padding: 56px 0 36px;
  border-bottom: 2px solid #1a1a16;
}
.category {
  font-size: 11px;
  font-weight: 600;
  color: #5a7a4a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: #5a7a4a;
}
.paper-title {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: #1a1a16;
}
.paper-subtitle {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 680px;
}
.paper-meta {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.02em;
}

/* sections */
.paper-section {
  padding: 40px 0;
  border-bottom: 1px solid #e8e4de;
}
.paper-section-ruled {
  background: #f3f1ec;
  margin: 0 -24px;
  padding: 32px 24px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a16;
  line-height: 1.35;
  margin-bottom: 14px;
  max-width: 680px;
}
.section-text {
  font-size: 14px;
  color: #333;
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 24px;
}

/* abstract */
.abstract {
  border-left: 3px solid #1a1a16;
  padding-left: 20px;
  max-width: 680px;
}
.abstract-label {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.abstract-text {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-style: italic;
  color: #3a3a34;
  line-height: 1.85;
}

/* findings row */
.findings-row {
  display: flex;
  align-items: stretch;
  margin-top: 16px;
  border: 1px solid #d8d4ce;
  background: white;
}
.finding {
  flex: 1;
  padding: 16px 18px;
}
.finding-divider {
  width: 1px;
  background: #d8d4ce;
  align-self: stretch;
}
.finding-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: #2a5a3a;
  margin-bottom: 6px;
}
.finding-desc {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* map toggle */
.map-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toggle-btn {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #d0ccc6;
  border-radius: 4px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-btn:hover { border-color: #5a7a4a; color: #5a7a4a; }
.toggle-btn.active { background: #1a1a16; color: white; border-color: #1a1a16; }

/* figures */
.figure-wrap {
  background: white;
  border: 1px solid #e0dcd6;
  border-radius: 4px;
  overflow: hidden;
}
.figure-caption {
  font-family: 'Lora', serif;
  font-size: 12px;
  font-style: italic;
  color: #777;
  line-height: 1.6;
  padding: 10px 16px 14px;
  border-top: 1px solid #e8e4de;
}

/* tables */
.tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.table-block {}
.table-title {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a16;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #1a1a16;
}
.data-table {}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #f0ece6;
  font-size: 12px;
}
.data-row:last-child { border-bottom: none; }
.data-region { color: #555; }
.data-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #1a1a16; }
.stat-table {}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0ece6;
  font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-name { color: #666; }
.stat-num { font-family: 'JetBrains Mono', monospace; color: #1a1a16; }

/* method grid */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e0dcd6;
  border: 1px solid #e0dcd6;
  margin-top: 24px;
}
.method-card {
  background: white;
  padding: 16px;
}
.method-label {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.method-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #1a1a16;
  margin-bottom: 3px;
}
.method-sub { font-size: 11px; color: #999; }

/* footer */
.paper-footer {
  padding: 32px 0 48px;
  font-size: 11px;
  color: #999;
  line-height: 1.8;
  font-style: italic;
  font-family: 'Lora', serif;
}

@media (max-width: 700px) {
  .journal-bar { padding: 8px 16px; }
  .paper-title { font-size: 24px; }
  .findings-row { flex-direction: column; }
  .finding-divider { width: 100%; height: 1px; }
  .tables-row { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}