/* Blog-specific layout — extends main.css (dark theme inherited from main.css) */

/* ---- Header (matches homepage nav) ---- */
.site-header {
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  top: auto;
}

.site-header__inner {
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-label {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Main content ---- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 120px; /* Increased top padding to clear fixed nav and prevent logo overlap */
}

/* ---- Post list ---- */
.post-list {
  list-style: none;
}

.post-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item__meta {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-item__title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.post-item__title a {
  text-decoration: none;
  color: var(--text);
}

.post-item__title a:hover {
  text-decoration: underline;
}

.post-item__excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.post-item__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.post-item__cta:hover {
  text-decoration: none;
}

/* ---- Individual post view ---- */
.post-view {
  display: none;
}

.post-view.active {
  display: block;
}

.post-view__back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.post-view__back:hover {
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}

.post-view__meta {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-view__title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--text);
}

.post-view__content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.post-view__content p {
  margin-bottom: 28px;
}

.post-view__content h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.post-view__content h3 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.post-view__content strong {
  font-weight: 600;
}

.post-view__content em {
  font-style: italic;
}

.post-view__content ul,
.post-view__content ol {
  margin: 0 0 28px 24px;
}

.post-view__content li {
  margin-bottom: 10px;
}

.post-view__content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-view__content blockquote {
  border-left: 2px solid #444;
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-view__content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- List view toggle ---- */
.list-view {
  display: block;
}

.list-view.hidden {
  display: none;
}

/* ---- Post list header ---- */
.post-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.post-list-heading {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .post-view__title {
    font-size: 32px;
  }

  main {
    padding: 48px 20px 80px;
  }
}
