/* =========================
   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
========================= */

.category-page {

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

  margin: 0 auto;

  padding:
    80px 0 120px;
}


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

.category-header {

  padding-bottom: 70px;

  border-bottom:
    1px solid #ddd;

  text-align: center;
}


.category-label {

  margin:
    0 0 12px;

  font-size: 11px;

  letter-spacing:
    0.25em;

  color: #777;
}


.category-header h1 {

  margin: 0;

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

  font-weight: 500;

  letter-spacing:
    0.08em;
}


.category-description {

  margin:
    18px 0 0;

  font-size: 14px;

  color: #666;
}


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

.article-section {

  padding-top: 70px;
}


.section-heading {

  display: flex;

  align-items: flex-end;

  justify-content:
    space-between;

  margin-bottom: 30px;
}


.section-label {

  margin:
    0 0 5px;

  font-size: 11px;

  letter-spacing:
    0.2em;

  color: #777;
}


.section-heading h2 {

  margin: 0;

  font-size: 28px;

  font-weight: 500;
}


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

.article-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);
}


/* =========================
   POPULAR RANK
========================= */

.popular-rank {

  position: absolute;

  top: 12px;

  left: 12px;

  z-index: 2;

  padding:
    7px 10px;

  background:
    rgba(255, 255, 255, 0.92);

  font-size: 11px;

  letter-spacing:
    0.08em;
}


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

.article-content {

  padding:
    20px 20px 22px;
}


.article-category {

  margin:
    0 0 10px;

  font-size: 10px;

  letter-spacing:
    0.15em;

  color: #777;

  text-transform:
    uppercase;
}


.article-title {

  margin: 0;

  font-size: 17px;

  line-height: 1.6;

  font-weight: 500;
}


.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;
}


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

.error-message {

  padding:
    50px 0;

  text-align: center;

  font-size: 13px;

  color: #b00020;
}


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

@media (max-width: 768px) {

  .category-page {

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

    padding-top: 50px;
  }


  .category-header {

    padding-bottom: 50px;
  }


  .article-section {

    padding-top: 50px;
  }


  .article-grid {

    grid-template-columns: 1fr;

    gap: 22px;
  }


  .section-heading h2 {

    font-size: 24px;
  }

}