/*
Theme Name: Chasing Citroëns Clean
Theme URI: https://chasingcitroens.com
Author: Danilo Gurovich
Description: Clean, photo-forward blog theme for Citroën D-model restoration stories.
Version: 1.0
Text Domain: chasing-citroens
*/

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f6f4f2;
}

/* Layout shell */

.site {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

@media (min-width: 1200px) {
  .site {
    padding: 0 0 3rem;
  }
}

/* Header */

.site-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-logo img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.site-title {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.site-title a {
  color: #111;
  text-decoration: none;
}

.site-description {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* Navigation */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: #c01320;
}

/* Mobile nav */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .primary-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .primary-nav ul {
    display: none;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .primary-nav.is-open ul {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

/* Main */

.site-main {
  padding-top: 2rem;
}

/* Posts index: hero + grid */

.posts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

@media (max-width: 960px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

.post {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.post--featured {
  grid-row: span 2;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Meta */

.post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

.post-meta a {
  color: inherit;
  text-decoration: none;
}

/* Titles */

.post-title {
  font-size: 1.4rem;
  margin: 0;
}

.post-title a {
  color: #111;
  text-decoration: none;
}

.post-title a:hover {
  color: #c01320;
}

/* Excerpt */

.post-excerpt {
  font-size: 0.95rem;
  color: #444;
}

/* Read more / meta footer */

.post-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.post-footer a.read-more {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  text-decoration: none;
  color: #c01320;
}

.post-footer a.read-more:hover {
  color: #f2442e;
}

/* Post grid for non-featured posts */

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.posts-list .post {
  flex-direction: row;
}

.posts-list .post-thumbnail {
  flex: 0 0 40%;
}

.posts-list .post-body {
  flex: 1;
}

@media (max-width: 720px) {
  .posts-list .post {
    flex-direction: column;
  }

  .posts-list .post-thumbnail {
    flex-basis: auto;
  }
}

/* Single/post/page */

.single .site-main,
.page .site-main,
.archive .site-main {
  max-width: 760px;
}

.single .post,
.page .page {
  box-shadow: none;
  background: transparent;
}

.single .post-header,
.page .page-header {
  margin-bottom: 1rem;
}

.single .post-title,
.page .page-title {
  font-size: 2rem;
}

.entry-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 2rem 2.25rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Archive/header */

.archive-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.archive-description {
  margin: 0 0 2rem;
  color: #555;
}

/* Pagination */

.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.pagination a {
  text-decoration: none;
  color: #444;
}

.pagination a:hover {
  color: #c01320;
}

/* Footer */

.site-footer {
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #666;
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

/* Utility */

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}