*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  --footer-height: 15rem;
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
  text-decoration: none;
}

a.article-preview-link {
  display: block;
  height: 100%;
}

.header {
  margin: 2rem 0 3rem;
  display: flex;
  justify-content: center;
}

.header__title {
  font-size: 3.5rem;
}

.header__subtitle {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.header__subtext {
  font-size: 2rem;
}

.header__content {
  display: inline-block;
  text-align: center;
}

/* 
PARAGRAPHS
*/
p {
  line-height: 150%;
}

/* 
HEADINGS
*/

* + h1,
* + h2 {
  margin-top: 5rem;
}

* + h3 {
  margin-top: 3rem;
}

/* 
Home main image
*/
.home-main-image {
  width: 100%;
  border-radius: 30px;
}

/* 
SUMMARY SECTION
*/

.summary-heading {
  margin-bottom: 2rem;
  font-size: 3rem;
}
.summary {
  margin: 5rem 0 3rem;
  font-size: 2rem;
}

p + p {
  margin-top: 2rem;
}

/* 
ARTICLES SECTION
*/

.articles-section {
  margin-bottom: 3rem;
}

.articles-section__heading {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 5px solid orange;
}

.articles-section__title {
  font-size: 2.5rem;
}

.articles-section__heading a {
  font-size: 1.5rem;
}

.main {
  min-height: calc(100vh - var(--footer-height));
}

.main > .main-content {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  padding: 3rem;
}

.article-preview {
  font-size: 1.5rem;
  border: 2px solid black;
  border-radius: 10px;
  padding: 1rem;
}

.article-preview__title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
}

.articles-container {
  grid-template-columns: repeat(
    auto-fill,
    minmax(300px, 1fr)
  ); /* use fr here instead of % to account for grid gaps */
  grid-auto-rows: 20rem;
  gap: 10px;
}

/* @media screen and (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
} */

@media screen and (max-width: 900px) {
  .grid {
    grid-template-columns: 100%;
  }
}

.wiper--orange {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.wiper--orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: orange;
  transition: width 150ms ease;
  z-index: -1;
}

.wiper--orange:hover {
  color: white;
}

.wiper--orange:hover::before {
  width: 100%;
}

/* 
FOOTER
*/

.footer {
  height: var(--footer-height);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.link-icon {
  width: 4rem;
  margin-right: 2rem;
}

.link-icon.hoverable--grow:hover svg {
  fill: orange;
}

.hoverable--grow:hover {
  transition-duration: 125ms;
  transform: scale(1.1);
}
