/*
Theme Name: Parents Media Classic
Theme URI: https://example.invalid/parents-media-classic
Author: OpenAI
Description: Thème WordPress classique autonome pour un média dédié aux parents. Design chaleureux, éditorial et mobile-first inspiré du pack Divi Parents Media.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: parents-media-classic
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, education, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --pm-primary: #356F6B;
  --pm-primary-dark: #244D4A;
  --pm-secondary: #E49B78;
  --pm-accent: #F2C94C;
  --pm-bg: #FAF8F3;
  --pm-bg-soft: #EEF4F1;
  --pm-surface: #FFFFFF;
  --pm-text: #24302F;
  --pm-muted: #65716F;
  --pm-border: #DCE6E2;
  --pm-success: #2E7D5B;
  --pm-warning: #F8E7A1;
  --pm-radius-sm: 10px;
  --pm-radius-md: 18px;
  --pm-radius-lg: 28px;
  --pm-shadow-sm: 0 8px 24px rgba(36, 77, 74, .06);
  --pm-shadow: 0 16px 45px rgba(36, 77, 74, .10);
  --pm-reading: 760px;
  --pm-wide: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--pm-primary);
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}

a:hover {
  color: var(--pm-primary-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--pm-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .75em;
  color: var(--pm-text);
  font-family: "Nunito Sans", ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
}

p {
  margin: 0 0 1.15em;
}

.pm-wrap {
  width: min(var(--pm-wide), 90%);
  margin-inline: auto;
}

.pm-reading {
  width: min(var(--pm-reading), 90%);
  margin-inline: auto;
}

.pm-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.pm-section--soft {
  background: var(--pm-bg-soft);
}

.pm-section--white {
  background: var(--pm-surface);
}

.pm-section--dark {
  background: var(--pm-primary-dark);
  color: #fff;
}

.pm-section--dark h1,
.pm-section--dark h2,
.pm-section--dark h3,
.pm-section--dark a {
  color: #fff;
}

.pm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--pm-bg-soft);
  color: var(--pm-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-section-title {
  max-width: 900px;
  margin-bottom: .65rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.pm-section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--pm-muted);
  font-size: 1.05rem;
}

.pm-grid {
  display: grid;
  gap: 1rem;
}

.pm-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pm-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.pm-button--primary,
.wp-block-button__link {
  background: var(--pm-primary);
  color: #fff;
}

.pm-button--primary:hover,
.wp-block-button__link:hover {
  background: var(--pm-primary-dark);
  color: #fff;
}

.pm-button--secondary {
  border-color: var(--pm-border);
  background: #fff;
  color: var(--pm-primary-dark);
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.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;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 999999;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  clip: auto !important;
  background: #fff;
  color: var(--pm-text);
  font-weight: 800;
  box-shadow: var(--pm-shadow);
}

.skip-link {
  position: absolute;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(220, 230, 226, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 78px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

.site-title {
  margin: 0;
  font-family: "Nunito Sans", ui-rounded, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.site-title a {
  color: var(--pm-primary-dark);
  text-decoration: none;
}

.primary-navigation {
  justify-self: center;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: .6rem .72rem;
  border-radius: 10px;
  color: var(--pm-text);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
  background: var(--pm-bg-soft);
  color: var(--pm-primary-dark);
}

.site-header__search {
  width: min(260px, 22vw);
}

.site-header__search .search-form {
  padding: .25rem;
  box-shadow: none;
}

.site-header__search .search-submit {
  padding-inline: .75rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  background: #fff;
  color: var(--pm-text);
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform .18s ease;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.menu-toggle__bars::after {
  position: absolute;
  top: 6px;
}

/* Search */
.search-form {
  display: flex;
  gap: .5rem;
  padding: .5rem;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pm-text);
}

.search-submit {
  min-height: 44px;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--pm-primary);
  color: #fff;
  font-weight: 800;
}

.search-submit:hover {
  background: var(--pm-primary-dark);
}

/* Front page */
.pm-hero {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(228, 155, 120, .28), transparent 30%),
    linear-gradient(180deg, #fff, var(--pm-bg));
}

.pm-hero h1 {
  max-width: 980px;
  margin: .3rem 0 1.2rem;
  font-size: clamp(2.65rem, 6vw, 5rem);
}

.pm-lead {
  max-width: 780px;
  color: var(--pm-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.pm-hero .search-form {
  max-width: 760px;
  margin-top: 2rem;
}

.pm-card {
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 111, 107, .38);
  box-shadow: var(--pm-shadow);
}

.pm-card--link {
  display: block;
  padding: 1.4rem;
  color: var(--pm-text);
  text-decoration: none;
}

.pm-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--pm-bg-soft);
  font-size: 1.45rem;
}

.pm-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
}

.pm-card p {
  margin: 0;
  color: var(--pm-muted);
}

.pm-age {
  min-height: 180px;
  background: linear-gradient(145deg, #fff, var(--pm-bg-soft));
}

.pm-age .pm-card--link {
  min-height: 180px;
}

.pm-feature {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.7rem, 4vw, 3rem);
  border-radius: var(--pm-radius-lg);
  background: var(--pm-primary-dark);
  color: #fff;
}

.pm-feature h2,
.pm-feature h3,
.pm-feature a:not(.pm-button) {
  color: #fff;
}

.pm-feature p {
  color: rgba(255, 255, 255, .8);
}

.pm-feature .pm-eyebrow {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.pm-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.pm-checks {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pm-checks li::before {
  margin-right: .6rem;
  color: var(--pm-accent);
  content: "✓";
  font-weight: 900;
}

.pm-newsletter {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--pm-radius-lg);
  background: linear-gradient(135deg, var(--pm-secondary), #F2C4AA);
}

.pm-newsletter h2 {
  max-width: 720px;
}

.pm-newsletter p {
  max-width: 680px;
}

/* Post cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 111, 107, .34);
  box-shadow: var(--pm-shadow);
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--pm-bg-soft), #fff);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.025);
}

.post-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--pm-primary);
  font-family: "Nunito Sans", ui-rounded, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.post-card__category {
  margin-bottom: .6rem;
  color: var(--pm-primary);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.post-card__title {
  margin-bottom: .65rem;
  font-size: 1.25rem;
}

.post-card__title a {
  color: var(--pm-text);
  text-decoration: none;
}

.post-card__excerpt {
  margin-bottom: 1rem;
  color: var(--pm-muted);
  font-size: .96rem;
}

.post-card__meta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--pm-muted);
  font-size: .82rem;
}

/* Archives */
.archive-hero {
  padding: clamp(3.8rem, 7vw, 6rem) 0 3rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(228, 155, 120, .22), transparent 26%),
    linear-gradient(180deg, #fff, var(--pm-bg));
}

.archive-title {
  max-width: 900px;
  margin-bottom: .7rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.archive-description {
  max-width: 760px;
  color: var(--pm-muted);
  font-size: 1.08rem;
}

.archive-description p:last-child {
  margin-bottom: 0;
}

.archive-content {
  padding: 2.5rem 0 6rem;
}

.archive-featured {
  margin-bottom: 2rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
}

.featured-card__media {
  min-height: 320px;
  background: var(--pm-bg-soft);
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 4vw, 3rem);
}

.featured-card__body h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.featured-card__body h2 a {
  color: var(--pm-text);
  text-decoration: none;
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pm-text);
  font-weight: 750;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--pm-primary);
  background: var(--pm-primary);
  color: #fff;
}

/* Single */
.article-hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 2.5rem;
  background: linear-gradient(180deg, #fff, var(--pm-bg));
}

.breadcrumbs {
  margin-bottom: 1.2rem;
  color: var(--pm-muted);
  font-size: .88rem;
}

.breadcrumbs a {
  color: var(--pm-muted);
  text-decoration: none;
}

.breadcrumbs span {
  margin-inline: .35rem;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}

.article-categories a,
.tag-list a {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--pm-bg-soft);
  color: var(--pm-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.entry-title--single {
  max-width: 960px;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
}

.article-deck {
  max-width: 820px;
  margin-bottom: 1.3rem;
  color: var(--pm-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  color: var(--pm-muted);
  font-size: .9rem;
}

.article-meta a {
  color: inherit;
}

.article-featured {
  width: min(1100px, 92%);
  margin: 0 auto 2.5rem;
}

.article-featured img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
  border-radius: var(--pm-radius-lg);
  box-shadow: var(--pm-shadow-sm);
}

.article-content {
  padding-bottom: 4rem;
}

.article-summary {
  margin-bottom: 2rem;
  padding: 1.35rem 1.5rem;
  border-left: 5px solid var(--pm-accent);
  border-radius: 0 var(--pm-radius-sm) var(--pm-radius-sm) 0;
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
}

.article-summary strong {
  display: block;
  margin-bottom: .35rem;
}

.entry-content {
  color: var(--pm-text);
}

.entry-content > * {
  max-width: var(--pm-reading);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 1100px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h2 {
  margin-top: 2.2em;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.entry-content h3 {
  margin-top: 1.8em;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.entry-content h4 {
  margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content li + li {
  margin-top: .45rem;
}

.entry-content blockquote {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid var(--pm-secondary);
  border-radius: 0 var(--pm-radius-sm) var(--pm-radius-sm) 0;
  background: #fff;
  color: var(--pm-primary-dark);
  font-size: 1.1rem;
}

.entry-content img {
  border-radius: 14px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: .7rem;
  border: 1px solid var(--pm-border);
  text-align: left;
}

.entry-content th {
  background: var(--pm-bg-soft);
}

.article-footer {
  padding: 0 0 4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 2rem;
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: #fff;
}

.author-box img {
  border-radius: 50%;
}

.author-box h2 {
  margin-bottom: .35rem;
  font-size: 1.2rem;
}

.author-box p {
  margin: 0;
  color: var(--pm-muted);
}

.related-posts {
  padding: 4rem 0 6rem;
  background: var(--pm-bg-soft);
}

/* Pages / search / 404 */
.page-hero {
  padding: 4rem 0 2rem;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.page-content {
  padding-bottom: 5rem;
}

.empty-state {
  padding: 3rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  background: #fff;
  text-align: center;
}

.empty-state .search-form {
  max-width: 650px;
  margin: 1.5rem auto 0;
}

/* Comments */
.comments-area {
  width: min(var(--pm-reading), 90%);
  margin: 0 auto 5rem;
}

.comments-title {
  font-size: 1.8rem;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  list-style: none;
}

.comment-body {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: #fff;
}

.comment-meta {
  font-size: .88rem;
}

.comment-content {
  margin-top: .75rem;
}

.comment-respond {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: var(--pm-radius-md);
  background: #fff;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  background: #fff;
}

.form-submit .submit {
  min-height: 46px;
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--pm-primary);
  color: #fff;
  font-weight: 800;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--pm-primary-dark);
  color: rgba(255, 255, 255, .82);
}

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

.site-footer h2,
.site-footer h3,
.site-footer .site-title {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  max-width: 480px;
  color: rgba(255, 255, 255, .72);
}

.footer-nav ul,
.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li,
.footer-widget li + li {
  margin-top: .45rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
  font-size: .86rem;
}

/* WordPress alignment / captions */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  margin-top: .4rem;
  color: var(--pm-muted);
  font-size: .85rem;
}

.sticky {
  position: relative;
}

.bypostauthor {
  position: relative;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    place-items: center;
  }

  .primary-navigation {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    max-height: calc(100vh - 78px);
    overflow: auto;
    padding: 1rem 5% 1.5rem;
    border-bottom: 1px solid var(--pm-border);
    background: #fff;
    box-shadow: var(--pm-shadow);
  }

  .admin-bar .primary-navigation {
    inset-block-start: 110px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: .2rem;
  }

  .primary-navigation a {
    padding: .8rem;
  }

  .site-header__search {
    display: none;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-grid--4,
  .pm-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-feature,
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__media {
    min-height: 260px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .primary-navigation {
    inset-block-start: 124px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .pm-wrap,
  .pm-reading {
    width: min(92%, var(--pm-wide));
  }

  .pm-grid--4,
  .pm-grid--3,
  .pm-grid--2,
  .posts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pm-hero {
    padding: 4rem 0;
  }

  .pm-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .search-form {
    border-radius: 20px;
  }

  .pm-hero .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .pm-hero .search-submit {
    min-height: 48px;
  }

  .article-featured {
    width: 92%;
  }

  .entry-title--single {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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