.hpl {
  --hpl-gap: clamp(1.25rem, 3vw, 3rem);
  --hpl-border-width: 1px;
  --hpl-layout-content: 2fr;
  --hpl-layout-media: 1fr;
  --hpl-mobile-layout-content: 2fr;
  --hpl-mobile-layout-media: 1fr;
  --hpl-image-ratio: 2 / 1;
  --hpl-mobile-image-ratio: 1 / 1;
  --hpl-animation-speed: 300ms;
}

.hpl,
.hpl * {
  box-sizing: border-box;
}

.hpl__list {
  display: grid;
}

.hpl-card {
  border-top: var(--hpl-border-width) solid currentColor;
}

.hpl-card:last-child {
  border-bottom: var(--hpl-border-width) solid currentColor;
}

.hpl-card__link,
.hpl-card {
  display: grid;
  grid-template-columns: minmax(0, var(--hpl-layout-content)) minmax(0, var(--hpl-layout-media));
  gap: var(--hpl-gap);
  align-items: stretch;
}

.hpl-card__link {
  grid-column: 1 / -1;
  color: inherit;
  text-decoration: none;
}

.hpl-card__content {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.hpl-card__date {
  display: block;
  margin: 0;
  grid-row: 1;
  align-self: start;
}

.hpl-card__title {
  margin: 0;
  grid-row: 5;
  align-self: end;
}

.hpl-card__title-link {
  color: inherit;
  text-decoration: none;
}

.hpl-card__title-mobile,
.hpl-card__excerpt-mobile {
  display: none;
}

.hpl-card__title-desktop,
.hpl-card__title-mobile,
.hpl-card__excerpt-desktop,
.hpl-card__excerpt-mobile {
  min-width: 0;
}

@media (max-width: 1024px) {
  .hpl-card__title-desktop,
  .hpl-card__excerpt-desktop {
    display: none;
  }

  .hpl-card__title-mobile,
  .hpl-card__excerpt-mobile {
    display: inline;
  }
}

.hpl-card__excerpt {
  margin: 0;
  grid-row: 3;
  align-self: center;
}

.hpl-card__media {
  overflow: hidden;
  align-self: center;
  aspect-ratio: var(--hpl-image-ratio);
}

.hpl-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hpl-card__image--placeholder {
  display: block;
}

.hpl--card-hover-yes .hpl-card {
  transition: transform var(--hpl-animation-speed) ease, box-shadow var(--hpl-animation-speed) ease;
}

.hpl--card-hover-yes .hpl-card:hover {
  transform: translateY(-2px);
}

.hpl--image-hover-zoom .hpl-card__image {
  transition: transform var(--hpl-animation-speed) ease;
}

.hpl--image-hover-zoom .hpl-card:hover .hpl-card__image {
  transform: scale(1.04);
}

.hpl-is-hidden {
  display: none !important;
}

.hpl--load-fade .hpl-is-revealed {
  animation: hplFade var(--hpl-animation-speed) ease both;
}

.hpl--load-slide .hpl-is-revealed {
  animation: hplSlide var(--hpl-animation-speed) ease both;
}

.hpl__actions {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.hpl__more {
  appearance: none;
  border: var(--hpl-border-width) solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.75em 1.5em;
  cursor: pointer;
  font: inherit;
}

.hpl__more:hover,
.hpl__more:focus-visible {
  text-decoration: underline;
}

.hpl__empty {
  margin: 0;
}

@keyframes hplFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hplSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .hpl-card,
  .hpl-card__link {
    grid-template-columns: minmax(0, var(--hpl-mobile-layout-content)) minmax(0, var(--hpl-mobile-layout-media));
  }

  .hpl-card__media {
    aspect-ratio: var(--hpl-mobile-image-ratio);
  }

  .hpl--stack-mobile-yes .hpl-card,
  .hpl--stack-mobile-yes .hpl-card__link {
    display: block;
  }

  .hpl--stack-mobile-yes .hpl-card__content {
    display: block;
    min-height: 0;
    height: auto;
  }

  .hpl--stack-mobile-yes .hpl-card__date,
  .hpl--stack-mobile-yes .hpl-card__excerpt,
  .hpl--stack-mobile-yes .hpl-card__title {
    margin: 0 0 var(--hpl-gap);
  }

  .hpl--stack-mobile-yes .hpl-card__title {
    margin-bottom: 0;
  }

  .hpl--stack-mobile-yes .hpl-card__media {
    margin-top: var(--hpl-gap);
    width: 100%;
  }
}

/* v0.1.16 exact card placement */
.hpl-card__content{
  display:grid;
  grid-template-rows:auto 1fr auto;
  height:100%;
  align-content:stretch;
}

.hpl-card__date{
  grid-row:1;
  align-self:start;
  justify-self:start;
  order:0;
}

.hpl-card__title{
  grid-row:2;
  align-self:center;
  justify-self:start;
  order:1;
  margin-top:0;
  margin-bottom:0;
  text-align:inherit;
}

.hpl-card__excerpt{
  grid-row:3;
  align-self:end;
  justify-self:start;
  order:2;
  margin-top:0;
  margin-bottom:0;
  text-align:inherit;
}

