@media screen and (max-width: 782px) {
  html.admin-bar,
  body.admin-bar {
    --admin-bar-height: var(--wp-admin--admin-bar--height, 46px);
    --scroll-padding: 8rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --spacing-section: 80px;
    --spacing-posts-gap: 40px;
  }

  header.blog h1,
  header.hero h1,
  article.post > .wrap > header h1,
  .post.featured h2 {
    font-size: 2.25rem;
  }

  .post h2,
  .post h3,
  section.search h2,
  aside.post-author h2,
  #comments h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-gutter: 24px;
    --spacing-section: 64px;
    --spacing-header-y: 16px;
  }

  #header .custom-logo,
  #header .site-logo {
    max-width: 220px;
  }

  #header {
    flex-wrap: nowrap;
    overflow-x: clip;
  }

  .nav-toggle {
    display: flex;
  }

  #primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: var(--z-nav-dropdown);
    max-height: var(--nav-dropdown-max-height);
    overflow-y: auto;
    padding: var(--spacing-element) 0 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgb(19 35 51 / 0.12);
  }

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

  #primary-navigation > ul {
    flex-direction: column;
    gap: var(--spacing-element);
  }

  #primary-navigation .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-submenu);
    margin: var(--spacing-submenu) 0 0;
    padding: 0 0 0 var(--spacing-element);
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  header.blog h1,
  header.hero h1,
  article.post > .wrap > header h1,
  .post.featured h2 {
    font-size: 1.75rem;
  }

  header.hero > .wrap,
  .post.featured > div {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .posts {
    gap: var(--spacing-element);
  }

  .posts.grid {
    grid-template-columns: 1fr;
  }

  .posts .post > a:first-child img {
    max-height: 280px;
  }

  aside.post-author .wrap {
    flex-direction: column;
  }

  aside.post-author img {
    width: 120px;
    height: auto;
  }

  section.search form {
    flex-direction: column;
  }

  section.search input[type="search"],
  section.search button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-gutter: 16px;
    --spacing-section: 48px;
  }

  #header .custom-logo,
  #header .site-logo {
    max-width: 180px;
  }

  header.blog h1,
  header.hero h1,
  article.post > .wrap > header h1,
  .post.featured h2,
  section.not-found h1 {
    font-size: 1.5rem;
  }

  .post h2,
  .post h3,
  section.search h2,
  aside.post-author h2,
  #comments h2 {
    font-size: 1.25rem;
  }

  header.hero > .wrap,
  .post.featured > div {
    padding-left: var(--spacing-gutter);
    padding-right: var(--spacing-gutter);
  }
}
