/* Global page layout */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #222222;
  margin: 0;
}

.page {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Homepage-specific styles */
h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.tagline {
  margin-top: 0;
  margin-bottom: 32px;
  color: #555555;
  font-size: 15px;
}

.year {
  margin-top: 32px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #777777;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

.post-date {
  color: #777777;
  margin-right: 8px;
}

/* Links: single bottom border on hover, no text-decoration */
a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: #111111;
}

/* Post page styles */
header {
  margin-bottom: 32px;
}

.site-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.site-title a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-title a:hover {
  border-bottom-color: #111111;
}

.post-title {
  font-size: 34px;
  margin: 20px 0 8px 0;
}

.post-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 24px;
}

.post-body p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.post-body strong {
  font-weight: 600;
}

.back-link {
  margin-top: 32px;
  font-size: 14px;
}

.back-link a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.back-link a:hover {
  border-bottom-color: #111111;
}

/* ========== Post layout ========== */

.post {
  margin-top: 16px;
}

/* Meta row under the title */
.post-meta-row {
  font-size: 14px;
  color: #777777;
  margin-bottom: 20px;
}

.post-meta-row .post-meta + .post-meta {
  margin-left: 4px;
}

/* Featured image (hero) */
.post-hero {
   margin: -8px 0 30px 0;   /* was 0 0 24px 0 */
}

.post-hero img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.post-hero figcaption {
  font-size: 12px;
  color: #888888;
  margin-top: 6px;
}

/* Sections inside the post */
.post-section {
  margin-bottom: 28px;
}

.section-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

/* Intro paragraph */
.post-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

/* Inline media */
.post-media {
  margin: 16px 0 20px 0;
}

.post-media img {
  width: 100%;
  border-radius: 6px;
}

/* Sub-headings & body text */
.sub-heading {
  font-size: 17px;
  margin: 20px 0 6px 0;
  font-weight: 600;
}

.post-body p,
.post-section p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

/* Lists */
.post-section ul,
.post-section ol {
  margin: 0 0 16px 24px;
  padding: 0;
}

/* Conclusion block */
.post-conclusion {
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
}

/* Social profile button */
.post-social-button {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
}

.post-social-button:hover {
  background-color: #f3f3f3;
}

/* Call-to-action box */
.post-cta {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background-color: #fafafa;
}

.post-cta p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.post-cta button {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background-color: #111111;
  color: #ffffff;
  cursor: pointer;
}

.post-cta button:hover {
  background-color: #333333;
}

/* Comments */
.post-comments {
  margin-bottom: 24px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.comment-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #dddddd;
  resize: vertical;
}

.comment-form button {
  margin-top: 8px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background-color: #111111;
  color: #ffffff;
  cursor: pointer;
}

.comment-form button:hover {
  background-color: #333333;
}

/* ========== Home card grid ========== */

.home-header {
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  direction: rtl;          /* reverse visual order */
}

/* Card */
.post-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  direction: ltr;          /* keep text inside cards normal */
}

.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card-image {
  width: 96%;
  height: 90px;
  object-fit: cover;
}

.post-card-body {
  padding: 12px 14px 14px 14px;
}

.post-card-date {
  font-size: 13px;
  color: #777777;
  margin-bottom: 4px;
}

.post-card-title {
  font-size: 16px;
  margin: 0;
}

/* Hover effect */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Small screens: 1 or 2 columns */
@media (max-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Post header with avatar & X button ========== */

.post-header {
  margin-bottom: 16px;
}

.post-subtitle {
  margin: 6px 0 14px 0;
  font-size: 20px;
  color: #555555;
}


.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom:8px;
  gap: 16px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-size: 14px;
  font-weight: 600;
}

.post-author-date {
  font-size: 13px;
  color: #777777;
}

.post-x-button {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #111111;
  background-color: #111111;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.post-x-button:hover {
  background-color: #333333;
}

/* ========== Breadcrumbs ========== */

.breadcrumbs {
  font-size: 13px;
  color: #777777;
  margin-bottom: 38px;
}

.breadcrumbs a {
  color: #777777;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  border-bottom-color: #777777;
}

.breadcrumbs-separator {
  margin: 0 4px;
}

.breadcrumbs-current {
  color: #111111;
}

.post-subtitle {
  margin: 18px 0 40px 0;  /* more space above & below subtitle */
  font-size: 20px;
  color: #555555;
}