/*
Theme Name: Peach Box GP
Theme URI: https://marcbaleno.com
Description: GeneratePress child — Refinery29-inspired women’s magazine look. High contrast, bold headlines, MediaVine-friendly body type.
Author: Peach Box
Template: generatepress
Version: 1.2.5
Text Domain: peachbox-gp
*/

/* -------------------------------------------------------------------------
   Tokens — R29 energy: black / white / hot accent
   ------------------------------------------------------------------------- */
:root {
  --pb-ink: #0a0a0a;
  --pb-ink-soft: #222222;
  --pb-muted: #6b6b6b;
  --pb-paper: #ffffff;
  --pb-wash: #f4f4f4;
  --pb-accent: #e5059a; /* Refinery29-ish magenta */
  --pb-accent-hover: #b00478;
  --pb-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --pb-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --pb-body-size: 19px;
  --pb-body-lh: 1.9; /* MediaVine-friendly */
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body,
body.home,
body.single,
body.archive,
body.search,
body.page {
  background-color: var(--pb-wash);
  color: var(--pb-ink-soft);
  font-family: var(--pb-sans);
  font-size: var(--pb-body-size);
  line-height: var(--pb-body-lh);
  -webkit-font-smoothing: antialiased;
}

body.separate-containers {
  background-color: var(--pb-wash);
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content {
  background-color: var(--pb-paper);
}

/* Body copy — generous lh, never squeeze ads via weird overflow */
.entry-content,
.entry-summary {
  font-size: var(--pb-body-size);
  line-height: var(--pb-body-lh);
  color: var(--pb-ink-soft);
}

.entry-content p,
.entry-summary p {
  margin-bottom: 1.35em;
  line-height: var(--pb-body-lh);
}

.entry-content li {
  line-height: 1.85;
  margin-bottom: 0.45em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--pb-serif);
  color: var(--pb-ink);
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  letter-spacing: -0.01em;
}

.entry-content a {
  color: var(--pb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--pb-ink);
}

/* -------------------------------------------------------------------------
   Header / nav — R29 single black bar (logo left, menu right)
   ------------------------------------------------------------------------- */
.site-header,
.main-navigation,
.main-navigation .main-nav ul ul {
  background-color: var(--pb-ink) !important;
}

.site-header {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Site title: MUST be white on black (GP defaults were dark grey) */
.site-header .main-title,
.site-header .main-title a,
.site-header .site-title,
.site-header .site-title a,
.site-header a,
.site-branding a {
  color: #ffffff !important;
  font-family: var(--pb-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
}

.site-header .main-title a:hover,
.site-header .site-title a:hover {
  color: var(--pb-accent) !important;
}

.site-header .site-description {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Tighter header height */
.inside-header {
  padding: 0.65rem 0 !important;
}

.site-header .main-title,
.site-header .main-title a {
  margin: 0;
  line-height: 1.15;
  font-size: 1.35rem !important;
}

/* Nav items */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  color: #ffffff !important;
  font-family: var(--pb-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
}

.main-navigation .main-nav ul li a {
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a {
  color: #ffffff !important;
  background-color: transparent !important;
  box-shadow: inset 0 -2px 0 var(--pb-accent);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #ffffff !important;
  background-color: transparent !important;
  box-shadow: inset 0 -2px 0 var(--pb-accent);
}

/* Float-right: one compact bar */
.nav-float-right .header-widget {
  float: right;
}

@media (min-width: 769px) {
  .nav-float-right .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .nav-float-right .site-branding {
    margin: 0;
    flex: 0 0 auto;
  }

  .nav-float-right .main-navigation {
    float: none !important;
    margin-left: auto;
    background: transparent !important;
  }

  .nav-float-right .main-navigation .inside-navigation {
    padding: 0;
  }

  /* When nav is still below-header (fallback), collapse visual gap */
  .nav-below-header .main-navigation {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Mobile hamburger — icon only */
.menu-toggle,
button.menu-toggle {
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 0;
  padding: 0.45rem !important;
  width: auto !important;
  flex-grow: 0 !important;
  text-align: center;
  line-height: 1 !important;
}

.menu-toggle .gp-icon.icon-menu-bars svg {
  height: 1.35em;
  width: 1.35em;
  fill: currentColor;
}

.menu-toggle:hover,
.menu-toggle:focus,
button.menu-toggle:hover,
button.menu-toggle:focus {
  color: #ffffff !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  /* One row: hamburger left, site name beside it */
  .nav-float-right .inside-header,
  .inside-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.65rem;
    padding: 0.65rem 0 !important;
    position: relative;
  }

  .nav-float-right .main-navigation,
  .inside-header > .main-navigation {
    order: -1;
    float: none !important;
    margin: 0 !important;
    width: auto;
    background: transparent !important;
  }

  .nav-float-right .main-navigation .inside-navigation,
  .main-navigation .inside-navigation {
    padding: 0 !important;
    justify-content: flex-start;
  }

  .nav-float-right .site-branding,
  .site-branding {
    order: 0;
    margin: 0 !important;
    text-align: center !important;
    flex: 1 1 auto;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
  }

  .site-branding .main-title,
  .site-branding .main-title a {
    pointer-events: auto;
  }

  .nav-float-right .main-navigation,
  .inside-header > .main-navigation {
    position: relative;
    z-index: 1;
  }

  .site-header .main-title {
    font-size: 1.2rem !important;
  }

  /* Opened menu drops full-width under the bar */
  .main-navigation.toggled {
    flex: 1 0 100%;
    width: 100% !important;
    background-color: var(--pb-ink) !important;
  }

  .main-navigation.toggled .main-nav {
    width: 100%;
  }

  .main-navigation {
    background-color: transparent !important;
  }

  .main-navigation .main-nav ul li a {
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-navigation .main-nav ul li:hover > a,
  .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    box-shadow: inset 3px 0 0 var(--pb-accent);
  }
}

.site-footer,
.footer-widgets,
.site-info {
  background-color: var(--pb-ink);
  color: #c8c8c8;
}

.site-footer a,
.site-info a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--pb-accent);
}

/* -------------------------------------------------------------------------
   Kickers / labels — uppercase small (R29 eyebrow energy)
   ------------------------------------------------------------------------- */
.entry-meta,
.cat-links,
.tags-links,
.page-header .page-title + *,
.archive .page-header p {
  font-family: var(--pb-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-muted);
  line-height: 1.4;
}

.entry-meta a,
.cat-links a,
.tags-links a {
  color: var(--pb-accent);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
}

.entry-meta a:hover,
.cat-links a:hover {
  color: var(--pb-ink);
}

/* Put category kicker visually above title when present */
.entry-header {
  margin-bottom: 1rem;
}

.entry-meta {
  margin-bottom: 0.65rem;
  order: -1;
}

/* -------------------------------------------------------------------------
   Titles — oversized serif, magazine hierarchy
   ------------------------------------------------------------------------- */
.entry-title,
h1.entry-title,
.page-header .page-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  color: var(--pb-ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.archive .entry-title,
.blog .entry-title,
.search .entry-title,
.home .entry-title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.18;
}

.entry-title a {
  color: var(--pb-ink);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--pb-accent);
}

/* Archive page title */
.page-header .page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  border-bottom: 3px solid var(--pb-ink);
  padding-bottom: 0.55rem;
  display: inline-block;
}

/* -------------------------------------------------------------------------
   Featured image — mobile-first single
   ------------------------------------------------------------------------- */
.featured-image.page-header-image-single,
.inside-article .featured-image,
.separate-containers .post-image {
  margin: 0 0 1.1rem;
  text-align: center;
}

.featured-image img,
.post-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: var(--pb-paper);
}

/* Singles: image bleeds a bit less chrome, tighter top */
.single .inside-article {
  padding-top: 1.25rem;
}

.single .featured-image.page-header-image-single {
  margin: -0.25rem 0 1.25rem;
}

.single .featured-image.page-header-image-single img {
  border-radius: 0;
}

/* -------------------------------------------------------------------------
   Article chrome — tighter frame, generous type
   ------------------------------------------------------------------------- */
.separate-containers .inside-article {
  padding: 1.35rem 1.1rem 1.75rem;
}

@media (min-width: 769px) {
  .separate-containers .inside-article {
    padding: 2rem 2.25rem 2.5rem;
  }

  .single .entry-title,
  .single h1.entry-title {
    font-size: 2.75rem;
  }
}

/* -------------------------------------------------------------------------
   Archive / category cards
   ------------------------------------------------------------------------- */
.archive .inside-article,
.blog .inside-article,
.search .inside-article,
.home:not(.page) .inside-article {
  border-top: 3px solid var(--pb-ink);
  transition: box-shadow 0.2s ease;
}

.archive .inside-article:hover,
.blog .inside-article:hover,
.search .inside-article:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.entry-summary {
  color: var(--pb-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* Read more — editorial, not a black button */
.read-more,
a.read-more,
.more-link {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--pb-ink);
  font-family: var(--pb-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--pb-accent);
}

.read-more:hover,
a.read-more:hover,
.more-link:hover {
  color: var(--pb-accent);
  box-shadow: inset 0 -2px 0 var(--pb-ink);
}

/* -------------------------------------------------------------------------
   Sidebar — MediaVine: >=300px beside content; stack at <=1023px
   ------------------------------------------------------------------------- */
.widget-area .widget {
  background: var(--pb-paper);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  border-top: 2px solid var(--pb-ink);
}

.widget-title {
  font-family: var(--pb-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-ink);
  margin-bottom: 0.75rem;
}

/* Desktop: fixed 300px right sidebar that never shrinks while beside content */
@media (min-width: 1024px) {
  body.right-sidebar .site-content .content-area,
  body.both-sidebars .site-content .content-area {
    width: calc(100% - 320px) !important;
    float: left !important;
  }

  body.right-sidebar #right-sidebar,
  body.both-sidebars #right-sidebar {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    float: right !important;
  }

  #right-sidebar .widget,
  #right-sidebar .widget img,
  #right-sidebar iframe {
    max-width: 100%;
  }
}

/* Tablet and below: sidebar under content (MediaVine breakpoint) */
@media (max-width: 1023px) {
  body.right-sidebar .site-content .content-area,
  body.both-sidebars .site-content .content-area,
  body.right-sidebar #right-sidebar,
  body.both-sidebars #right-sidebar,
  #primary,
  #right-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
  }
}

/* -------------------------------------------------------------------------
   Mobile-first single polish
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body,
  .entry-content,
  .entry-summary {
    font-size: 18px;
    line-height: 1.9;
  }

  .separate-containers .inside-article {
    padding: 1.1rem 0.95rem 1.5rem;
  }

  .single .entry-title,
  .single h1.entry-title {
    font-size: 1.85rem;
    line-height: 1.15;
    margin-bottom: 0.65rem;
  }

  .site-content {
    padding-left: 0;
    padding-right: 0;
  }

  /* Slightly less chrome between image → title → body */
  .single .entry-header {
    margin-bottom: 0.85rem;
  }

  .single .entry-content > p:first-child {
    margin-top: 0.25rem;
  }
}

/* -------------------------------------------------------------------------
   Misc hierarchy
   ------------------------------------------------------------------------- */
.paging-navigation,
.page-numbers {
  font-family: var(--pb-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a,
.page-numbers a {
  color: var(--pb-ink);
}

.nav-links a:hover,
.page-numbers a:hover,
.page-numbers.current {
  color: var(--pb-accent);
}

/* Comments quieter */
.comments-title {
  font-family: var(--pb-serif);
  font-size: 1.5rem;
}


/* -------------------------------------------------------------------------
   Meta / duplicate-image helpers (v1.1.1)
   ------------------------------------------------------------------------- */
.posted-on,
.entry-meta .byline,
.entry-meta .author {
  display: none !important;
}

/* Hide empty header meta wrapper when date+author removed */
.entry-meta:empty {
  display: none !important;
}

.single .entry-header .entry-meta:not(:has(a)):not(:has(.cat-links)) {
  display: none;
}


/* -------------------------------------------------------------------------
   Homepage — editorial magazine (front-page.php)
   ------------------------------------------------------------------------- */
.pb-front .pb-home.inside-article {
  padding: 1.25rem 1.1rem 2rem;
  background: #fff;
}

.pb-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--pb-ink);
}

@media (min-width: 769px) {
  .pb-hero {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 1.75rem;
  }
}

.pb-hero-media {
  display: block;
  overflow: hidden;
  background: var(--pb-wash);
}

.pb-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pb-hero-img--placeholder,
.pb-card-img--placeholder {
  min-height: 180px;
  background: linear-gradient(135deg, #eee, #ddd);
}

.pb-hero-title {
  font-family: var(--pb-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.75rem;
  color: var(--pb-ink);
}

.pb-hero-title a {
  color: inherit;
  text-decoration: none;
}

.pb-hero-title a:hover {
  color: var(--pb-accent);
}

.pb-hero-excerpt {
  font-size: var(--pb-body-size);
  line-height: var(--pb-body-lh);
  color: var(--pb-ink-soft);
  margin: 0 0 1rem;
}

.pb-kicker {
  display: inline-block;
  font-family: var(--pb-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-accent);
  text-decoration: none;
}

.pb-kicker:hover {
  color: var(--pb-ink);
}

.pb-read-more {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-ink);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--pb-accent);
}

.pb-read-more:hover {
  color: var(--pb-accent);
}

.pb-section {
  margin: 0 0 2.25rem;
}

.pb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pb-section-title {
  font-family: var(--pb-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pb-ink);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--pb-ink);
  display: inline-block;
}

.pb-section-head .pb-section-title {
  margin-bottom: 0;
}

.pb-section-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-ink);
  text-decoration: none;
  white-space: nowrap;
}

.pb-section-more:hover {
  color: var(--pb-accent);
}

.pb-grid {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .pb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pb-card {
  margin: 0;
  background: transparent;
  border-top: 2px solid var(--pb-ink);
  padding-top: 0.85rem;
}

.pb-card-media {
  display: block;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--pb-wash);
}

.pb-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.pb-card-title {
  font-family: var(--pb-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.35rem 0 0.45rem;
}

.pb-card-title a {
  color: var(--pb-ink);
  text-decoration: none;
}

.pb-card-title a:hover {
  color: var(--pb-accent);
}

.pb-card-excerpt {
  font-size: var(--pb-body-size);
  line-height: var(--pb-body-lh);
  color: var(--pb-ink-soft);
  margin: 0;
}

.pb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pb-list-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid #e5e5e5;
}

.pb-list-item:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.pb-list-media {
  display: block;
  overflow: hidden;
  background: var(--pb-wash);
}

.pb-list-img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.pb-list-title {
  font-family: var(--pb-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.25rem 0 0;
}

.pb-list-title a {
  color: var(--pb-ink);
  text-decoration: none;
}

.pb-list-title a:hover {
  color: var(--pb-accent);
}

/* Kill leftover OF/Trellis homepage builder styles if any leak */
body.pb-front .of-hero-article,
body.pb-front .of-section-title,
body.pb-front .of-hero-article-bot-group {
  display: none !important;
}

@media (max-width: 768px) {
  .pb-front .pb-home.inside-article {
    padding: 1rem 0.9rem 1.5rem;
  }

  .pb-hero-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 768px) {
  .pb-front .pb-hero-excerpt,
  .pb-front .pb-card-excerpt {
    font-size: 18px;
    line-height: var(--pb-body-lh);
  }
}

