/* ANT 206 Final Project — Olmec Art and Its Legacy
   Academic / Clean Dark Theme */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --border: #333;
  --text: #e8e0d0;
  --muted: #a09888;
  --accent: #6aaa78;
  --accent-dim: #3d6647;
  --link: #7dc98a;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #111;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.5rem 1rem 0;
  border-right: 1px solid var(--border);
  margin-right: 1rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: block;
  padding: 1rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Layout ──────────────────────────────────────── */

.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: normal;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.6;
}

/* ── Typography ──────────────────────────────────── */

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--accent);
  margin: 2rem 0 0.6rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Research question callout ───────────────────── */

.rq-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.rq-box .rq-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.rq-box p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ── Inline citations ────────────────────────────── */

cite-ref, .cite {
  color: var(--muted);
  font-size: 0.88em;
}

/* ── Blockquote ──────────────────────────────────── */

blockquote {
  border-left: 2px solid var(--accent-dim);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-style: normal;
}

/* ── Page nav (prev/next) ────────────────────────── */

.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s;
}

.page-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.page-nav .nav-dir {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.page-nav .prev { text-align: left; }
.page-nav .next { text-align: right; }

/* ── Reference list ──────────────────────────────── */

.reference-list {
  list-style: none;
  counter-reset: ref-counter;
  padding: 0;
}

.reference-list li {
  counter-increment: ref-counter;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.reference-list li::before {
  content: counter(ref-counter) ".";
  color: var(--accent);
  font-size: 0.78rem;
  padding-top: 0.2em;
}

.reference-list li em {
  font-style: italic;
}

.reference-list li a {
  font-size: 0.82rem;
  word-break: break-all;
}

/* ── AI Transparency ─────────────────────────────── */

.ai-statement {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.ai-statement strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.4rem;
}

/* ── Section label ───────────────────────────────── */

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* ── Roadmap list ────────────────────────────────── */

.roadmap {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.roadmap li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1rem;
}

.roadmap li a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.roadmap li .rm-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Figures ──────────────────────────────────────── */

figure {
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

figure img,
figure object {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

figcaption strong {
  color: var(--text);
}

.fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.fig-pair figure {
  margin: 0;
}

/* ── Responsive ──────────────────────────────────── */

/* ── Footer ───────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .roadmap { grid-template-columns: 1fr; }
  .fig-pair { grid-template-columns: 1fr; }
  .nav-brand { display: none; }
  .nav-links a { padding: 1rem 0.65rem; font-size: 0.78rem; }
}
