.featured-category-page {
  --featured-category-ink: #17251f;
  --featured-category-paper: url("/assets/riddle-desk-paper.webp");
  background: var(--featured-category-paper) center top / 740px auto, #faf0dd;
}

.featured-category-layout {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(16px, 5.3vw, 78px);
  padding-block: clamp(24px, 4vw, 52px);
}

.featured-category-copy { color: var(--featured-category-ink); }

.featured-category-label {
  display: inline-block;
  margin: 0 0 .45em;
  padding: .35em .7em;
  background: #edab83;
  background-image: var(--featured-category-paper);
  background-blend-mode: multiply;
  clip-path: polygon(2% 0, 99% 3%, 97% 24%, 100% 43%, 98% 70%, 100% 100%, 1% 97%, 3% 72%, 0 45%);
  font: italic 700 clamp(.78rem, 2.2vw, 1.22rem)/1.1 var(--font-editorial);
  transform: rotate(-3deg);
}

.featured-category-copy h1 {
  max-width: 9ch;
  margin: .09em 0 .18em;
  font: 800 clamp(2.1rem, 7.3vw, 5.95rem)/.91 var(--font-editorial);
  letter-spacing: -.047em;
}

.featured-category-copy h1::after,
.featured-category-topics h2::after {
  content: "";
  display: block;
  width: min(68%, 210px);
  height: 6px;
  margin-top: 8px;
  border-top: 4px solid #a43927;
  border-radius: 50%;
  transform: rotate(-2deg);
}

.featured-category-intro {
  max-width: 34ch;
  margin: 0 0 16px;
  font-size: clamp(.91rem, 1.75vw, 1.16rem);
  line-height: 1.35;
}

.featured-category-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.featured-category-actions .btn { min-height: 44px; border-radius: 12px; padding-inline: clamp(9px, 1.3vw, 19px); white-space: normal; }
.featured-category-actions .btn-secondary { border-color: #526145; color: #293827; background: #fcf4df; }
.featured-category-actions .btn-primary svg { fill: currentColor; }

.featured-category-topics {
  position: relative;
  padding-block: clamp(19px, 3vw, 40px);
  text-align: center;
  color: var(--featured-category-ink);
  background: #fbf2ddb0;
}

.featured-category-topics::before {
  content: "";
  position: absolute;
  inset: -7px 0 auto;
  height: 15px;
  background: #66734e;
  clip-path: polygon(0 42%, 6% 11%, 13% 45%, 23% 27%, 35% 48%, 47% 17%, 61% 40%, 74% 6%, 90% 40%, 100% 28%, 100% 75%, 92% 85%, 79% 67%, 63% 93%, 52% 76%, 37% 94%, 24% 72%, 11% 93%, 0 78%);
  pointer-events: none;
}

.featured-category-topics h2, .featured-category-more h2 {
  margin: 0 0 14px;
  color: var(--featured-category-ink);
  font: 800 clamp(1.6rem, 4.5vw, 2.85rem)/1.02 var(--font-editorial);
  letter-spacing: -.028em;
}

.featured-category-topics h2::after { margin-inline: auto; width: min(36%, 160px); }

.featured-category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 2vw, 20px);
  max-width: 840px;
  margin: auto;
  padding: 0;
  list-style: none;
}

.featured-category-tiles a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 5px 1px;
  color: #29372b;
  text-decoration: none;
  font-size: clamp(.77rem, 1.8vw, 1.12rem);
  font-weight: 720;
}

.featured-category-tiles a:hover span, .featured-category-tiles a:focus-visible span { text-decoration: underline; }

.featured-category-tiles img {
  display: block;
  width: min(100%, 160px);
  height: auto;
  aspect-ratio: 1.28;
  object-fit: contain;
  transition: transform .18s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .featured-category-tiles a:hover img { transform: scale(1.08); }
}

.featured-category-tiles a:focus-visible img,
.featured-category-tiles a:active img,
.featured-category-tiles .is-touch-highlighted img,
.featured-category-tiles .is-topic-opening img { transform: scale(1.08); }
.featured-category-more { background: #faf1dfb3; }
.featured-category-more p { margin-top: 22px; }

@media (max-width: 680px) {
  .featured-category-layout { gap: 12px; }
  .featured-category-copy h1 { font-size: clamp(1.85rem, 7.85vw, 3.4rem); }
  .featured-category-intro { font-size: clamp(.83rem, 3.5vw, 1rem); margin-bottom: 10px; }
  .featured-category-actions { display: grid; gap: 6px; max-width: 15rem; }
  .featured-category-actions .btn { font-size: .81rem; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-category-tiles img { transition: none; }
  .featured-category-tiles a:is(:hover, :focus-visible, :active, .is-touch-highlighted, .is-topic-opening) img { transform: none; }
}

.force-reduced-motion .featured-category-tiles a img { transition: none; transform: none; }
