/*
Theme Name: Overflow - Jeanneassam Brand
Theme URI: https://envatopress.com/overflow
Author: EnvatoPress
Description: A clean, minimal news and blog theme with a pure white background and crisp typography. Modern and uncluttered.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: overflow-jeanneassam-brand
*/

/* ==============================
   BASE
============================== */
body {
  background-color: #ffffff;
  color: #111111;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a {
  color: #e63946;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   HEADER
============================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wp-block-site-title {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111111;
}

.wp-block-site-title a {
  color: #111111;
}

.wp-block-site-title span {
  color: #e63946;
}

.wp-block-navigation a {
  color: #333333;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
}

.wp-block-navigation a:hover {
  color: #e63946;
  text-decoration: none;
}

/* ==============================
   SECTION HEADINGS
============================== */
.section-heading {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: #e63946;
  margin-top: 0.5rem;
}

/* ==============================
   CARDS (equal-height chain)
============================== */
.wp-block-query .wp-block-post-template {
  align-items: stretch !important;
}

.wp-block-query .wp-block-post-template > li {
  display: flex !important;
  flex-direction: column !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-group {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.wp-block-query .wp-block-post-template > li .wp-block-post-featured-image {
  flex-shrink: 0;
}

.wp-block-query .wp-block-post-template > li .wp-block-post-excerpt {
  flex: 1 1 auto;
}

/* ==============================
   POST CARDS
============================== */
.post-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: transparent;
}

.post-card .wp-block-post-featured-image img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}

.wp-block-post-terms a {
  color: #e63946;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wp-block-post-title a {
  color: #111111;
}

.wp-block-post-title a:hover {
  color: #e63946;
  text-decoration: none;
}

/* ==============================
   HERO SECTION
============================== */
.hero-section {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}

/* ==============================
   FOOTER
============================== */
.site-footer {
  background-color: #111111;
  color: #999999;
  padding: 3rem 0 1.5rem;
  border-top: 3px solid #e63946;
}

.site-footer .wp-block-site-title {
  color: #ffffff;
  font-size: 1.5rem;
}

.site-footer .wp-block-site-title a {
  color: #ffffff;
}

.site-footer p {
  color: #666666;
  font-size: 0.8rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  display: inline-block;
  margin-right: 1.25rem;
}

.site-footer ul li a {
  color: #999999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer ul li a:hover {
  color: #e63946;
  text-decoration: none;
}

/* ==============================
   PAGINATION
============================== */
.wp-block-query-pagination {
  margin-top: 2rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
  padding: 0.5rem 0.875rem;
  border: 1px solid #e0e0e0;
  color: #333333;
  font-size: 0.875rem;
}

.wp-block-query-pagination a:hover {
  background-color: #e63946;
  color: #fff;
  text-decoration: none;
  border-color: #e63946;
}

/* Title links inherit their block color (hero/spotlight titles sit on dark bands) */
.wp-block-post-title a { color: inherit; }

/* Cross-batch fix (site-#6 find, applied fleet-wide 2026-07-08): core's
   navigation-block CSS ships a same-selector-doubled `color: inherit`
   (specificity 0,3,0) that beats `.wp-block-navigation a` (0,1,1) — nav text
   rendered as dark body color on the dark header band. Match core's own
   selector so the cascade applies: */
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
  color: #ffffff;
}
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
  color: #F5C243;
}
