html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.wp-site-blocks {
  padding-top: 0;
}

.home .wp-site-blocks,
.home .wp-site-blocks > *,
.home .entry-content,
.home .entry-content > :first-child {
  margin-top: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

.site-header,
.site-header a,
.site-header .wp-block-site-title a {
  color: var(--wp--preset--color--mist);
}

.site-header .wp-block-site-title a {
  white-space: nowrap;
}

.home .wp-site-blocks > header.wp-block-template-part {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
}

.home .wp-site-blocks > header.wp-block-template-part,
.home .wp-site-blocks > header.wp-block-template-part.has-background {
  margin: 0;
  padding: 0;
}

.home .site-header {
  position: relative;
  top: auto;
  background: transparent !important;
  box-shadow: none;
}

.site-header > .alignwide {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
  gap: 36px;
}

.site-header .wp-block-site-title {
  flex: 0 0 auto;
}

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

.site-header .wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--mist);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--mist);
  padding: 24px;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open a {
  color: var(--wp--preset--color--mist);
}

body:not(.home) .site-header,
.site-header.has-background {
  background:
    linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)),
    url("../images/title-page-scaled.webp") center 42% / cover no-repeat;
  box-shadow: 0 0 10px rgba(23, 25, 39, .12);
}

.site-header .wp-block-site-title {
  max-width: 440px;
  font-size: 1.75rem !important;
  line-height: 1.15;
}

.site-header .wp-block-navigation {
  flex: 1 1 auto;
  gap: 24px;
}

.site-header .wp-block-navigation__container {
  align-items: center;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  row-gap: 0;
}

.site-header .wp-block-navigation-item {
  align-items: center;
}

.site-header .wp-block-navigation-item__content {
  white-space: nowrap;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.aynar-hero {
  width: 100vw;
  margin-top: 0;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  min-height: 100vh;
  padding-top: 168px;
  padding-bottom: 120px;
}

.aynar-hero .wp-block-cover__image-background {
  object-position: 53% 43%;
}

.aynar-hero .wp-block-cover__inner-container {
  max-width: 980px;
}

.aynar-hero > * {
  position: relative;
  z-index: 1;
}

.home .aynar-hero h1.wp-block-heading,
.aynar-hero h1 {
  color: var(--wp--preset--color--mist);
  font-family: var(--wp--preset--font-family--poiret-one);
  font-size: clamp(5.2rem, 7vw, 6.9rem) !important;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.aynar-hero p {
  color: var(--wp--preset--color--mist);
  text-align: center;
}

.aynar-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-id-50 .aynar-section > .wp-block-columns {
  flex-direction: column;
  gap: 56px;
}

.page-id-50 .aynar-section > .wp-block-columns > .wp-block-column {
  flex-basis: 100% !important;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.page-id-50 .aynar-card-image img {
  max-height: 520px;
  width: 100%;
}

.aynar-about-section .wp-block-columns {
  align-items: center !important;
}

.aynar-about-section .wp-block-column:first-child {
  display: flex;
  justify-content: center;
}

.aynar-about-section .wp-block-image {
  margin: 0;
}

.aynar-about-section .wp-block-column:first-child img {
  display: block;
  max-height: 360px;
  width: auto;
}

.aynar-section-tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.aynar-rule {
  border-bottom: 4px solid var(--wp--preset--color--blush);
  width: 54%;
  margin-inline: auto;
}

.aynar-rule.is-style-dashed {
  border-bottom-style: dashed;
  border-bottom-width: 3px;
  width: 50%;
}

.aynar-card-image img,
.aynar-gallery img,
.aynar-project-image img {
  border-radius: 3px;
}

.aynar-card-image img,
.aynar-gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.aynar-wide-image img {
  width: 100%;
  height: auto;
}

.aynar-link a,
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--blush);
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
}

.aynar-link a:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: #831414;
}

.aynar-kicker {
  color: var(--wp--preset--color--blush);
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer {
  padding-top: 0;
  padding-bottom: 20px;
}

.site-footer .wp-block-social-links {
  gap: 20px;
}

.site-footer .wp-block-social-link {
  background: var(--wp--preset--color--rose);
}

.wpcf7-form {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.wpcf7-form label {
  display: block;
  line-height: 2;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 16px;
  padding: 10px;
  color: #666;
  border: 1px solid #f7ddd4;
  border-radius: 8px;
  font: inherit;
}

.wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 10px 60px;
  color: #fff;
  border: 1px solid var(--wp--preset--color--blush);
  border-radius: 3px;
  background: var(--wp--preset--color--blush);
  font: inherit;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header .wp-block-site-title {
    max-width: 260px;
    font-size: 1.55rem !important;
  }

  .aynar-hero {
    padding-top: 150px;
    padding-bottom: 90px;
  }

  .home .aynar-hero h1.wp-block-heading,
  .aynar-hero h1 {
    font-size: clamp(3.7rem, 10vw, 5.2rem) !important;
  }

  .aynar-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

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

  .site-header {
    position: relative;
  }

  .site-header .wp-block-site-title {
    max-width: 230px;
    font-size: 1.45rem;
  }

  .aynar-hero {
    min-height: 86vh;
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .home .aynar-hero h1.wp-block-heading,
  .aynar-hero h1 {
    font-size: 3.25rem !important;
  }
}
