/* =========================================================
   GENERIC CONTENT / FALLBACK TEMPLATES
   ========================================================= */

/* HEADER */

.header {
  position: relative;
  top: auto;
  left: auto;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(189, 64, 52, 0.1);
}

.header__inner {
  min-height: 104px;
  align-items: center;
}

.header__logo {
  margin-top: 0;
}

.header__actions {
  padding-top: 0;
}

.header__icon img {
  filter: brightness(0);
}


/* COMMON */

.content-page,
.content-index,
.error-page {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
}

.content-container {
  width: min(
    var(--container),
    calc(100% - var(--gutter) * 2)
  );
  margin: 0 auto;
}

.content-page__intro {
  padding: 48px 0 52px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.content-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(17, 17, 17, 0.46);
  font-size: 13px;
  line-height: 1.3;
}

.content-breadcrumbs a {
  transition: color 0.2s ease;
}

.content-breadcrumbs a:hover {
  color: var(--red);
}

.content-page__meta {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-page__title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.content-page__body,
.content-index__body {
  padding: 72px 0 110px;
}

.content-entry {
  max-width: 980px;
}

.content-entry > *:first-child {
  margin-top: 0;
}

.content-entry > *:last-child {
  margin-bottom: 0;
}

.content-entry h2,
.content-entry h3,
.content-entry h4 {
  margin: 46px 0 18px;
  font-weight: 400;
  line-height: 1.08;
}

.content-entry h2 {
  font-size: clamp(34px, 3.4vw, 52px);
}

.content-entry h3 {
  font-size: clamp(28px, 2.7vw, 40px);
}

.content-entry h4 {
  font-size: 26px;
}

.content-entry p,
.content-entry li {
  color: rgba(17, 17, 17, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.content-entry p {
  margin: 0 0 22px;
}

.content-entry ul,
.content-entry ol {
  margin: 0 0 26px;
  padding-left: 24px;
}

.content-entry a:not(.content-button) {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-entry img {
  height: auto;
}

.content-entry blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--red);
}

.content-entry__featured {
  margin: 0 0 42px;
  overflow: hidden;
}

.content-entry__featured img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

.content-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}


/* BUTTONS */

.content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  border: 1px solid var(--red);
  font-size: 16px;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.content-button--primary {
  color: var(--white);
  background: var(--red);
}

.content-button--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.content-button--secondary {
  color: var(--red);
  background: transparent;
}

.content-button--secondary:hover {
  color: var(--white);
  background: var(--red);
}


/* INDEX / ARCHIVE FALLBACK */

.content-list {
  display: grid;
  gap: 24px;
}

.content-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.content-card__image {
  min-height: 260px;
  overflow: hidden;
}

.content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.content-card:hover .content-card__image img {
  transform: scale(1.02);
}

.content-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px;
}

.content-card__date {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card__title {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}

.content-card__excerpt {
  margin-top: 16px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

.content-card__excerpt p {
  margin: 0;
}

.content-card__link {
  width: max-content;
  margin-top: 20px;
  color: var(--red);
  font-size: 15px;
}

.content-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
}

.content-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.content-pagination .page-numbers.current,
.content-pagination .page-numbers:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.content-empty {
  padding: 30px 0;
}

.content-empty__title {
  margin: 0 0 26px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
}


/* 404 */

.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 104px);
  padding: 72px 0 100px;
}

.error-page__content {
  max-width: 820px;
}

.error-page__code {
  margin: 0 0 12px;
  color: var(--red);
  font-size: clamp(90px, 12vw, 180px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.error-page__title {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.error-page__text {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 18px;
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}


/* MOBILE */

@media (max-width: 767px) {
  .content-page__intro {
    padding: 30px 0 34px;
  }

  .content-breadcrumbs {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .content-page__title {
    font-size: 46px;
  }

  .content-page__body,
  .content-index__body {
    padding: 48px 0 76px;
  }

  .content-entry p,
  .content-entry li {
    font-size: 15px;
    line-height: 1.65;
  }

  .content-entry h2 {
    font-size: 34px;
  }

  .content-entry h3 {
    font-size: 28px;
  }

  .content-card {
    grid-template-columns: 1fr;
  }

  .content-card__image {
    min-height: 220px;
    max-height: 300px;
  }

  .content-card__body {
    padding: 26px 22px 30px;
  }

  .content-card__title {
    font-size: 32px;
  }

  .error-page {
    min-height: calc(100vh - 96px);
    padding: 56px 0 76px;
  }

  .error-page__code {
    font-size: 100px;
  }

  .error-page__title {
    font-size: 48px;
  }

  .error-page__text {
    font-size: 16px;
  }

  .error-page__actions {
    flex-direction: column;
  }

  .content-button {
    width: 100%;
  }
}
