.home-block { position: sticky;
top: var( --wp-admin--admin-bar--height, 0px );
display: flex;
align-items: center;
justify-content: center;
min-height: 620px;
overflow: hidden;
background: var( --color-dark-bg ); margin-bottom: -40px;
} .home-block--hero {
min-height: 860px;
}
.home-block__img {
position: absolute;
left: 0;
top: -60px;
width: 100%; height: calc(100% + 120px);
object-fit: cover;
object-position: center;
will-change: transform;
} .home-block::after {
content: "";
position: absolute;
inset: 0;
background: rgba( 10, 10, 10, 0.18 ); pointer-events: none;
} .home-block--placeholder {
background: var( --color-primary-light );
}
.home-block--placeholder::after {
display: none;
} .home-setup-note {
background: var( --color-bg-gray );
border: 1px solid var( --color-primary );
color: var( --color-dark );
padding: 12px 16px;
margin-block: 24px 0;
}
.home-block__inner {
position: relative;
z-index: 1;
text-align: center;
padding-inline: 20px; will-change: transform;
} @media (prefers-reduced-motion: reduce) {
.home-block__inner,
.home-block__img {
transform: none !important;
} .home-block__title {
transition: none !important;
}
} .home-block__title {
font-family: var( --font-title );
font-weight: 700; font-size: clamp( 1.5rem, 3.4vw, 2.75rem );
line-height: 1.2; text-wrap: balance;
color: var( --color-white );
text-transform: uppercase;
letter-spacing: 0.14em; text-shadow:
0 1px 2px rgba( 0, 0, 0, 0.6 ),
0 3px 14px rgba( 0, 0, 0, 0.45 ),
0 0 0 rgba( 255, 255, 255, 0 ); padding-inline-start: 0.14em;
margin: 0 0 28px;
} .home-block--hero .home-block__title {
font-size: clamp( 1.25rem, 2.8vw, 2.25rem );
} @media (hover: hover) {
.home-block__title {
transition:
letter-spacing 0.45s ease,
padding-inline-start 0.45s ease,
text-shadow 0.45s ease;
}
.home-block:hover .home-block__title,
.home-block:focus-within .home-block__title {
letter-spacing: 0.2em;
padding-inline-start: 0.2em;
text-shadow:
0 1px 3px rgba( 0, 0, 0, 0.7 ),
0 3px 16px rgba( 0, 0, 0, 0.5 ),
0 0 22px rgba( 255, 255, 255, 0.45 );
}
} .home-block__more {
display: inline-block;
padding: 12px 44px;
background: transparent;
border: 2px solid var( --color-white-50 );
color: var( --color-white );
font-family: var( --font-ui );
font-weight: 600;
text-transform: uppercase; text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.5 );
text-decoration: none;
transition:
border-color 0.25s ease,
color 0.25s ease;
}
.home-block__more:hover,
.home-block__more:focus-visible {
border-color: var( --color-white );
background: transparent;
color: var( --color-white );
} .home-block__more:focus-visible {
outline: 2px solid var( --color-white );
outline-offset: 3px;
} .front-page + .site-footer {
position: relative;
z-index: 1;
background: var( --color-primary );
color: var( --color-dark );
padding-block: 24px 20px;
} @media (max-width: 1024px) {
.home-block {
min-height: 480px;
}
.home-block--hero {
min-height: 640px;
}
} @media (max-width: 767px) {
.home-block {
min-height: 380px;
}
.home-block--hero {
min-height: 480px;
} .home-block__title {
font-size: 1.5rem;
margin-bottom: 20px;
}
.home-block__more {
padding: 10px 36px;
font-size: 0.8125rem; }
}