@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #0b0f17;
  --text-primary: #f8fafc;
  --text-lead: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-purple: #a855f7;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-lead);
  font-family: var(--font-sans);
  line-height: 1.8;
  padding: 5rem 1.5rem 6rem;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.post,
article,
main {
  width: 100%;
  max-width: 680px;
}

h1 {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.intro {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-bottom: 2rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
}

p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-lead);
  margin-bottom: 1.75rem;
}

p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  body {
    padding: 3rem 1.25rem 4rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  .intro {
    font-size: 1.1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
  }

  p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
}

/* Light Mode Fake Button */
.theme-switch-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.theme-btn:active {
  transform: translateY(1px);
}

.moth-message {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  max-width: calc(100vw - 3rem);
  width: max-content;
  background: rgba(18, 22, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
}

.moth-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: mothShake 0.4s ease;
}

@keyframes mothShake {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(0) scale(1) rotate(-3deg); }
  75% { transform: translateY(0) scale(1) rotate(3deg); }
}
