@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,700;1,400&display=swap');

body {
  font-family: 'Fira Sans', sans-serif;
}

h1,
h2 {
  font-weight: 700;
}

* {
  text-wrap: pretty;
}

:root {
  --accent-color: #bf6c43;
  --main-area-bg: #f0f5fa;
  --main-area-font-color: #151719;
  --bg-color: #ffffff;
  --font-color: #151719;
  --header-bg: linear-gradient(to bottom, var(--accent-color), color-mix(in srgb, var(--accent-color) 50%, #a64819));
  --header-color: #e5b18a;
  --footer-bg: #d3dce5;
  --footer-color: #151719a0;
  --comment-color: #151719cc;
  --brand-color: #e5b18a;
  --link-color: #3a70a6;
  --highlighted-bg-color: #e5cfc3;
  --highlighted-font-color: #151719;
  --positive-color: #327300;
  --negative-color: #730000;
  --positive-light-color: #d2e5c3;
  --negative-light-color: #e5c3c3;
  --default-border: 1px solid #15171930;
}

header div.header-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
}

header div.header-content h1 {
    max-width: 20rem;
    width: 100%;
    margin-left: -1px;
}

header div.header-content nav ul a {
  text-transform: none;
}

.main-area, footer {
  background: linear-gradient(to right, var(--main-area-bg), color-mix(in srgb, var(--bg-color) 50%, var(--main-area-bg)), var(--main-area-bg));
}

footer {
  border-top: var(--default-border);
}

main div.section-title {
   margin-bottom: 1rem;
   font-size: 1.75rem !important;
}

main div.section-title a {
  color: var(--accent-color);
  text-decoration: none;
}

section.articles-section  {
  padding: 0;
  gap: 1.25rem;
}

section.digest article, 
section.articles-section article {
  padding: 0;
  border: var(--default-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

section.articles-section.promo article {
  border: none;
}

main section.separate, main section.promo {
  gap: 1.25rem !important;
}

main.digest-main-area section.digest {
  gap: 1rem;
}

main.digest-main-area section.digest > h1 {
  background: var(--font-color);
  color: var(--bg-color);
  border-radius: 0.5rem;
}

main.digest-main-area section.digest > * {
  padding: 1rem;
  gap: 1rem;
  align-items: center;
}


main.digest-main-area section.digest > * .article-media {
  margin: 0;
  border-radius: 0.3rem;
  overflow: hidden;
}

main.digest-main-area section article .article-preview-content-wrapper {
  padding: 0;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) {
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(4)) {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

section.articles-section.promo.highlighted[data-line="1"] {
  grid-template-columns: 1fr;
}

section.articles-section.promo.highlighted[data-line="1"] > article,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child {
  display: flex;
  grid-row: 1 / -1;
}


section.articles-section.promo.highlighted[data-line="1"] > article a {
  color: var(--accent-color);
}

section.articles-section.promo.highlighted[data-line="1"] > article {
  grid-row: auto;
}

section.articles-section.promo.highlighted[data-line="1"] > article .article-media,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media {
  flex: 0 0 58%;
  max-width: 58%;
}

section.articles-section.promo.highlighted[data-line="1"] > article .article-media,
section.articles-section.promo.highlighted[data-line="1"] > article .article-media picture,
section.articles-section.promo.highlighted[data-line="1"] > article .article-media img,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media picture,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media img {
  height: 100%;
}

section.articles-section.promo.highlighted[data-line="1"] > article .article-media img,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media img {
  object-fit: cover;
}

section.articles-section.promo.highlighted[data-line="1"] > article .article-preview-content-wrapper,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-preview-content-wrapper {
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

section.articles-section.promo.highlighted[data-line="1"] > article .article-title,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-title {
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.05;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) {
  background: transparent;
  border-radius: 0.5rem;
  box-shadow: none;
  display: flex;
  overflow: visible;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-media {
  flex: 0 0 45%;
  height: 100%;
  min-width: 0;
  max-width: 45%;
  border-radius: 0.5rem;
  overflow: hidden;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-media picture,
section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-media img {
  height: 100%;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-media img {
  object-fit: cover;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-preview-content-wrapper {
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-preview-content {
  color: var(--font-color);
}

section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-title {
  font-size: clamp(0.875rem, 1vw, 1.125rem);
  line-height: 1.15;
}

section.articles-section .article-media {
  margin: 0;
}

main section article .article-preview-content-wrapper {
  padding: 0.75rem 1rem;
}

.project-logo {
  background: url('logo.png') 50% 50% no-repeat;
  background-size: contain;
  overflow: hidden;
  text-indent: -10000px;
  min-width: 6rem;
}


section.highlighted:not(.promo) {
  background: var(--link-color) url('./bluebonnet.jpg') 50% 50% fixed;
  background-size: cover;
  gap: 2rem !important;
}

section.highlighted:not(.promo) article {
  border: 1rem solid var(--bg-color);
  display: flex;
  flex-direction: column;
}

section.highlighted:not(.promo) article .article-preview-content-wrapper {
  background: var(--header-bg);
  flex-grow: 1;
}

section.highlighted:not(.promo) article .article-preview-content h2 a {
  color: #ffffff;
}

section.articles-section article.highlighted {
  background: var(--font-color);
}

section.articles-section article.promo .article-preview-content-wrapper {
  height: auto;
  text-align: left;
}

section.articles-section article.promo .article-preview-content-wrapper .article-preview-content {
  background: transparent;
  padding: 0;
  text-shadow: none;
}

section.articles-section article.promo.with-media .article-preview-content-wrapper {
  position: static;
}

section.articles-section.promo.highlighted article .article-title::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  margin-top: -0.6rem;
  margin-bottom: 0.6rem;
  background: var(--accent-color);
  border-radius: 0.25rem;
}

section.articles-section.promo.highlighted article .article-title {
  padding-top: 0.35rem !important;
}

section.articles-section.promo.highlighted article:first-child .article-title::before,
section.articles-section.promo.highlighted[data-line="1"] article .article-title::before {
  width: 3.5rem;
  height: 0.4rem;
  margin-top: -0.8rem;
  margin-bottom: 0.8rem;
}

section.articles-section.promo.highlighted article:first-child .article-title,
section.articles-section.promo.highlighted[data-line="1"] article .article-title {
  padding-top: 0.5rem !important;
}

main section.highlighted:not(.promo) {
  padding: 2rem;
  gap: 1.5rem !important;
  border-radius: 0.5rem;
}

header div.header-content nav ul.social-links {
  top: 1.3rem;
}

header div.header-content nav ul:first-child {
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 0.25rem solid var(--header-color);
  color: var(--bg-color);
  font-size: 1.1rem;
  font-style: italic;
}

header div.header-content nav ul li {
  white-space: nowrap;
}

header div.header-content nav ul:not(.social-links) li + li::before {
  content: "\2022";
  margin-right: 0.5rem;
  color: var(--header-color);
}


.main-area section, .main-area div.section {
  padding: 0;
  background: transparent;
}

 .main-area article.section {
  border: var(--default-border);
  border-radius: 0.5rem;
  overflow: hidden;
  gap: 0;
  padding: 0;
 }

.main-area article.section > * {
  padding: 1rem 2rem;
}

.main-area article.section > *:first-child {
  padding-top: 2rem;
}

.main-area article.section > *:last-child {
  padding-bottom: 2rem;
}

.main-area article.section > .article-meta {
  padding: 0;
}

.main-area article.section > .article-media {
  margin: 0 !important;
  max-width: none;
  width: auto;
}

.main-area article.section > .article-media img {
  border-radius: 0.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.main-area article.section > .article-title,
.main-area article.section > .article-meta,
.main-area article.section > .article-media,
.main-area article.section > .article-description {
  background: var(--font-color);
}

.main-area article.section .media-source { 
  color: var(--accent-color);
}

.main-area article.section > .article-meta {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
}

.main-area article.section > .article-title,
.main-area article.section > .article-description {
  color: var(--bg-color);
}

.main-area article.section > .article-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.main-area article.section > .article-description {
  padding-bottom: 2rem;
}

.main-area article.section > .article-description > *,
.main-area article.section > .article-content > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.main-area article.section > .article-topics {
  justify-content: center;
}

.main-area article.section > .article-topics,
.main-area article.section > .share {
  border-top: var(--default-border);
}


.main-area article.section > *:last-child {
  padding-bottom: 1rem;
}



.section.m-material-wrapper {
  margin-top: 3rem;
}

.load-more {
  border-radius: 0.5rem;
}

@media only screen and (max-width: 1279px) {

}

@media only screen and (max-width: 1023px) {
}

@media only screen and (min-width: 800px) and (max-width: 1023px) {
  section.articles-section[data-line="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 959px) {
  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child {
    grid-row: auto;
  }

  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:nth-child(n + 2) .article-title {
    font-size: clamp(0.875rem, 3vw, 2.25rem);
  }

  section.articles-section.promo.highlighted article .article-title {
    padding-top: 0.5rem !important;
  }
}

@media only screen and (max-width: 799px) {
  header div.header-content nav ul.social-links {
      position: relative;
      top: 0;
  }
}

@media only screen and (min-width: 599px) and (max-width: 799px) {
  section.articles-section.highlighted:not(.promo)[data-line="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section.articles-section.highlighted:not(.promo)[data-line="3"] > article:first-child {
    grid-column: span 2;
  }
}

@media only screen and (max-width: 639px) {
  header div.header-content nav ul:not(.social-links) li:first-child::before {
    content: "\2022";
    margin-right: 0.5rem;
    color: var(--header-color);
  }
  main section.highlighted:not(.promo) {
    padding: 1rem;
    gap: 1rem !important;
  }
}

@media only screen and (max-width: 599px) {
  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  section.articles-section.promo.highlighted[data-line="1"] > article,
  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child {
    display: block;
    grid-row: auto;
  }

  section.articles-section.promo.highlighted[data-line="1"] > article .article-media,
  section.articles-section.promo.highlighted[data-line="2"]:has(> article:nth-child(3)) > article:first-child .article-media {
    height: auto;
    max-width: none;
  }

  main.digest-main-area section.digest > * .article-media {
    max-width: 100%;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) {
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    box-shadow: none;
    display: flex;
    overflow: visible;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-media {
    flex: 0 0 45%;
    height: 100%;
    min-width: 0;
    max-width: 45%;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-media picture,
  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-media img {
    height: 100%;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-media img {
    object-fit: cover;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-preview-content-wrapper {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0.5rem 0.75rem;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-title {
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    line-height: 1.15;
    padding-top: 0.35rem !important;
  }

  section.articles-section:not(.highlighted):not(.promo) > article:not(:first-child) .article-title::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    margin-top: -0.6rem;
    margin-bottom: 0.6rem;
    background: var(--accent-color);
    border-radius: 0.25rem;
  }
  
  main section.highlighted:not(.promo) {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

@media (max-width: 419px) {
  .social-links {
      justify-content: start !important;
  }
}

@media only screen and (max-width: 359px) {
}
