/*
Theme Name: Famous Parenting
Theme URI: https://famousparenting.com/
Author: Famous Parenting
Author URI: https://famousparenting.com/
Description: A warm, editorial WordPress theme for practical parenting advice and thoughtful celebrity parenting stories.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: famousparenting
Tags: blog, custom-logo, featured-images, responsive-layout, translation-ready
*/

:root {
  --navy: #18324a;
  --navy-deep: #10273a;
  --ink: #253746;
  --muted: #647586;
  --cream: #fffaf4;
  --paper: #ffffff;
  --peach: #f7b59f;
  --peach-light: #fff0e9;
  --blue-light: #e6f2f8;
  --sage: #e7f0e8;
  --gold: #e5b86c;
  --line: #eadfd5;
  --shadow: 0 18px 45px rgba(24, 50, 74, 0.09);
  --radius: 20px;
  --max-width: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #b2634d; }
button, input, textarea { font: inherit; }
button, .button, input[type="submit"] { min-height: 44px; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.container { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.eyebrow {
  color: #aa674f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1.15rem; }

.site-header {
  background: rgba(255, 250, 244, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.header-inner { align-items: center; display: flex; gap: 28px; min-height: 82px; }
.site-brand { align-items: center; display: inline-flex; gap: 11px; text-decoration: none; }
.brand-mark {
  align-items: center; background: var(--peach); border-radius: 50%; color: var(--navy);
  display: inline-flex; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700;
  height: 42px; justify-content: center; width: 42px;
}
.brand-name { color: var(--navy); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { align-items: center; display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #b2634d; }
.menu-toggle { background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); display: none; padding: 9px 12px; }

.hero { overflow: hidden; padding: 96px 0 86px; position: relative; }
.hero::after { background: var(--peach-light); border-radius: 50%; content: ""; height: 500px; position: absolute; right: -150px; top: -230px; width: 500px; z-index: -1; }
.hero-grid { align-items: center; display: grid; gap: 60px; grid-template-columns: 1.03fr 0.97fr; }
.hero-copy p { color: var(--muted); font-size: 1.15rem; max-width: 570px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.button {
  background: var(--navy); border: 2px solid var(--navy); border-radius: 999px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px;
  text-decoration: none; font-size: 0.92rem; font-weight: 800;
}
.button:hover, .button:focus { background: var(--navy-deep); color: #fff; }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover, .button.secondary:focus { background: var(--paper); }
.hero-art { background: var(--blue-light); border-radius: 42% 58% 50% 50%; min-height: 405px; padding: 42px; position: relative; }
.hero-art::before { background: var(--peach); border-radius: 50%; content: ""; height: 125px; position: absolute; right: 12%; top: 9%; width: 125px; }
.hero-art::after { border: 2px solid rgba(24, 50, 74, 0.12); border-radius: 50%; bottom: 13%; content: ""; height: 190px; left: 9%; position: absolute; width: 190px; }
.hero-art-card { background: rgba(255,255,255,0.84); border-radius: 22px; box-shadow: var(--shadow); max-width: 320px; padding: 25px; position: absolute; right: 12%; top: 31%; }
.hero-art-card strong { color: var(--navy); display: block; font-family: Georgia, serif; font-size: 1.4rem; line-height: 1.2; }
.hero-art-card span { color: var(--muted); display: block; font-size: 0.9rem; margin-top: 10px; }

.section { padding: 86px 0; }
.section-heading { align-items: end; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--muted); margin: 0; max-width: 480px; }
.featured-grid, .post-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(24,50,74,0.04); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card-image { aspect-ratio: 16 / 10; background: var(--blue-light); overflow: hidden; }
.post-card-image img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-content { padding: 23px; }
.post-card h3 { font-size: 1.45rem; margin: 8px 0 11px; }
.post-card h3 a { text-decoration: none; }
.post-card-excerpt { color: var(--muted); font-size: 0.96rem; }
.post-meta { color: var(--muted); font-size: 0.82rem; }
.post-meta strong { color: #aa674f; }
.post-card .read-more { font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.soft-section { background: var(--blue-light); }
.category-list { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.category-card { border-radius: var(--radius); min-height: 190px; padding: 27px; position: relative; overflow: hidden; }
.category-card:nth-child(1) { background: var(--peach-light); }
.category-card:nth-child(2) { background: var(--sage); }
.category-card:nth-child(3) { background: #f9edcb; }
.category-card::after { border: 2px solid rgba(24,50,74,0.12); border-radius: 50%; content: ""; height: 130px; position: absolute; right: -25px; top: -28px; width: 130px; }
.category-card h3 { margin-top: 42px; }
.category-card p { color: var(--muted); font-size: 0.92rem; max-width: 250px; }
.category-card a { font-weight: 800; text-decoration: none; }
.newsletter { background: var(--navy); border-radius: 30px; color: #fff; display: grid; gap: 30px; grid-template-columns: 1fr 1fr; margin: 0 auto; padding: 42px 48px; }
.newsletter h2 { color: #fff; font-size: 2.25rem; }
.newsletter p { color: #dce9ef; }
.newsletter-note { align-self: center; border-left: 2px solid var(--peach); padding-left: 25px; }

.page-hero { background: var(--blue-light); padding: 75px 0 65px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 760px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 650px; }
.archive-header { margin-bottom: 38px; }
.archive-header h1 { margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 45px; }
.pagination .page-numbers { align-items: center; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; height: 44px; justify-content: center; min-width: 44px; text-decoration: none; }
.pagination .current, .pagination .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.single-wrap { max-width: 860px; padding: 76px 0 90px; }
.single-header { margin-bottom: 30px; }
.single-header h1 { font-size: clamp(2.55rem, 6vw, 4.8rem); }
.single-header .post-meta { font-size: 0.95rem; }
.single-featured { border-radius: 24px; margin-bottom: 38px; overflow: hidden; }
.single-featured img { max-height: 530px; object-fit: cover; width: 100%; }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { font-size: 2rem; margin-top: 2.25em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content blockquote { border-left: 4px solid var(--peach); color: var(--navy); font-family: Georgia, serif; font-size: 1.4rem; margin: 35px 0; padding: 10px 25px; }
.related-posts { border-top: 1px solid var(--line); margin-top: 65px; padding-top: 45px; }

.content-narrow { max-width: 780px; padding: 76px 0 90px; }
.content-narrow h2 { font-size: 2rem; margin-top: 2em; }
.about-callout { background: var(--peach-light); border-radius: 24px; margin: 35px 0; padding: 30px; }
.contact-grid { display: grid; gap: 45px; grid-template-columns: .8fr 1.2fr; }
.contact-card { background: var(--blue-light); border-radius: 25px; padding: 30px; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 25px; padding: 32px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-field { margin-bottom: 18px; }
.form-field label { color: var(--navy); display: block; font-size: 0.9rem; font-weight: 800; margin-bottom: 6px; }
.form-field input, .form-field textarea { background: #fffdfa; border: 1px solid #d9cec3; border-radius: 10px; color: var(--ink); padding: 12px 14px; width: 100%; }
.form-field textarea { min-height: 145px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(24,50,74,0.12); }
.form-notice { background: var(--sage); border-radius: 10px; color: var(--navy); margin-bottom: 20px; padding: 12px 15px; }
.form-notice.error { background: #ffe9e4; }
.empty-state { background: var(--paper); border: 1px dashed var(--line); border-radius: 20px; padding: 35px; text-align: center; }

.site-footer { background: var(--navy-deep); color: #dce9ef; margin-top: 30px; padding: 60px 0 24px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.3fr .7fr .7fr; }
.site-footer .brand-name, .site-footer h3 { color: #fff; }
.site-footer h3 { font-family: "Inter", sans-serif; font-size: 0.9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { color: #b7cbd5; max-width: 340px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dce9ef; text-decoration: none; }
.site-footer a:hover { color: var(--peach); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; }
.footer-bottom p { font-size: .84rem; margin: 0; }

@media (max-width: 900px) {
  .hero-grid, .newsletter, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .hero-art { min-height: 330px; }
  .featured-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .category-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav { display: none; left: 14px; position: absolute; right: 14px; top: 72px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; gap: 0; padding: 8px; }
  .primary-nav a { display: block; padding: 12px 14px; }
  .hero { padding: 58px 0; }
  .hero-art { min-height: 280px; padding: 20px; }
  .hero-art-card { right: 8%; top: 28%; }
  .section { padding: 60px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .featured-grid, .post-grid, .category-list { grid-template-columns: 1fr; }
  .newsletter { padding: 32px 25px; }
  .page-hero { padding: 55px 0 48px; }
  .single-wrap, .content-narrow { padding: 55px 0 65px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { align-items: start; flex-direction: column; margin-top: 30px; }
}