/**
 * @file brand.css
 * @brief StoriaShort crimson brand overrides and featured-story cover gallery.
 */

:root {
  --brand: #c51d34;
  --deep: #97152a;
  --softbrand: #fff0f2;
  --ink: #1b1416;
  --muted: #76676b;
  --line: #eee3e6;
  --soft: #fbf7f8;
}

.brand-mark {
  background: linear-gradient(135deg, #e34a5f, #9f1027);
  box-shadow: 0 8px 24px rgba(197, 29, 52, .24);
}

.orb-a {
  background: radial-gradient(circle at 35% 35%, rgba(255, 193, 202, .95), rgba(197, 29, 52, .72) 45%, rgba(197, 29, 52, 0) 72%);
}

.orb-b { background: #df5367; }

.story-showcase {
  overflow: hidden;
  background: #1e1115;
  color: #fff;
}

.showcase-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
}

.showcase-heading h2 { color: #fff; }

.showcase-heading > p {
  max-width: 480px;
  margin: 0 0 6px;
  color: #d6c2c7;
  font-size: 16px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.poster-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px 28px 8px 28px;
  background: #321820;
  box-shadow: 0 22px 50px rgba(0,0,0,.26);
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(18,5,10,.92));
}

.poster-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.poster-card:hover img { transform: scale(1.025); }

.poster-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px;
}

.poster-card figcaption span {
  display: block;
  margin-bottom: 7px;
  color: #ff9cac;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
}

.poster-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

@media (max-width: 800px) {
  .showcase-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .poster-grid { gap: 12px; }
  .poster-card figcaption { padding: 16px; }
}

@media (max-width: 620px) {
  .poster-grid { grid-template-columns: 1fr 1fr; }

  .poster-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }
}
