/* EverLat editorial, SEO introduction, breadcrumbs, search and 404 layouts. */

.el-home-intro {
  padding: 1.8rem 0 0.8rem;
}

.el-home-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  gap: 2.2rem;
  align-items: center;
  padding: 2.2rem 2.6rem;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: var(--el-surface);
  box-shadow: var(--el-shadow);
}

.el-home-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--el-ink);
  font-size: clamp(2.5rem, 2.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.el-home-intro p {
  max-width: 88rem;
  margin: 0.7rem 0 0;
  color: var(--el-muted);
  font-size: 1.5rem;
  line-height: 1.55;
}

.el-home-intro__brand {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1781 / 491;
  justify-self: end;
}

.el-home-intro__brand img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.el-empty-state__links a {
  padding: 0.7rem 1rem;
  border: 1px solid var(--el-line);
  border-radius: 999px;
  background: #fff;
  color: var(--el-navy);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 750;
}

.el-empty-state__links a:hover,
.el-empty-state__links a:focus-visible {
  border-color: var(--el-blue);
  color: var(--el-blue);
}

.el-breadcrumbs {
  padding-top: 2rem;
  color: var(--el-muted);
  font-size: 1.3rem;
}

.el-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-breadcrumbs li {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.el-breadcrumbs li:not(:last-child)::after {
  color: #98a2b3;
  content: "›";
}

.el-breadcrumbs a {
  color: var(--el-navy);
  text-decoration: none;
}

.el-breadcrumbs a:hover,
.el-breadcrumbs a:focus-visible {
  color: var(--el-blue);
  text-decoration: underline;
}

.el-content-listing,
.el-single-post,
.el-not-found {
  padding-bottom: 6rem;
}

.el-archive-header {
  max-width: 88rem;
  padding: 3rem 0 2.4rem;
}

.el-archive-header h1,
.el-article__header h1,
.el-empty-state h1 {
  margin: 0;
  color: var(--el-ink);
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.el-archive-description {
  margin-top: 1.2rem;
  color: var(--el-muted);
  font-size: 1.65rem;
  line-height: 1.65;
}

.el-archive-description > :first-child {
  margin-top: 0;
}

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

.el-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.el-entry-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: #fff;
  box-shadow: var(--el-shadow);
}

.el-entry-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--el-line);
  background: #eef1f5;
}

.el-entry-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.el-entry-card__image:hover img {
  transform: scale(1.025);
}

.el-entry-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem;
}

.el-entry-card__date {
  color: var(--el-muted);
  font-size: 1.25rem;
}

.el-entry-card__title {
  margin: 0.7rem 0 0;
  font-size: 2rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.el-entry-card__title a {
  color: var(--el-ink);
  text-decoration: none;
}

.el-entry-card__title a:hover,
.el-entry-card__title a:focus-visible {
  color: var(--el-blue);
}

.el-entry-card__excerpt {
  margin: 1rem 0 1.6rem;
  color: var(--el-muted);
  font-size: 1.45rem;
  line-height: 1.6;
}

.el-entry-card__more {
  margin-top: auto;
  color: var(--el-blue);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
}

.navigation.pagination {
  margin-top: 3rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.navigation.pagination .page-numbers {
  display: inline-grid;
  min-width: 4rem;
  min-height: 4rem;
  place-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--el-line);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--el-navy);
  text-decoration: none;
}

.navigation.pagination .page-numbers.current {
  border-color: var(--el-blue);
  background: var(--el-blue);
  color: #fff;
}

.el-article {
  max-width: 92rem;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.el-article__meta,
.el-article__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 1.2rem;
  color: var(--el-muted);
  font-size: 1.35rem;
}

.el-article__categories a {
  color: var(--el-blue);
}

.el-article__featured {
  overflow: hidden;
  margin: 2.4rem 0 0;
  border-radius: var(--el-radius);
  background: #eef1f5;
}

.el-article__featured img {
  width: 100%;
  height: auto;
}

.el-article__content {
  padding-top: 2.6rem;
  font-size: 1.7rem;
  line-height: 1.75;
}

.el-article__content > :first-child {
  margin-top: 0;
}

.el-article__content img {
  height: auto;
}

.el-post-navigation {
  display: grid;
  max-width: 92rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1rem auto 4rem;
}

.el-post-navigation a {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: #fff;
  color: var(--el-ink);
  text-decoration: none;
}

.el-post-navigation__next {
  text-align: right;
}

.el-post-navigation span {
  color: var(--el-muted);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.el-related-posts {
  padding-top: 1rem;
}

.el-related-posts > h2 {
  margin: 0 0 1.8rem;
  font-size: 2.8rem;
}

.el-empty-state {
  max-width: 82rem;
  margin: 3rem auto 0;
  padding: 4rem;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--el-shadow);
}

.el-empty-state > p {
  color: var(--el-muted);
}

.el-empty-state__code {
  margin: 0 !important;
  color: var(--el-blue) !important;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
}

.el-site-search {
  max-width: 64rem;
  margin: 2rem auto;
  text-align: left;
}

.el-site-search > label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--el-ink);
  font-weight: 750;
}

.el-site-search__row {
  display: flex;
  gap: 0.8rem;
}

.el-site-search input {
  min-width: 0;
  min-height: 4.8rem;
  flex: 1;
  padding: 0 1.4rem;
  border: 1px solid var(--el-line);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--el-ink);
}

.el-site-search button,
.el-button {
  display: inline-flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--el-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.el-empty-state__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

@media (max-width: 980px) {
  .el-home-intro__inner {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
    gap: 2rem;
  }

  .el-home-intro__brand {
    width: min(100%, 18rem);
    justify-self: end;
  }

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

@media (max-width: 620px) {
  .el-home-intro {
    padding-top: 1.4rem;
  }

  .el-home-intro__inner,
  .el-empty-state {
    padding: 2.2rem 1.8rem;
  }

  .el-home-intro p {
    font-size: 1.5rem;
  }

  .el-home-intro__brand {
    width: min(86%, 18rem);
  }

  .el-entry-grid,
  .el-post-navigation {
    grid-template-columns: 1fr;
  }

  .el-post-navigation__next {
    text-align: left;
  }

  .el-site-search__row {
    display: grid;
  }

  .el-site-search button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .el-entry-card__image img {
    transition: none;
  }
}
