.main {
  padding-top: 58px;
}

.pub-category {
  padding: 84px 88px 96px;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment2) 100%);
}

.pub-head {
  margin-bottom: 44px;
  max-width: 720px;
}

.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent3);
}

.pub-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent3);
}

.pub-head h1 {
  margin-top: 18px;
  font-family: 'Cormorant', serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.06;
  color: var(--ink);
}

.pub-head p {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
  max-width: 60ch;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 22px 20px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(24, 48, 45, 0.08);
  box-shadow: 0 14px 30px rgba(15, 28, 26, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent3-rgb), 0.34);
  box-shadow: 0 20px 34px rgba(15, 28, 26, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.pub-card:focus-visible {
  outline: 1px solid rgba(var(--accent3-rgb), 0.55);
  outline-offset: 3px;
}

.pub-card-cover {
  aspect-ratio: 566 / 816;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: linear-gradient(
    180deg,
    rgba(238, 231, 216, 0.84) 0%,
    rgba(246, 241, 233, 0.94) 100%
  );
  box-shadow: inset 0 0 0 0.75px rgba(24, 48, 45, 0.07);
}

.pub-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pub-card-body {
  padding: 20px 18px 18px;
  display: grid;
  gap: 8px;
}

.pub-card-year {
  font-size: 8.5px;
  font-weight: 420;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(24, 48, 45, 0.56);
}

.pub-card-publisher {
  margin-top: -2px;
  font-size: 8.5px;
  font-weight: 380;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(24, 48, 45, 0.58);
}

.pub-card-title {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 450;
  line-height: 1.14;
  color: var(--ink);
}

.pub-card-desc {
  max-width: 28ch;
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 380;
  line-height: 1.34;
  color: rgba(24, 48, 45, 0.74);
}

.pub-card-link {
  margin-top: 4px;
  justify-self: start;
  width: fit-content;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--accent3);
}

@media (max-width: 1180px) {
  .pub-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }
}

@media (max-width: 960px) {
  .pub-category {
    padding: 48px 22px 72px;
  }

  .pub-grid {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
    gap: 16px;
  }

  .pub-card {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .pub-head h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .pub-head p {
    font-size: 15px;
  }

  .pub-card-title {
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .pub-head p {
    color: rgba(24, 48, 45, 0.88);
  }

  .pub-card-year,
  .pub-card-publisher {
    color: rgba(24, 48, 45, 0.72);
  }

  .pub-card-desc {
    color: rgba(24, 48, 45, 0.82);
  }
}
