/* Homepage aligned with subpage visual system */
.readable-home {
  background: var(--clr-bg);
  color: var(--clr-text);
}

.readable-home .grain {
  display: none;
}

.readable-home #stars-canvas {
  opacity: 0.28;
}

.readable-home .site-header {
  background: rgba(3, 4, 10, 0.9);
  border-bottom: 1px solid var(--clr-border);
}

.readable-home,
.readable-home .main-content {
  overflow-x: hidden;
}

.readable-home .main-content {
  background: var(--clr-bg);
}

.home-page-hero,
.home-entry-section,
.home-content-section {
  overflow-x: hidden;
  overflow-x: clip;
}

.home-hero-grid,
.home-hero-copy,
.home-hero-issue,
.home-hero-issue > div,
.home-entry-grid,
.home-entry-card,
.home-blog-layout,
.home-featured-issue,
.blog-featured-body,
.blog-card,
.blog-card-body,
.sidebar-widget {
  min-width: 0;
}

.readable-home h1,
.readable-home h2,
.readable-home h3,
.readable-home p,
.readable-home a,
.readable-home strong {
  overflow-wrap: break-word;
  word-break: normal;
}

.readable-home h1,
.readable-home h2,
.readable-home h3,
.readable-home p,
.readable-home strong {
  hyphens: auto;
}

.home-page-hero {
  padding: 9rem 0 4rem;
  text-align: left;
  isolation: isolate;
}

.home-page-hero .page-hero-bg {
  background:
    radial-gradient(ellipse 64% 54% at 24% 44%, rgba(124, 92, 252, 0.18) 0%, transparent 68%),
    radial-gradient(ellipse 42% 36% at 78% 52%, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 3rem;
  align-items: center;
}

.home-hero-copy {
  text-align: left;
}

.home-hero-copy .page-title {
  margin-bottom: 1rem;
  animation: none;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: 0;
}

.home-hero-copy .page-subtitle {
  max-width: 640px;
  margin: 0;
  color: var(--clr-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  animation: none;
}

.home-hero-copy .page-subtitle span,
.home-hero-issue p span {
  display: block;
}

.home-primary-actions,
.home-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.home-hero-issue {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.home-hero-issue img,
.home-featured-cover img,
.home-issue-thumb img {
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.home-hero-issue img {
  width: 132px;
  aspect-ratio: 0.707;
}

.home-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--clr-accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero-issue h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.22;
}

.home-hero-issue p,
.home-sidebar p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-entry-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-entry-card {
  display: block;
  min-height: 178px;
  padding: 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, background 0.25s;
}

.home-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 252, 0.32);
  background: rgba(124, 92, 252, 0.055);
}

.home-entry-card span {
  display: block;
  margin-bottom: 1rem;
  color: var(--clr-accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-entry-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--clr-text);
  font-size: 1rem;
}

.home-entry-card p {
  color: var(--clr-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.home-content-section {
  padding-top: 2rem;
}

.home-blog-layout {
  gap: 2.5rem;
}

.home-featured-issue {
  grid-template-columns: 0.78fr 1fr;
}

.home-featured-cover {
  min-height: 310px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: radial-gradient(ellipse at 48% 44%, rgba(0, 212, 255, 0.18) 0%, rgba(8, 10, 22, 0.98) 72%);
}

.home-featured-cover img {
  width: min(220px, 72%);
  aspect-ratio: 0.707;
}

.home-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-issue-thumb {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(124, 92, 252, 0.22) 0%, rgba(5, 5, 15, 0.94) 72%);
}

.home-issue-thumb img {
  width: 116px;
  aspect-ratio: 0.707;
}

.home-sidebar .sidebar-widget {
  background: rgba(255, 255, 255, 0.025);
}

.readable-home .footer-mini {
  background: rgba(3, 4, 10, 1);
}

.readable-home .btn-primary,
.readable-home .btn-ghost {
  line-height: 1.2;
}

.readable-home .btn-primary::after,
.readable-home .btn-ghost::after {
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(255, 255, 255, 0.1) 0%, transparent 58%);
}

.readable-home .btn-primary:hover,
.readable-home .btn-ghost:hover {
  transform: translateY(-1px);
}

.readable-home .reveal,
.readable-home .reveal-left,
.readable-home .reveal-right,
.readable-home .reveal-scale {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1080px) {
  .home-hero-grid,
  .home-blog-layout,
  .home-featured-issue {
    grid-template-columns: 1fr;
  }

  .home-hero-issue {
    max-width: 640px;
  }

  .home-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-page-hero {
    padding: 6.4rem 0 2.25rem;
  }

  .home-hero-grid {
    gap: 2rem;
  }

  .home-hero-copy .page-title {
    font-size: clamp(2.25rem, 10vw, 2.55rem);
    line-height: 1.08;
  }

  .home-hero-copy .page-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .home-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .home-primary-actions a,
  .home-card-actions a {
    width: 100%;
    text-align: center;
  }

  .home-hero-issue {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.9rem;
  }

  .home-hero-issue img {
    width: min(148px, 58vw);
    justify-self: center;
    animation: none;
  }

  .home-hero-issue h2 {
    font-size: 1.22rem;
  }

  .home-entry-grid,
  .home-support-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-section {
    padding-bottom: 2.25rem;
  }

  .home-content-section {
    padding-top: 1.25rem;
  }

  .home-entry-card,
  .blog-card-body,
  .blog-featured-body,
  .sidebar-widget {
    padding: 1.15rem;
  }

  .home-featured-cover {
    min-height: 230px;
    padding: 1rem;
  }

  .home-featured-cover img {
    width: min(180px, 68%);
    animation: none;
  }

  .home-issue-thumb img {
    animation: none;
  }

  .home-card-actions {
    gap: 0.65rem;
    margin-top: 1.15rem;
  }
}

@media (max-width: 460px) {
  .home-page-hero {
    padding-top: 6rem;
  }

  .home-hero-copy .page-title {
    font-size: clamp(2.05rem, 11vw, 2.25rem);
  }

  .home-hero-issue {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .home-hero-issue img {
    width: min(136px, 56vw);
  }

  .home-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .home-entry-card {
    min-height: auto;
  }
}

/* Awwwards-inspired cosmic motion layer */
.home-cosmos-layer {
  position: absolute;
  inset: 72px 0 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  max-width: 100%;
  opacity: 0.52;
}

.cosmos-orbit {
  position: absolute;
  border: 1px solid rgba(124, 92, 252, 0.12);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.42;
}

.orbit-one {
  width: 520px;
  height: 170px;
  right: 6%;
  top: 15%;
  animation: orbitBreathe 9s ease-in-out infinite;
}

.orbit-two {
  width: 360px;
  height: 118px;
  left: 8%;
  bottom: 12%;
  border-color: rgba(0, 212, 255, 0.11);
  animation: orbitBreathe 11s ease-in-out infinite reverse;
}

.cosmos-planet {
  position: absolute;
  width: 92px;
  height: 92px;
  right: 14%;
  top: 29%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), rgba(158, 232, 255, 0.55) 18%, transparent 20%),
    radial-gradient(circle at 58% 62%, rgba(124, 92, 252, 0.84), rgba(0, 212, 255, 0.22) 58%, rgba(3, 4, 10, 0.05) 70%);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.14), inset -18px -18px 30px rgba(3, 4, 10, 0.48);
  opacity: 0.16;
  animation: planetDrift 14s ease-in-out infinite;
}

.cosmos-meteor {
  position: absolute;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 232, 255, 0.9), transparent);
  opacity: 0;
  transform: rotate(-22deg);
}

.meteor-one {
  left: -12%;
  top: 26%;
  animation: meteorFlight 8s linear infinite 1.2s;
}

.meteor-two {
  left: 18%;
  top: 68%;
  animation: meteorFlight 12s linear infinite 5s;
}

.home-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 32%, rgba(158,232,255,0.6) 0 1px, transparent 1px),
    radial-gradient(circle at 44% 72%, rgba(255,255,255,0.38) 0 1px, transparent 1px),
    radial-gradient(circle at 86% 78%, rgba(124,92,252,0.62) 0 1px, transparent 1px);
  background-size: 210px 210px, 280px 280px, 340px 340px, 260px 260px;
  opacity: 0.16;
  animation: starfieldDrift 40s linear infinite;
  pointer-events: none;
}

.home-hero-grid,
.home-entry-section .container,
.home-content-section .container {
  position: relative;
  z-index: 2;
}

.home-hero-copy .section-eyebrow,
.home-label,
.home-entry-card span,
.sidebar-widget h4 {
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.14);
}

.home-hero-issue,
.home-entry-card,
.blog-card,
.home-featured-issue,
.sidebar-widget {
  position: relative;
  overflow: hidden;
}

.home-hero-issue::before,
.home-entry-card::before,
.blog-card::before,
.home-featured-issue::before,
.sidebar-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(0, 212, 255, 0.07), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.home-hero-issue:hover::before,
.home-entry-card:hover::before,
.blog-card:hover::before,
.home-featured-issue:hover::before,
.sidebar-widget:hover::before {
  opacity: 0.55;
}

.home-entry-card::after,
.blog-card::after,
.sidebar-widget::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  transform: translateX(-120%);
  opacity: 0;
}

.home-entry-card:hover::after,
.blog-card:hover::after,
.sidebar-widget:hover::after {
  animation: scanLine 0.9s ease forwards;
}

.home-hero-issue img,
.home-featured-cover img,
.home-issue-thumb img {
  animation: coverFloat 10s ease-in-out infinite;
}

.home-featured-cover,
.home-issue-thumb,
.blog-card-img {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-featured-cover::before,
.home-issue-thumb::before,
.blog-card-img::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 70px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.62;
  animation: orbitSweep 9s ease-in-out infinite;
}

.home-featured-cover img,
.home-issue-thumb img {
  position: relative;
  z-index: 1;
}

.home-js .home-motion {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out-expo), border-color 0.25s, background 0.25s;
  transition-delay: var(--motion-delay, 0ms);
}

.home-js .home-motion.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes starfieldDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 210px 120px, -280px 160px, 340px -180px, -260px -140px; }
}

@keyframes orbitBreathe {
  0%, 100% { transform: rotate(-18deg) scale(1); opacity: 0.26; }
  50% { transform: rotate(-14deg) scale(1.03); opacity: 0.48; }
}

@keyframes planetDrift {
  0%, 100% { transform: translate3d(var(--planet-x, 0), var(--planet-y, 0), 0) scale(1); }
  50% { transform: translate3d(calc(var(--planet-x, 0) - 14px), calc(var(--planet-y, 0) + 10px), 0) scale(1.05); }
}

@keyframes meteorFlight {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-22deg); }
  8% { opacity: 0.36; }
  20% { opacity: 0; transform: translate3d(780px, 230px, 0) rotate(-22deg); }
  100% { opacity: 0; transform: translate3d(780px, 230px, 0) rotate(-22deg); }
}

@keyframes coverFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes orbitSweep {
  0%, 100% { transform: rotate(-18deg) scale(0.98); opacity: 0.16; }
  50% { transform: rotate(-12deg) scale(1.03); opacity: 0.38; }
}

@keyframes scanLine {
  0% { opacity: 0; transform: translateX(-120%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@media (max-width: 720px) {
  .home-cosmos-layer {
    top: 68px;
    opacity: 0.32;
  }

  .orbit-one,
  .orbit-two,
  .cosmos-meteor {
    display: none;
  }

  .cosmos-planet {
    right: 8px;
    top: 16%;
    width: 56px;
    height: 56px;
    opacity: 0.1;
    animation: none;
  }

  .home-featured-cover::before,
  .home-issue-thumb::before,
  .blog-card-img::before {
    display: none;
  }

  .home-page-hero::before {
    opacity: 0.1;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-hero::before,
  .cosmos-orbit,
  .cosmos-planet,
  .cosmos-meteor,
  .home-hero-issue img,
  .home-featured-cover img,
  .home-issue-thumb img,
  .home-featured-cover::before,
  .home-issue-thumb::before,
  .blog-card-img::before {
    animation: none !important;
  }

  .home-js .home-motion {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Codex premium/readability overrides */
.readable-home #stars-canvas {
  opacity: 0.34;
  filter: saturate(1.14);
}

.readable-home .site-header {
  background: rgba(3, 4, 10, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.home-page-hero::after {
  content: "";
  position: absolute;
  top: 7rem;
  right: max(-7rem, -7vw);
  z-index: 1;
  width: clamp(290px, 36vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 252, 0.14);
  background:
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 212, 255, 0.05) 61%, transparent 63%),
    conic-gradient(from 38deg, transparent 0 18%, rgba(0, 212, 255, 0.24) 20%, transparent 22% 58%, rgba(124, 92, 252, 0.22) 60%, transparent 63% 100%);
  mask-image: radial-gradient(circle, transparent 47%, #000 48%, #000 56%, transparent 57%);
  pointer-events: none;
  opacity: 0.62;
  animation: codexPremiumOrbit 38s linear infinite;
}

.cosmos-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.82);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.62);
}

.orbit-two::after {
  left: auto;
  right: -4px;
  background: rgba(240,180,0, 0.72);
  box-shadow: 0 0 18px rgba(240,180,0, 0.42);
}

.home-hero-copy .page-title {
  animation: codexPremiumTitleIn 0.9s var(--ease-out-expo) both;
  text-shadow: 0 0 34px rgba(124, 92, 252, 0.18);
}

.home-hero-copy .page-subtitle,
.home-primary-actions,
.home-hero-issue {
  animation: codexPremiumFadeUp 0.9s var(--ease-out-expo) both;
}

.home-primary-actions { animation-delay: 0.08s; }
.home-hero-issue { animation-delay: 0.14s; }

.home-entry-card:focus-visible,
.home-hero-issue a:focus-visible,
.home-card-actions a:focus-visible,
.home-primary-actions a:focus-visible,
.home-sidebar a:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.72);
  outline-offset: 4px;
}

@keyframes codexPremiumOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes codexPremiumTitleIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes codexPremiumFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .home-page-hero > .container,
  .home-entry-section > .container,
  .home-content-section > .container {
    width: calc(100% - 2.5rem);
    padding-left: 0;
    padding-right: 0;
  }

  .home-primary-actions,
  .home-card-actions,
  .home-primary-actions a,
  .home-card-actions a,
  .home-hero-issue,
  .home-entry-card,
  .blog-card,
  .home-featured-issue,
  .home-sidebar .sidebar-widget {
    max-width: 100%;
  }

  .home-primary-actions a,
  .home-card-actions a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  .home-page-hero::after {
    top: 4.4rem;
    right: -9rem;
    opacity: 0.26;
  }

  .home-hero-issue:hover,
  .home-entry-card:hover,
  .blog-card:hover,
  .home-sidebar .sidebar-widget:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-hero::after,
  .home-hero-copy .page-title,
  .home-hero-copy .page-subtitle,
  .home-primary-actions,
  .home-hero-issue {
    animation: none !important;
  }
}

/* Readability guard: JS effects must never hide homepage content */
.home-js .home-motion,
.home-js .home-motion.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    color 0.25s !important;
}

@keyframes codexPremiumTitleIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero must never depend on scroll observers for visibility. */
.home-page-hero .home-motion {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0ms !important;
}

/* Mobile edge breathing room for fixed-format homepage cards */
@media (max-width: 720px) {
  .home-primary-actions a,
  .home-card-actions a,
  .home-hero-issue,
  .home-entry-card,
  .blog-card,
  .home-featured-issue,
  .home-sidebar .sidebar-widget {
    width: calc(100% - 1.25rem);
  }
}

/* Photographic cosmos hero */
.home-page-hero {
  min-height: min(820px, 82vh);
  background: #02030a;
}

.home-page-hero .page-hero-bg {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.94) 0%, rgba(2, 3, 10, 0.72) 38%, rgba(2, 3, 10, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.38) 0%, rgba(2, 3, 10, 0.1) 48%, rgba(2, 3, 10, 0.92) 100%),
    radial-gradient(ellipse 55% 42% at 76% 38%, rgba(0, 212, 255, 0.22), transparent 72%),
    url("../img/slide-1.webp") center center / cover no-repeat;
  opacity: 1;
  transform: scale(1.035);
  filter: saturate(1.12) contrast(1.06);
  animation: homeHeroPhotoDrift 32s ease-in-out infinite alternate;
}

.home-page-hero::before {
  mix-blend-mode: screen;
  opacity: 0.22;
}

.home-page-hero::after {
  box-shadow: 0 0 90px rgba(0, 212, 255, 0.08);
}

.home-hero-copy {
  padding: 1.2rem 0;
}

.home-hero-copy .page-title,
.home-hero-copy .page-subtitle,
.home-hero-copy .section-eyebrow {
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(0, 212, 255, 0.12);
}

.home-hero-issue {
  background:
    linear-gradient(135deg, rgba(7, 10, 24, 0.82), rgba(10, 14, 32, 0.58)),
    rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

@keyframes homeHeroPhotoDrift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); }
}

@media (max-width: 720px) {
  .home-page-hero {
    min-height: auto;
  }

  .home-page-hero .page-hero-bg {
    background:
      linear-gradient(180deg, rgba(2, 3, 10, 0.92) 0%, rgba(2, 3, 10, 0.66) 45%, rgba(2, 3, 10, 0.94) 100%),
      linear-gradient(90deg, rgba(2, 3, 10, 0.78), rgba(2, 3, 10, 0.52)),
      url("../img/slide-1.webp") center top / cover no-repeat;
    transform: scale(1.02);
    animation: none;
  }

  .home-hero-copy {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-hero .page-hero-bg {
    animation: none !important;
  }
}

/* Mobile layout polish after photographic hero */
@media (max-width: 720px) {
  .home-page-hero > .container,
  .home-entry-section > .container,
  .home-content-section > .container {
    width: calc(100% - 2.5rem);
    max-width: calc(100% - 2.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  .home-primary-actions,
  .home-card-actions {
    width: 100%;
  }

  .home-primary-actions a,
  .home-card-actions a,
  .home-hero-issue,
  .home-entry-card,
  .blog-card,
  .home-featured-issue,
  .home-sidebar .sidebar-widget {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Hard mobile viewport guard */
@media (max-width: 720px) {
  .home-hero-grid,
  .home-entry-grid,
  .home-blog-layout,
  .home-support-grid,
  .home-primary-actions,
  .home-card-actions {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  .home-primary-actions a,
  .home-card-actions a,
  .home-hero-issue,
  .home-entry-card,
  .blog-card,
  .home-featured-issue,
  .home-sidebar .sidebar-widget {
    width: calc(100vw - 2.5rem) !important;
    max-width: calc(100vw - 2.5rem) !important;
  }
}

/* Cosmic fireworks and deep parallax */
.home-parallax-ready .home-page-hero {
  --photo-x: 0px;
  --photo-y: 0px;
  --photo-scroll: 0px;
  --layer-x: 0px;
  --layer-y: 0px;
  --star-x: 0px;
  --star-y: 0px;
  --copy-x: 0px;
  --copy-y: 0px;
  perspective: 1200px;
}

.home-parallax-ready .home-page-hero .page-hero-bg {
  transform: translate3d(var(--photo-x), calc(var(--photo-y) + var(--photo-scroll)), 0) scale(1.09) !important;
  transform-origin: center center;
  animation: homeHeroPhotoBloom 18s ease-in-out infinite alternate !important;
  will-change: transform, filter, opacity;
}

.home-parallax-ready .home-page-hero::before {
  transform: translate3d(var(--star-x), var(--star-y), 0);
  will-change: transform, opacity;
}

.home-parallax-ready .home-cosmos-layer {
  transform: translate3d(var(--layer-x), var(--layer-y), 0);
  will-change: transform;
  opacity: 0.72;
}

.home-parallax-ready .home-hero-copy {
  transform: translate3d(var(--copy-x), var(--copy-y), 0);
  will-change: transform;
}

.home-parallax-ready .home-page-hero .home-hero-issue {
  transform: perspective(980px) translate3d(var(--issue-x, 0px), var(--issue-y, 0px), 0) rotateX(var(--issue-tilt-x, 0deg)) rotateY(var(--issue-tilt-y, 0deg)) !important;
  transform-style: preserve-3d;
  will-change: transform;
}

.cosmos-flare,
.cosmos-comet,
.cosmos-spark,
.cosmos-pop {
  position: absolute;
  pointer-events: none;
}

.cosmos-flare {
  width: clamp(160px, 18vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.24) 0%, rgba(124, 92, 252, 0.12) 26%, transparent 62%);
  filter: blur(1px);
  opacity: 0;
  mix-blend-mode: screen;
  animation: cosmicFlareBloom 8s ease-in-out infinite;
}

.flare-one {
  left: 54%;
  top: 16%;
}

.flare-two {
  right: 5%;
  top: 38%;
  width: clamp(140px, 14vw, 260px);
  animation-delay: 3.2s;
}

.cosmos-spark {
  left: var(--spark-left);
  top: var(--spark-top);
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  background: rgba(232, 250, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.9), 0 0 26px rgba(124, 92, 252, 0.45);
  opacity: 0;
  transform: scale(0.5);
  animation: cosmicSpark 5.4s ease-in-out infinite;
  animation-delay: var(--spark-delay);
  mix-blend-mode: screen;
}

.cosmos-comet {
  width: 210px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), rgba(255, 255, 255, 0.96), transparent);
  border-radius: 999px;
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.52));
  transform: rotate(-18deg);
}

.cosmos-comet::after {
  content: "";
  position: absolute;
  right: 32px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 34px rgba(0, 212, 255, 0.55);
}

.comet-one {
  left: -18%;
  top: 18%;
  animation: cosmicComet 7.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite 0.6s;
}

.comet-two {
  left: 12%;
  top: 58%;
  animation: cosmicComet 9.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite 3.9s;
}

.comet-three {
  left: -22%;
  top: 76%;
  animation: cosmicComet 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite 6.4s;
}

.cosmos-pop {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.9);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45), 0 0 26px rgba(124, 92, 252, 0.55);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0.95;
  animation: cosmicPop 0.85s ease-out forwards;
}

@keyframes homeHeroPhotoBloom {
  from { filter: saturate(1.08) contrast(1.04) brightness(0.9); }
  to { filter: saturate(1.24) contrast(1.1) brightness(1); }
}

@keyframes cosmicSpark {
  0%, 100% { opacity: 0; transform: scale(0.42); }
  10% { opacity: 0.95; transform: scale(1.8); }
  18% { opacity: 0.2; transform: scale(0.9); }
  28% { opacity: 0.72; transform: scale(1.28); }
  42% { opacity: 0; transform: scale(0.55); }
}

@keyframes cosmicFlareBloom {
  0%, 100% { opacity: 0; transform: scale(0.82); }
  38% { opacity: 0.72; transform: scale(1.08); }
  62% { opacity: 0.18; transform: scale(1.22); }
}

@keyframes cosmicComet {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg) scaleX(0.6); }
  8% { opacity: 0.95; }
  22% { opacity: 0; transform: translate3d(118vw, 34vh, 0) rotate(-18deg) scaleX(1.15); }
  100% { opacity: 0; transform: translate3d(118vw, 34vh, 0) rotate(-18deg) scaleX(1.15); }
}

@keyframes cosmicPop {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.25); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.48), 0 0 18px rgba(124, 92, 252, 0.55); }
  55% { opacity: 0.64; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); box-shadow: 0 0 0 22px rgba(0, 212, 255, 0), 0 0 38px rgba(124, 92, 252, 0); }
}

@media (max-width: 720px) {
  .home-parallax-ready .home-page-hero .page-hero-bg {
    transform: scale(1.03) !important;
    animation: none !important;
  }

  .home-parallax-ready .home-cosmos-layer,
  .home-parallax-ready .home-hero-copy,
  .home-parallax-ready .home-page-hero .home-hero-issue {
    transform: none !important;
  }

  .cosmos-flare,
  .cosmos-comet,
  .cosmos-pop {
    display: none;
  }

  .cosmos-spark {
    opacity: 0;
    animation-duration: 7s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-parallax-ready .home-page-hero .page-hero-bg,
  .home-parallax-ready .home-cosmos-layer,
  .home-parallax-ready .home-hero-copy,
  .home-parallax-ready .home-page-hero .home-hero-issue {
    transform: none !important;
  }

  .cosmos-flare,
  .cosmos-comet,
  .cosmos-spark,
  .cosmos-pop {
    display: none !important;
    animation: none !important;
  }
}

/* More natural meteor/comet streaks: short, angled, rare, head-led. */
.cosmos-comet {
  width: clamp(120px, 14vw, 210px);
  height: 12px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.96) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.02) 14%, rgba(0, 212, 255, 0.22) 58%, rgba(232, 250, 255, 0.9) 100%);
  border-radius: 999px;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.42));
  transform-origin: 100% 50%;
  mix-blend-mode: screen;
}

.cosmos-comet::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72));
  transform: translateY(-50%);
}

.cosmos-comet::after {
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(0, 212, 255, 0.58),
    0 0 46px rgba(124, 92, 252, 0.28);
}

.comet-one {
  left: -9%;
  top: 17%;
  --meteor-angle: -24deg;
  --meteor-x: 48vw;
  --meteor-y: 16vh;
  --meteor-scale: 0.96;
  animation: cosmicComet 12.5s ease-out infinite 2.1s;
}

.comet-two {
  left: 18%;
  top: 10%;
  --meteor-angle: -33deg;
  --meteor-x: 42vw;
  --meteor-y: 22vh;
  --meteor-scale: 0.82;
  animation: cosmicComet 15.5s ease-out infinite 7.4s;
}

.comet-three {
  left: 2%;
  top: 63%;
  --meteor-angle: 12deg;
  --meteor-x: 44vw;
  --meteor-y: -10vh;
  --meteor-scale: 0.72;
  animation: cosmicComet 18s ease-out infinite 11.8s;
}

@keyframes cosmicComet {
  0%, 72%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--meteor-angle, -24deg)) scaleX(0.55) scale(var(--meteor-scale, 1));
  }

  5% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--meteor-angle, -24deg)) scaleX(0.55) scale(var(--meteor-scale, 1));
  }

  9% {
    opacity: 0.82;
    transform: translate3d(7vw, 2vh, 0) rotate(var(--meteor-angle, -24deg)) scaleX(0.92) scale(var(--meteor-scale, 1));
  }

  15% {
    opacity: 0.62;
  }

  22% {
    opacity: 0;
    transform: translate3d(var(--meteor-x, 48vw), var(--meteor-y, 16vh), 0) rotate(var(--meteor-angle, -24deg)) scaleX(1.08) scale(var(--meteor-scale, 1));
  }
}

/* Final comet motion correction: rare straight sky streaks, not cursor-driven objects. */
/* Ruch wzdluz osi smugi: najpierw obrot, potem przesuniecie w osi X, wiec glowa zawsze prowadzi (07.10). */
.cosmos-meteor {
  display: none;
}

.home-parallax-ready .home-cosmos-layer {
  opacity: 0.6;
}

.cosmos-comet {
  width: clamp(150px, 16vw, 250px);
  height: 14px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.98) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.02) 18%, rgba(0, 212, 255, 0.18) 62%, rgba(232, 250, 255, 0.88) 100%);
  border-radius: 999px;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.38));
  transform-origin: 100% 50%;
  mix-blend-mode: screen;
  animation-name: cosmicComet;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cosmos-comet::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 36%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68));
  transform: translateY(-50%);
}

.cosmos-comet::after {
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.92),
    0 0 28px rgba(0, 212, 255, 0.5),
    0 0 44px rgba(124, 92, 252, 0.24);
}

.comet-one {
  left: -22%;
  top: 18%;
  --meteor-angle: 14deg;
  --meteor-dist: 80vw;
  --meteor-scale: 0.92;
  animation-duration: 26s;
  animation-delay: 3.2s;
}

.comet-two {
  left: -18%;
  top: 42%;
  --meteor-angle: 18deg;
  --meteor-dist: 72vw;
  --meteor-scale: 0.78;
  animation-duration: 34s;
  animation-delay: 14s;
}

.comet-three {
  left: 10%;
  top: 70%;
  --meteor-angle: 10deg;
  --meteor-dist: 60vw;
  --meteor-scale: 0.66;
  animation-duration: 42s;
  animation-delay: 24s;
}

@keyframes cosmicComet {
  0%, 76%, 100% {
    opacity: 0;
    transform: rotate(var(--meteor-angle, 14deg)) translate3d(0, 0, 0) scaleX(0.82) scale(var(--meteor-scale, 1));
  }

  80% {
    opacity: 0;
    transform: rotate(var(--meteor-angle, 14deg)) translate3d(0, 0, 0) scaleX(0.82) scale(var(--meteor-scale, 1));
  }

  83% {
    opacity: 0.82;
  }

  90% {
    opacity: 0.58;
  }

  97% {
    opacity: 0;
    transform: rotate(var(--meteor-angle, 14deg)) translate3d(var(--meteor-dist, 72vw), 0, 0) scaleX(1) scale(var(--meteor-scale, 1));
  }
}

/* Reference-driven homepage polish: editorial hero with one strong planet signal. */
.home-page-hero {
  min-height: min(860px, 88vh);
  padding: 8.4rem 0 3.2rem;
  background: #02040b;
}

.home-page-hero .page-hero-bg {
  background:
    linear-gradient(90deg, rgba(2, 4, 11, 0.98) 0%, rgba(2, 4, 11, 0.78) 42%, rgba(2, 4, 11, 0.46) 100%),
    linear-gradient(180deg, rgba(2, 4, 11, 0.18) 0%, rgba(2, 4, 11, 0.7) 80%, rgba(2, 4, 11, 1) 100%),
    url("../img/slide-1.webp") center center / cover no-repeat;
  filter: saturate(1.2) contrast(1.08) brightness(0.82);
  opacity: 1;
}

.home-parallax-ready .home-page-hero .page-hero-bg {
  transform: translate3d(var(--photo-x), calc(var(--photo-y) + var(--photo-scroll)), 0) scale(1.07) !important;
  animation: homeHeroPhotoBloom 22s ease-in-out infinite alternate !important;
}

.home-hero-grid {
  min-height: min(640px, 66vh);
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 440px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.home-hero-copy {
  max-width: 680px;
}

.home-hero-copy .section-eyebrow {
  color: #f0b400;
}

.home-hero-copy .page-title {
  max-width: 620px;
  font-size: clamp(4rem, 9vw, 7.2rem);
  line-height: 0.9;
  text-shadow:
    0 4px 34px rgba(0, 0, 0, 0.82),
    0 0 46px rgba(0, 212, 255, 0.16);
}

.home-hero-copy .page-subtitle {
  max-width: 560px;
  color: rgba(244, 247, 251, 0.82);
}

.home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
  max-width: 590px;
}

.home-hero-metrics a {
  min-width: 0;
  min-height: 74px;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero-metrics strong,
.home-hero-metrics span {
  display: block;
}

.home-hero-metrics strong {
  color: #f0b400;
  font-family: var(--font-heading);
  font-size: 1.32rem;
  line-height: 1.05;
}

.home-hero-metrics span {
  margin-top: 0.28rem;
  color: rgba(232, 234, 246, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-cosmos-layer {
  opacity: 0.68;
}

.home-cosmos-layer::before {
  content: "";
  position: absolute;
  right: clamp(-9rem, -3vw, 2rem);
  top: clamp(5.4rem, 11vh, 8.8rem);
  width: clamp(390px, 46vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 245, 213, 0.9) 0 2%, transparent 9%),
    radial-gradient(circle at 30% 24%, rgba(240, 180, 0, 0.74), transparent 19%),
    radial-gradient(circle at 62% 64%, rgba(124, 92, 252, 0.36), transparent 46%),
    linear-gradient(132deg, rgba(240, 180, 0, 0.86), rgba(167, 92, 61, 0.72) 32%, rgba(51, 35, 66, 0.9) 59%, rgba(6, 9, 22, 0.98) 78%);
  box-shadow:
    inset -70px -80px 110px rgba(0, 0, 0, 0.72),
    inset 28px 20px 70px rgba(240, 180, 0, 0.24),
    0 0 100px rgba(240, 180, 0, 0.12),
    0 0 150px rgba(0, 212, 255, 0.12);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home-cosmos-layer::after,
.home-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-cosmos-layer::after {
  right: clamp(-11rem, -4vw, 0rem);
  top: clamp(13rem, 28vh, 20rem);
  width: clamp(520px, 58vw, 920px);
  height: clamp(92px, 10vw, 150px);
  border: 1px solid rgba(240, 180, 0, 0.2);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-13deg);
  opacity: 0.62;
  filter: blur(0.2px);
}

.home-page-hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 42%;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 58% 18% at 70% 35%, rgba(240, 180, 0, 0.13), transparent 68%),
    linear-gradient(180deg, transparent, rgba(2, 4, 11, 0.96));
  mask-image: none;
  opacity: 1;
  animation: none;
}

.cosmos-planet {
  display: none;
}

.home-hero-issue {
  position: relative;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(7, 10, 24, 0.86), rgba(10, 14, 32, 0.62)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.home-hero-issue img {
  width: 150px;
}

.home-issue-highlights {
  display: grid;
  gap: 0.36rem;
  margin: 0.75rem 0 0.9rem;
  padding: 0;
  list-style: none;
}

.home-issue-highlights li {
  color: rgba(232, 234, 246, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-issue-highlights li::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #f0b400;
  box-shadow: 0 0 14px rgba(240, 180, 0, 0.36);
  vertical-align: 0.08rem;
}

.home-entry-section {
  position: relative;
  z-index: 3;
  margin-top: -2.25rem;
}

.home-entry-card {
  min-height: 160px;
  background: rgba(7, 10, 24, 0.72);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

@media (max-width: 1080px) {
  .home-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .home-hero-issue {
    max-width: 620px;
  }

  .home-cosmos-layer::before {
    right: -11rem;
    top: 6rem;
    width: min(560px, 78vw);
    opacity: 0.34;
  }

  .home-cosmos-layer::after {
    opacity: 0.24;
  }
}

@media (max-width: 720px) {
  .home-page-hero {
    padding: 6.2rem 0 2.7rem;
  }

  .home-page-hero .page-hero-bg {
    background:
      linear-gradient(180deg, rgba(2, 4, 11, 0.92), rgba(2, 4, 11, 0.82)),
      url("../img/slide-1.webp") center top / cover no-repeat;
  }

  .home-cosmos-layer::before {
    right: -12rem;
    top: 5.6rem;
    width: 420px;
    opacity: 0.22;
  }

  .home-cosmos-layer::after {
    display: none;
  }

  .home-hero-copy .page-title {
    font-size: clamp(2.9rem, 16vw, 4.2rem);
  }

  .home-hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .home-hero-metrics a {
    min-height: 58px;
  }

  .home-hero-issue {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .home-hero-issue img {
    width: 112px;
  }

  .home-entry-section {
    margin-top: 0;
  }
}

@media (max-width: 460px) {
  .home-hero-issue {
    grid-template-columns: 1fr;
  }

  .home-hero-issue img {
    width: min(148px, 58vw);
  }
}


/* Brand title must stay readable; never split Astronomia inside the word. */
.home-hero-copy .page-title {
  max-width: 760px;
  font-size: clamp(3.35rem, 6vw, 5.45rem);
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

@media (max-width: 720px) {
  .home-hero-copy .page-title {
    font-size: clamp(2.72rem, 12.8vw, 3.25rem);
    line-height: 0.94;
  }
}

/* Reference-faithful homepage layout, June 2026 iteration. */
.readable-home .site-header {
  background: rgba(2, 4, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-reference-hero {
  min-height: 100vh;
  padding: 7.4rem 0 2.4rem;
  background: #02040b;
  overflow: hidden;
}

.home-reference-hero .page-hero-bg {
  background:
    linear-gradient(90deg, rgba(2, 4, 11, 0.98) 0%, rgba(2, 4, 11, 0.77) 39%, rgba(2, 4, 11, 0.38) 100%),
    radial-gradient(ellipse 45% 34% at 68% 34%, rgba(240, 180, 0, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(2, 4, 11, 0.04) 0%, rgba(2, 4, 11, 0.72) 82%, #02040b 100%),
    url("../img/slide-1.webp") center center / cover no-repeat;
  filter: saturate(1.18) contrast(1.08) brightness(0.72);
  opacity: 1;
}

.home-reference-shell {
  position: relative;
  z-index: 3;
}

.home-reference-hero-grid {
  display: grid;
  min-height: min(590px, 62vh);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
  gap: clamp(2rem, 5vw, 5.4rem);
  align-items: center;
}

.home-reference-copy {
  max-width: 710px;
  text-align: left;
}

.home-reference-copy .section-eyebrow {
  color: #f0b400;
  letter-spacing: 0.28em;
}

.home-reference-copy .page-title {
  max-width: 720px;
  margin: 0 0 1.1rem;
  color: #f5f7ff;
  font-size: clamp(3.35rem, 6.8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.88), 0 0 46px rgba(0, 212, 255, 0.12);
}

.home-reference-copy .page-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(244, 247, 251, 0.8);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-reference-copy .home-primary-actions {
  margin-top: 1.35rem;
}

.home-hero-progress {
  display: grid;
  grid-template-columns: auto minmax(74px, 120px) auto;
  gap: 0.72rem;
  align-items: center;
  margin-top: 1.1rem;
  width: max-content;
  color: rgba(232, 234, 246, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
}

.home-hero-progress i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0b400 0 28%, rgba(255, 255, 255, 0.16) 28% 100%);
}

.home-reference-hero .home-cosmos-layer {
  inset: 72px 0 0;
  opacity: 1;
  transform: translate3d(var(--layer-x, 0px), var(--layer-y, 0px), 0);
}

.home-reference-hero .home-cosmos-layer::before {
  content: "";
  position: absolute;
  right: clamp(-10rem, -4vw, 1rem);
  top: clamp(4.2rem, 10vh, 7.4rem);
  width: clamp(430px, 47vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 230, 0.95) 0 1.6%, rgba(240, 180, 0, 0.8) 2.1%, transparent 9%),
    radial-gradient(circle at 36% 31%, rgba(240, 180, 0, 0.62), transparent 18%),
    radial-gradient(circle at 72% 68%, rgba(124, 92, 252, 0.35), transparent 46%),
    linear-gradient(130deg, rgba(251, 201, 103, 0.86), rgba(130, 70, 52, 0.78) 33%, rgba(38, 33, 67, 0.93) 59%, rgba(5, 8, 20, 0.98) 80%);
  box-shadow:
    inset -84px -88px 120px rgba(0, 0, 0, 0.78),
    inset 32px 20px 80px rgba(240, 180, 0, 0.2),
    0 0 120px rgba(240, 180, 0, 0.13),
    0 0 180px rgba(0, 212, 255, 0.1);
  opacity: 0.74;
}

.home-reference-hero .home-cosmos-layer::after {
  content: "";
  position: absolute;
  right: clamp(-12rem, -5vw, 0rem);
  top: clamp(13rem, 29vh, 20rem);
  width: clamp(550px, 60vw, 960px);
  height: clamp(96px, 10vw, 150px);
  border: 1px solid rgba(240, 180, 0, 0.18);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-13deg);
  opacity: 0.58;
  filter: blur(0.2px);
}

.home-reference-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 40%;
  background:
    radial-gradient(ellipse 54% 18% at 70% 24%, rgba(240, 180, 0, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, #02040b 86%);
  pointer-events: none;
}

.home-reference-issue {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.15rem;
  align-self: center;
  max-width: 440px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(9, 11, 26, 0.9), rgba(15, 18, 38, 0.68));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.home-reference-issue img {
  width: 150px;
  aspect-ratio: 0.707;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.home-reference-issue h2 {
  margin: 0.42rem 0 0.62rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.12;
}

.home-reference-issue p {
  color: rgba(232, 234, 246, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.72rem;
}

.home-reference-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  max-width: 780px;
  margin-left: auto;
  margin-top: -2.2rem;
}

.home-reference-actions a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: rgba(244, 247, 251, 0.82);
  background: rgba(7, 10, 24, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.home-top-stories {
  margin-top: 1.4rem;
}

.home-section-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.home-section-line h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-section-line a {
  color: rgba(158, 232, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-story-card {
  min-height: 164px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 10, 24, 0.78);
}

.home-story-card a {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(2, 4, 11, 0.12), rgba(2, 4, 11, 0.92));
}

.home-story-card span {
  margin-bottom: 0.34rem;
  color: #00d4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-story-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.home-story-card p {
  margin: 0;
  color: rgba(232, 234, 246, 0.7);
  font-size: 0.78rem;
  line-height: 1.48;
}

.story-black-hole {
  background: radial-gradient(circle at 50% 32%, rgba(255, 138, 68, 0.86), rgba(30, 12, 8, 0.76) 28%, rgba(3, 4, 10, 0.92) 58%);
}

.story-moon {
  background: radial-gradient(circle at 56% 24%, rgba(232, 234, 246, 0.9), rgba(74, 93, 116, 0.72) 24%, rgba(3, 4, 10, 0.94) 63%);
}

.story-telescope {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.32), rgba(5, 7, 16, 0.92)), url("../img/gallery-1.webp") center / cover;
}

.story-galaxy {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.28), rgba(5, 7, 16, 0.92)), url("../img/slide-1.webp") center / cover;
}

.home-dashboard-section {
  padding: 2rem 0 3rem;
  background: #02040b;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.home-dashboard-card {
  min-width: 0;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(7, 10, 24, 0.74);
  overflow: hidden;
}

.home-events-card {
  grid-row: span 2;
}

.home-sky-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(7, 10, 24, 0.78)), url("../../img/gallery-4.jpg") center / cover;
}

.home-subscription-card {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.22), rgba(7, 10, 24, 0.86));
}

.home-community-card {
  background: linear-gradient(135deg, rgba(240, 180, 0, 0.1), rgba(7, 10, 24, 0.84)), url("../../img/gallery-3.jpg") center / cover;
}

.home-dashboard-card h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.16;
}

.home-dashboard-card p {
  max-width: 420px;
  color: rgba(232, 234, 246, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}

.home-event-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-event-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-event-list time {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 6px;
  color: #07111b;
  background: #f0b400;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.home-event-list span {
  color: rgba(244, 247, 251, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-issue-section {
  padding-top: 1.2rem;
  background: #02040b;
}

.home-issue-section .home-featured-issue {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 1120px) {
  .home-reference-hero-grid,
  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .home-reference-issue {
    max-width: 620px;
  }

  .home-reference-actions {
    margin-left: 0;
    margin-top: 1rem;
  }

  .home-story-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-reference-hero {
    min-height: auto;
    padding: 6.1rem 0 1.4rem;
  }

  .home-reference-hero-grid {
    gap: 1.6rem;
  }

  .home-reference-copy .section-eyebrow {
    letter-spacing: 0.18em;
  }

  .home-reference-copy .page-title {
    max-width: 100%;
    font-size: clamp(2.5rem, 11.6vw, 3.45rem);
    line-height: 0.98;
  }

  .home-reference-copy .page-subtitle {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .home-reference-hero .home-cosmos-layer::before {
    right: -15rem;
    top: 5.5rem;
    width: 430px;
    opacity: 0.2;
  }

  .home-reference-hero .home-cosmos-layer::after,
  .home-hero-progress {
    display: none;
  }

  .home-reference-issue {
    grid-template-columns: 126px minmax(0, 1fr);
    padding: 0.9rem;
  }

  .home-reference-issue img {
    width: 126px;
  }

  .home-reference-actions,
  .home-story-row {
    grid-template-columns: 1fr;
  }

  .home-reference-actions a,
  .home-story-card,
  .home-story-card a {
    min-height: 116px;
  }

  .home-dashboard-section {
    padding-top: 1rem;
  }
}

@media (max-width: 460px) {
  .home-reference-issue {
    grid-template-columns: 1fr;
  }

  .home-reference-issue img {
    width: min(164px, 58vw);
    justify-self: center;
  }

  .home-story-card,
  .home-story-card a {
    min-height: 150px;
  }
}

/* Hard reset: no rectangular panel below the homepage title.
   Scrim lives on the background layer itself, so the photo stays
   subdued behind the copy without any panel behind the title. */
.home-reference-hero .page-hero-bg {
  background:
    linear-gradient(90deg, rgba(2, 4, 11, 0.92) 0%, rgba(2, 4, 11, 0.68) 40%, rgba(2, 4, 11, 0.32) 72%, rgba(2, 4, 11, 0.16) 100%),
    linear-gradient(180deg, rgba(2, 4, 11, 0.35) 0%, rgba(2, 4, 11, 0.22) 55%, #02040b 100%),
    url("../img/slide-1.webp") center center / cover no-repeat !important;
  filter: saturate(0.85) contrast(1.02) brightness(0.62) !important;
  opacity: 1 !important;
}

.home-reference-hero::before,
.home-reference-hero::after,
.home-reference-copy::before,
.home-reference-copy::after,
.home-hero-copy::before,
.home-hero-copy::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.home-reference-shell,
.home-reference-hero-grid,
.home-reference-copy,
.home-hero-copy,
.home-reference-copy .section-eyebrow,
.home-reference-copy .page-title,
.home-reference-copy .page-subtitle {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-reference-copy .page-title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42), 0 0 28px rgba(0, 212, 255, 0.12) !important;
}

/* 10.2026: spokojniejszy hero. Mniejszy tytul, lzejsza karta najnowszego
   numeru (wieksza okladka, krotszy opis, tematy jako etykiety), szybkie
   wejscia juz nie nachodza na przyciski. */
.readable-home .home-reference-hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
}

.readable-home .home-reference-copy .page-title {
  max-width: 640px;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  line-height: 1.02;
}

.readable-home .home-reference-hero .home-reference-issue {
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  max-width: 470px;
  padding: 1.15rem 1.25rem 1.15rem 1.15rem;
  border-color: rgba(255, 255, 255, 0.12);
  border-top: 2px solid rgba(240, 180, 0, 0.5);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 50%, rgba(240, 180, 0, 0.1), transparent 46%),
    linear-gradient(160deg, rgba(9, 11, 26, 0.86), rgba(12, 15, 34, 0.6));
}

.readable-home .home-reference-hero .home-reference-issue img {
  width: 172px;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.readable-home .home-reference-issue .home-label {
  margin-bottom: 0.5rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(240, 180, 0, 0.38);
  border-radius: 999px;
  color: #f0b400;
  background: rgba(240, 180, 0, 0.08);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.readable-home .home-reference-issue h2 {
  margin: 0.15rem 0 0.5rem;
  font-size: 1.22rem;
  line-height: 1.2;
}

.readable-home .home-reference-issue p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.55;
}

.readable-home .home-reference-issue .home-issue-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0.85rem;
}

.readable-home .home-reference-issue .home-issue-highlights li {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  line-height: 1.4;
}

.readable-home .home-reference-issue .home-issue-highlights li::before {
  display: none;
}

.readable-home .home-reference-issue .home-issue-actions {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
}

.readable-home .home-reference-issue .home-issue-actions a {
  white-space: nowrap;
}

.home-parallax-ready .home-page-hero .home-reference-issue {
  transform: perspective(1400px) translate3d(var(--issue-x, 0px), var(--issue-y, 0px), 0) rotateX(calc(var(--issue-tilt-x, 0deg) * 0.45)) rotateY(calc(var(--issue-tilt-y, 0deg) * 0.45)) !important;
}

.readable-home .home-reference-actions {
  margin-top: 1.6rem;
}

@media (max-width: 1120px) {
  .readable-home .home-reference-hero-grid {
    grid-template-columns: 1fr;
  }

  .readable-home .home-reference-hero .home-reference-issue {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .readable-home .home-reference-copy .page-title {
    font-size: clamp(2.2rem, 9.6vw, 3rem);
  }

  .readable-home .home-reference-hero .home-reference-issue {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.95rem;
  }

  .readable-home .home-reference-hero .home-reference-issue img {
    width: 130px;
  }

  .readable-home .home-reference-issue .home-issue-actions a {
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .readable-home .home-reference-hero .home-reference-issue {
    grid-template-columns: 1fr;
  }

  .readable-home .home-reference-hero .home-reference-issue img {
    width: min(170px, 52vw);
    justify-self: center;
  }
}

/* Najnowsze artykuly: blok wstawia blog_src/build.py (1-3 karty, data-count) */
.home-articles-section {
  padding: 2.4rem 0 0.6rem;
  background: #02040b;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-article-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 10, 24, 0.78);
  transition: border-color 0.3s, transform 0.3s;
}

.home-article-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-3px);
}

.home-article-card:has(:focus-visible) {
  outline: 3px solid #f0b400;
  outline-offset: 3px;
}

.home-article-card :focus-visible {
  outline: none;
}

.home-article-visual {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #070a18;
}

.home-article-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.home-article-card:hover .home-article-visual img {
  transform: scale(1.03);
}

.home-article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
}

.home-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  margin: 0;
  color: rgba(232, 234, 246, 0.62);
  font-size: 0.74rem;
}

.home-article-meta span {
  color: #00d4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-article-body h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.3;
}

.home-article-body h3 a {
  color: inherit;
}

.home-article-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-article-body > p:not([class]) {
  margin: 0;
  color: rgba(232, 234, 246, 0.74);
  font-size: 0.86rem;
  line-height: 1.55;
}

.home-article-time {
  margin: auto 0 0;
  padding-top: 0.2rem;
  color: rgba(158, 232, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Rodzaj wpisu pod karta: ARTYKUL w czerwieni przycisku "6 numerow za darmo" (jego obwodka #e0456a,
   bo sam #c41a42 jako drobny tekst na ciemnej karcie ma kontrast ok. 3,3:1), ASTRONEWS w zolci strony (--clr-gold).
   #e0456a ma ok. 4,9:1, zapas nad 4,5:1 jest maly: po zmianie tla pod kartami przeliczyc kontrast */
.home-article-kind {
  font-size: 0.9em;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-article-kind.is-artykuly {
  color: #e0456a;
}

.home-article-kind.is-newsy {
  color: #f0b400;
}

/* Jeden wpis: karta pozioma na cala szerokosc */
.home-article-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.home-article-grid[data-count="1"] .home-article-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.home-article-grid[data-count="1"] .home-article-body {
  justify-content: center;
  gap: 0.7rem;
  padding: 1.5rem 1.7rem;
}

.home-article-grid[data-count="1"] h3 {
  font-size: 1.5rem;
}

.home-article-grid[data-count="1"] .home-article-body > p:not([class]) {
  max-width: 54ch;
  font-size: 0.95rem;
}

.home-article-grid[data-count="1"] .home-article-time {
  margin-top: 0.1rem;
}

/* Waski ekran: karty jedna pod druga, miniatura z lewej */
@media (max-width: 900px) {
  .home-article-grid,
  .home-article-grid[data-count="2"] {
    grid-template-columns: 1fr;
  }

  .home-article-card,
  .home-article-grid[data-count="1"] .home-article-card {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  }

  /* Miniatura na cala wysokosc karty, niezaleznie od dlugosci tytulu */
  .home-article-visual {
    position: relative;
    aspect-ratio: auto;
    min-height: 6.5rem;
  }

  .home-article-visual img {
    position: absolute;
    inset: 0;
  }

  .home-article-body,
  .home-article-grid[data-count="1"] .home-article-body {
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 0.9rem;
  }

  .home-article-body h3,
  .home-article-grid[data-count="1"] h3 {
    font-size: 1.02rem;
  }

  .home-article-time {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .home-articles-section {
    padding-top: 1.6rem;
  }

  .home-articles-section .home-section-line h2 {
    font-size: 0.9rem;
    letter-spacing: 0.07em;
  }

  .home-articles-section .home-section-line a {
    flex: none;
    white-space: nowrap;
  }

  .home-article-body > p:not([class]),
  .home-article-grid[data-count="1"] .home-article-body > p:not([class]) {
    display: none;
  }

  .home-article-meta span {
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-article-card,
  .home-article-visual img {
    transition: none;
  }

  .home-article-card:hover,
  .home-article-card:hover .home-article-visual img {
    transform: none;
  }
}

/* Szybkie wejscia: "6 numerow za darmo" na czerwieni ze starej strony prezentu (#c41a42) */
.home-reference-actions a.home-action-free {
  color: #fff;
  background: #c41a42;
  border-color: #e0456a;
  box-shadow: 0 18px 54px rgba(196, 26, 66, 0.32);
}

.home-reference-actions a.home-action-free:hover {
  background: #d8204e;
}

.home-reference-actions a.home-action-free:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Szybkie wejscia: "Kalendarz zjawisk" w kolorze przycisku Sklep z menu (#5b3fe0) */
.home-reference-actions a.home-action-calendar {
  color: #fff;
  background: #5b3fe0;
  border-color: #7a62f0;
  box-shadow: 0 18px 54px rgba(91, 63, 224, 0.32);
}

.home-reference-actions a.home-action-calendar:hover {
  background: #6a4ff0;
}

.home-reference-actions a.home-action-calendar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Pasek Naukowej Przystani: style w maintenance.css, tu tylko tlo i odstep na stronie glownej (07.10) */
.home-articles-section + .np-strip {
  padding: 0.9rem 0 0.4rem;
  background: #02040b;
}

/* 07.10 23:10: hero bez sztywnego 100vh. Tresc z kafelkami jest nizsza
   niz ekran, wiec pod "Z redakcji i dla obserwatorow" zostawala pusta
   plama ok. 300 px przed "Najnowsze artykuly". */
.readable-home .home-reference-hero {
  min-height: 0;
}

/* Promocja prenumeraty (Jesienna Orbita, do 19.10.2026) */
.home-promo-section {
  padding: 1.6rem 0 0.4rem;
  background: #02040b;
}

.home-promo-section[hidden] {
  display: none;
}

.home-promo {
  max-width: 980px;
  margin: 0 auto;
}

.home-promo-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 180, 0, 0.35);
  border-radius: 12px;
  background: #080a16;
  color: #e8eaf6;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.home-promo-link:hover,
.home-promo-link:focus-visible {
  border-color: #f0b400;
}

.home-promo-link:focus-visible {
  outline: 3px solid #f0b400;
  outline-offset: 3px;
}

.home-promo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.home-promo-text {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-promo-text strong {
  color: #f0b400;
}

.home-promo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
