/* ============================================================
   LEDREW.ME — THE ROOST
   One eye on the future (neon), one on the past (sepia).
   ============================================================ */

:root {
  --neon: #00f0ff;
  --neon-dim: #0aa9c2;
  --neon-soft: rgba(0, 240, 255, .12);
  --amber: #d9a441;
  --amber-soft: rgba(217, 164, 65, .14);
  --ink: #0b0e14;
  --ink2: #10141d;
  --paper: #f3e9d2;
  --paper2: #e8dcc0;
  --sepia: #6b5233;
  --sepia-dark: #3d2f1d;
  --text: #cfe6ee;
  --text-dim: #7d97a3;
  --danger: #ff5470;
  --mono: "Courier New", Courier, monospace;
  --sans: "Trebuchet MS", Verdana, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(0, 240, 255, .07), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(217, 164, 65, .08), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* CRT scanlines + vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.5) 100%);
  mix-blend-mode: multiply;
}

/* faint drifting stars */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 20%, #9fe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 70%, #ffe9b0 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 60%, #fff 50%, transparent 51%);
  animation: drift 120s linear infinite alternate;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-40px, 30px); } }

a { color: var(--neon); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--neon); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid rgba(0, 240, 255, .25);
  background: linear-gradient(180deg, rgba(11,14,20,.92), rgba(11,14,20,.75));
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
}
.brand .wordmark {
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: var(--paper);
  text-shadow: 0 0 12px rgba(0,240,255,.55);
}
.brand .wordmark b { color: var(--neon); font-weight: 700; }
.brand .tag {
  display: block;
  font-size: .62rem;
  letter-spacing: 2px;
  color: var(--amber);
  text-transform: uppercase;
}
nav.main { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: 1px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
nav.main a:hover { color: var(--neon); border-color: rgba(0,240,255,.35); }
nav.main a.active {
  color: var(--neon);
  border-color: rgba(0,240,255,.45);
  background: var(--neon-soft);
  box-shadow: 0 0 12px rgba(0,240,255,.15) inset;
}

/* ---------- owl mascot ---------- */
.owl { width: 54px; height: 54px; flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(0,240,255,.35)); }
.owl .eye-future { animation: eyeGlow 3.2s ease-in-out infinite; }
.owl .eye-past { animation: eyeSepia 3.2s ease-in-out infinite reverse; }
@keyframes eyeGlow {
  0%, 100% { opacity: 1; } 50% { opacity: .55; }
}
@keyframes eyeSepia {
  0%, 100% { opacity: .8; } 50% { opacity: 1; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 20px 48px;
  text-align: center;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 6px;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(0,240,255,.5), 0 0 40px rgba(217,164,65,.25);
}
.hero h1 .fut { color: var(--neon); }
.hero h1 .past { color: var(--amber); }
.hero .sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 1.02rem;
}
.hero .owl-big { width: 130px; height: 130px; margin: 0 auto 18px; display: block; }
.divider {
  display: flex; align-items: center; gap: 14px;
  max-width: 640px; margin: 26px auto 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: 3px; color: var(--text-dim);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; }
.divider::before { background: linear-gradient(90deg, transparent, var(--neon-dim)); }
.divider::after { background: linear-gradient(90deg, var(--amber), transparent); }

/* ---------- panels ---------- */
.panel {
  border: 1px solid rgba(0,240,255,.22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(16,20,29,.9), rgba(11,14,20,.9));
  box-shadow: 0 0 24px rgba(0,240,255,.06);
  margin: 26px 0;
  overflow: hidden;
}
.panel-h {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,240,255,.18);
  background: linear-gradient(90deg, var(--neon-soft), transparent 60%);
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
}
.panel-h .r { margin-left: auto; color: var(--text-dim); letter-spacing: 1px; font-size: .68rem; }
.panel-b { padding: 18px; }

.panel.historical { border-color: rgba(217,164,65,.3); }
.panel.historical .panel-h {
  color: var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), transparent 60%);
  border-bottom-color: rgba(217,164,65,.25);
}

/* ---------- hoot wall ---------- */
.hoot-form { display: grid; gap: 10px; }
.hoot-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hoot-form input[type="text"], .hoot-form textarea, .hoot-form select {
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(0,240,255,.3);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .9rem;
  padding: 10px 12px;
  outline: none;
}
.hoot-form input:focus, .hoot-form textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(0,240,255,.25);
}
.hoot-form textarea { width: 100%; min-height: 84px; resize: vertical; }
.hoot-form input[type="text"] { flex: 1; min-width: 160px; }
.hoot-form select { cursor: pointer; }
.hoot-form .cf-turnstile { display: flex; justify-content: center; } /* center the Cloudflare box */
.hoot-form .submit-row { justify-content: center; } /* center the send button */
.hp { position: absolute; left: -9999px; opacity: 0; } /* honeypot */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid var(--neon);
  color: var(--neon);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.btn:hover { background: var(--neon-soft); box-shadow: 0 0 16px rgba(0,240,255,.35); }
.btn:disabled { opacity: .4; cursor: wait; }
.btn.amber { border-color: var(--amber); color: var(--amber); }
.btn.amber:hover { background: var(--amber-soft); box-shadow: 0 0 16px rgba(217,164,65,.3); }

.hoots { margin-top: 18px; display: grid; gap: 10px; }
.hoot {
  border: 1px solid rgba(0,240,255,.14);
  border-left: 3px solid var(--neon-dim);
  border-radius: 4px;
  padding: 10px 14px;
  background: rgba(0,0,0,.3);
  animation: hootIn .3s ease;
}
@keyframes hootIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hoot .meta {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
}
.hoot .meta .who { color: var(--neon); font-weight: 700; }
.hoot .meta .mood { color: var(--amber); font-style: italic; }
.hoot .msg { margin-top: 6px; font-size: .95rem; line-height: 1.5; word-wrap: break-word; white-space: pre-wrap; }
.hoot .when { margin-left: auto; font-size: .68rem; }

/* ---------- profile (MySpace style) ---------- */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }

.pcard {
  border: 1px solid rgba(217,164,65,.35);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(243,233,210,.06), rgba(243,233,210,.02)),
    repeating-linear-gradient(45deg, rgba(217,164,65,.03) 0 10px, transparent 10px 20px),
    var(--ink2);
  overflow: hidden;
}
.pcard .photo {
  display: block; width: 100%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(217,164,65,.25), transparent 65%),
    #0d1017;
  position: relative;
}
.pcard .photo svg { width: 100%; height: 100%; }
.pcard .cap {
  padding: 10px 14px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: 1px;
  color: var(--amber); text-align: center;
  border-top: 1px dashed rgba(217,164,65,.3);
}
.pcard .facts { padding: 14px; font-size: .85rem; }
.pcard .facts dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.pcard .facts dt { color: var(--text-dim); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
.pcard .facts dd { color: var(--text); }

.moodbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px dashed rgba(217,164,65,.3);
  font-family: var(--mono); font-size: .78rem;
}
.moodbar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: eyeGlow 2.4s infinite; }

.blurb { font-family: var(--serif); line-height: 1.7; color: var(--text); }
.blurb h3 {
  font-family: var(--mono); font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--neon); margin: 18px 0 8px;
}
.blurb h3:first-child { margin-top: 0; }
.blurb .old { color: var(--paper2); }
.dropcap::first-letter {
  font-size: 2.6em; float: left; line-height: .9;
  padding-right: 8px; color: var(--amber); font-family: var(--serif);
}

/* interest tables — pure 2006 */
.interests table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.interests td { padding: 7px 10px; border-bottom: 1px dashed rgba(0,240,255,.12); vertical-align: top; }
.interests td.k {
  width: 130px; color: var(--amber); font-family: var(--mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding-top: 9px;
}

/* top friends */
.friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .friends { grid-template-columns: repeat(2, 1fr); } }
.friend {
  border: 1px solid rgba(0,240,255,.2); border-radius: 4px;
  padding: 10px; text-align: center; background: rgba(0,0,0,.3);
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
}
.friend .av {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, var(--neon-soft), transparent 70%), #0d1017;
  border: 1px solid rgba(0,240,255,.25);
}
.friend .av svg { width: 44px; height: 44px; }
.friend b { color: var(--neon); display: block; margin-bottom: 2px; }

/* ---------- genealogy ---------- */
.gen-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
@media (max-width: 860px) { .gen-layout { grid-template-columns: 1fr; } }

.ledger {
  font-family: var(--serif);
  background:
    linear-gradient(180deg, rgba(243,233,210,.045), rgba(243,233,210,.015));
  border: 1px solid rgba(217,164,65,.3);
  border-radius: 6px;
  padding: 20px;
}
.ledger h3 {
  font-family: var(--mono); font-size: .78rem; letter-spacing: 2px;
  color: var(--amber); text-transform: uppercase; margin-bottom: 12px;
}
.ledger .entry {
  padding: 12px 0 12px 16px;
  border-left: 2px solid rgba(217,164,65,.35);
  margin: 0 0 4px 4px;
  position: relative;
}
.ledger .entry::before {
  content: "❧"; position: absolute; left: -11px; top: 10px;
  color: var(--amber); background: var(--ink); font-size: .8rem;
}
.ledger .entry .who { color: var(--paper); font-weight: 700; }
.ledger .entry .years { color: var(--neon); font-family: var(--mono); font-size: .78rem; margin-left: 8px; }
.ledger .entry p { color: var(--text-dim); font-size: .9rem; margin-top: 4px; line-height: 1.55; }

.tree { font-family: var(--mono); font-size: .78rem; line-height: 1.9; color: var(--text-dim); white-space: pre; overflow-x: auto; }
.tree b { color: var(--neon); }
.tree i { color: var(--amber); font-style: normal; }

.artifact {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px dashed rgba(217,164,65,.35); border-radius: 4px;
  padding: 10px 12px; margin-top: 10px; background: rgba(0,0,0,.25);
}
.artifact .ico { font-size: 1.3rem; filter: sepia(1); }
.artifact .t b { color: var(--amber); font-family: var(--mono); font-size: .78rem; letter-spacing: 1px; }
.artifact .t p { font-size: .8rem; color: var(--text-dim); margin-top: 2px; font-family: var(--serif); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 60px;
  border-top: 1px solid rgba(217,164,65,.25);
  padding: 26px 20px 34px;
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}
footer.site .glitch { color: var(--neon); }
footer.site .sepia { color: var(--amber); }
footer.site .fine { margin-top: 8px; font-size: .64rem; opacity: .6; }

/* marquee — because MySpace */
.marquee {
  border-top: 1px solid rgba(0,240,255,.18);
  border-bottom: 1px solid rgba(0,240,255,.18);
  background: rgba(0,0,0,.4);
  overflow: hidden;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: 2px;
  color: var(--amber);
  white-space: nowrap;
}
.marquee span { display: inline-block; padding-left: 100%; animation: mq 38s linear infinite; }
@keyframes mq { to { transform: translateX(-100%); } }

/* misc */
.small { font-size: .78rem; color: var(--text-dim); }
.center { text-align: center; }
.mt { margin-top: 16px; }
::selection { background: var(--neon); color: var(--ink); }