/* Shared atmosphere and chrome for klingvs.com.
   Deep black, film grain, warm light leak, faint frame lines.
   Page content keeps its own colors. */

html {
  background: #050403;
}

body {
  background: transparent;
  min-height: 100vh;
  padding: 26px 22px 32px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 108% -8%, rgba(255, 154, 78, 0.22), transparent 58%),
    radial-gradient(ellipse 46% 42% at -12% 108%, rgba(132, 52, 18, 0.32), transparent 62%),
    radial-gradient(ellipse 28% 18% at 18% -4%, rgba(255, 214, 170, 0.08), transparent 70%),
    linear-gradient(102deg, transparent 30%, rgba(255, 186, 120, 0.055) 48%, transparent 64%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, #100e0c 0%, #070605 38%, #050403 100%);
}

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

.film-frame {
  position: fixed;
  inset: 8px;
  z-index: 30;
  pointer-events: none;
  border: 1px solid rgba(255, 220, 186, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 80px rgba(0, 0, 0, 0.18);
}

.film-frame span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: rgba(255, 226, 196, 0.55);
  border-style: solid;
}

.film-frame span:nth-child(1) { top: 5px; left: 5px; border-width: 1px 0 0 1px; }
.film-frame span:nth-child(2) { top: 5px; right: 5px; border-width: 1px 1px 0 0; }
.film-frame span:nth-child(3) { bottom: 5px; left: 5px; border-width: 0 0 1px 1px; }
.film-frame span:nth-child(4) { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  font-size: 13px;
}

.site-mark {
  color: #f4efe8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-home {
  color: #d9cbbd;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-home:hover,
.site-mark:hover {
  color: #f0d2b0;
}

.site-bar a:focus-visible,
.site-foot a:focus-visible {
  outline: 2px solid #f0d2b0;
  outline-offset: 3px;
}

.wrap > header {
  padding-top: 20px;
}

footer.site-foot {
  border-top: 1px solid rgba(255, 220, 186, 0.14);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-top: 8px;
}

.site-links a {
  color: #d9cbbd;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-links a:hover {
  color: #f4efe8;
}

/* Filled actions stay readable on the warm ground. Outline copy buttons keep their own color. */
.cta,
.go {
  color: #fff;
}

@media (max-width: 480px) {
  body { padding: 20px 16px 24px; }
  .film-frame { inset: 6px; }
  .wrap { padding-left: 12px; padding-right: 12px; }
}
