/* src/styles/atmosphere-glass-listing.css */
/* Blog listing page (/blog) copy of atmosphere-glass.css. Kept identical
   in content — the asset runtime scope schema appears to be a discriminated
   union (type:"templates" matches pages wrapped by a template id; type:
   "pages" matches literal page ids) rather than supporting a combined
   scope, so this page needs its own scoped copy rather than being added to
   src/styles/atmosphere-glass.css's existing templates-scoped rule.
   Keep both files in sync if the shared rules ever change. */

:root {
  --wyre-glass-fill: rgba(255, 255, 255, 0.045);
  --wyre-glass-fill-strong: rgba(255, 255, 255, 0.065);
  --wyre-glass-border: rgba(255, 255, 255, 0.10);
  --wyre-glass-border-lit: rgba(255, 255, 255, 0.20);
  --wyre-glass-hi: rgba(255, 255, 255, 0.28);
  --wyre-blur: 20px;
  --wyre-blur-lg: 30px;
  --wyre-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --wyre-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wyre-shadow-glass:
    0 1px 0 0 var(--wyre-glass-hi) inset,
    0 0 0 1px rgba(0, 0, 0, 0.30),
    0 24px 60px -24px rgba(0, 0, 0, 0.85);
}

.glass, header nav, main article {
  position: relative;
  background: var(--wyre-glass-fill);
  backdrop-filter: blur(var(--wyre-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--wyre-blur)) saturate(165%);
  border: 1px solid var(--wyre-glass-border);
  border-radius: 14px;
  box-shadow: var(--wyre-shadow-glass);
}
.glass::before, header nav::before, main article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--wyre-glass-hi), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.wyre-atmosphere-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.wyre-atmosphere-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}
.wyre-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
  will-change: transform;
}
.wyre-orb--1 {
  top: -180px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(0, 201, 219, 0.30), rgba(0, 201, 219, 0.05) 55%, transparent 70%);
  animation: wyre-orb-drift1 22s var(--wyre-ease) infinite alternate;
}
.wyre-orb--2 {
  top: 620px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 201, 219, 0.18), transparent 68%);
  animation: wyre-orb-drift2 26s var(--wyre-ease) infinite alternate;
}
.wyre-orb--3 {
  top: 1500px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(151, 215, 0, 0.10), transparent 66%);
  animation: wyre-orb-drift1 30s var(--wyre-ease) infinite alternate;
}
.wyre-orb--4 {
  top: 2500px;
  left: 40%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 201, 219, 0.13), transparent 68%);
  animation: wyre-orb-drift2 24s var(--wyre-ease) infinite alternate;
}
@keyframes wyre-orb-drift1 {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, 42px); }
}
@keyframes wyre-orb-drift2 {
  from { transform: translate(0, 0); }
  to { transform: translate(28px, -36px); }
}

.wyre-atmosphere-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .wyre-orb { animation: none; }
}

/* Mobile nav + footer overflow stopgap — HELD, NOT PUBLISHED as of
   2026-09-14 21:5xZ. See atmosphere-glass.css for the full rationale;
   identical block, kept in sync. */
@media (max-width: 600px) {
  header nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  header nav > div {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  footer div[style*="grid-template-columns: 1.5fr"] {
    grid-template-columns: 1fr !important;
  }
}
