:root {
  --bg: #0b0b0f;
  --panel: #121218;
  --accent: #a58bff;
  --text: #e7e7f0;
  --muted: #a3a3b1;
  --card: rgba(23,23,34,.8);          /* set to rgba(23,23,34,.8) if you want global translucency */
  --ring: 0 0 0 2px rgba(165,139,255,0.35);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --maxw: 980px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, #09090c 0%, #0b0b0f 40%, #0b0b0f 100%);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

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

/* shell */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px; }

/* banner */
.banner {
  position: relative;
  height: 220px;
  border-radius: 20px;
  background: #0f0f16 url('/header.png') center/cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: end start;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.title {
  background: rgba(11,11,15,0.6);
  backdrop-filter: blur(6px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  max-width: min(92%, 680px);
}
.title h1 {
  margin: 0 0 6px 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 800;
}
.title .quote {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(12px, 2vw, 14px);
}

/* grid */
.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
/* Glassy option:
.card {
  background: rgba(23,23,34,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
*/

.profile { padding: 18px; }
.main    { padding: 18px; }

.section {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.section + .section { margin-top: 14px; }
.section h3 { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }

/* sidebar bits */
.pfp {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(165,139,255,0.3);
}
.pfp img { width: 100%; height: 100%; object-fit: cover; display:block; }

.name { margin-top: 14px; }
.name h3 { margin: 0; font-size: 19px; }
.name .tag { color: var(--muted); font-size: 13px; font-family: "JetBrains Mono", monospace; }
.bio { margin-top: 12px; color: #d6d6e2; }

.list { margin-top: 14px; display: grid; gap: 10px; }
.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.kv .k { color: var(--muted); font-family: "JetBrains Mono", monospace; }

/* badges */
.links { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.badge {
  display:inline-block;
  padding:8px 10px;
  border-radius:10px;
  background:#14141e;
  border:1px solid rgba(255,255,255,0.06);
  font-size:13px;
}

/* lists generated by blog script */
#recentpostlistdiv ul, #postlistdiv ul { list-style:none; padding:0; margin:0; }
#recentpostlistdiv li, #postlistdiv li {
  padding:12px; border:1px solid rgba(255,255,255,0.06);
  border-radius:12px; background:#14141e; margin:0 0 10px;
}
#recentpostlistdiv li a, #postlistdiv li a { display:inline-block; }
#recentpostlistdiv .date, #postlistdiv .date { display:block; color:var(--muted); font-size:.9rem; margin-top:4px; }

/* footer */
footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* sparkles */
#sparkle-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.wrap { position: relative; z-index: 1; }

/* responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

/* Poll widget */
.poll-title { margin: 0 0 8px; font-size: 15px; }
.poll .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.poll-options { display: grid; gap: 8px; }
.poll .option { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.poll .option input[type="radio"] { accent-color: var(--accent); }
.poll-actions { margin-top: 10px; display: flex; gap: 8px; }
.poll-actions .badge {
  cursor: pointer;
  background: #957ee7;
  border: 1px solid rgba(255,255,255,0.10);
}
.poll-actions .badge:hover { text-decoration: none; }
.poll-credit { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }

/* Guestbook embed */
.embed-wrap { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.embed-frame {
  display: block;
  width: 100%;
  min-height: 1000px;     /* adjust if it scrolls too much */
  border: 0;
  background: #0f0f16;   /* behind their page while loading */
}
