/*
Theme Name: Le Moms
Theme URI: https://lemoms.com
Author: Le Moms
Description: A warm, editorial WordPress theme for pregnancy and early motherhood publishing.
Version: 1.2.0
Requires at least: 6.4
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: lemoms
*/

:root {
  --lm-ivory: #faf7f2;
  --lm-paper: #fffdf9;
  --lm-ink: #2d2926;
  --lm-muted: #6f6963;
  --lm-terracotta: #bd6f54;
  --lm-terracotta-dark: #98523d;
  --lm-sage: #aab7a2;
  --lm-sage-light: #dce4d8;
  --lm-blush: #eedbd5;
  --lm-line: #ddd5cc;
  --lm-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --lm-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --lm-shadow: 0 12px 34px rgba(70, 52, 42, 0.08);
  --lm-radius: 16px;
  --lm-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lm-ink);
  background: var(--lm-ivory);
  font-family: var(--lm-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; margin: 10px; padding: 10px 14px;
  z-index: 9999; background: var(--lm-paper);
}
.lm-container { width: min(calc(100% - 48px), var(--lm-max)); margin-inline: auto; }
.lm-eyebrow {
  color: var(--lm-terracotta-dark); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.lm-display, h1, h2, h3 {
  font-family: var(--lm-serif); font-weight: 400; line-height: 1.05; letter-spacing: -.025em;
}

.lm-topbar {
  padding: 7px 16px; text-align: center; background: var(--lm-sage-light);
  color: #3f493b; font-size: .75rem; letter-spacing: .02em;
}
.lm-site-header { background: rgba(250,247,242,.97); border-bottom: 1px solid rgba(91,72,62,.12); }
.lm-header-inner {
  min-height: 82px; display: grid; grid-template-columns: 220px 1fr auto;
  align-items: center; gap: 28px;
}
.lm-brand { font-family: var(--lm-serif); font-size: 2.25rem; line-height: 1; text-decoration: none; }
.lm-brand-wrap .custom-logo { width: auto; max-height: 58px; }
.lm-nav ul { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 38px); list-style: none; margin: 0; padding: 0; }
.lm-nav a { font-size: .9rem; font-weight: 500; text-decoration: none; }
.lm-nav a:hover, .lm-nav a:focus-visible { color: var(--lm-terracotta-dark); }
.lm-header-actions { display: flex; align-items: center; gap: 14px; }
.lm-menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--lm-line);
  border-radius: 50%; background: transparent; color: var(--lm-ink); cursor: pointer;
}
.lm-menu-toggle span, .lm-menu-toggle::before, .lm-menu-toggle::after {
  content: ""; display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor;
}
.lm-button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 22px; border: 1px solid var(--lm-terracotta); border-radius: 999px;
  background: var(--lm-terracotta); color: #fff; font-size: .83rem; font-weight: 700;
  text-decoration: none; transition: .2s ease;
}
.lm-button:hover, .lm-button:focus-visible { transform: translateY(-1px); background: var(--lm-terracotta-dark); border-color: var(--lm-terracotta-dark); }
.lm-button--outline { color: var(--lm-ink); border-color: #8d837b; background: transparent; }
.lm-button--outline:hover, .lm-button--outline:focus-visible { color: #fff; }

.lm-hero { background: linear-gradient(90deg, #f7f1ea 0%, #f7f1ea 45%, #eadfd4 100%); }
.lm-hero-grid { min-height: 570px; display: grid; grid-template-columns: .95fr 1.2fr; }
.lm-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px 64px 70px 0; }
.lm-hero h1 { max-width: 650px; margin: 18px 0; font-size: clamp(3.4rem, 5.4vw, 5.8rem); }
.lm-hero-copy > p { max-width: 550px; margin: 0 0 28px; color: #504a46; font-size: 1.08rem; }
.lm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-hero-media { min-height: 570px; overflow: hidden; }
.lm-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

.lm-trust { border-block: 1px solid var(--lm-line); background: var(--lm-paper); }
.lm-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.lm-trust-item {
  min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 14px;
  color: #4e4742; font-size: .88rem;
}
.lm-trust-item + .lm-trust-item { border-left: 1px solid var(--lm-line); }
.lm-trust-mark { font-family: var(--lm-serif); color: var(--lm-terracotta-dark); font-size: 1.45rem; }

.lm-section { padding: 80px 0; }
.lm-section-heading { margin: 0 0 10px; text-align: center; font-size: clamp(2.3rem, 4vw, 3.4rem); }
.lm-section-intro { max-width: 620px; margin: 0 auto 34px; color: var(--lm-muted); text-align: center; }
.lm-journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lm-journey-card {
  overflow: hidden; border: 1px solid var(--lm-line); border-radius: var(--lm-radius);
  background: var(--lm-paper); box-shadow: 0 5px 18px rgba(55,42,35,.04); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lm-journey-card:hover { transform: translateY(-4px); box-shadow: var(--lm-shadow); }
.lm-journey-card img { width: 100%; aspect-ratio: 1.52; object-fit: cover; }
.lm-journey-card:nth-child(1) img { object-position: 35% center; }
.lm-journey-card:nth-child(4) img { object-position: center 35%; }
.lm-card-foot { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.lm-card-title { font-family: var(--lm-serif); font-size: 1.25rem; }
.lm-arrow { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--lm-blush); }

.lm-guidance { padding-top: 20px; }
.lm-section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.lm-section-title-row h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.5rem); }
.lm-text-link { color: #4f4843; font-size: .85rem; }
.lm-editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: repeat(2, 250px); gap: 16px; }
.lm-article-card {
  display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius); background: var(--lm-paper); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lm-article-card:hover { transform: translateY(-3px); box-shadow: var(--lm-shadow); }
.lm-article-card--featured { grid-row: 1 / 3; }
.lm-article-card img { width: 100%; height: 46%; object-fit: cover; }
.lm-article-card--featured img { height: 63%; }
.lm-article-body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 14px 16px; }
.lm-article-card--featured .lm-article-body { padding: 20px 22px; background: linear-gradient(100deg, #f2ddd6, #f8eeea); }
.lm-article-kicker { color: var(--lm-terracotta-dark); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lm-article-card h3 { margin: 5px 0 6px; font-size: 1.24rem; line-height: 1.08; }
.lm-article-card--featured h3 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); }
.lm-article-dek { margin: 0 0 10px; color: var(--lm-muted); font-size: .83rem; }
.lm-meta { margin-top: auto; color: #7b736c; font-size: .69rem; }

.lm-newsletter {
  margin: 80px auto; padding: 34px 42px; border-radius: var(--lm-radius);
  background: linear-gradient(100deg, #b9c5b2, #dfe5d9); color: #2f382d;
}
.lm-newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.lm-newsletter h2 { margin: 0 0 6px; font-size: clamp(2rem, 3vw, 3rem); }
.lm-newsletter p { margin: 0; color: #556151; }
.lm-newsletter-form { display: flex; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.85); }
.lm-newsletter-form input { min-width: 0; flex: 1; padding: 10px 16px; border: 0; outline: 0; background: transparent; }
.lm-newsletter-note { display: block; margin-top: 7px; padding-left: 16px; color: #667063; font-size: .68rem; }

.lm-site-footer { padding: 40px 0; border-top: 1px solid var(--lm-line); background: var(--lm-paper); }
.lm-footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.lm-footer-brand { font-family: var(--lm-serif); font-size: 1.8rem; }
.lm-footer-tagline { margin-top: 2px; color: var(--lm-muted); font-size: .78rem; }
.lm-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; list-style: none; margin: 0; padding: 0; }
.lm-footer-nav a { color: #635c56; font-size: .78rem; text-decoration: none; }
.lm-disclaimer { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--lm-line); color: #807871; font-size: .72rem; }

.lm-content-wrap { width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: 72px 0 100px; }
.lm-page-header { margin-bottom: 38px; text-align: center; }
.lm-page-header h1 { margin: 10px 0 14px; font-size: clamp(3rem, 7vw, 5.3rem); }
.lm-entry-meta { color: var(--lm-muted); font-size: .84rem; }
.lm-entry-thumbnail { overflow: hidden; margin: 0 0 42px; border-radius: var(--lm-radius); }
.lm-entry-content { font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.8; }
.lm-entry-content h2, .lm-entry-content h3 { margin-top: 2em; }
.lm-entry-content a { color: var(--lm-terracotta-dark); }
.lm-entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 25px; border-left: 3px solid var(--lm-terracotta); font-family: var(--lm-serif); font-size: 1.35rem; }
.lm-review-note { margin: 38px 0; padding: 22px; border-radius: 12px; background: var(--lm-sage-light); font-family: var(--lm-sans); font-size: .88rem; }
.lm-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lm-more-guidance { margin-top: 22px; }
.lm-post-grid .lm-article-card { min-height: 390px; }
.lm-post-grid .lm-article-card img { height: 210px; }
.lm-pagination { margin-top: 44px; }

.lm-week-hero {
  padding: 78px 0 62px; background: linear-gradient(115deg, #f1e2dc, #f7f1ea 56%, #dfe6da);
}
.lm-week-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 54px; }
.lm-week-hero h1 { max-width: 760px; margin: 14px 0 20px; font-size: clamp(3.5rem, 7vw, 6.4rem); }
.lm-week-hero p { max-width: 680px; margin: 0; color: #56504b; font-size: 1.05rem; }
.lm-week-hero-note { padding: 28px; border: 1px solid rgba(98,87,77,.16); border-radius: var(--lm-radius); background: rgba(255,255,255,.66); }
.lm-week-hero-note strong { display: block; margin-bottom: 7px; font-family: var(--lm-serif); font-size: 1.35rem; font-weight: 400; }
.lm-week-wrap { padding: 66px 0 100px; }
.lm-week-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; margin-bottom: 48px; }
.lm-week-intro h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 3.4rem); }
.lm-week-intro p { margin: 0; color: var(--lm-muted); }
.lm-week-jump { margin: 0 0 64px; padding: 24px; border: 1px solid var(--lm-line); border-radius: var(--lm-radius); background: var(--lm-paper); }
.lm-week-jump h2 { margin: 0 0 16px; font-size: 1.45rem; }
.lm-week-jump-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.lm-week-jump a { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--lm-line); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; }
.lm-week-jump a:hover, .lm-week-jump a:focus-visible { border-color: var(--lm-terracotta); background: var(--lm-blush); }
.lm-trimester-section + .lm-trimester-section { margin-top: 78px; }
.lm-trimester-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 28px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--lm-line); }
.lm-trimester-number { color: var(--lm-terracotta-dark); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lm-trimester-head h2 { margin: 5px 0 0; font-size: clamp(2.4rem, 4vw, 3.5rem); }
.lm-trimester-head p { max-width: 650px; margin: 0 0 4px; color: var(--lm-muted); }
.lm-week-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lm-week-card { scroll-margin-top: 26px; padding: 23px 22px 25px; border: 1px solid var(--lm-line); border-radius: 14px; background: var(--lm-paper); box-shadow: 0 5px 18px rgba(55,42,35,.035); }
.lm-week-card:nth-child(3n+2) { background: #f9f1ed; }
.lm-week-card:nth-child(3n+3) { background: #f1f5ef; }
.lm-week-number { display: inline-flex; margin-bottom: 18px; padding: 5px 11px; border-radius: 999px; background: var(--lm-blush); color: var(--lm-terracotta-dark); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.lm-week-card h3 { margin: 0 0 9px; font-size: 1.55rem; }
.lm-week-card p { margin: 0; color: #625b55; font-size: .9rem; line-height: 1.65; }
.lm-week-safety { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 72px; padding: 30px 34px; border-radius: var(--lm-radius); background: var(--lm-sage-light); }
.lm-week-safety h2 { margin: 0 0 6px; font-size: 2rem; }
.lm-week-safety p { max-width: 760px; margin: 0; color: #53604f; font-size: .9rem; }
.lm-week-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lm-line); color: var(--lm-muted); font-size: .78rem; }
.lm-week-sources h2 { margin: 0 0 10px; color: var(--lm-ink); font-size: 1.4rem; }
.lm-week-sources ul { margin: 0; padding-left: 20px; }

@media (max-width: 980px) {
  .lm-header-inner { grid-template-columns: 1fr auto; }
  .lm-nav { position: absolute; z-index: 50; top: 117px; right: 24px; left: 24px; display: none; padding: 22px; border: 1px solid var(--lm-line); border-radius: 14px; background: var(--lm-paper); box-shadow: var(--lm-shadow); }
  .lm-nav.is-open { display: block; }
  .lm-nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .lm-menu-toggle { display: block; }
  .lm-header-actions .lm-button { display: none; }
  .lm-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .lm-hero-copy { padding: 70px 0 55px; }
  .lm-hero-media { min-height: 480px; }
  .lm-journey-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-editorial-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 460px repeat(2, 300px); }
  .lm-article-card--featured { grid-column: 1 / 3; grid-row: auto; }
  .lm-article-card--featured img { height: 62%; }
  .lm-newsletter-inner { grid-template-columns: 1fr; gap: 22px; }
  .lm-post-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-week-hero-grid, .lm-week-intro { grid-template-columns: 1fr; }
  .lm-week-jump-grid { grid-template-columns: repeat(8, 1fr); }
  .lm-week-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .lm-container, .lm-content-wrap { width: min(calc(100% - 32px), var(--lm-max)); }
  .lm-topbar { font-size: .68rem; }
  .lm-header-inner { min-height: 70px; }
  .lm-brand { font-size: 1.9rem; }
  .lm-brand-wrap .custom-logo { max-height: 48px; }
  .lm-nav { top: 105px; right: 16px; left: 16px; }
  .lm-hero-copy { padding: 52px 0 44px; }
  .lm-hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .lm-hero-media { min-height: 400px; }
  .lm-trust-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .lm-trust-item { min-height: 54px; }
  .lm-trust-item + .lm-trust-item { border-top: 1px solid var(--lm-line); border-left: 0; }
  .lm-section { padding: 62px 0; }
  .lm-journey-grid { grid-template-columns: 1fr; }
  .lm-journey-card img { aspect-ratio: 1.8; }
  .lm-section-title-row { align-items: flex-start; flex-direction: column; }
  .lm-editorial-grid { display: flex; flex-direction: column; }
  .lm-article-card, .lm-article-card--featured { min-height: 380px; }
  .lm-article-card img, .lm-article-card--featured img { height: 220px; }
  .lm-newsletter { margin: 55px auto; padding: 30px 22px; }
  .lm-newsletter-form { align-items: stretch; flex-direction: column; border-radius: 16px; background: transparent; gap: 9px; }
  .lm-newsletter-form input { min-height: 48px; border-radius: 999px; background: rgba(255,255,255,.9); }
  .lm-footer-grid { grid-template-columns: 1fr; }
  .lm-footer-nav ul { justify-content: flex-start; }
  .lm-post-grid { grid-template-columns: 1fr; }
  .lm-week-hero { padding: 58px 0 48px; }
  .lm-week-jump-grid { grid-template-columns: repeat(5, 1fr); }
  .lm-trimester-head { grid-template-columns: 1fr; gap: 10px; }
  .lm-week-grid { grid-template-columns: 1fr; }
  .lm-week-safety { grid-template-columns: 1fr; padding: 26px 22px; }
}

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