/* =============================================================
   Blackreach Enterprises — css/index.css
   ============================================================= */

/* ── Custom properties ────────────────────────────────────── */
:root {
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --bg-3:      #111111;
  --bg-4:      #161616;

  --border:    rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.13);
  --border-hi: rgba(255, 255, 255, 0.24);

  --text-1:    #ffffff;
  --text-2:    rgba(255, 255, 255, 0.75);
  --text-3:    rgba(255, 255, 255, 0.55);
  --text-4:    rgba(255, 255, 255, 0.36);

  --accent:    #c00000;
  --accent-lo: rgba(192, 0, 0, 0.10);
  --accent-md: rgba(192, 0, 0, 0.22);

  --radius-sm: 8px;
  --radius-md: 11px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Public Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* ── Text selection ───────────────────────────────────────── */
::selection {
  background: var(--accent-lo);
  color: #ff4444;
}

/* ── Skip link (accessibility) ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Global focus ring ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Noise texture overlay ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

/* ── Radial glow ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(192, 0, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page-load animation ──────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim { animation: fadeUp 0.65s var(--ease-out) both; }
.d1   { animation-delay: 0.04s; }
.d2   { animation-delay: 0.12s; }
.d3   { animation-delay: 0.20s; }
.d4   { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .anim,
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   CENTRE WRAPPER
   ═══════════════════════════════════════════════════════════ */
.center-wrapper {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ═══════════════════════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════════════════════ */
.logo-image {
  margin-bottom: 1.5rem;
}

.logo-image img {
  width: 110px;
  height: auto;
  display: block;
  /* Slightly brighten against the black background */
  filter: brightness(1) contrast(1);
}

@media (min-width: 481px) {
  .logo-image img {
    width: 160px;
  }
}

/* ═══════════════════════════════════════════════════════════
   TITLE
   ═══════════════════════════════════════════════════════════ */
.main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-1);
  text-transform: lowercase;
  font-variant: small-caps;
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER LINKS (privacy / terms)
   ═══════════════════════════════════════════════════════════ */
.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--text-4);
  margin-bottom: 1.6rem;
}

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-2);
  border-bottom-color: var(--border-hi);
}

.footer-links .sep {
  color: var(--text-4);
  margin: 0 0.6rem;
  font-weight: 400;
  user-select: none;
  font-variant: normal;
  text-transform: none;
}

/* ═══════════════════════════════════════════════════════════
   DESCRIPTION
   ═══════════════════════════════════════════════════════════ */
.app-description {
  font-size: 0.92rem;
  color: var(--text-3);
  max-width: 34rem;
  line-height: 1.78;
}

/* ── High-contrast mode ───────────────────────────────────── */
@media (forced-colors: active) {
  .footer-links a {
    border-bottom: 1px solid LinkText;
  }
}
