/* ================================================
   NEURAL ATLAS — Shared Styles
   Academic warm palette, Cormorant + Spectral
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Spectral+SC:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:           #eee8de;
  --bg-warm:      #f5f0e8;
  --surface:      #faf7f3;
  --surface-alt:  #f0ebe0;
  --text:         #231e19;
  --text-mid:     #4a3e35;
  --text-muted:   #7a6b60;
  --accent:       #7a6452;
  --accent-light: #a08878;
  --accent-pale:  #ddd0c5;
  --blue:         #4a6a7a;
  --blue-light:   #7898a8;
  --blue-pale:    #d4e0e8;
  --border:       #cec3b6;
  --border-light: #e2dbd2;
  --shadow:       rgba(42, 28, 18, 0.12);
  --shadow-lg:    rgba(42, 28, 18, 0.2);

  /* Brain region palette */
  --region-cortex:     #c8b9a8;
  --region-frontal:    #a8b8c8;
  --region-parietal:   #b2c2b0;
  --region-temporal:   #c8a8b0;
  --region-occipital:  #c8c0a0;
  --region-cerebellum: #b0c0d0;
  --region-brainstem:  #b4aba0;
  --region-hippocampus:#a0c2be;
  --region-amygdala:   #d0a898;
  --region-hypothalamus: #c8b898;
  --region-basal:      #b8a8c0;
  --region-thalamus:   #b8c4a8;
  --region-cingulate:  #c8b8a8;

  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Spectral', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }

.display-italic { font-style: italic; }
.small-caps { font-family: 'Spectral SC', serif; font-size: 0.78em; letter-spacing: 0.1em; }
.overline {
  font-family: 'Spectral SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

/* ── Navigation ── */
.site-nav {
  position: static;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Spectral SC', serif;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  border-bottom-color: var(--accent);
}

/* ── Layout Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--border);
}

.card-inner {
  padding: 2rem 2rem 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Spectral SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--text);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ── Tag chips ── */
.tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 2px;
  font-family: 'Spectral SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  margin-top: 6rem;
  text-align: center;
}

.site-footer p {
  font-family: 'Spectral SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ── Selection ── */
::selection { background: var(--accent-pale); color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav {
    height: auto;
    min-height: 60px;
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-logo {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }
  .nav-links {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .nav-links a {
    min-height: auto;
    padding: 0.25rem 0;
  }
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
}
