/*
Theme Name: Art History Online
Theme URI: https://kurin.space
Description: Art History Online Theme
Version: 2.0
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:      #c8a85a;
  --gold-dim:  rgba(200,168,90,0.4);
  --gold-faint:rgba(200,168,90,0.08);
  --cream:     #e8e0d0;
  --cream-dim: #a09070;
  --bg:        #0d0d0d;
  --bg-card:   #131310;
  --border:    rgba(200,168,90,0.15);
  --font-serif:'Georgia','Times New Roman',serif;
  --font-sans: system-ui,-apple-system,sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; }

.aho-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.aho-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.aho-logo {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.aho-logo a { color: inherit; }

.aho-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}
.aho-nav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.aho-nav a:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
#aho-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#aho-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aho-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 700px;
}

.aho-hero-subtitle {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.aho-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
}

.aho-hero-quote {
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin-bottom: 48px;
  line-height: 1.8;
}

.aho-hero-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.aho-hero-btn {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 12px 24px;
  transition: all 0.3s;
}
.aho-hero-btn:hover {
  background: var(--gold-faint);
  color: var(--cream);
  border-color: var(--gold);
}

/* ============================================
   SECTIONS (Homepage)
   ============================================ */
.aho-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.aho-section-header {
  margin-bottom: 64px;
}

.aho-section-roman {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.aho-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.2;
}

.aho-section-answer {
  font-size: 1rem;
  color: var(--cream-dim);
}
.aho-section-answer em {
  font-style: italic;
  color: var(--gold);
  margin-left: 8px;
}

/* ============================================
   TIMELINE (Homepage main movements)
   ============================================ */
.aho-timeline {
  position: relative;
  padding-left: 32px;
}
.aho-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 10%, var(--gold-dim) 90%, transparent);
}

.aho-timeline-item {
  position: relative;
  margin-bottom: 0;
  padding: 24px 0 24px 24px;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: none;
}
.aho-timeline-item:last-child { border-bottom: none; }

.aho-timeline-dot {
  position: absolute;
  left: -28px;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold);
}

/* Movement link (main row) */
.aho-movement-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.aho-movement-link:hover .aho-timeline-name { color: var(--gold); }

.aho-timeline-period {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.aho-timeline-name {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
  transition: color 0.3s;
}

.aho-timeline-answer {
  font-size: 0.875rem;
  color: var(--cream-dim);
  font-style: italic;
}

/* ============================================
   SUB-PERIODS TABLE (Homepage inline)
   ============================================ */
.aho-sub-list {
  margin-top: 16px;
  margin-left: 0;
  padding: 20px 24px;
  background: var(--gold-faint);
  border-left: 2px solid var(--gold-dim);
}

.aho-sub-list-question {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-style: normal;
}

.aho-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.aho-sub-table tr {
  border-bottom: 1px solid rgba(200,168,90,0.08);
}
.aho-sub-table tr:last-child { border-bottom: none; }

.aho-sub-td-zh {
  width: 22%;
  padding: 8px 12px 8px 0;
  color: var(--cream);
  font-weight: 500;
  vertical-align: top;
  white-space: nowrap;
}

.aho-sub-td-en {
  width: 28%;
  padding: 8px 12px;
  color: var(--gold);
  font-style: italic;
  font-size: 0.78rem;
  vertical-align: top;
}

.aho-sub-td-ans {
  width: 50%;
  padding: 8px 0 8px 12px;
  color: var(--cream-dim);
  vertical-align: top;
  line-height: 1.5;
}

/* ============================================
   MOVEMENT SINGLE PAGE
   ============================================ */
.aho-movement-page body,
body.aho-movement-page {
  padding-top: 0;
}

.aho-movement-main {
  padding-top: 64px;
  min-height: 100vh;
}

.aho-movement-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(200,168,90,0.03), transparent);
}

.aho-movement-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aho-movement-breadcrumb a { color: var(--gold); }
.aho-movement-breadcrumb a:hover { color: var(--cream); }
.aho-breadcrumb-sep { color: rgba(200,168,90,0.3); }

.aho-movement-period {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.aho-movement-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 24px;
}

.aho-movement-claim {
  font-size: 1.05rem;
  color: var(--cream-dim);
  line-height: 1.9;
  max-width: 640px;
}
.aho-movement-claim-en {
  font-size: 0.9rem;
  color: var(--gold);
  display: block;
  margin-top: 4px;
}

/* Movement body */
.aho-movement-body {
  padding: 60px 0 80px;
}

.aho-movement-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.aho-movement-section:last-of-type { border-bottom: none; }

.aho-movement-section-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 400;
}

/* Sub-period section on single page */
.aho-sub-section { }

.aho-sub-question {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.aho-sub-timeline {
  width: 100%;
  overflow-x: auto;
}

.aho-sub-header-row {
  display: grid;
  grid-template-columns: 22% 28% 1fr;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold-dim);
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.aho-sub-row {
  display: grid;
  grid-template-columns: 22% 28% 1fr;
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.aho-sub-row:last-child { border-bottom: none; }

.aho-sub-name {
  font-size: 0.9rem;
  color: var(--cream);
  font-weight: 500;
  padding-right: 16px;
}

.aho-sub-en {
  font-size: 0.82rem;
  color: var(--gold);
  font-style: italic;
  padding-right: 16px;
}

.aho-sub-ans {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.6;
}

/* Movement content */
.aho-movement-content {
  color: var(--cream-dim);
  line-height: 1.9;
  font-size: 1rem;
  max-width: 680px;
}
.aho-movement-content p { margin-bottom: 1.2em; }

/* Lists */
.aho-movement-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aho-movement-list li {
  color: var(--cream);
  padding: 12px 20px;
  background: var(--gold-faint);
  border-left: 2px solid var(--gold-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Navigation prev/next */
.aho-movement-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.aho-movement-prev,
.aho-movement-next {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-dim);
  font-size: 0.85rem;
  transition: color 0.3s;
  flex: 1;
  min-width: 0;
}
.aho-movement-prev { justify-content: flex-start; }
.aho-movement-next { justify-content: flex-end; text-align: right; }
.aho-movement-prev:hover,
.aho-movement-next:hover { color: var(--gold); }

.aho-nav-arrow { font-size: 1rem; color: var(--gold); flex-shrink: 0; }
.aho-nav-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aho-movement-home {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 10px 20px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.aho-movement-home:hover {
  background: var(--gold-faint);
  color: var(--cream);
  border-color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */
.aho-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.aho-footer-copy {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .aho-container { padding: 0 20px; }
  .aho-header { padding: 0 20px; }
  .aho-section { padding: 64px 0; }
  .aho-timeline { padding-left: 24px; }
  .aho-timeline-dot { left: -20px; }
  .aho-sub-td-zh { width: 30%; }
  .aho-sub-td-en { display: none; }
  .aho-sub-td-ans { width: 70%; }
  .aho-sub-header-row { grid-template-columns: 35% 1fr; }
  .aho-sub-row { grid-template-columns: 35% 1fr; }
  .aho-sub-en { display: none; }
  .aho-movement-hero { padding: 60px 0 40px; }
  .aho-movement-nav-links { flex-direction: column; align-items: stretch; }
  .aho-movement-prev, .aho-movement-next { justify-content: center; }
}