
/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  color: #111;

  background: #f7f6f2;
}


a {

  color: inherit;

  text-decoration: none;
}


/* =========================
   PAGE
========================= */

.articles-page {

  width:
    min(1200px, calc(100% - 40px));

  margin: 0 auto;

  padding:
    80px 0 120px;
}


/* =========================
   HEADER
========================= */

.articles-header {

  padding-bottom: 70px;

  border-bottom:
    1px solid #ddd;

  text-align: center;
}


.articles-label {

  margin:
    0 0 12px;

  font-size: 11px;

  letter-spacing:
    0.25em;

  color: #777;
}


.articles-header h1 {

  margin: 0;

  font-size:
    clamp(44px, 8vw, 90px);

  font-weight: 500;

  letter-spacing:
    0.08em;
}


.articles-description {

  margin:
    18px 0 0;

  font-size: 14px;

  color: #666;
}


/* =========================
   SECTION
========================= */

.articles-section {

  padding-top: 70px;
}


/* =========================
   GRID
========================= */

.articles-grid {

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 30px;
}


/* =========================
   CARD
========================= */

.article-card {

  display: block;

  background: #fff;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.article-card:hover {

  transform:
    translateY(-5px);

  box-shadow:
    0 12px 30px
    rgba(0, 0, 0, 0.08);
}


/* =========================
   IMAGE
========================= */

.article-image {

  position: relative;

  width: 100%;

  aspect-ratio:
    16 / 10;

  overflow: hidden;

  background:
    #e9e8e3;
}


.article-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform 0.4s ease;
}


.article-card:hover
.article-image img {

  transform:
    scale(1.04);
}


/* =========================
   NO IMAGE
========================= */

.no-image {

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  color: #999;

  letter-spacing:
    0.1em;
}


/* =========================
   CONTENT
========================= */

.article-content {

  padding:
    20px 20px 22px;
}


/* =========================
   CATEGORY
========================= */

.article-category {

  margin:
    0 0 10px;

  font-size: 10px;

  letter-spacing:
    0.15em;

  color: #777;

  text-transform:
    uppercase;
}


/* =========================
   TITLE
========================= */

.article-title {

  margin: 0;

  font-size: 17px;

  line-height: 1.6;

  font-weight: 500;
}


/* =========================
   DATE
========================= */

.article-date {

  margin:
    15px 0 0;

  font-size: 11px;

  color: #888;
}


/* =========================
   LOADING
========================= */

.loading-message {

  padding:
    50px 0;

  text-align: center;

  font-size: 13px;

  color: #777;
}


/* =========================
   MORE BUTTON
========================= */

.more-wrapper {

  display: flex;

  justify-content: center;

  padding-top: 60px;
}


.load-more-button {

  min-width: 220px;

  padding:
    15px 30px;

  border:
    1px solid #111;

  background:
    transparent;

  color: #111;

  font-size: 13px;

  letter-spacing:
    0.08em;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}


.load-more-button:hover {

  background:
    #111;

  color:
    #fff;
}


.load-more-button:disabled {

  opacity: 0.5;

  cursor:
    default;
}


/* =========================
   ERROR
========================= */

.error-message {

  padding:
    50px 0;

  text-align: center;

  font-size: 13px;

  color: #b00020;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .articles-page {

    width:
      min(100% - 28px, 600px);

    padding-top: 50px;
  }


  .articles-header {

    padding-bottom: 50px;
  }


  .articles-section {

    padding-top: 50px;
  }


  .articles-grid {

    grid-template-columns:
      1fr;

    gap: 22px;
  }


  .articles-header h1 {

    font-size: 44px;
  }


  .load-more-button {

    width: 100%;

    max-width: 300px;
  }

}