:root {
  --text: #242424;
  --muted: #6b6b6b;
  --bg: #fff;
  --bg-subtle: #fafafa;
  --border: #e6e6e6;
  --accent-ai: #2f6fed;
  --accent-cars: #e8542e;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header a.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

header.site-header nav a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

header.site-header nav a:hover {
  color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0 -24px 48px;
  padding: 64px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(47, 111, 237, 0.25), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(232, 84, 46, 0.22), transparent 42%);
  pointer-events: none;
}

.hero h1,
.hero p,
.hero-cta {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: #cfd3e0;
  max-width: 480px;
  margin: 0 auto 24px;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 24px;
  transition: transform 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
}

/* Section heading */
.section-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin: 0 0 16px;
}

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  margin: 48px 0 8px;
}

.page-intro {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Post list / cards */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.post-card-media {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-media-blank.post-card-media-tag-ai {
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.25), rgba(47, 111, 237, 0.05));
}

.post-card-media-blank.post-card-media-tag-cars {
  background: linear-gradient(135deg, rgba(232, 84, 46, 0.25), rgba(232, 84, 46, 0.05));
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .post-card-media {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

.post-title a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  margin: 8px 0;
  color: var(--muted);
  font-size: 16px;
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  background: #f2f2f2;
  color: var(--muted);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  margin-right: 6px;
  font-weight: 600;
}

.tag-ai {
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-ai);
}

.tag-cars {
  background: rgba(232, 84, 46, 0.12);
  color: var(--accent-cars);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filter-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 16px;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Single post page */
article.post h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 8px;
}

article.post .post-meta {
  margin-bottom: 32px;
}

article.post p,
article.post li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  color: #292929;
}

article.post h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  margin-top: 40px;
}

article.post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
  border-radius: 4px;
}

article.post figure {
  margin: 32px 0;
}

.bio-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 24px 0;
}

article.post figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

a.back {
  display: inline-block;
  margin: 32px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

a.back:hover {
  color: var(--text);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Comments */
.comments {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.comments h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.comments form {
  margin-top: 24px;
}

.comments .field {
  margin-bottom: 12px;
}

.comments label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.comments input,
.comments textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.comments button {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
}

.comments button:hover {
  background: #000;
}

/* Search */
#search {
  font-family: inherit;
  margin-bottom: 8px;
}
