
/* Ethiopian Tilet glowing frame — four fixed borders (needs tilet-glow.js) */
:root {
  --tilet-t: 24px;            /* border thickness */
  --tilet-gold: #E2C27A;
  --tilet-ink: #1A120B;
}
@media (min-width: 768px) { :root { --tilet-t: 36px; } }

.tilet-edge {
  position: fixed; z-index: 900; pointer-events: none; overflow: hidden;
  background: var(--tilet-ink); box-sizing: border-box;
  animation: tilet-edge-glow 2.6s ease-in-out infinite;
}
.tilet-edge svg { display: block; }
.tilet-top    { top: 0;    left: 0; right: 0;  height: var(--tilet-t); border-bottom: 3px solid var(--tilet-gold); }
.tilet-bottom { bottom: 0; left: 0; right: 0;  height: var(--tilet-t); border-top: 3px solid var(--tilet-gold); }
.tilet-left   { left: 0;  top: var(--tilet-t); bottom: var(--tilet-t); width: var(--tilet-t); border-right: 3px solid var(--tilet-gold); }
.tilet-right  { right: 0; top: var(--tilet-t); bottom: var(--tilet-t); width: var(--tilet-t); border-left: 3px solid var(--tilet-gold); }

/* Keep page content clear of the frame */
body { padding: var(--tilet-t); }

/* Every diamond emits light, forever */
.tilet-halo { mix-blend-mode: screen; opacity: 0; animation: tilet-halo 2.6s ease-in-out infinite; }
.tilet-core { animation: tilet-core 2.6s ease-in-out infinite; }
.tilet-spark { animation: tilet-spark 2.6s ease-in-out infinite; }
@keyframes tilet-halo { 0%, 100% { opacity: .05; } 40%, 55% { opacity: 1; } }
@keyframes tilet-core { 0%, 100% { filter: brightness(.9); } 45% { filter: brightness(1.75) saturate(1.25); } }
@keyframes tilet-spark { 0%, 100% { fill-opacity: .55; } 45% { fill-opacity: 1; filter: brightness(2.2); } }
@keyframes tilet-edge-glow {
  0%, 100% { box-shadow: 0 0 8px 0 rgba(255,190,60,.25); }
  50% { box-shadow: 0 0 26px 6px rgba(255,190,60,.75); }
}
@media (prefers-reduced-motion: reduce) {
  .tilet-edge, .tilet-halo, .tilet-core, .tilet-spark { animation: none; }
  .tilet-halo { opacity: .45; }
}
