/* ============================================================
   Homepage article sections — ported from the live reference
   site (videogamesmagazine.com) for pixel parity: the hero
   (module1 / Games), the divider, the "LATEST ARTICLES" list
   (module2), and the museum strip.
   ============================================================ */

/* ------- HERO (module1 — the featured "Games" article) ------- */

#tagCloud button:nth-child(1) {
  display: none;
}

.hero {
  padding: 52px 72px 0;
  overflow: hidden;
  cursor: pointer;
}
.hero .eyebrow {
  font-size: 13px;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 84px);
  line-height: 1;
  max-width: 26ch;
  cursor: pointer;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  transition: color 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hero:hover h1 {
  color: transparent;
}
.hero h1 a {
  color: inherit;
}
.hero .row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  margin-top: 72px;
  align-items: end;
}
.hero .dek {
  font-size: 19px;
  line-height: 1.55;
  max-width: 48ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero .meta {
  margin-top: 34px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 26px;
}
.hero .photo {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.hero .photo img {
  animation: hero-wipe 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter 1s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
  transform: scale(1.02);
}
@keyframes hero-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.hero:hover .photo img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.07);
}
.hero-link {
  display: block;
  color: inherit;
}
@media screen and (max-width: 820px) {
  .hero .row {
    grid-template-columns: 1fr;
  }
}

/* ------- THICK RULE (divider above "LATEST ARTICLES") ------- */
.rule-thick {
  height: 10px;
  background: var(--ink, #000000);
  margin: 84px 72px 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rule-thick.in {
  transform: scaleX(1);
}

/* ------- SECTION LABEL (e.g. "LATEST ARTICLES · 4 ARTICLES") ------- */
.section-label {
  padding: 60px 72px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

/* ------- LIST + ROW ARTICLE (exact reference component) ------- */
.list {
  padding: 0 72px 120px;
}
/* the reference's articles.html list/section-label use slightly different
   vertical rhythm than index.html — reproduced here via the innerpage/
   homepage body class page.php already sets */
body.innerpage .section-label {
  padding-top: 50px;
}
body.innerpage .list {
  padding-bottom: 140px;
}
.row-article {
  display: grid;
  /* minmax(0, 1fr) instead of 1fr: a bare 1fr track's implicit min-width is
     its content's min-content, which can exceed the space left by the fixed
     columns and blow the row (and page) out horizontally */
  grid-template-columns: 190px minmax(0, 1fr) 180px;
  gap: 56px;
  align-items: start;
  padding: 70px 48px;
  margin: 0 -48px;
  border-bottom: 4px solid var(--rule);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    padding-left 0.35s ease;
  position: relative;
}
.row-article:first-child {
  margin-top: 8px;
}
.row-article::after {
  content: "→";
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%) translateX(-16px);
  font-size: 32px;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 900;
}
.row-article:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 72px;
}
.row-article:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.row-article:hover .cat,
.row-article:hover .byline {
  color: #c9c9c9;
}
.row-article .cat {
  font-size: 12px;
  padding-top: 8px;
  color: var(--ink-soft);
  transition: color 0.35s;
}
.row-article h3 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  transition: transform 0.35s ease;
}
.row-article:hover h3 {
  transform: translateX(8px);
}
.row-article p {
  margin-top: 22px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.75;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  transition: color 0.35s;
}
.row-article:hover p {
  color: #d4d4d4;
}
.row-article .byline {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
  padding-top: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: color 0.35s;
}

@media screen and (max-width: 1200px) {
  .row-article {
    gap: 10px;
  }
}

@media screen and (max-width: 820px) {
  .row-article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 48px 20px;
    margin: 0 -20px;
  }
  .row-article:hover {
    padding-left: 36px;
  }
  .row-article .byline {
    text-align: left;
  }
}
@media screen and (max-width: 640px) {
  .row-article {
    gap: 4px;
    padding: 16px 18px;
  }
  .row-article .cat {
    font-size: 10px;
    padding-top: 0;
  }
  .row-article h3 {
    font-size: clamp(19px, 6vw, 26px);
  }
  .row-article p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
  }
  .row-article .byline {
    font-size: 10px;
    padding-top: 4px;
  }
}

@media screen and (max-width: 600px) {
  .hero,
  .rule-thick,
  .section-label,
  .list {
    padding-left: 26px;
    padding-right: 26px;
  }
  .rule-thick {
    margin-left: 26px;
    margin-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .hero {
    padding-top: 18px;
  }
  .hero .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: clamp(26px, 8vw, 38px);
    -webkit-text-stroke: 1px var(--ink);
  }
  .hero .row {
    gap: 16px;
    margin-top: 18px;
  }
  .hero .dek {
    font-size: 15px;
    line-height: 1.45;
  }
  .hero .meta {
    margin-top: 10px;
    font-size: 11px;
    gap: 14px;
  }
  .rule-thick {
    margin-top: 22px;
    height: 4px;
  }
  .section-label {
    padding-top: 18px;
    font-size: 10px;
  }
  body.innerpage .section-label {
    padding-top: 16px;
  }
  .list {
    padding-bottom: 32px;
  }
  body.innerpage .list {
    padding-bottom: 36px;
  }
}

/* ------- MUSEUM STRIP ------- */
.museum-strip {
  border-top: 10px solid var(--ink);
  padding: 70px 72px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.museum-mark {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.museum-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.museum-strip:hover .museum-mark {
  transform: rotate(-8deg) scale(1.06);
}
.museum-text {
  flex: 1;
  min-width: 260px;
}
.museum-text .eyebrow {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.museum-text h3 {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
}
.museum-text p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
}
.museum-link {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.museum-link:hover {
  opacity: 0.5;
}
@media screen and (max-width: 600px) {
  .museum-strip {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .museum-strip {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 14px;
  }
  .museum-mark {
    width: 60px;
    height: 60px;
  }
  .museum-text h3 {
    font-size: clamp(15px, 5vw, 18px);
  }
  .museum-text p {
    font-size: 11px;
  }
  .museum-link {
    font-size: 10px;
  }
}

/* ------- CATEGORY / ARTICLES-LISTING HERO (_category.php) ------- */
.catHero {
  padding: 60px 72px 40px;
  border-bottom: 10px solid var(--ink);
}
.catHero .eyebrow {
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.catHero h1 {
  font-size: clamp(48px, 9vw, 120px);
  margin: 0;
}
.catHero p {
  margin-top: 24px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}
@media screen and (max-width: 600px) {
  .catHero {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .catHero {
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .catHero .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .catHero h1 {
    font-size: clamp(30px, 11vw, 48px);
  }
  .catHero p {
    margin-top: 10px;
    font-size: 14px;
  }
}

/* ------- ROW ARTICLE THUMBNAIL (optional, category-page only) ------- */
.col-left {
  display: block;
}
.col-left .thumb {
  display: block;
  margin-top: 16px;
}
.col-left .thumb img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
}
.row-article:hover .col-left .thumb img {
  filter: grayscale(0) contrast(1.05);
}

/* ------- PAGER ------- */
.pager {
  padding: 0 72px 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 4px solid var(--ink);
  padding: 12px 18px;
  min-width: 48px;
  text-align: center;
  display: inline-block;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.pager a:hover {
  background: var(--ink);
  color: var(--paper);
}
.pager .on {
  background: var(--ink);
  color: var(--paper);
}
.pager a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media screen and (max-width: 600px) {
  .pager {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .pager {
    padding-bottom: 32px;
    gap: 6px;
  }
  .pager a,
  .pager span {
    font-size: 11px;
    padding: 8px 12px;
    min-width: 36px;
    border-width: 2px;
  }
}

/* ------- TAG CLOUD (tags static page) ------- */
.cloud {
  padding: 60px 72px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 4px solid var(--ink);
  padding: 12px 18px;
  cursor: pointer;
  background: none;
  color: var(--ink);
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.chip small {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 8px;
}
.chip:hover {
  background: var(--ink);
  color: var(--paper);
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
}
.chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media screen and (max-width: 600px) {
  .cloud {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .cloud {
    padding-top: 20px;
    gap: 8px;
  }
  .chip {
    font-size: 10px;
    padding: 8px 12px;
    border-width: 2px;
  }
}
