/* ============================================================
   BAKAC — Writing / Blog styles
   Supplements style.css; requires brand tokens from :root
   ============================================================ */

/* ── Writing index hero ───────────────────────────────────── */
.writing-hero {
  background: var(--paper);
  padding: 80px 3rem 64px;
}

.writing-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.writing-hero .label {
  color: var(--copper);
  display: block;
  margin-bottom: 1.5rem;
}

.writing-hero h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.0;
  margin-bottom: 1.25rem;
}

.writing-hero-sub {
  color: var(--stone);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
}

/* ── Post list ────────────────────────────────────────────── */
.post-list-section {
  background: var(--ink);
  padding: 64px 3rem 80px;
}

.post-list {
  max-width: 700px;
  margin: 0 auto;
}

.post-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-soft);
}

.post-list-item:first-child {
  border-top: 1px solid var(--ink-soft);
}

.post-list-left {
  flex: 1;
  min-width: 0;
}

.post-list-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.post-list-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--paper);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.post-list-excerpt {
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.post-list-read {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.post-list-read:hover { color: var(--fog); }

/* ── Post header ──────────────────────────────────────────── */
.post-header {
  background: var(--ink);
  padding: 80px 3rem 64px;
}

.post-header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.post-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 2.5rem;
}

.post-breadcrumb a {
  color: var(--copper);
  transition: color 0.2s;
}

.post-breadcrumb a:hover { color: var(--fog); }

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.post-header h1 {
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.post-lead {
  color: var(--fog);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.post-rule {
  width: 60px;
  height: 2px;
  background: var(--copper);
}

/* ── Post footer ──────────────────────────────────────────── */
.post-footer {
  background: var(--ink);
  padding: 3rem;
  border-top: 1px solid var(--ink-soft);
}

.post-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.post-next-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
}

.post-next-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  transition: color 0.2s;
}

.post-next-link:hover { color: var(--copper); }

.post-back {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  transition: color 0.2s;
}

.post-back:hover { color: var(--fog); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .writing-hero { padding: 80px 1.5rem 48px; }
  .post-list-section { padding: 48px 1.5rem 64px; }
  .post-header { padding: 80px 1.5rem 48px; }
  .post-footer { padding: 2rem 1.5rem; }

  .post-list-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
