/*
Theme Name: OlivePress
Theme URI: https://example.com
Author: OlivePress
Description: Clean minimal blog theme — white background, green sticky navbar with yellow border, blog post grid, simple footer with disclaimer.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: olivepress
Tags: blog, clean, minimal, white, green
*/

/* ===========================
   RESET + BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ===========================
   NAVBAR
=========================== */
#site-header {
  background: #fff;
  border-bottom: 4px solid #c8d400;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 1.5rem;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #4a7c1a;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
}
.nav-menu a {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #222;
  padding: 0 .9rem;
  line-height: 64px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-menu a:hover,
.nav-menu a.current-menu-item { color: #4a7c1a; border-bottom-color: #4a7c1a; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; }

/* ===========================
   CONTAINERS
=========================== */
.site-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.single-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ===========================
   POSTS GRID — simple square cards
=========================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1.5rem 0 2rem;
}
@media (max-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card { display: block; text-decoration: none; color: #1a1a1a; }
.post-card:hover .card-title { color: #4a7c1a; }

.card-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #edf5e0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-no-img { width: 100%; height: 100%; background: #edf5e0; }

.card-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: .5rem 0 0;
  color: #1a1a1a;
}

/* ===========================
   SINGLE POST
=========================== */
.single-feat-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.single-feat-img img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.single-meta { font-size: .78rem; color: #999; margin-bottom: 1.2rem; }
.single-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  border-left: 4px solid #5a8a1e;
  padding-left: .9rem;
}
.entry-content { font-size: 1rem; color: #333; line-height: 1.85; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.4rem; font-weight: 800; color: #1a1a1a; margin-top: 2rem; }
.entry-content h3 { font-size: 1.1rem; font-weight: 800; color: #1a1a1a; margin-top: 1.5rem; }
.entry-content h4 { font-size: 1rem;   font-weight: 700; color: #1a1a1a; margin-top: 1.2rem; }
.entry-content a  { color: #4a7c1a; text-decoration: underline; }
.entry-content ul { list-style: disc;    padding-left: 1.4rem; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote {
  border-left: 3px solid #c8d400; padding: .7rem 1.2rem;
  color: #555; font-style: italic; background: #fafff0; border-radius: 0 4px 4px 0;
}
.entry-content table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.entry-content table th {
  background: #5a8a1e; color: #fff; font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .7rem 1rem; text-align: left;
}
.entry-content table td { padding: .6rem 1rem; border-bottom: 1px solid #eee; color: #555; }
.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:nth-child(even) { background: #f9fff4; }

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex; gap: .4rem; justify-content: center;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem;
  border-radius: 5px; font-size: .85rem; font-weight: 700;
  background: #f5f5f5; color: #333; border: 1px solid #e0e0e0;
  transition: background .2s, color .2s;
}
.pagination .current, .pagination a:hover { background: #5a8a1e; color: #fff; border-color: #5a8a1e; }

/* ===========================
   FOOTER — clean & readable
=========================== */
#site-footer {
  background: #2b3a1a;   /* dark green — matches brand, not plain black */
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Site name */
.footer-top {
  padding: 2.8rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-site-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #c8d400;          /* bright yellow-green — pops on dark green */
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
}

/* Disclaimer — clearly readable */
.footer-disclaimer-text {
  font-size: 1rem;
  color: #ccd9b0;          /* light green-white — high contrast */
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}
.footer-disclaimer-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Footer links */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem .1rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-nav a {
  font-size: .88rem;
  font-weight: 600;
  color: #a8c47a;          /* readable green tone */
  padding: .2rem .65rem;
  transition: color .2s;
  white-space: nowrap;
}
.footer-nav a:hover { color: #c8d400; }
.footer-sep { color: rgba(255,255,255,.2); font-size: .75rem; }

/* Copyright */
.footer-copy {
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  padding: 1.2rem 2rem 1.8rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .nav-menu   { display: none; }
  .nav-toggle { display: flex; }
  #site-header.open .nav-menu {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid #c8d400;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    gap: 0; align-items: flex-start;
  }
  #site-header.open .nav-menu a { line-height: 2.6; border-bottom: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .feat-img-wrap img { height: 240px; }
  .footer-sep { display: none; }
  .footer-nav { gap: .5rem 1rem; }
}
@media (max-width: 560px) {
  .footer-top { padding: 2rem 1.2rem 1.8rem; }
  .footer-disclaimer-text { font-size: .95rem; }
}
