/* Blog index. Separate from the article sheet: .navbar and the
   mobile block genuinely differ between the two layouts. */

/* Söhne (Klim) — voir la note de licence dans /index.html */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  /* Push the language picker to the right edge, matching the article
     layout and the landing page. */
  justify-content: space-between;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}
.navbar-logo { height: 30px; width: auto; display: block; }

.blog {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 96px;
  flex: 1;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.blog-card-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
}
.blog-empty {
  font-size: 16px;
  color: var(--text-muted);
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 24px 40px;
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}
.footer-col-news {
  max-width: 400px;
  width: 100%;
}
.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-links a {
  color: var(--footer-text);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: #fff; }
.footer-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.footer-news-label {
  font-size: 14px;
  color: var(--footer-text);
}
.post-news-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.22);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  transition: border-color 0.2s;
}
.post-news-form:focus-within { border-color: oklch(1 0 0 / 0.5); }
.post-news-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  padding: 9px 0;
}
.post-news-form input::placeholder { color: oklch(1 0 0 / 0.4); }
.post-news-form button {
  border: none;
  border-radius: 999px;
  background: #fff;
  color: oklch(0.25 0.02 255);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.post-news-form button:hover { opacity: 0.85; }
.post-news-msg {
  display: none;
  font-size: 14px;
  color: var(--footer-text);
}
.footer-text {
  font-size: 13px;
  line-height: 1.6;
  max-width: 400px;
  color: oklch(1.00 0 0 / 0.6);
}

@media (max-width: 768px) {
  .blog-title { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 36px; }
}
