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

body {
  background: #000;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  padding: 2.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
}

nav {
  text-align: right;
  margin-bottom: 3.5rem;
  font-size: 0.95rem;
}
nav a {
  color: #c084fc;
  text-decoration: none;
  margin-left: 1.4rem;
  transition: color 0.15s;
}
nav a:hover { color: #e9d5ff; }

a { color: #c084fc; text-decoration: none; transition: color 0.15s; }
a:hover { color: #e9d5ff; }

h1 {
  font-size: 2.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 2.75rem 0 1.1rem;
  letter-spacing: -0.02em;
}
p { margin-bottom: 1.05rem; font-size: 1.05rem; }

ul { list-style: none; margin: 1.1rem 0 1.6rem; }
ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
ul li::before { content: "•"; position: absolute; left: 0; color: #666; }
.project-name { font-weight: 600; color: #fff; }

footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1a1a;
  font-size: 0.85rem;
  color: #555;
}

:focus-visible { outline: 2px solid #c084fc; outline-offset: 3px; }

/* contact */
.contact { display: grid; gap: 0.6rem; margin-top: 1.1rem; }
.contact a {
  display: flex; gap: 1rem; padding: 0.75rem 1rem;
  border: 1px solid #1f1f1f; border-radius: 8px; color: #e0e0e0;
  transition: border-color 0.15s, background 0.15s;
}
.contact a:hover { border-color: #c084fc; background: #0d0814; color: #fff; }
.contact b { width: 5.5rem; color: #888; font-weight: 500; }
.contact span { color: #c084fc; }

/* friend cards */
.friends {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.card {
  --c: #c084fc;
  position: relative;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, #0a0a0a), #0a0a0a 70%);
  border: 1px solid color-mix(in srgb, var(--c) 35%, #111);
  color: #fff; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--c) 28%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  box-shadow: 0 8px 28px -10px var(--c);
  color: #fff;
}
.card:hover::after { transform: translateX(120%); }

.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #000;
  background: var(--c); box-shadow: 0 0 18px -2px var(--c);
  position: relative; overflow: hidden;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card strong { display: block; font-size: 1rem; line-height: 1.2; }
.card small { color: color-mix(in srgb, var(--c) 70%, #999); font-size: 0.78rem; }

.heart {
  color: #f472b6; display: inline-block; font-size: 0.85em;
  text-shadow: 0 0 10px #f472b6;
  animation: beat 1.8s ease-in-out infinite;
}
@keyframes beat {
  0%, 60%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; }
  * { transition: none !important; }
}

/* blog */
.posts { list-style: none; margin: 1.5rem 0; }
.posts li {
  padding: 0; margin-bottom: 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.posts li::before { content: none; }
.posts a { font-weight: 500; }
.meta { color: #666; font-size: 0.85rem; white-space: nowrap; }

article h2 { font-size: 1.35rem; margin-top: 0; }
article .meta { display: block; margin-bottom: 1.5rem; }
article p { margin-bottom: 1rem; }
article code, pre {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #111; border-radius: 4px;
}
article code { padding: 0.1em 0.35em; font-size: 0.92em; }
pre {
  padding: 1rem; overflow-x: auto; margin-bottom: 1.2rem;
  border: 1px solid #1f1f1f;
}
pre code { padding: 0; background: none; }

/* admin */
input, textarea {
  width: 100%; background: #0a0a0a; color: #fff;
  border: 1px solid #222; border-radius: 6px;
  padding: 0.7rem 0.85rem; font: inherit; margin-bottom: 0.8rem;
}
input:focus, textarea:focus { border-color: #c084fc; outline: none; }
textarea { resize: vertical; min-height: 200px; }
button {
  background: #c084fc; color: #000; font: inherit; font-weight: 600;
  border: 0; border-radius: 6px; padding: 0.55rem 1.1rem; cursor: pointer;
}
button:hover { background: #e9d5ff; }
button.secondary {
  background: transparent; color: #c084fc; border: 1px solid #333;
}
button.secondary:hover { border-color: #c084fc; background: #0d0814; }
button.link {
  background: none; color: #f87171; padding: 0; font-weight: 400; font-size: 0.9rem;
}
.err { color: #f87171; margin-bottom: 1rem; }
.ok { color: #4ade80; margin-bottom: 1rem; }
.admin-list { margin-top: 2.5rem; }
.admin-list li {
  display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem;
}
.muted { color: #666; font-size: 0.9rem; }

/* social list on contact */
.social-list {
  list-style: none;
  margin: 1.2rem 0 2rem;
}
.social-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.social-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #666;
}

