/*
Theme Name: Astra Magazine Child
Theme URI:
Description: Clean editorial review blog — Marketer Milk inspired
Author:
Template: astra
Version: 8.0.0
*/

/* ==========================================
   TOKENS
========================================== */
:root {
  --bg:         #FFFFFF;
  --bg-alt:     #F5F5F5;
  --bg-hero:    #F2F2F0;
  --text:       #111111;
  --text-2:     #555555;
  --text-3:     #999999;
  --border:     #E8E8E8;
  --border-dk:  #CCCCCC;
  --black:      #0F0F0F;
  --display:    'Oswald', sans-serif;
  --serif:      'Lora', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     5px;
  --max-w:      1220px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.05);
  --shadow:     0 4px 20px rgba(0,0,0,.09);
}

/* ==========================================
   BASE
========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Kill Astra */
.site-header, .ast-above-header, .ast-below-header,
.ast-masthead-custom-menu-items, #ast-mobile-header,
.main-navigation, .site-footer { display: none !important; }
.site-content, .ast-container, .entry-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.content-area, .primary, .widget-area { width: 100% !important; float: none !important; }
.site-main { margin: 0 !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================
   HEADER
========================================== */
.b-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.b-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.b-logo {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: .03em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.b-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  flex: 1;
}
.b-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.b-nav a:hover, .b-nav a.current { color: var(--black); background: var(--bg-alt); }

.b-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: .02em;
  transition: background .15s;
  flex-shrink: 0;
}
.b-header__cta:hover { background: #2a2a2a; }

/* ==========================================
   MOBILE HEADER
========================================== */
.b-mob-header {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}
.b-mob-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--black);
}
.b-mob-btn { background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.b-mob-menu {
  display: none;
  background: var(--bg);
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 54px;
  z-index: 998;
}
.b-mob-menu.open { display: flex; flex-direction: column; gap: 2px; }
.b-mob-menu a { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 10px 12px; border-radius: var(--radius); display: block; }
.b-mob-menu a:hover { color: var(--black); background: var(--bg-alt); }

/* ==========================================
   HERO
========================================== */
.b-hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
  text-align: center;
}
.b-hero__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.b-hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.b-hero__sub {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}
.b-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.b-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .15s, transform .1s;
}
.b-hero__btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.b-hero__btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-dk);
}
.b-hero__btn--ghost:hover { background: var(--bg-alt); transform: none; color: var(--black); }
.b-hero__proof {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ==========================================
   CATEGORY FILTERS
========================================== */
.b-filters {
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.b-filters::-webkit-scrollbar { display: none; }
.b-filters__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  white-space: nowrap;
}
.b-filters__item {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--text-2);
  transition: all .15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.b-filters__item:hover { background: var(--bg-alt); color: var(--black); border-color: var(--border); }
.b-filters__item.active { background: var(--black); color: #fff; }

/* ==========================================
   MAIN GRID LAYOUT
========================================== */
.b-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section header */
.b-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 20px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 28px;
}
.b-section-bar__title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--black);
}
.b-section-bar__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .15s;
}
.b-section-bar__link:hover { color: var(--black); }

/* Card grid */
.b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2px;
}

/* ==========================================
   CARD
========================================== */
.b-card {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background .15s;
  position: relative;
}
.b-card:hover { background: #FAFAFA; }

.b-card__img-wrap {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/10;
  margin-bottom: 16px;
  background: var(--bg-alt);
}
.b-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.b-card:hover .b-card__img-wrap img { transform: scale(1.03); }

.b-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 11px;
  width: fit-content;
}
.b-card__title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  margin-bottom: 10px;
  color: var(--black);
}
.b-card__title a { color: inherit; transition: color .15s; }
.b-card__title a:hover { color: #333; }
.b-card__excerpt {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}
.b-card__meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.b-card__meta .sep { color: var(--border-dk); }

/* Featured card (spans 2 cols) */
.b-card--featured {
  grid-column: span 2;
}
.b-card--featured .b-card__title {
  font-size: 1.5rem;
}
.b-card--featured .b-card__excerpt {
  font-size: 15px;
}

/* ==========================================
   PAGINATION
========================================== */
.b-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 40px 0 64px;
}
.b-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all .15s;
}
.b-pager .page-numbers:hover,
.b-pager .page-numbers.current { background: var(--black); color: #fff; border-color: var(--black); }

/* ==========================================
   SINGLE POST LAYOUT
========================================== */
.b-article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* Post hero image */
.b-post-hero {
  max-height: 480px;
  overflow: hidden;
  background: var(--bg-alt);
}
.b-post-hero img { width: 100%; max-height: 480px; object-fit: cover; }

/* Article header */
.b-post-header { margin-bottom: 32px; }
.b-post-header__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.b-post-header__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 3px;
  transition: opacity .15s;
}
.b-post-header__cat:hover { opacity: .8; }

.b-post-header__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 18px;
}
.b-post-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.b-post-header__meta strong { color: var(--text-2); font-weight: 600; }
.b-post-header__meta .sep { color: var(--border-dk); }

/* Post body */
.b-post-body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}
.b-post-body h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
}
.b-post-body h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 30px 0 10px;
}
.b-post-body p { margin-bottom: 22px; }
.b-post-body a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.b-post-body a:hover { text-decoration-thickness: 2px; }
.b-post-body ul, .b-post-body ol { margin: 0 0 22px 22px; }
.b-post-body li { margin-bottom: 8px; }
.b-post-body blockquote {
  border-left: 3px solid var(--black);
  padding: 12px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-2);
  background: var(--bg-alt);
}
.b-post-body img { border-radius: var(--radius); margin: 28px 0; }
.b-post-body strong { font-weight: 700; color: var(--black); }

/* Tags */
.b-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.b-post-tags a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-2);
  border: 1px solid var(--border-dk);
  padding: 4px 12px;
  border-radius: 3px;
  transition: all .15s;
}
.b-post-tags a:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* Share */
.b-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.b-share__lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-right: 4px; }
.b-share-fb, .b-share-tw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
}
.b-share-fb { background: #1877F2; color: #fff; }
.b-share-tw { background: #1DA1F2; color: #fff; }
.b-share-fb:hover, .b-share-tw:hover { opacity: .85; }

/* Related */
.b-related { margin-top: 44px; }
.b-related__title {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}
.b-related__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.b-mini-card { background: var(--bg); padding: 18px; transition: background .15s; }
.b-mini-card:hover { background: #FAFAFA; }
.b-mini-card__img { display: block; overflow: hidden; aspect-ratio: 16/9; border-radius: 3px; margin-bottom: 12px; background: var(--bg-alt); }
.b-mini-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.b-mini-card:hover .b-mini-card__img img { transform: scale(1.04); }
.b-mini-card__tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.b-mini-card__title { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; margin-bottom: 6px; }
.b-mini-card__title a { color: var(--black); transition: color .15s; }
.b-mini-card__title a:hover { color: #444; }
.b-mini-card__meta { font-size: 11px; color: var(--text-3); }

/* ==========================================
   SIDEBAR (single post)
========================================== */
.b-sidebar { display: flex; flex-direction: column; gap: 24px; }

.b-about {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.b-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--black);
}
.b-about__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.b-about__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--border-dk);
}
.b-about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.b-about__avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
}
.b-about__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--black);
}
.b-about__bio { font-family: var(--serif); font-size: 13px; color: var(--text-2); line-height: 1.6; }

.b-widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.b-widget__title {
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.b-widget-posts { display: flex; flex-direction: column; gap: 14px; }
.b-widget-posts li { display: flex; gap: 10px; align-items: flex-start; }
.b-widget-posts__thumb { width: 54px; height: 54px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.b-widget-posts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-widget-posts__title { font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; letter-spacing: .01em; }
.b-widget-posts__title a { color: var(--black); transition: color .15s; }
.b-widget-posts__title a:hover { color: #444; }
.b-widget-posts__date { font-size: 11px; color: var(--text-3); }

.b-widget-cats { display: flex; flex-direction: column; }
.b-widget-cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.b-widget-cats li:last-child { border-bottom: none; }
.b-widget-cats a { color: var(--text-2); font-weight: 500; transition: color .15s; }
.b-widget-cats a:hover { color: var(--black); }
.b-widget-cats__count { font-size: 11px; color: var(--text-3); font-weight: 600; background: var(--bg-alt); padding: 2px 8px; border-radius: 10px; }

/* ==========================================
   FOOTER
========================================== */
.b-footer { background: var(--black); color: rgba(255,255,255,.6); padding: 56px 0 0; margin-top: 0; }
.b-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.b-footer__brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.b-footer__desc {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.4);
  max-width: 240px;
}
.b-footer__col-title {
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.3);
  margin-bottom: 18px;
}
.b-footer__links { display: flex; flex-direction: column; gap: 10px; }
.b-footer__links a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.b-footer__links a:hover { color: #fff; }
.b-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 960px) {
  .b-header { display: none; }
  .b-mob-header { display: flex; }

  .b-grid { grid-template-columns: repeat(2, 1fr); }
  .b-card--featured { grid-column: span 2; }

  .b-article-wrap { grid-template-columns: 1fr; gap: 36px; padding: 36px 24px 56px; }
  .b-sidebar { order: -1; }

  .b-related__grid { grid-template-columns: 1fr 1fr; }

  .b-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .b-footer__inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .b-main { padding: 0 16px; }
  .b-hero { padding: 48px 16px 44px; }
  .b-grid { grid-template-columns: 1fr; }
  .b-card--featured { grid-column: span 1; }
  .b-related__grid { grid-template-columns: 1fr; }
  .b-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .b-footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}
