/*
Theme Name: Mooshie
Theme URI: https://mooshiemoments.com
Author: Mooshie Moments
Description: Blog theme for Mooshie Moments. Matches the brand design system — Baloo 2 display type, Nunito body, cream and purple palette. Built for long-form parenting content and fast page loads.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mooshie
Tags: blog, one-column, custom-colors, featured-images, translation-ready
*/

/* ============================================================
   TOKENS — lifted from the main site's Tailwind config
   ============================================================ */
:root {
  --purple: #7A3E9D;
  --gold:   #FDC22D;
  --coral:  #F47C47;
  --cream:  #FFF9F0;
  --text:   #4A4252;

  --display: "Baloo 2", system-ui, sans-serif;
  --body:    "Nunito", system-ui, -apple-system, sans-serif;
  --hand:    "Pacifico", cursive;

  --wrap: 1120px;
  --read: 720px;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(74,66,82,.06), 0 1px 3px rgba(74,66,82,.05);
  --shadow-md: 0 4px 14px rgba(122,62,157,.08);
  --shadow-lg: 0 12px 34px rgba(122,62,157,.13);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--purple); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1.15em; }
hr { border: 0; border-top: 1px solid rgba(122,62,157,.12); margin: 2.5rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
blockquote { margin: 1.8rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.read { max-width: var(--read); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--purple); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   BUTTONS + PILLS
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700;
  background: var(--gold); color: var(--text);
  padding: .8rem 1.9rem; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(253,194,45,.28);
  transition: background .2s, transform .2s;
}
.btn:hover { background: #f5b800; color: var(--text); transform: translateY(-1px); }
.btn--ghost {
  background: #fff; color: var(--purple);
  border: 2px solid rgba(122,62,157,.16); box-shadow: none;
}
.btn--ghost:hover { background: var(--cream); color: var(--purple); }
.btn--sm { padding: .55rem 1.35rem; font-size: .875rem; }

.eyebrow {
  display: block; font-size: .625rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple); margin-bottom: .6rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,249,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122,62,157,.07);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__tag {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(74,66,82,.5); border-left: 1px solid rgba(122,62,157,.16); padding-left: .75rem;
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-size: .9rem; font-weight: 700; color: rgba(74,66,82,.75); text-decoration: none; }
.nav a:hover { color: var(--purple); }
.nav .btn { color: var(--text); }
@media (max-width: 640px) {
  .brand__tag { display: none; }
  .nav { gap: .85rem; }
  .nav a:not(.btn) { display: none; }
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero { padding: 3.5rem 0 2.5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: auto auto 0 50%;
  transform: translateX(-50%); width: 420px; height: 420px;
  background: rgba(253,194,45,.18); filter: blur(110px); border-radius: 50%; z-index: -1;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
.page-hero p { max-width: 34rem; margin-inline: auto; color: rgba(74,66,82,.78); }
.page-hero__mascot { height: 108px; width: auto; margin: 0 auto 1rem; }

/* ============================================================
   POST GRID
   ============================================================ */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid rgba(122,62,157,.07);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: grid; place-items: center; }
.card__media--empty img { width: auto; height: 68%; object-fit: contain; }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin-bottom: .45rem; }
.card__title a { text-decoration: none; color: inherit; }
.card__title a:hover { color: var(--coral); }
.card__excerpt { font-size: .925rem; color: rgba(74,66,82,.75); margin-bottom: 1rem; }
.card__foot { margin-top: auto; }

.meta { font-size: .75rem; color: rgba(74,66,82,.55); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--purple); }
.tag {
  display: inline-block; font-size: .625rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(122,62,157,.09); color: var(--purple); text-decoration: none;
}
.tag--gold { background: rgba(253,194,45,.28); color: var(--text); }
.tag:hover { background: rgba(122,62,157,.16); color: var(--purple); }

/* ============================================================
   FEATURED (first post on blog index)
   ============================================================ */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 2.5rem; }
.featured .card__media { aspect-ratio: auto; height: 100%; min-height: 300px; }
.featured .card__body { padding: 2.25rem; justify-content: center; }
.featured .card__title { font-size: 1.9rem; }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured .card__media { min-height: 220px; } }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header { padding: 2.75rem 0 1.5rem; text-align: center; }
.post-header h1 { font-size: clamp(1.9rem, 4.4vw, 2.85rem); font-weight: 800; letter-spacing: -.01em; }
.post-hero-img {
  border-radius: var(--r-lg); overflow: hidden; margin: 0 0 2.5rem;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.breadcrumbs { font-size: .78rem; color: rgba(74,66,82,.55); margin-bottom: 1rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }

.prose { font-size: 1.1rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.65rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-block: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--coral); }
.prose img, .prose figure { border-radius: var(--r-md); margin-block: 1.8rem; }
.prose figcaption { font-size: .82rem; color: rgba(74,66,82,.55); text-align: center; margin-top: .6rem; }
.prose blockquote {
  background: #fff; border-left: 4px solid var(--purple);
  padding: 1.2rem 1.4rem; border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm); font-size: 1.05rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid rgba(122,62,157,.12); }
.prose th { font-family: var(--display); color: var(--purple); }
.prose .wp-block-image { margin-block: 1.8rem; }

/* callout box for the developmental "why" */
.prose .why, .why {
  background: #fff; border: 1px solid rgba(122,62,157,.09);
  border-radius: var(--r-lg); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm);
}
.why__label {
  display: block; font-size: .625rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral); margin-bottom: .4rem;
}

/* ============================================================
   IN-POST APP CTA
   ============================================================ */
.app-cta {
  background: var(--purple); color: #fff;
  border-radius: var(--r-lg); padding: 2.25rem;
  text-align: center; margin: 3rem 0 0;
  position: relative; overflow: hidden;
}
.app-cta::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%,-50%); width: 320px; height: 320px;
  background: rgba(253,194,45,.22); filter: blur(90px); border-radius: 50%;
}
.app-cta > * { position: relative; }
.app-cta h2 { color: #fff; font-size: 1.55rem; margin-bottom: .6rem; }
.app-cta p { color: rgba(255,255,255,.82); max-width: 30rem; margin-inline: auto; margin-bottom: 1.4rem; }
.app-cta__mascot { height: 96px; width: auto; margin: 0 auto .9rem; }
.app-cta .eyebrow { color: var(--gold); }

/* ============================================================
   RELATED + PAGINATION
   ============================================================ */
.related { margin-top: 3.5rem; }
.related h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin: 3rem 0 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem;
  padding: 0 .7rem; border-radius: 999px; background: #fff; color: var(--purple);
  text-decoration: none; font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(122,62,157,.09); box-shadow: var(--shadow-sm);
}
.pagination .page-numbers:hover { background: var(--cream); }
.pagination .page-numbers.current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ============================================================
   SEARCH + EMPTY STATES
   ============================================================ */
.searchform { display: flex; gap: .5rem; max-width: 26rem; margin: 1.5rem auto 0; }
.searchform input[type="search"] {
  flex: 1; padding: .8rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(122,62,157,.14); background: #fff;
  font-family: var(--body); font-size: .95rem; color: var(--text);
}
.searchform input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.empty { text-align: center; padding: 3rem 0 1rem; }
.empty img { height: 140px; width: auto; margin: 0 auto 1.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream); border-top: 1px solid rgba(122,62,157,.1);
  padding: 3rem 0 2.5rem; margin-top: 4rem;
}
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-bottom: 1.75rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__brand img { height: 68px; width: auto; }
.site-footer__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--purple); display: block; }
.site-footer__tagline { font-size: .9rem; color: rgba(74,66,82,.6); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .875rem; font-weight: 700; }
.site-footer__links a { color: rgba(74,66,82,.72); text-decoration: none; }
.site-footer__links a:hover { color: var(--purple); }
.site-footer__social { display: flex; gap: 1.15rem; }
.site-footer__social a { color: rgba(122,62,157,.55); }
.site-footer__social a:hover { color: var(--purple); }
.site-footer__social svg { width: 26px; height: 26px; }
.site-footer__legal {
  border-top: 1px solid rgba(122,62,157,.1); padding-top: 1.5rem;
  text-align: center; font-size: .72rem; color: rgba(74,66,82,.45); line-height: 1.8;
}
.site-footer__legal p { margin: 0 0 .3em; }

/* ============================================================
   WP CORE CLASSES
   ============================================================ */
.alignleft  { float: left;  margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky .card { border-color: rgba(253,194,45,.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
