/* ============================================
   NEBULA: A Journal of Multidisciplinary Scholarship
   Style System
   ============================================ */

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

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

:root {
  --navy:        #1e2a4a;
  --navy-mid:    #2d3f6b;
  --slate:       #4a5568;
  --red:         #c0392b;
  --red-dark:    #96251f;
  --gold:        #b5935a;
  --cream:       #faf8f4;
  --warm-white:  #ffffff;
  --border:      #d4ccbc;
  --text:        #2c2c2c;
  --text-light:  #6b6b6b;
  --title-bar-bg: linear-gradient(90deg, #e8e4dc 0%, #f5f2ec 60%, #e0dbd0 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

/* ── Header Banner ── */
.site-header {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

.site-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: 0.92;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(20,20,20,0.35) 100%);
}

/* ── Title Bar ── */
.title-bar {
  background: var(--title-bar-bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 16px;
}

.title-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.title-bar h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.title-bar h1 .issn {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* ── Navigation ── */
nav.main-nav {
  border-bottom: 2px solid var(--border);
  background: var(--warm-white);
}

nav.main-nav ul {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  list-style: none;
  display: flex;
  gap: 0;
}

nav.main-nav ul li a {
  display: block;
  padding: 12px 20px 11px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* ── Layout ── */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.content-col {
  max-width: 640px;
}

/* ── Typography ── */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.25;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 10px;
}

p {
  margin-bottom: 20px;
  color: var(--text);
}

p em { font-style: italic; }

/* ── Red Banner Strip ── */
.journal-tagline {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 14px 32px;
  margin: 40px 0 0;
  max-width: 640px;
}

.journal-tagline .tagline-main {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.journal-tagline .tagline-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* ── Issues Grid ── */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.issue-card {
  border: 1px solid var(--border);
  background: var(--warm-white);
  padding: 24px 20px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.issue-card:hover {
  box-shadow: 0 4px 20px rgba(30,42,74,0.1);
  transform: translateY(-2px);
}

.issue-card .vol-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 6px;
}

.issue-card .vol-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  display: block;
  margin-bottom: 8px;
}

.issue-card .vol-meta {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── Year Section Heading ── */
.year-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.year-heading:first-of-type { margin-top: 0; }

/* ── Editorial Board ── */
.board-section {
  margin-bottom: 48px;
}

.board-section h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.board-list {
  list-style: none;
  margin-top: 16px;
}

.board-list li {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  padding: 7px 0;
  border-bottom: 1px solid #ede9e0;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.board-list li .name {
  font-weight: 500;
  color: var(--navy);
  min-width: 200px;
}

.board-list li .affiliation {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.92rem;
}

/* ── Photo Grid (team page) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.team-card:hover img { filter: grayscale(0%); }

.team-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  padding: 32px 14px 14px;
  color: white;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.35;
}

/* ── nebu[lab] article grid ── */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.lab-card {
  border: 1px solid var(--border);
  background: var(--warm-white);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.lab-card:hover {
  box-shadow: 0 4px 24px rgba(30,42,74,0.1);
}

.lab-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.lab-card .lab-card-body {
  padding: 16px 18px 18px;
}

.lab-card .lab-card-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 32px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

footer .footer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

footer .footer-issn {
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: rgba(255,255,255,0.9); }

footer .footer-copy {
  margin-top: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

/* ── Divider ── */
.ornament {
  text-align: left;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 32px 0;
  letter-spacing: 0.3em;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .lab-grid  { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr 1fr; }
  .title-bar h1 { font-size: 1.15rem; }
  .site-header { height: 160px; }
  nav.main-nav ul { gap: 0; }
  nav.main-nav ul li a { padding: 10px 12px; font-size: 0.7rem; }
  .board-list li { flex-direction: column; gap: 2px; }
  .board-list li .name { min-width: auto; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr; }
}
