#top-header {
  width: 100%;
  --af-ink: #fff4ee;
  --af-gold: #f3cf85;
  font-family: IRYekan, Tahoma, sans-serif;
}
#top-header .af-slot {
  width: 100%;
  max-width: 1270px;
  margin-inline: auto;
  container: af-slot / inline-size;
}
#top-header .af-banner {
  --af-type: clamp(17px, 1.93cqw, 24px);
  --af-seal: clamp(18px, 2.35cqw, 30px);
  --af-gap: clamp(6px, .78cqw, 10px);
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: var(--af-gap);
  width: 100%;
  aspect-ratio: 1270 / 45;
  color: var(--af-ink);
  text-decoration: none;
  font: 700 var(--af-type)/1.22 IRYekan, Tahoma, sans-serif;
  background: radial-gradient(ellipse at 78% 110%, #55153f 0, transparent 42%),
    linear-gradient(112deg, #3d1245, #20071f 34%, #210920 67%, #431343);
  box-shadow: inset 0 1px #fa8ac54a, inset 0 -1px #e6c57b70;
}
#top-header .af-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(#f56eaa26 1px, transparent 1px) 0 0 / 15px 15px,
    linear-gradient(90deg, #f56eaa26 1px, transparent 1px) 0 0 / 15px 15px;
  mask-image: linear-gradient(90deg, black, transparent 39% 61%, black);
}
#top-header .af-ribbon {
  position: absolute; z-index: -1; top: 50%; overflow: hidden;
  width: max(0px, calc(50% - 7.2em)); height: .48em;
  border-block: 1px solid #ff9bd285;
  background: repeating-linear-gradient(118deg, transparent 0 14px, #ffc2e461 14px 15px, transparent 15px 20px),
    linear-gradient(90deg, #972276, #fa3297 65%, #a82481);
}
#top-header .af-left { left: -2px; transform-origin: right; transform: translateY(-50%) rotate(-1.8deg); }
#top-header .af-right { right: -2px; transform-origin: left; transform: translateY(-50%) rotate(1.8deg); }
#top-header .af-spark {
  width: var(--af-seal); height: var(--af-seal); flex: none; position: relative;
  background: linear-gradient(145deg, #ffe6dc, #ff82bf 35%, #ff2e93 80%);
  clip-path: polygon(50% 0,59% 24%,79% 9%,77% 33%,100% 31%,85% 50%,100% 68%,76% 67%,80% 91%,59% 77%,50% 100%,41% 77%,21% 91%,24% 67%,0 69%,15% 50%,0 31%,24% 33%,21% 9%,41% 24%);
}
#top-header .af-spark::after {
  content: ""; position: absolute; inset: 20% 30%; background: #340c30;
  clip-path: polygon(69% 0, 5% 58%, 44% 58%, 28% 100%, 96% 40%, 57% 40%);
}
#top-header .af-copy { display: inline-flex; align-items: center; gap: .28em; white-space: nowrap; }
#top-header .af-reel { display: grid; overflow: hidden; align-items: center; height: 1.38em; }
#top-header .af-word { grid-area: 1 / 1; text-align: left; line-height: 1.38; }
#top-header .af-first { animation: ash-friday-first 4.4s ease-in-out infinite; }
#top-header .af-next { color: #ffc5de; animation: ash-friday-next 4.4s ease-in-out infinite; }
#top-header .af-fixed { color: var(--af-gold); }
#top-header .af-arrow {
  width: .70em; height: .44em; flex: none; position: relative;
  background: linear-gradient(var(--af-gold),var(--af-gold)) center / 100% 1.5px no-repeat;
}
#top-header .af-arrow::after {
  content: ""; position: absolute; top: 50%; left: 0; width: .29em; height: .29em;
  border: solid var(--af-gold); border-width: 0 0 1.5px 1.5px; transform: translateY(-50%) rotate(45deg);
}
#top-header .af-banner:focus-visible { outline: 2px solid var(--af-gold); outline-offset: -3px; }
@keyframes ash-friday-first {
  0%, 38%, 100% { transform: translateY(0); opacity: 1; }
  49%, 88% { transform: translateY(-105%); opacity: 0; }
  89% { transform: translateY(105%); opacity: 0; }
}
@keyframes ash-friday-next {
  0%, 38% { transform: translateY(105%); opacity: 0; }
  49%, 88% { transform: translateY(0); opacity: 1; }
  99%, 100% { transform: translateY(-105%); opacity: 0; }
}
@container af-slot (max-width: 768px) {
  #top-header .af-banner { --af-type: clamp(20px, 5.6cqw, 22px); --af-seal: 24px; --af-gap: 7px; height: 38px; aspect-ratio: auto; }
  #top-header .af-ribbon { width: max(0px, calc(50% - 6.35em)); }
}
@media (prefers-reduced-motion: reduce) {
  #top-header .af-word { animation: none; }
  #top-header .af-next { visibility: hidden; }
}
