/* Translucent edges preserve each surface's existing fill and geometry. */
:where(main section, header, footer, article, .deck-card, .product, details) {
  outline: 1px solid color-mix(in srgb, currentColor 9%, transparent);
  outline-offset: -1px;
}

.glass-reflection {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 180ms ease;
  background:
    radial-gradient(ellipse 220px 145px at var(--light-x) var(--light-y),
      rgb(255 255 255 / 15%), transparent 85%),
    linear-gradient(155deg, rgb(255 255 255 / 8%), transparent 35%,
      transparent 75%, rgb(0 0 0 / 4%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%),
    inset 0 -1px 0 rgb(0 0 0 / 8%);
}

.glass-reflection.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .glass-reflection { transition: none; }
}
