/* =======================================================
   root style.css — personal landing page.
   THEME: backrooms / weirdcore / analog-horror.
   Sickly fluorescent yellows, damp concrete darkness, a
   flickering light, CRT scanlines, and a grain overlay —
   all done in pure CSS so it works with zero image assets.

   WHEN YOU HAVE REAL TEXTURES: search for "SWAP IN REAL TEXTURE"
   comments below — those are the two spots (grain + wall) meant
   to be replaced with your own image files.
   ======================================================= */

:root {
  --bg: #100f0a;            /* damp basement dark */
  --bg-alt: #1c1a10;        /* stained wallpaper panel */
  --wall: #b8a34a;          /* backrooms fluorescent yellow, used sparingly */
  --text: #d8d2b0;          /* aged, dirty off-white */
  --text-muted: #8a836a;
  --accent: #9c2b23;        /* dried blood / warning red */
  --accent-glitch: #2fb0c4; /* cyan glitch offset */
  --border: #3a331c;
  --font-heading: 'Special Elite', 'Courier New', monospace;
  --font-body: 'Courier Prime', 'Courier New', monospace;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ---- Grain overlay ----
   Real generated grain texture (images/grain.png), tiled and
   blended over everything for that VHS-tape-in-a-drawer look. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url('images/grain.png');
  background-repeat: repeat;
}

/* ---- Scanlines ----
   Thin horizontal stripes over everything, CRT/VHS style. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 2px,
    transparent 4px
  );
}

/* ---- Fluorescent flicker ----
   Subtle, irregular brightness dips on the header, like a dying
   fluorescent tube. Very small range so it stays readable. */
@keyframes flicker {
  0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; }
  20%, 22%, 24% { opacity: 0.85; }
  50% { opacity: 0.97; }
}

header {
  border-bottom: 2px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-alt);
  animation: flicker 7s infinite;
  position: relative;
  z-index: 1;
}

/* Glitchy site title: doubled text-shadow in red/cyan, offset,
   like a mistracked VHS signal. */
.site-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.04em;
  text-shadow:
    2px 0 var(--accent),
    -2px 0 var(--accent-glitch);
}

.site-title span { color: var(--wall); text-shadow: none; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--text); font-weight: normal; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-glitch); text-decoration: underline; }

nav { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

nav a {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

nav a.active, nav a:hover {
  color: var(--wall);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

main.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ---- Hero: framed portrait/drawing + intro text ---- */
.hero {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.hero .hero-text { flex: 1 1 320px; max-width: 480px; }

.hero .hero-text .tagline {
  font-family: var(--font-heading);
  color: var(--wall);
}

/*
  .frame = a water-stained, slightly-crooked picture frame.
  A thick dark inner border plus a thin dried-blood outline,
  with a small random-looking rotation for that "found in an
  abandoned room" imperfection. Images inside get desaturated
  and pushed toward sickly yellow-green to match the theme.

  SWAP IN REAL TEXTURE: once you have wall/carpet textures, you
  could add them as background-image on .frame itself for a
  "photo pinned to the backrooms wall" effect.
*/
.frame {
  display: inline-block;
  padding: 10px;
  background: var(--bg-alt);
  outline: 2px solid var(--accent);
  outline-offset: -6px;
  border-radius: 2px;
  transform: rotate(-1.5deg);
}

.frame img {
  display: block;
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1px;
  filter: grayscale(55%) sepia(20%) hue-rotate(20deg) contrast(105%) brightness(85%);
}

/* ---- Socials row ---- */
.socials-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.socials-row a {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.socials-row a:hover {
  color: var(--wall);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---- Hall of fame grid ---- */
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hall-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  text-align: center;
}

.hall-card:nth-child(even) .frame { transform: rotate(1deg); }

.hall-card .frame { margin-bottom: 1rem; }

.hall-card .frame img {
  width: 100%;
  height: 160px;
  aspect-ratio: auto;
}

.hall-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
}

.hall-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}
