:root {
  --hm-bg: #ffffff;
  --hm-fg: #0f172a;
  --hm-muted: #64748b;
  --hm-primary: #16a34a;
  --hm-primary-dark: #15803d;
  --hm-accent: #eab308;
  --hm-border: #e2e8f0;
  --hm-card: #f8fafc;
  --hm-radius: 12px;
  --hm-max: 1200px;
  --hm-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hm-font-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
}

body {
  font-family: var(--hm-font-sans);
  color: var(--hm-fg);
  background: var(--hm-bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--hm-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--hm-font-serif); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--hm-primary);
  color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--hm-border);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; gap: 1rem;
}
.site-title { margin: 0; font-family: var(--hm-font-serif); font-size: 1.5rem; }
.site-title a { color: var(--hm-fg); }
.site-description { margin: 0; color: var(--hm-muted); font-size: .85rem; }

.main-navigation ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.main-navigation a { color: var(--hm-fg); font-weight: 500; }
.main-navigation a:hover { color: var(--hm-primary-dark); }

.menu-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: .5rem;
}
.menu-toggle__bar {
  display: block; width: 24px; height: 2px; background: var(--hm-fg); margin: 5px 0;
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .main-navigation ul {
    display: none; flex-direction: column; width: 100%;
    background: #fff; padding: 1rem 0; border-top: 1px solid var(--hm-border);
  }
  .main-navigation.toggled ul { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
}

/* Layout */
.site-content { padding: 2rem 0 4rem; }
.content-area {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem;
}
@media (max-width: 900px) { .content-area { grid-template-columns: 1fr; } }

.page-header { margin-bottom: 2rem; }
.page-title { margin: 0; }

/* Posts list */
.posts-list { display: grid; gap: 1.75rem; }
.post-card {
  background: var(--hm-card);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -10px rgba(0,0,0,.15); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.25rem 1.5rem; }
.entry-meta { color: var(--hm-muted); font-size: .85rem; margin-top: .25rem; }
.entry-title a { color: var(--hm-fg); }
.read-more {
  display: inline-block; margin-top: .75rem; font-weight: 600; color: var(--hm-primary-dark);
}

@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__thumb img { height: 200px; }
}

/* Single */
.single-post .entry-header, .single-page .entry-header { margin-bottom: 1.5rem; }
.entry-thumbnail { margin-bottom: 1.5rem; border-radius: var(--hm-radius); overflow: hidden; }
.entry-content p { margin: 0 0 1em; }
.entry-content blockquote {
  border-left: 4px solid var(--hm-primary);
  margin: 1.5em 0; padding: .5em 1em; background: var(--hm-card);
}

/* Sidebar */
.sidebar .widget {
  background: var(--hm-card);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.widget-title { margin-top: 0; font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding: 2.5rem 0; margin-top: 4rem;
}
.site-footer a { color: #f8fafc; }
.site-footer__inner { display: grid; gap: 1rem; text-align: center; }
.site-footer__title { font-size: 1.25rem; font-weight: 700; margin: 0; color: #fff; }
.site-footer__tag { margin: 0; color: #94a3b8; }
.footer-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.site-footer__copy { font-size: .85rem; color: #94a3b8; margin: 0; }

/* Pagination */
.pagination, .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.page-numbers {
  padding: .5rem .85rem; border: 1px solid var(--hm-border);
  border-radius: 8px; color: var(--hm-fg);
}
.page-numbers.current { background: var(--hm-primary); color: #fff; border-color: var(--hm-primary); }

/* Comments */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--hm-border); }

/* Forms */
.search-form { display: flex; gap: .5rem; }
.search-field, input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--hm-border);
  border-radius: 8px; font: inherit; background: #fff; color: var(--hm-fg);
}
button, .search-submit, input[type="submit"] {
  background: var(--hm-primary); color: #fff; border: 0;
  padding: .65rem 1.1rem; border-radius: 8px; font-weight: 600; cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--hm-primary-dark); }
