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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 0 0 15%;
  padding: 60px 24px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.socials {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.socials a {
  color: #1a1a1a;
  transition: opacity 0.15s ease;
}

.socials a:hover {
  opacity: 0.6;
}

.status {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.status-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.status strong {
  color: #1a1a1a;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bio {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 36px;
  line-height: 1.7;
}

h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tools a {
  text-decoration: none;
}

.tool {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #1a1a1a;
  transition: background 0.15s ease;
}

.tools a:hover .tool {
  background: #e0e0e0;
}

.status a {
  color: #1a1a1a;
  text-decoration: none;
}

.status a:hover {
  text-decoration: underline;
}

.contact {
  font-size: 0.95rem;
  color: #555;
  margin-top: 36px;
}

.contact a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.projects {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects li::marker {
  color: #1a1a1a;
}

.projects a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.project-name {
  font-size: 0.9rem;
  font-weight: 600;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 6px;
  color: #1a1a1a;
  transition: background 0.15s ease;
}

.projects a:hover .project-name {
  background: #e0e0e0;
}

.project-desc {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 2px;
}

.blog-hint {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 12px;
}

.blog-list {
  list-style: none;
  margin-bottom: 36px;
}

.blog-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.blog-list a:hover {
  text-decoration: underline;
}

.back a {
  font-size: 0.9rem;
  color: #777;
  text-decoration: none;
}

.back a:hover {
  color: #1a1a1a;
}

.back {
  margin-bottom: 32px;
}

.post {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.post:last-child {
  border-bottom: none;
}

.post time {
  font-size: 0.85rem;
  color: #999;
}

.post-title {
  font-size: 1.2rem;
  margin-top: 4px;
  margin-bottom: 8px;
}

.post p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* easter egg styles */

.hidden-message {
  color: #fff;
  font-size: 0.75rem;
  user-select: all;
  margin-top: 40px;
}

.hidden-message::selection {
  background: #1a1a1a;
  color: #fff;
}

.party-mode {
  animation: rainbow-bg 0.5s linear infinite;
}

@keyframes rainbow-bg {
  0% { background: #ff6b6b; }
  16% { background: #ffd93d; }
  33% { background: #6bcb77; }
  50% { background: #4d96ff; }
  66% { background: #ff6bd6; }
  83% { background: #845ec2; }
  100% { background: #ff6b6b; }
}

.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  z-index: 10000;
  animation: confetti-fall 3s ease-in forwards;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.idle-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  animation: idle-fade 0.5s ease;
  z-index: 1000;
}

@keyframes idle-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.drag-msg {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
  animation: fade-out 2s ease forwards;
}

@keyframes fade-out {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  main {
    margin: 0;
    padding: 40px 20px;
  }

  h1 {
    font-size: 2.5rem;
  }
}
