/* ============================================================
   PHILOSOPHY PAGE STYLES
   All colours reference CSS variables from variables.css
   Global reset is intentionally NOT repeated here (done in base.css)
============================================================ */

.page { padding: 0; }

.hero-band {
  background: var(--forest);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.hero-band .eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1rem;
}
.hero-band h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-band h1 em { font-style: italic; color: var(--sage-light); }
.hero-band p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(200,217,196,0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.topic-map {
  background: var(--ivory);
  padding: 2.5rem 8vw;
  border-bottom: 1px solid rgba(143,166,138,0.18);
}
.topic-map h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--forest);
  margin-bottom: 0.75rem;
}
.topic-map p {
  max-width: 780px;
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.85;
}

.filter-bar {
  background: var(--ivory-dark);
  padding: 1rem 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(143,166,138,0.2);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--sage-light);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  background: var(--sage-light);
  padding: 1px;
}

.post-card {
  background: var(--ivory);
  padding: 1.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 220px;
  border-bottom: 3px solid transparent;
}
.post-card:hover {
  background: var(--ivory-dark);
  border-bottom-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(44,62,45,0.08);
  position: relative;
  z-index: 1;
}
.post-card:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: -3px;
}
.post-card:not(.featured) {
  border-top: 1px solid rgba(143,166,138,0.3);
}
.post-card.featured {
  grid-column: 1 / -1;
  background: var(--forest);
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  min-height: auto;
  margin-bottom: 2px;
  border-bottom: 4px solid var(--sage-dark);
}
.post-card.featured:hover { background: #3a5038; }
.post-card.hidden { display: none !important; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tradition-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.tag-stoicism       { background: rgba(74,102,69,0.15);   color: var(--sage-dark); }
.tag-existentialism { background: rgba(196,137,122,0.2);  color: #A05540; }
.tag-buddhism       { background: rgba(201,169,110,0.2);  color: #8B6820; }
.tag-taoism         { background: rgba(90,100,114,0.15);  color: #3d4f62; }
.tag-psychology     { background: rgba(143,166,138,0.2);  color: #3d5c39; }
.tag-nietzsche      { background: rgba(90,60,80,0.15);    color: #5c3050; }
.tag-spinoza        { background: rgba(60,80,110,0.15);   color: #2c4470; }

.read-time {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--slate-light);
  letter-spacing: 0.05em;
}

.post-num {
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--sage-light);
  line-height: 1;
  margin-bottom: 0.3rem;
  display: block;
}
.post-card.featured .post-num { color: rgba(200,217,196,0.4); }

.post-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.3;
}
.post-card.featured .post-title {
  font-size: 1.6rem;
  color: var(--ivory);
}

.post-excerpt {
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
  flex: 1;
}
.post-card.featured .post-excerpt { color: rgba(200,217,196,0.8); }

.post-hook {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--sage);
  font-style: italic;
  border-left: 2px solid var(--sage);
  padding-left: 0.6rem;
  line-height: 1.5;
}
.post-card.featured .post-hook { color: var(--sage-light); border-color: var(--sage-light); }

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(143,166,138,0.2);
}
.post-card.featured .post-footer { border-color: rgba(200,217,196,0.2); }

.read-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  text-decoration: none;
}
.read-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card.featured .read-link { color: var(--sage-light); }

.featured-left { flex-shrink: 0; }
.featured-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(200,217,196,0.15);
  line-height: 1;
  font-style: italic;
}

.cta-band {
  background: var(--rose);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.cta-band h2 em { font-style: italic; }
.cta-band p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(247,243,236,0.75);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}
.cta-btn {
  display: inline-block;
  background: var(--forest);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .grid { gap: 1px; }
  .post-card { padding: 1.4rem; min-height: auto; }
  .post-num { font-size: 1.1rem; }
  .post-card.featured { flex-direction: column; }
}
