/* ============================================================
   ComplexPortfolio — cp-undergrowth.css
   Undergrowth zone styles — loaded via functions.php
   ============================================================ */

.cp-undergrowth-intro {
  max-width: 600px;
  margin: 0 auto 4rem;
}

.cp-undergrowth-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #14130F;
  margin-bottom: 1rem;
}

.cp-undergrowth-desc {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 350;
  color: #6A6458;
  line-height: 1.75;
  max-width: 52ch;
}

.cp-strand {
  max-width: 600px;
  margin: 0 auto 5rem;
  padding-top: 3.5rem;
  border-top: 0.5px solid rgba(20,19,15,0.14);
}

.cp-strand-header {
  margin-bottom: 2rem;
}

.cp-strand-label {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 350;
  letter-spacing: -0.01em;
  color: #14130F;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.cp-strand-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6A6458;
  line-height: 1.6;
}

.cp-strand-empty p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: #6A6458;
  line-height: 1.7;
  font-weight: 350;
}

.cp-node-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.cp-node-item {
  border-top: 0.5px solid rgba(20,19,15,0.14);
}

.cp-node-item:last-child {
  border-bottom: 0.5px solid rgba(20,19,15,0.14);
}

.cp-node-title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
}

.cp-node-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6A6458;
  flex-shrink: 0;
}

.cp-node-toggle {
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  gap: 1rem;
}

.cp-node-toggle .cp-node-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 350;
  letter-spacing: -0.01em;
  color: #14130F;
  line-height: 1.3;
  transition: color 0.15s;
}

.cp-node-toggle:hover .cp-node-title {
  color: #5A3A1F;
}

.cp-node-toggle-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #6A6458;
  flex-shrink: 0;
  transition: color 0.15s;
}

.cp-node-toggle:hover .cp-node-toggle-icon {
  color: #5A3A1F;
}

.cp-node-blurb {
  padding: 0 0 1.5rem 2rem;
}

.cp-node-blurb p {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 350;
  color: #6A6458;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 48ch;
}

.cp-node-read {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A3A1F;
  text-decoration: none;
  transition: color 0.15s;
}

.cp-node-read:hover {
  color: #3E2814;
}

.cp-node-single {
  padding: 5rem 2.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cp-node-header {
  margin-bottom: 3rem;
}

.cp-node-strand-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6A6458;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.cp-node-single .cp-node-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 350;
  letter-spacing: -0.02em;
  color: #14130F;
  line-height: 1.15;
}

.cp-node-body {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 350;
  color: #2A2823;
  line-height: 1.8;
}

.cp-node-body p {
  margin-bottom: 1.25em;
}

.cp-node-body h2,
.cp-node-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  letter-spacing: -0.01em;
  color: #14130F;
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}

.cp-node-body h2 { font-size: clamp(20px, 2.5vw, 26px); }
.cp-node-body h3 { font-size: clamp(17px, 2vw, 21px); }

.cp-node-footer {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(20,19,15,0.14);
}

.cp-node-return {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6A6458;
  text-decoration: none;
  transition: color 0.15s;
}

.cp-node-return:hover {
  color: #5A3A1F;
}

@media (max-width: 768px) {
  .cp-node-single { padding: 3.5rem 1.25rem; }
  .cp-node-blurb { padding-left: 1rem; }
  .cp-strand { margin-bottom: 3rem; }
}
