body .pub-main {
  color: #292512;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.pub-hero {
  background: linear-gradient(145deg, #fff9dc, #f3f5e9);
  border: 1px solid #e7dcaf;
  border-radius: 1rem;
  margin: 0 auto 2rem;
  padding: clamp(1.35rem, 4vw, 3rem);
}

.pub-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  letter-spacing: 0.015em;
  line-height: 1.38;
  margin: 0.6rem 0 0.85rem;
}

.pub-hero p,
.pub-paper p {
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.pub-breadcrumb {
  color: #604f24;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  font-size: 0.89rem;
}

.pub-breadcrumb a,
.pub-paper a,
.pub-date a {
  color: #735800;
  text-decoration: underline;
  text-underline-offset: 0.19em;
}

.pub-kicker {
  background: #f3d45b;
  border-radius: 100vw;
  color: #292512;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28em 0.85em;
}

.pub-date {
  color: #625231;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0.4rem 0 0;
}

.pub-photo {
  margin: 0 auto 1.7rem;
  max-width: 59rem;
}

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

.pub-photo img {
  aspect-ratio: 2 / 1;
  border-radius: 0.8rem;
}

.pub-photo figcaption {
  color: #625231;
  font-size: 0.8rem;
  margin: 0.55rem 0 0;
}

.pub-paper {
  background: #fffdf4;
  border: 1px solid #e8e0bf;
  border-radius: 1rem;
  padding: clamp(1.1rem, 4.4vw, 3rem);
  margin: 0 auto 2rem;
  max-width: 59rem;
}

.pub-paper h2 {
  border-inline-start: 0.34rem solid #d1a720;
  color: #292512;
  font-size: clamp(1.15rem, 2.7vw, 1.65rem);
  line-height: 1.5;
  margin: 2rem 0 0.85rem;
  padding: 0.15rem 0 0.15rem 0.65rem;
}

.pub-paper h2:first-child {
  margin-top: 0;
}

.pub-paper p + p {
  margin-top: 1.05em;
}

.pub-paper ol,
.pub-paper ul {
  list-style: revert;
  margin: 0.6rem 0 1rem;
  padding-inline-start: 1.6rem;
}

.pub-paper li {
  margin: 0.45rem 0;
}

.pub-paper details {
  background: #fff;
  border: 1px solid #e8e0bf;
  border-radius: 0.55rem;
  margin: 0.7rem 0;
  padding: 0.8rem 1rem;
}

.pub-paper summary {
  cursor: pointer;
  font-weight: 700;
}

.pub-paper details p {
  margin: 0.65rem 0 0;
}

.pub-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.65rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.pub-card {
  background: #fffdf4;
  border: 1px solid #e8e0bf;
  border-radius: 0.8rem;
  color: #292512;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.pub-card:hover {
  border-color: #ad8421;
  box-shadow: 0 0.5rem 1.6rem #68501d20;
}

.pub-card img {
  aspect-ratio: 16 / 9;
  background-color: #f6eed1;
}

.pub-card > div {
  padding: 1rem;
}

.pub-card h2,
.pub-card h3 {
  color: #292512;
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0.55rem 0;
}

.pub-card p:last-child {
  line-height: 1.65;
  margin-bottom: 0;
}

.pub-section {
  margin: clamp(1.6rem, 4vw, 3.5rem) 0;
}

.pub-section > h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 0.95rem;
}

.pub-footer {
  background: #faf3d6;
  border-top: 4px solid #f3d45b;
  color: #292512;
}

.pub-footer .pub-footer-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(16rem, 1.6fr);
  gap: 1.5rem 2.5rem;
  padding-block: 2rem;
}

.pub-footer img {
  display: block;
  max-width: min(100%, 14rem);
  margin-bottom: 0.65rem;
}

.pub-footer a {
  color: #493900;
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

.pub-footer nav ul {
  display: grid;
  gap: 0.65rem 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}

.pub-cta {
  background: #f3d45b;
  border-radius: 0.55rem;
  color: #292512;
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.65em 1.05em;
}

.pub-cta:hover {
  background: #f0cb35;
}

@media (max-width: 560px) {
  .pub-footer .pub-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
