/*
Theme Name: NB Minimal
Description: Dark, logo-only landing page for nickbennison.com.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: nb-minimal
*/

:root {
  --bg: #07080c;
  --glow-a: rgba(99, 102, 241, 0.22);
  --glow-b: rgba(236, 72, 153, 0.14);
  --ink: #f4f4f6;
  --muted: rgba(244, 244, 246, 0.55);
  --accent-1: #818cf8;
  --accent-2: #f472b6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft drifting glow behind the logo */
.nb-backdrop {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 35% 40%, var(--glow-a), transparent 70%),
    radial-gradient(35% 30% at 65% 60%, var(--glow-b), transparent 70%);
  filter: blur(20px);
  animation: nb-drift 18s ease-in-out infinite alternate;
}

/* Fine grain so the dark doesn't look flat */
.nb-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.nb-logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: inherit;
  animation: nb-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.nb-mark {
  width: clamp(88px, 14vw, 128px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 40px rgba(129, 140, 248, 0.25));
}

.nb-wordmark {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--muted);
  padding-left: 0.32em; /* optically re-centre tracked text */
}

@keyframes nb-drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(8deg); }
}

@keyframes nb-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nb-backdrop,
  .nb-logo {
    animation: none;
  }
}

/* Keep the admin bar from shifting the layout when logged in */
body.admin-bar {
  min-height: calc(100dvh - 32px);
}
