html {
  scroll-behavior: smooth;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.wp-site-blocks {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1;
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.efb-site-header {
  z-index: 100;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background-color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

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

.efb-site-title a {
  color: inherit;
  text-decoration: none;
}

.efb-hero {
  display: grid;
  min-height: clamp(32rem, 72vh, 50rem);
  align-items: center;
}

.efb-section {
  padding-top: var(--wp--preset--spacing--60);
  padding-bottom: var(--wp--preset--spacing--60);
}

.efb-eyebrow {
  color: var(--wp--preset--color--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.efb-card {
  height: 100%;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--large);
  background: var(--wp--preset--color--surface);
  box-shadow: var(--wp--custom--shadow--soft);
  overflow: hidden;
}

.efb-card .wp-block-post-featured-image img,
.efb-card > .wp-block-image:first-child img {
  border-radius: 0;
}

.efb-site-footer a {
  color: inherit;
}

.efb-site-footer .wp-block-navigation-item__content {
  text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--base) !important;
  color: var(--wp--preset--color--contrast) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  gap: var(--wp--preset--spacing--30);
}

.wp-block-post-featured-image img {
  border-radius: var(--wp--custom--radius--medium);
}

.wp-block-query-pagination {
  padding-top: var(--wp--preset--spacing--40);
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 0.75rem;
}

.screen-reader-text,
.skip-link.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.screen-reader-text:focus,
.skip-link.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--surface);
  clip: auto !important;
  clip-path: none;
  color: var(--wp--preset--color--contrast);
}

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

  .efb-hero {
    min-height: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
