/* ============================================================
   iMusic — Articles page.
   Left nav (article list) + right content pane (essay).
   Mirrors composers/style.css and instruments/style.css's layout
   language. Layers on top of ../site.css.
   ============================================================ */

.articles-layout {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 32px 90px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

/* ---------- Left nav ---------- */

.articles-nav {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.articles-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.articles-nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.articles-nav-content a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 120ms ease, color 120ms ease;
}

.articles-nav-content a:hover {
  background: rgba(201, 162, 74, 0.12);
  color: var(--brass);
}

.articles-nav-content a.active {
  background: var(--brass);
  color: var(--bg-soft);
  font-weight: 600;
}

/* ---------- Content pane ---------- */

.article-content {
  flex: 1;
  min-width: 0;
}

.article-content:focus {
  outline: none;
}

.article-breadcrumb {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--brass);
  text-decoration: underline;
}

.article-breadcrumb span[aria-current] {
  color: var(--ink);
}

.article-topic {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 4px;
}

.article-content h1 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 34px;
  letter-spacing: 0.5px;
  color: var(--brass);
  margin: 0 0 22px;
  font-weight: 700;
  line-height: 1.2;
}

.article-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.9;
  max-width: 720px;
  margin: 0 0 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .articles-layout {
    flex-direction: column;
    padding: 24px 16px 60px;
    gap: 20px;
  }

  .articles-nav {
    width: 100%;
    position: static;
  }

  .articles-nav-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .articles-nav-content a {
    margin-bottom: 0;
  }
}

/* ---------- Plain theme ---------- */

body.theme-plain .article-content h1 {
  color: var(--brass);
}

body.theme-plain .articles-nav-content a.active {
  color: #fff;
}
