body { background-image: url("../img/editorial/sky-background-v10.jpg"); }
.catalog::before { background-image: url("../img/editorial/morning-mountains-v10.jpg"); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-field .ui-icon { font-size: 17px; }
.primary-button .ui-icon { font-size: 15px; }
.menu-toggle .ui-icon { font-size: 21px; }
.plane-mark .ui-icon { fill: currentColor; stroke: none; }
.featured-stamp .ui-icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.editor-note .ui-icon {
  position: absolute;
  top: 4px;
  left: 27px;
  width: 17px;
  height: 17px;
  color: #f4b62f;
  fill: currentColor;
  stroke: none;
}

.newsletter-item { margin-inline: -31px; padding-inline: 31px; }

.newsletter-loader {
  display: grid;
  place-content: center;
  min-height: 784px;
  color: #315a94;
  text-align: center;
  contain: layout paint;
}

.newsletter-loader__flight {
  position: relative;
  width: min(320px, 72vw);
  height: 92px;
  margin-inline: auto;
}

.newsletter-loader__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #315a94;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: loader-trail 1.6s linear infinite;
}

.newsletter-loader__plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  color: var(--ink);
  filter: drop-shadow(-3px 4px 2px rgba(42, 63, 84, 0.18));
  offset-path: path("M8 67 C76 67 92 18 158 41 S244 85 312 26");
  offset-rotate: auto 19.3deg;
  animation: loader-flight 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: offset-distance, opacity;
}

.newsletter-loader__plane .ui-icon {
  width: 100%;
  height: 100%;
  fill: #f8f8f4;
  stroke: #bdc9d6;
  stroke-width: 0.7;
}

.newsletter-loader p {
  margin: 10px 0 0;
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 600;
}

@keyframes loader-flight {
  0% { opacity: 0; offset-distance: -15%; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; offset-distance: 115%; }
}

@keyframes loader-trail { to { stroke-dashoffset: -28; } }

.load-more-button {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 40px;
  margin: 13px auto 3px;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #b9c9d9;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.load-more-button:hover { background: #fff; border-color: #6f88a9; transform: translateY(-1px); }
.load-more-button:active { transform: translateY(0); }
.load-more-button:focus-visible { outline: 3px solid rgba(49, 94, 152, 0.3); outline-offset: 2px; }
.load-more-button[hidden] { display: none; }

@media (max-width: 900px) {
  .newsletter-item { margin-inline: -22px; padding-inline: 22px; }
  .newsletter-loader { min-height: 740px; }
}

@media (max-width: 620px) {
  body { background-image: url("../img/editorial/sky-background-mobile-v11.jpg"); }
  .newsletter-item { margin-inline: -16px; padding-inline: 16px; }
  .newsletter-loader { min-height: 663px; }
  .newsletter-loader__flight { width: min(290px, 78vw); }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-loader__trail { animation: none; }
  .newsletter-loader__plane { animation: none; opacity: 1; offset-distance: 50%; }
  .load-more-button { transition-duration: 0.01ms; }
}
