img { max-width: 100%; }

:root {
  --font-sans: 'szshabnam', sans-serif;
  --font-display: 'szshabnam', sans-serif;
}

  html {
    background: #ede9df;
  }

  body {
    min-width: 320px;
    color: #173845;
    background:
      radial-gradient(circle at 12% 8%, rgb(223 210 181 / 42%), transparent 32rem),
      #f6f3ec;
  }

  button {
    cursor: pointer;
  }

.festival-page {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: #f8f6f0;
  box-shadow: 0 0 60px rgb(17 44 56 / 12%);
}

.archive-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: white;
  text-align: center;
  background-image:
    linear-gradient(90deg, rgb(4 24 37 / 84%), rgb(6 34 45 / 67%) 46%, rgb(3 20 31 / 87%)),
    linear-gradient(180deg, rgb(4 23 33 / 18%), rgb(4 19 28 / 76%)),
    url('images/hero.jpg');
  background-position: center 58%;
  background-size: cover;
}

.archive-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  content: '';
  box-shadow: 0 -14px 45px rgb(204 165 76 / 25%);
}

.hero-content {
  width: min(92%, 780px);
  padding: 54px 20px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #e1bd65;
  font-family: 'Shabnam', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow::before,
.eyebrow::after {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: '';
  opacity: 0.75;
}

.hero-content h1 {
  margin: 0;
  font-family: 'Shabnam', sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgb(0 0 0 / 32%);
}

.hero-subtitle {
  margin: 10px 0 14px;
  color: #f3f4f2;
  font-size: clamp(16px, 1.6vw, 20px);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 250px);
  margin: 14px auto 16px;
  color: #cda94d;
}

.ornament span {
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.ornament span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.ornament b {
  font-size: 9px;
}

.hero-description {
  margin: 0;
  color: rgb(255 255 255 / 87%);
  font-size: 13px;
  line-height: 2.05;
}

.archive-section {
  padding: 45px clamp(20px, 4vw, 64px) 28px;
  background:
    linear-gradient(rgb(234 227 213 / 38%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(234 227 213 / 28%) 1px, transparent 1px),
    #faf8f3;
  background-size: 48px 48px;
}

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

.festival-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 206px;
  padding: 12px;
  border: 1px solid #e9e3d7;
  border-radius: 7px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 8px 25px rgb(25 50 58 / 5%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.festival-card:hover {
  z-index: 1;
  border-color: #d6c7a5;
  box-shadow: 0 14px 35px rgb(25 50 58 / 12%);
  transform: translateY(-4px);
}

.poster-art {
  min-height: 180px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--poster-middle);
  box-shadow: 0 5px 14px rgb(19 36 39 / 20%);
}

.poster-art svg,
.poster-art div,
.poster-art img {
  width: 100%;
  height: 100%;
  display: block;
}

.poster-art div
{
    background-size: cover;
    background-position: center center;
}
.poster-word {
  font-family: 'Shabnam', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.poster-year {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 4.8px;
}

.card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px 2px 4px;
}

.card-copy h2 {
  margin: 0 0 8px;
  color: #123d4c;
  font-family: 'Shabnam', sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.date {
  margin: 0;
  color: #526a71;
  font-size: 11px;
}

.people {
  margin-top: 16px;
}

.people p {
  margin: 7px 0 0;
  color: #60757b;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.people strong {
  color: #284b56;
  font-weight: 500;
}

.more-button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #073e57;
  box-shadow: 0 4px 10px rgb(7 62 87 / 22%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.more-button:hover {
  background: #b98b32;
  transform: translateX(-2px);
}

.more-button:focus-visible {
  outline: 3px solid rgb(185 139 50 / 30%);
  outline-offset: 3px;
}

.more-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.closing-note {
  position: relative;
  height: 150px;
  overflow: hidden;
  color: #153e4e;
  background:
    radial-gradient(circle at 88% 100%, rgb(204 188 153 / 38%), transparent 20%),
    #faf8f3;
}

.quote {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 26px;
}

.quote span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6f858b);
}

.quote span:last-child {
  background: linear-gradient(90deg, #6f858b, transparent);
}

.quote p {
  margin: 0;
  font-family: 'Shabnam', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.wave-lines {
  position: absolute;
  right: -5%;
  bottom: -60px;
  width: 110%;
  height: 120px;
  border-top: 2px solid #173d52;
  border-radius: 50% 55% 0 0;
  background: repeating-linear-gradient(176deg, transparent 0 7px, rgb(28 63 82 / 48%) 8px 9px);
  transform: rotate(-1deg);
}

.wave-lines-one {
  opacity: 0.9;
}

.wave-lines-two {
  right: 30%;
  bottom: -84px;
  width: 80%;
  opacity: 0.38;
  transform: rotate(3deg);
}

.musician {
  position: absolute;
  right: 6%;
  bottom: 12px;
  z-index: 2;
  color: rgb(25 59 72 / 10%);
  font-family: serif;
  font-size: 90px;
  font-weight: 700;
  transform: rotate(-12deg);
}

@media (max-width: 1080px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .archive-hero {
    min-height: 400px;
    background-position: 42% center;
  }

  .hero-description br {
    display: none;
  }

  .archive-section {
    padding: 26px 14px 18px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .festival-card {
    grid-template-columns: 38% 62%;
  }

  .people p {
    white-space: normal;
  }

  .quote {
    gap: 10px;
    padding-inline: 18px;
  }

  .quote span {
    min-width: 24px;
    width: 50px;
  }

  .quote p {
    text-align: center;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-card,
  .more-button {
    transition: none;
  }
}
